Commit ·
1910208
1
Parent(s): 2a2cf83
Restore sidebar styles with hover effects
Browse files- styles.css +46 -12
styles.css
CHANGED
|
@@ -1,27 +1,61 @@
|
|
| 1 |
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;900&display=swap');
|
| 2 |
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
[data-testid="stSidebar"] {
|
| 5 |
background: linear-gradient(180deg, #1A1F3A 0%, #0D1117 100%) !important;
|
|
|
|
|
|
|
| 6 |
}
|
| 7 |
|
| 8 |
[data-testid="stSidebarNav"] li {
|
| 9 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
}
|
| 11 |
|
| 12 |
[data-testid="stSidebarNav"] a {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
color: #FFFFFF !important;
|
| 14 |
font-weight: 700 !important;
|
| 15 |
-
|
|
|
|
| 16 |
}
|
| 17 |
|
| 18 |
-
*
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
}
|
| 21 |
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
|
|
|
|
|
|
| 25 |
}
|
| 26 |
|
| 27 |
.stApp {
|
|
@@ -207,7 +241,7 @@
|
|
| 207 |
}
|
| 208 |
|
| 209 |
|
| 210 |
-
/* ============ LINK BUTTONS (GitHub,
|
| 211 |
a[kind="primary"],
|
| 212 |
a[kind="secondary"],
|
| 213 |
[data-testid="stLinkButton"] a,
|
|
@@ -225,7 +259,7 @@ a[kind="secondary"],
|
|
| 225 |
text-shadow: 0 0 15px rgba(0, 217, 255, 0.8) !important;
|
| 226 |
}
|
| 227 |
|
| 228 |
-
/* Forcer TOUS les
|
| 229 |
a[kind="primary"] *,
|
| 230 |
a[kind="secondary"] *,
|
| 231 |
[data-testid="stLinkButton"] a *,
|
|
@@ -253,7 +287,7 @@ a[kind="secondary"]:hover *,
|
|
| 253 |
}
|
| 254 |
|
| 255 |
|
| 256 |
-
/* ============ BOUTONS
|
| 257 |
.stDownloadButton > button {
|
| 258 |
background: linear-gradient(135deg, #00D9FF 0%, #667EEA 100%) !important;
|
| 259 |
color: #FFFFFF !important;
|
|
@@ -278,4 +312,4 @@ header[data-testid="stHeader"] {
|
|
| 278 |
|
| 279 |
#MainMenu, footer {
|
| 280 |
visibility: hidden;
|
| 281 |
-
}
|
|
|
|
| 1 |
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;900&display=swap');
|
| 2 |
|
| 3 |
+
* {
|
| 4 |
+
font-family: 'Inter', sans-serif;
|
| 5 |
+
}
|
| 6 |
+
|
| 7 |
+
.main {
|
| 8 |
+
background: #0A0E27 !important;
|
| 9 |
+
color: #E8EAED !important;
|
| 10 |
+
}
|
| 11 |
+
|
| 12 |
+
.stApp {
|
| 13 |
+
background: #0A0E27 !important;
|
| 14 |
+
}
|
| 15 |
+
|
| 16 |
+
/* ============ SIDEBAR ============ */
|
| 17 |
[data-testid="stSidebar"] {
|
| 18 |
background: linear-gradient(180deg, #1A1F3A 0%, #0D1117 100%) !important;
|
| 19 |
+
border-right: 3px solid rgba(0, 217, 255, 0.5) !important;
|
| 20 |
+
box-shadow: 5px 0 20px rgba(0, 217, 255, 0.3) !important;
|
| 21 |
}
|
| 22 |
|
| 23 |
[data-testid="stSidebarNav"] li {
|
| 24 |
+
background: #1A1F3A !important;
|
| 25 |
+
border-radius: 10px !important;
|
| 26 |
+
border: 2px solid rgba(0, 217, 255, 0.4) !important;
|
| 27 |
+
margin: 0.5rem 0.5rem !important;
|
| 28 |
+
padding: 0 !important;
|
| 29 |
+
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3) !important;
|
| 30 |
+
transition: all 0.3s ease !important;
|
| 31 |
}
|
| 32 |
|
| 33 |
[data-testid="stSidebarNav"] a {
|
| 34 |
+
display: flex !important;
|
| 35 |
+
align-items: center !important;
|
| 36 |
+
justify-content: center !important;
|
| 37 |
+
gap: 0.6rem !important;
|
| 38 |
+
width: 100% !important;
|
| 39 |
+
padding: 0.8rem 0.5rem !important;
|
| 40 |
color: #FFFFFF !important;
|
| 41 |
font-weight: 700 !important;
|
| 42 |
+
font-size: 1.05rem !important;
|
| 43 |
+
text-decoration: none !important;
|
| 44 |
}
|
| 45 |
|
| 46 |
+
/* HOVER */
|
| 47 |
+
[data-testid="stSidebarNav"] li:hover {
|
| 48 |
+
background: rgba(0, 217, 255, 0.15) !important;
|
| 49 |
+
border-color: #00D9FF !important;
|
| 50 |
+
transform: translateX(8px) scale(1.02) !important;
|
| 51 |
+
box-shadow: 0 6px 20px rgba(0, 217, 255, 0.5) !important;
|
| 52 |
}
|
| 53 |
|
| 54 |
+
/* PAGE ACTIVE */
|
| 55 |
+
[data-testid="stSidebarNav"] li[aria-current="page"] {
|
| 56 |
+
background: linear-gradient(135deg, #00D9FF 0%, #667EEA 100%) !important;
|
| 57 |
+
border: 3px solid #00D9FF !important;
|
| 58 |
+
box-shadow: 0 8px 30px rgba(0, 217, 255, 0.7) !important;
|
| 59 |
}
|
| 60 |
|
| 61 |
.stApp {
|
|
|
|
| 241 |
}
|
| 242 |
|
| 243 |
|
| 244 |
+
/* ============ LINK BUTTONS (GitHub, Démo, LinkedIn) ============ */
|
| 245 |
a[kind="primary"],
|
| 246 |
a[kind="secondary"],
|
| 247 |
[data-testid="stLinkButton"] a,
|
|
|
|
| 259 |
text-shadow: 0 0 15px rgba(0, 217, 255, 0.8) !important;
|
| 260 |
}
|
| 261 |
|
| 262 |
+
/* Forcer TOUS les éléments enfants en bleu */
|
| 263 |
a[kind="primary"] *,
|
| 264 |
a[kind="secondary"] *,
|
| 265 |
[data-testid="stLinkButton"] a *,
|
|
|
|
| 287 |
}
|
| 288 |
|
| 289 |
|
| 290 |
+
/* ============ BOUTONS TÉLÉCHARGEMENT (download_button) ============ */
|
| 291 |
.stDownloadButton > button {
|
| 292 |
background: linear-gradient(135deg, #00D9FF 0%, #667EEA 100%) !important;
|
| 293 |
color: #FFFFFF !important;
|
|
|
|
| 312 |
|
| 313 |
#MainMenu, footer {
|
| 314 |
visibility: hidden;
|
| 315 |
+
}
|