« Modèle:Button/styles.css » : différence entre les versions
De Nefald
Autres actions
m Espacement entre les boutons |
m ajustement de la var |
||
| Ligne 3 : | Ligne 3 : | ||
============================================ */ | ============================================ */ | ||
.button-link-vars { | .button-link-vars { | ||
--btn-surface-0: var(--color-surface-0); | --btn-surface-0: var(--color-surface-0); | ||
--btn-surface-1: var(--color-surface-1); | --btn-surface-1: var(--color-surface-1); | ||
| Ligne 10 : | Ligne 8 : | ||
--btn-surface-3: var(--color-surface-3); | --btn-surface-3: var(--color-surface-3); | ||
--btn-surface-4: var(--color-surface-4); | --btn-surface-4: var(--color-surface-4); | ||
--btn-text-dark: var(--color-base); | --btn-text-dark: var(--color-base); | ||
margin-bottom: 8px; | |||
} | } | ||
| Ligne 30 : | Ligne 27 : | ||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); | box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); | ||
position: relative; | position: relative; | ||
background: var(-- | background-color: var(--background-color-progressive); /* ← MÊME VARIABLE QUE CITIZEN */ | ||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
| Ligne 39 : | Ligne 36 : | ||
transform: translateY(-2px); | transform: translateY(-2px); | ||
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2); | box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2); | ||
background-color: var(--background-color-progressive--hover); /* ← HOVER CITIZEN */ | |||
} | } | ||
| Ligne 54 : | Ligne 47 : | ||
.button-link-content a { | .button-link-content a { | ||
color: var(-- | color: var(--color-inverted-primary) !important; /* ← MÊME VARIABLE QUE CITIZEN */ | ||
text-decoration: none !important; | text-decoration: none !important; | ||
display: flex; | display: flex; | ||
| Ligne 63 : | Ligne 56 : | ||
} | } | ||
/* Force la couleur même après visite */ | |||
.button-link-content a:hover, | .button-link-content a:hover, | ||
.button-link-content a:visited { | .button-link-content a:visited, | ||
color: | .button-link-content a:active { | ||
color: var(--color-inverted-primary) !important; | |||
} | } | ||