PythonMindset commited on
Commit
2a2cf83
·
1 Parent(s): 0214552

Fix sidebar: restore native Streamlit behavior

Browse files
Files changed (1) hide show
  1. styles.css +13 -77
styles.css CHANGED
@@ -1,98 +1,34 @@
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 VISIBLE ============ */
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
- padding-top: 1rem !important;
22
  }
23
 
24
- /* ============ BOUTONS RÉDUITS ============ */
25
  [data-testid="stSidebarNav"] li {
26
- background: #1A1F3A !important;
27
- border-radius: 10px !important;
28
- border: 2px solid rgba(0, 217, 255, 0.4) !important;
29
- margin: 0.5rem 0.5rem !important;
30
- padding: 0 !important;
31
- box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3) !important;
32
- transition: all 0.3s ease !important;
33
- cursor: pointer !important;
34
  }
35
 
36
- /* ============ TEXTE BOUTON - COMPACT ============ */
37
  [data-testid="stSidebarNav"] a {
38
- display: flex !important;
39
- align-items: center !important;
40
- justify-content: center !important;
41
- gap: 0.6rem !important;
42
- width: 100% !important;
43
- padding: 0.8rem 0.5rem !important;
44
  color: #FFFFFF !important;
45
  font-weight: 700 !important;
46
- font-size: 1.05rem !important;
47
- text-shadow: none !important;
48
- text-decoration: none !important;
49
  }
50
 
51
- [data-testid="stSidebarNav"] a *,
52
- [data-testid="stSidebarNav"] span {
53
- color: #FFFFFF !important;
54
- }
55
-
56
- /* ICÔNES - PLUS PETITES */
57
- [data-testid="stSidebarNav"] li:nth-child(1) a::before {
58
- content: "🏠";
59
- font-size: 1.3rem;
60
- }
61
-
62
- [data-testid="stSidebarNav"] li:nth-child(2) a::before {
63
- content: "👤";
64
- font-size: 1.3rem;
65
- }
66
-
67
- [data-testid="stSidebarNav"] li:nth-child(3) a::before {
68
- content: "💼";
69
- font-size: 1.3rem;
70
  }
71
 
72
- [data-testid="stSidebarNav"] li:nth-child(4) a::before {
73
- content: "🎯";
74
- font-size: 1.3rem;
75
  }
76
 
77
- [data-testid="stSidebarNav"] li:nth-child(5) a::before {
78
- content: "📬";
79
- font-size: 1.3rem;
80
  }
81
 
82
- /* ============ HOVER ============ */
83
- [data-testid="stSidebarNav"] li:hover {
84
- background: rgba(0, 217, 255, 0.15) !important;
85
- border-color: #00D9FF !important;
86
- transform: translateX(8px) scale(1.02) !important;
87
- box-shadow: 0 6px 20px rgba(0, 217, 255, 0.5) !important;
88
- }
89
 
90
- /* ============ PAGE ACTIVE ============ */
91
- [data-testid="stSidebarNav"] li[aria-current="page"] {
92
- background: linear-gradient(135deg, #00D9FF 0%, #667EEA 100%) !important;
93
- border: 3px solid #00D9FF !important;
94
- box-shadow: 0 8px 30px rgba(0, 217, 255, 0.7) !important;
95
- }
96
 
97
  [data-testid="stSidebarNav"] li[aria-current="page"] a {
98
  color: #FFFFFF !important;
@@ -271,7 +207,7 @@
271
  }
272
 
273
 
274
- /* ============ LINK BUTTONS (GitHub, Démo, LinkedIn) ============ */
275
  a[kind="primary"],
276
  a[kind="secondary"],
277
  [data-testid="stLinkButton"] a,
@@ -289,7 +225,7 @@ a[kind="secondary"],
289
  text-shadow: 0 0 15px rgba(0, 217, 255, 0.8) !important;
290
  }
291
 
292
- /* Forcer TOUS les éléments enfants en bleu */
293
  a[kind="primary"] *,
294
  a[kind="secondary"] *,
295
  [data-testid="stLinkButton"] a *,
@@ -317,7 +253,7 @@ a[kind="secondary"]:hover *,
317
  }
318
 
319
 
320
- /* ============ BOUTONS TÉLÉCHARGEMENT (download_button) ============ */
321
  .stDownloadButton > button {
322
  background: linear-gradient(135deg, #00D9FF 0%, #667EEA 100%) !important;
323
  color: #FFFFFF !important;
 
1
  @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;900&display=swap');
2
 
3
+ /* ============ SIDEBAR - COMPORTEMENT NATIF ============ */
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  [data-testid="stSidebar"] {
5
  background: linear-gradient(180deg, #1A1F3A 0%, #0D1117 100%) !important;
 
 
 
6
  }
7
 
 
8
  [data-testid="stSidebarNav"] li {
9
+ margin: 0.3rem 0.5rem !important;
 
 
 
 
 
 
 
10
  }
11
 
 
12
  [data-testid="stSidebarNav"] a {
 
 
 
 
 
 
13
  color: #FFFFFF !important;
14
  font-weight: 700 !important;
15
+ padding: 0.8rem !important;
 
 
16
  }
17
 
18
+ * {
19
+ font-family: 'Inter', sans-serif;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20
  }
21
 
22
+ .main {
23
+ background: #0A0E27 !important;
24
+ color: #E8EAED !important;
25
  }
26
 
27
+ .stApp {
28
+ background: #0A0E27 !important;
 
29
  }
30
 
 
 
 
 
 
 
 
31
 
 
 
 
 
 
 
32
 
33
  [data-testid="stSidebarNav"] li[aria-current="page"] a {
34
  color: #FFFFFF !important;
 
207
  }
208
 
209
 
210
+ /* ============ LINK BUTTONS (GitHub, Démo, LinkedIn) ============ */
211
  a[kind="primary"],
212
  a[kind="secondary"],
213
  [data-testid="stLinkButton"] a,
 
225
  text-shadow: 0 0 15px rgba(0, 217, 255, 0.8) !important;
226
  }
227
 
228
+ /* Forcer TOUS les éléments enfants en bleu */
229
  a[kind="primary"] *,
230
  a[kind="secondary"] *,
231
  [data-testid="stLinkButton"] a *,
 
253
  }
254
 
255
 
256
+ /* ============ BOUTONS TÉLÉCHARGEMENT (download_button) ============ */
257
  .stDownloadButton > button {
258
  background: linear-gradient(135deg, #00D9FF 0%, #667EEA 100%) !important;
259
  color: #FFFFFF !important;