Spaces:
Sleeping
Sleeping
devjas1
commited on
Commit
·
8d21c18
1
Parent(s):
77734fd
FEAT(style): enhance expander summary and button styles for improved visibility and theme consistency
Browse files- static/style.css +8 -6
static/style.css
CHANGED
|
@@ -74,14 +74,15 @@ div[data-testid="stExpander"] summary svg {
|
|
| 74 |
}
|
| 75 |
|
| 76 |
div.stExpander>details>summary::after {
|
| 77 |
-
content: '
|
| 78 |
font-size: 0.75rem;
|
| 79 |
-
font-weight:
|
| 80 |
letter-spacing: 0.5px;
|
| 81 |
padding: 4px 12px;
|
| 82 |
border-radius: 999px;
|
| 83 |
/* The primary color is set in config.toml and adapted by Streamlit */
|
| 84 |
background-color: var(--primary);
|
|
|
|
| 85 |
/* Text on the primary color needs high contrast. White works well for our chosen purple. */
|
| 86 |
|
| 87 |
transition: background-color 0.2s ease-in-out;
|
|
@@ -149,10 +150,11 @@ div[data-testid="stMetricLabel"] {
|
|
| 149 |
.st-key-json-button,
|
| 150 |
.st-key-clearall-button {
|
| 151 |
display: block;
|
| 152 |
-
border: 1px double #
|
| 153 |
max-width: 100%;
|
| 154 |
border-radius: 8px;
|
| 155 |
-
background-color:
|
|
|
|
| 156 |
|
| 157 |
|
| 158 |
}
|
|
@@ -163,9 +165,9 @@ div[data-testid="stMetricLabel"] {
|
|
| 163 |
justify-items: center;
|
| 164 |
align-self: center;
|
| 165 |
align-content: center;
|
| 166 |
-
border: 1px double #
|
| 167 |
border-radius: 8px;
|
| 168 |
-
background-color:
|
| 169 |
max-width: 100%;
|
| 170 |
|
| 171 |
}
|
|
|
|
| 74 |
}
|
| 75 |
|
| 76 |
div.stExpander>details>summary::after {
|
| 77 |
+
content: '↓';
|
| 78 |
font-size: 0.75rem;
|
| 79 |
+
font-weight: 900;
|
| 80 |
letter-spacing: 0.5px;
|
| 81 |
padding: 4px 12px;
|
| 82 |
border-radius: 999px;
|
| 83 |
/* The primary color is set in config.toml and adapted by Streamlit */
|
| 84 |
background-color: var(--primary);
|
| 85 |
+
color: var(--text-color);
|
| 86 |
/* Text on the primary color needs high contrast. White works well for our chosen purple. */
|
| 87 |
|
| 88 |
transition: background-color 0.2s ease-in-out;
|
|
|
|
| 150 |
.st-key-json-button,
|
| 151 |
.st-key-clearall-button {
|
| 152 |
display: block;
|
| 153 |
+
border: 1px double #1a1a1a98;
|
| 154 |
max-width: 100%;
|
| 155 |
border-radius: 8px;
|
| 156 |
+
background-color: var(--secondary-background-color);
|
| 157 |
+
color: var(--text-color);
|
| 158 |
|
| 159 |
|
| 160 |
}
|
|
|
|
| 165 |
justify-items: center;
|
| 166 |
align-self: center;
|
| 167 |
align-content: center;
|
| 168 |
+
border: 1px double #1a1a1a98;
|
| 169 |
border-radius: 8px;
|
| 170 |
+
background-color: var(--secondary-background-color);
|
| 171 |
max-width: 100%;
|
| 172 |
|
| 173 |
}
|