Spaces:
Sleeping
Sleeping
Update styles.py
Browse files
styles.py
CHANGED
@@ -1,5 +1,34 @@
|
|
1 |
def get_custom_css():
|
2 |
return """
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
<style>
|
4 |
.stApp {
|
5 |
background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
|
|
|
1 |
def get_custom_css():
|
2 |
return """
|
3 |
+
<style>
|
4 |
+
/* Reduce top padding */
|
5 |
+
.block-container {
|
6 |
+
padding-top: 1rem !important;
|
7 |
+
padding-bottom: 0rem !important;
|
8 |
+
}
|
9 |
+
|
10 |
+
/* Add negative margin to move content up */
|
11 |
+
div.stApp {
|
12 |
+
margin-top: -60px;
|
13 |
+
}
|
14 |
+
|
15 |
+
/* Your existing styles can go here */
|
16 |
+
.stButton > button {
|
17 |
+
width: 100%;
|
18 |
+
border-radius: 5px;
|
19 |
+
height: 3em;
|
20 |
+
background-color: #4CAF50;
|
21 |
+
color: white;
|
22 |
+
font-weight: bold;
|
23 |
+
}
|
24 |
+
|
25 |
+
.stButton > button:hover {
|
26 |
+
background-color: #45a049;
|
27 |
+
}
|
28 |
+
|
29 |
+
/* Add any other custom styles you have */
|
30 |
+
</style>
|
31 |
+
"""
|
32 |
<style>
|
33 |
.stApp {
|
34 |
background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
|