style(css) : mise à jour de la bonne indentation
This commit is contained in:
parent
c24898bf02
commit
f259d6b3e3
@ -4,33 +4,33 @@
|
|||||||
1. Reset et base
|
1. Reset et base
|
||||||
========================================== */
|
========================================== */
|
||||||
.stAppHeader {
|
.stAppHeader {
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
body,
|
body,
|
||||||
html {
|
html {
|
||||||
font-family:
|
font-family:
|
||||||
-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
|
-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
|
||||||
sans-serif;
|
sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
body,
|
body,
|
||||||
.stApp,
|
.stApp,
|
||||||
.block-container {
|
.block-container {
|
||||||
background-color: var(--bg-color) !important;
|
background-color: var(--bg-color) !important;
|
||||||
color: var(--text-color) !important;
|
color: var(--text-color) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ==========================================
|
/* ==========================================
|
||||||
2. Layout et containers
|
2. Layout et containers
|
||||||
========================================== */
|
========================================== */
|
||||||
.block-container {
|
.block-container {
|
||||||
max-width: 1024px !important;
|
max-width: 1024px !important;
|
||||||
padding: 0 1rem 10rem;
|
padding: 0 1rem 10rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.stVerticalBlock {
|
.stVerticalBlock {
|
||||||
gap: 0.5rem !important;
|
gap: 0.5rem !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ==========================================
|
/* ==========================================
|
||||||
@ -42,97 +42,97 @@ body,
|
|||||||
.stDownloadButton > button,
|
.stDownloadButton > button,
|
||||||
.stFormSubmitButton > button,
|
.stFormSubmitButton > button,
|
||||||
.stSlider > div > div {
|
.stSlider > div > div {
|
||||||
background-color: darkgreen !important;
|
background-color: darkgreen !important;
|
||||||
color: white !important;
|
color: white !important;
|
||||||
border: 1px solid grey;
|
border: 1px solid grey;
|
||||||
}
|
}
|
||||||
|
|
||||||
.st-key-FormSubmitter-auth_form-Se-connecter {
|
.st-key-FormSubmitter-auth_form-Se-connecter {
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
section:not([data-testid="stSidebar"])
|
section:not([data-testid="stSidebar"])
|
||||||
button[data-testid="stBaseButton-primary"],
|
button[data-testid="stBaseButton-primary"],
|
||||||
section:not([data-testid="stSidebar"])
|
section:not([data-testid="stSidebar"])
|
||||||
button[data-testid="stBaseButton-secondary"] {
|
button[data-testid="stBaseButton-secondary"] {
|
||||||
color: white !important;
|
color: white !important;
|
||||||
background: darkgreen !important;
|
background: darkgreen !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
section:not([data-testid="stSidebar"])
|
section:not([data-testid="stSidebar"])
|
||||||
button[data-testid="stBaseButton-primary"]
|
button[data-testid="stBaseButton-primary"]
|
||||||
p,
|
p,
|
||||||
section:not([data-testid="stSidebar"])
|
section:not([data-testid="stSidebar"])
|
||||||
button[data-testid="stBaseButton-secondary"]
|
button[data-testid="stBaseButton-secondary"]
|
||||||
p {
|
p {
|
||||||
color: white !important;
|
color: white !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bouton-fictif {
|
.bouton-fictif {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
-moz-box-align: center;
|
-moz-box-align: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
-moz-box-pack: center;
|
-moz-box-pack: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
padding: 0.25rem 0.75rem;
|
padding: 0.25rem 0.75rem;
|
||||||
border-radius: 0.5rem;
|
border-radius: 0.5rem;
|
||||||
min-height: 2.5rem;
|
min-height: 2.5rem;
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
text-transform: none;
|
text-transform: none;
|
||||||
font-size: x-large;
|
font-size: x-large;
|
||||||
font-family: inherit;
|
font-family: inherit;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
border: 1px solid rgba(49, 51, 63, 0.2);
|
border: 1px solid rgba(49, 51, 63, 0.2);
|
||||||
background-color: darkgrey !important;
|
background-color: darkgrey !important;
|
||||||
color: darkgreen !important;
|
color: darkgreen !important;
|
||||||
font-weight: bold !important;
|
font-weight: bold !important;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
letter-spacing: 0.2em;
|
letter-spacing: 0.2em;
|
||||||
}
|
}
|
||||||
|
|
||||||
button[data-testid="stBaseButton-headerNoPadding"] svg {
|
button[data-testid="stBaseButton-headerNoPadding"] svg {
|
||||||
fill: var(--text-color) !important;
|
fill: var(--text-color) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --- 3.2 Onglets et radiogroup --- */
|
/* --- 3.2 Onglets et radiogroup --- */
|
||||||
div[role="radiogroup"] > label {
|
div[role="radiogroup"] > label {
|
||||||
padding: 0.5em 1em;
|
padding: 0.5em 1em;
|
||||||
border-radius: 0.4em;
|
border-radius: 0.4em;
|
||||||
margin-right: 0.5em;
|
margin-right: 0.5em;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
border: 1px solid #fff;
|
border: 1px solid #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
div[role="radiogroup"] > label[data-selected="true"] {
|
div[role="radiogroup"] > label[data-selected="true"] {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
border: 2px solid #145a1a;
|
border: 2px solid #145a1a;
|
||||||
}
|
}
|
||||||
|
|
||||||
section:not([data-testid="stSidebar"]) div[role="radiogroup"] > label p {
|
section:not([data-testid="stSidebar"]) div[role="radiogroup"] > label p {
|
||||||
background-color: var(--radio-bg) !important;
|
background-color: var(--radio-bg) !important;
|
||||||
color: var(--radio-text) !important;
|
color: var(--radio-text) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
section:not([data-testid="stSidebar"])
|
section:not([data-testid="stSidebar"])
|
||||||
div[role="radiogroup"]
|
div[role="radiogroup"]
|
||||||
> label[data-selected="true"] {
|
> label[data-selected="true"] {
|
||||||
background-color: var(--radio-selected-bg) !important;
|
background-color: var(--radio-selected-bg) !important;
|
||||||
color: var(--radio-selected-text) !important;
|
color: var(--radio-selected-text) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --- 3.3 Champs de formulaire --- */
|
/* --- 3.3 Champs de formulaire --- */
|
||||||
div[data-baseweb="select"],
|
div[data-baseweb="select"],
|
||||||
section:not([data-testid="stSidebar"]) div[data-baseweb="base-input"],
|
section:not([data-testid="stSidebar"]) div[data-baseweb="base-input"],
|
||||||
section[data-testid="stFileUploaderDropzone"] {
|
section[data-testid="stFileUploaderDropzone"] {
|
||||||
border: 1px solid var(--input-border) !important;
|
border: 1px solid var(--input-border) !important;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
padding: 4px;
|
padding: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
small {
|
small {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
section:not([data-testid="stSidebar"]) div[data-testid="stSelectbox"] p,
|
section:not([data-testid="stSidebar"]) div[data-testid="stSelectbox"] p,
|
||||||
@ -142,7 +142,7 @@ section:not([data-testid="stSidebar"]) div[data-testid="stCheckbox"] p,
|
|||||||
section:not([data-testid="stSidebar"]) div[data-testid="stTextInput"] p,
|
section:not([data-testid="stSidebar"]) div[data-testid="stTextInput"] p,
|
||||||
section:not([data-testid="stSidebar"]) div[data-testid="stTextArea"] p,
|
section:not([data-testid="stSidebar"]) div[data-testid="stTextArea"] p,
|
||||||
section:not([data-testid="stSidebar"]) div[data-testid="stAlertContentInfo"] p {
|
section:not([data-testid="stSidebar"]) div[data-testid="stAlertContentInfo"] p {
|
||||||
color: var(--text-color) !important;
|
color: var(--text-color) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ==========================================
|
/* ==========================================
|
||||||
@ -151,98 +151,98 @@ section:not([data-testid="stSidebar"]) div[data-testid="stAlertContentInfo"] p {
|
|||||||
|
|
||||||
/* --- 4.1 Header --- */
|
/* --- 4.1 Header --- */
|
||||||
.wide-header {
|
.wide-header {
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
margin-left: calc(-50vw + 50%);
|
margin-left: calc(-50vw + 50%);
|
||||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
||||||
border-bottom: 1px solid #ddd;
|
border-bottom: 1px solid #ddd;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding-top: 1rem;
|
padding-top: 1rem;
|
||||||
margin-top: -1.25em;
|
margin-top: -1.25em;
|
||||||
background-color: var(--header-bg);
|
background-color: var(--header-bg);
|
||||||
}
|
}
|
||||||
|
|
||||||
.titre-header {
|
.titre-header {
|
||||||
font-size: 2rem !important;
|
font-size: 2rem !important;
|
||||||
font-weight: bolder !important;
|
font-weight: bolder !important;
|
||||||
color: var(--header-title);
|
color: var(--header-title);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --- 4.2 Footer --- */
|
/* --- 4.2 Footer --- */
|
||||||
.wide-footer {
|
.wide-footer {
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
margin-left: calc(-50vw + 50%);
|
margin-left: calc(-50vw + 50%);
|
||||||
margin-top: 3rem;
|
margin-top: 3rem;
|
||||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
||||||
border-top: 1px solid #ddd;
|
border-top: 1px solid #ddd;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding-top: 1rem;
|
padding-top: 1rem;
|
||||||
background-color: var(--footer-bg);
|
background-color: var(--footer-bg);
|
||||||
}
|
}
|
||||||
|
|
||||||
.info-footer {
|
.info-footer {
|
||||||
font-size: 1rem !important;
|
font-size: 1rem !important;
|
||||||
font-weight: 800;
|
font-weight: 800;
|
||||||
color: var(--footer-text);
|
color: var(--footer-text);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ==========================================
|
/* ==========================================
|
||||||
5. Sidebar
|
5. Sidebar
|
||||||
========================================== */
|
========================================== */
|
||||||
section[data-testid="stSidebar"] {
|
section[data-testid="stSidebar"] {
|
||||||
background-color: #ccc !important;
|
background-color: #ccc !important;
|
||||||
color: #111 !important;
|
color: #111 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
section[data-testid="stSidebar"] .stButton > button {
|
section[data-testid="stSidebar"] .stButton > button {
|
||||||
background-color: darkgreen !important;
|
background-color: darkgreen !important;
|
||||||
color: white !important;
|
color: white !important;
|
||||||
font-weight: bold !important;
|
font-weight: bold !important;
|
||||||
border: 1px solid #ccc !important;
|
border: 1px solid #ccc !important;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
section[data-testid="stSidebar"] .decorative-heading {
|
section[data-testid="stSidebar"] .decorative-heading {
|
||||||
font-size: 1.25rem;
|
font-size: 1.25rem;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
margin-bottom: 0.5rem;
|
margin-bottom: 0.5rem;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
color: #145a1a;
|
color: #145a1a;
|
||||||
}
|
}
|
||||||
|
|
||||||
section[data-testid="stSidebar"] div[role="radiogroup"] {
|
section[data-testid="stSidebar"] div[role="radiogroup"] {
|
||||||
justify-content: center !important;
|
justify-content: center !important;
|
||||||
display: flex !important;
|
display: flex !important;
|
||||||
gap: 1rem;
|
gap: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ==========================================
|
/* ==========================================
|
||||||
6. Tables
|
6. Tables
|
||||||
========================================== */
|
========================================== */
|
||||||
table {
|
table {
|
||||||
border: 1px solid var(--table-border) !important;
|
border: 1px solid var(--table-border) !important;
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin-bottom: 1.5em;
|
margin-bottom: 1.5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
th,
|
th,
|
||||||
td {
|
td {
|
||||||
border: 1px solid var(--table-border) !important;
|
border: 1px solid var(--table-border) !important;
|
||||||
padding: 8px;
|
padding: 8px;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
caption {
|
caption {
|
||||||
caption-side: top;
|
caption-side: top;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
padding: 0.5em;
|
padding: 0.5em;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
caption-side: bottom;
|
caption-side: bottom;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
table[role="table"] th[scope="col"] {
|
table[role="table"] th[scope="col"] {
|
||||||
background-color: var(--background-color);
|
background-color: var(--background-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ==========================================
|
/* ==========================================
|
||||||
@ -254,99 +254,99 @@ table[role="table"] th[scope="col"] {
|
|||||||
|
|
||||||
/* --- 7.2 Graphiques --- */
|
/* --- 7.2 Graphiques --- */
|
||||||
.stPlotlyChart text {
|
.stPlotlyChart text {
|
||||||
fill: var(--plot-text) !important;
|
fill: var(--plot-text) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.stPlotlyChart text {
|
.stPlotlyChart text {
|
||||||
fill: black !important;
|
fill: black !important;
|
||||||
text-shadow: none !important;
|
text-shadow: none !important;
|
||||||
font-weight: bold !important;
|
font-weight: bold !important;
|
||||||
font-size: 14px !important;
|
font-size: 14px !important;
|
||||||
font-family: Verdana, sans-serif !important;
|
font-family: Verdana, sans-serif !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Cache complètement la section d'actions Vega */
|
/* Cache complètement la section d'actions Vega */
|
||||||
.vega-actions {
|
.vega-actions {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Et aussi le <details> parent, s'il faut tout masquer */
|
/* Et aussi le <details> parent, s'il faut tout masquer */
|
||||||
details[title="Click to view actions"] {
|
details[title="Click to view actions"] {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --- 7.3 Détails et paragraphes --- */
|
/* --- 7.3 Détails et paragraphes --- */
|
||||||
details {
|
details {
|
||||||
border: 1px solid #ccc;
|
border: 1px solid #ccc;
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
padding: 0.5em;
|
padding: 0.5em;
|
||||||
margin-bottom: 0.5em;
|
margin-bottom: 0.5em;
|
||||||
background-color: var(--background-color);
|
background-color: var(--background-color);
|
||||||
border-color: var(--details-border) !important;
|
border-color: var(--details-border) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
section:not([data-testid="stSidebar"])
|
section:not([data-testid="stSidebar"])
|
||||||
div:not[data-testid="stElementContainer"]
|
div:not[data-testid="stElementContainer"]
|
||||||
p:not(#Authentification):not(#Theme) {
|
p:not(#Authentification):not(#Theme) {
|
||||||
color: var(--paragraph-color) !important;
|
color: var(--paragraph-color) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
section:not([data-testid="stSidebar"]) hr {
|
section:not([data-testid="stSidebar"]) hr {
|
||||||
background-color: var(--hr-color) !important;
|
background-color: var(--hr-color) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --- 7.4 Conteneurs de commentaires et tickets --- */
|
/* --- 7.4 Conteneurs de commentaires et tickets --- */
|
||||||
.conteneur_commentaire,
|
.conteneur_commentaire,
|
||||||
.conteneur_ticket {
|
.conteneur_ticket {
|
||||||
background: var(--background-color);
|
background: var(--background-color);
|
||||||
padding: 1em;
|
padding: 1em;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
margin-bottom: 1em;
|
margin-bottom: 1em;
|
||||||
border: 1px solid #ccc;
|
border: 1px solid #ccc;
|
||||||
}
|
}
|
||||||
|
|
||||||
.commentaire_auteur,
|
.commentaire_auteur,
|
||||||
.ticket_auteur {
|
.ticket_auteur {
|
||||||
color: var(--text-color) !important;
|
color: var(--text-color) !important;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.commentaire_contenu,
|
.commentaire_contenu,
|
||||||
.ticket_contenu {
|
.ticket_contenu {
|
||||||
color: var(--text-color) !important;
|
color: var(--text-color) !important;
|
||||||
margin: 0.5rem 0 0;
|
margin: 0.5rem 0 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --- 7.5 Blocs mathématiques --- */
|
/* --- 7.5 Blocs mathématiques --- */
|
||||||
.math-block {
|
.math-block {
|
||||||
display: block;
|
display: block;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
margin: 1em 0;
|
margin: 1em 0;
|
||||||
border: 1px solid var(--math-block-border);
|
border: 1px solid var(--math-block-border);
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
background: var(--math-block-bg);
|
background: var(--math-block-bg);
|
||||||
font-size: x-large;
|
font-size: x-large;
|
||||||
color: var(--text-color);
|
color: var(--text-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
.math-block math {
|
.math-block math {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ==========================================
|
/* ==========================================
|
||||||
8. Éléments spécifiques
|
8. Éléments spécifiques
|
||||||
========================================== */
|
========================================== */
|
||||||
div.stElementContainer.element-container.st-key-nom_utilisateur {
|
div.stElementContainer.element-container.st-key-nom_utilisateur {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.st-key-telecharger_fiche_pdf {
|
.st-key-telecharger_fiche_pdf {
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
margin-top: 1rem;
|
margin-top: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.details_introduction {
|
.details_introduction {
|
||||||
margin-top: 0.5rem;
|
margin-top: 0.5rem;
|
||||||
margin-bottom: 0.5rem;
|
margin-bottom: 0.5rem;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user