Spaces:
Sleeping
Sleeping
Create style.py
Browse files- tab/style.py +50 -0
tab/style.py
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
custom_css = """
|
| 2 |
+
body {
|
| 3 |
+
background-color: #121212;
|
| 4 |
+
color: #f8f8f8;
|
| 5 |
+
}
|
| 6 |
+
|
| 7 |
+
/* Centered text utility */
|
| 8 |
+
.centered-text {
|
| 9 |
+
text-align: center;
|
| 10 |
+
margin-left: auto;
|
| 11 |
+
margin-right: auto;
|
| 12 |
+
}
|
| 13 |
+
|
| 14 |
+
/* Orange-themed button styling */
|
| 15 |
+
.orange-btn, #encrypt-btn, #decrypt-btn {
|
| 16 |
+
background-color: #ff6f00 !important;
|
| 17 |
+
color: white;
|
| 18 |
+
font-weight: bold;
|
| 19 |
+
border-radius: 8px;
|
| 20 |
+
padding: 10px 20px;
|
| 21 |
+
}
|
| 22 |
+
|
| 23 |
+
/* Enhanced textbox style */
|
| 24 |
+
textarea {
|
| 25 |
+
background-color: #1c1c1c !important;
|
| 26 |
+
color: #f0f0f0 !important;
|
| 27 |
+
border-radius: 10px;
|
| 28 |
+
border: 1px solid #444 !important;
|
| 29 |
+
font-size: 15px;
|
| 30 |
+
padding: 12px;
|
| 31 |
+
box-shadow: 0 0 8px rgba(0,0,0,0.4);
|
| 32 |
+
}
|
| 33 |
+
|
| 34 |
+
/* Image styling */
|
| 35 |
+
img {
|
| 36 |
+
border: 1px solid #444;
|
| 37 |
+
border-radius: 8px;
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
/* Markdown cleanup */
|
| 41 |
+
.gr-markdown > div {
|
| 42 |
+
background: transparent !important;
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
/* Margin between rows */
|
| 46 |
+
.custom-gap {
|
| 47 |
+
margin-top: 40px;
|
| 48 |
+
margin-bottom: 20px;
|
| 49 |
+
}
|
| 50 |
+
"""
|