ericjedha commited on
Commit
b67338e
·
verified ·
1 Parent(s): 1683c1f

Update pages/3_Prediction_Prix.py

Browse files
Files changed (1) hide show
  1. pages/3_Prediction_Prix.py +33 -20
pages/3_Prediction_Prix.py CHANGED
@@ -4,44 +4,57 @@ import time
4
 
5
  # --- Configuration de la Page ---
6
 
 
7
  # --- Injection de CSS pour surcharger le thème par défaut ---
8
  st.markdown("""
9
  <style>
 
 
 
 
 
 
10
  /* ------------------- STYLES POUR LE BOUTON DU FORMULAIRE ------------------- */
11
-
12
- /* Cibler le bouton à l'intérieur du conteneur st.form */
13
  .stForm [data-testid="stFormSubmitButton"] button {
14
- background-color: #b725c8cc; /* Votre couleur violette avec transparence */
15
- color: #fed58cff; /* Votre couleur de typo */
16
  border: 2px solid #b725c8;
17
  }
18
-
19
- /* Changer la couleur au survol */
20
  .stForm [data-testid="stFormSubmitButton"] button:hover {
21
  background-color: #fed58cff;
22
  color: #b725c8;
23
  border: 2px solid #b725c8;
24
  }
25
 
26
- /* ------------------- ✨ STYLE POUR LA SELECTBOX ✨ ------------------- */
27
-
28
- /* Cibler le conteneur principal de la selectbox */
29
  .stSelectbox div[data-baseweb="select"] > div {
30
- background-color: #3A3A5A; /* Optionnel : changer le fond si besoin */
31
- color: white; /* La couleur du texte sélectionné */
32
  }
33
 
34
- /* Cibler les options dans la liste déroulante */
35
- /* Streamlit crée la liste déroulante dans un autre conteneur, il faut le cibler aussi */
36
- div[data-baseweb="popover"] ul li {
37
- color: black; /* Texte des options, à ajuster si le fond du popover est sombre */
38
- background-color: white; /* Fond des options */
 
 
 
39
  }
40
 
41
- /* Changer la couleur du texte des options au survol */
42
- div[data-baseweb="popover"] ul li:hover {
43
- background-color: #b725c8cc;
44
- color: white;
 
 
 
 
 
 
 
 
 
45
  }
46
 
47
  </style>
 
4
 
5
  # --- Configuration de la Page ---
6
 
7
+ # --- Injection de CSS pour surcharger le thème par défaut ---
8
  # --- Injection de CSS pour surcharger le thème par défaut ---
9
  st.markdown("""
10
  <style>
11
+ /* ------------------- STYLES GÉNÉRAUX ------------------- */
12
+ /* Changer la couleur des labels de tous les widgets */
13
+ label {
14
+ color: #E0E0E0 !important; /* Un gris clair pour les labels */
15
+ }
16
+
17
  /* ------------------- STYLES POUR LE BOUTON DU FORMULAIRE ------------------- */
 
 
18
  .stForm [data-testid="stFormSubmitButton"] button {
19
+ background-color: #b725c8cc;
20
+ color: #fed58cff;
21
  border: 2px solid #b725c8;
22
  }
 
 
23
  .stForm [data-testid="stFormSubmitButton"] button:hover {
24
  background-color: #fed58cff;
25
  color: #b725c8;
26
  border: 2px solid #b725c8;
27
  }
28
 
29
+ /* ------------------- STYLE POUR LA SELECTBOX ------------------- */
 
 
30
  .stSelectbox div[data-baseweb="select"] > div {
31
+ background-color: #3A3A5A;
32
+ color: white;
33
  }
34
 
35
+ /* ------------------- ✨ STYLE POUR LE NUMBER INPUT ✨ ------------------- */
36
+ .stNumberInput input {
37
+ background-color: #3A3A5A;
38
+ color: white; /* Couleur du texte saisi */
39
+ }
40
+ /* Style pour les flèches + et - du number input */
41
+ .stNumberInput button svg {
42
+ fill: white;
43
  }
44
 
45
+ /* ------------------- ✨ STYLE POUR LA CHECKBOX ✨ ------------------- */
46
+ /* Cibler le texte (label) à côté de la checkbox */
47
+ .stCheckbox span {
48
+ color: white; /* Couleur du texte du label */
49
+ }
50
+ /* Changer la couleur de la coche quand la case est cochée */
51
+ .stCheckbox [data-testid="stTickData"] svg {
52
+ fill: #b725c8 !important; /* Votre couleur violette pour la coche */
53
+ stroke: #b725c8 !important;
54
+ }
55
+ /* Changer la couleur de la bordure de la case */
56
+ .stCheckbox [data-testid="stWidgetLabel"]+div {
57
+ border-color: #E0E0E0 !important;
58
  }
59
 
60
  </style>