« Modèle:Button/styles.css » : différence entre les versions
De Nefald
Autres actions
m blue color |
citizen thème var |
||
| Ligne 3 : | Ligne 3 : | ||
============================================ */ | ============================================ */ | ||
.button-link-vars { | .button-link-vars { | ||
--btn-progressive: | --btn-progressive: #36c; | ||
--btn-progressive-hover: #2563eb; | |||
--btn-surface-0: var(--color-surface-0); | |||
--btn-surface-1: var(--color-surface-1); | --btn-surface-1: var(--color-surface-1); | ||
--btn-surface-2: var(--color-surface-2); | --btn-surface-2: var(--color-surface-2); | ||
--btn- | --btn-surface-3: var(--color-surface-3); | ||
--btn-surface-4: var(--color-surface-4); | |||
--btn-text-light: #ffffff; | |||
--btn-text-dark: var(--color-base); | |||
} | } | ||
| Ligne 19 : | Ligne 24 : | ||
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(--btn-progressive | background: var(--btn-progressive); /* #36c PAR DÉFAUT */ | ||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
justify-content: center; | justify-content: center; | ||
} | } | ||
.button-link-wrapper:hover { | .button-link-wrapper:hover { | ||
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: var(--btn-progressive-hover); | |||
} | } | ||
| Ligne 39 : | Ligne 44 : | ||
.button-link-content a { | .button-link-content a { | ||
color: var(--btn-text | color: var(--btn-text-light) !important; | ||
text-decoration: none !important; | text-decoration: none !important; | ||
display: flex; | display: flex; | ||
| Ligne 50 : | Ligne 55 : | ||
.button-link-content a:hover, | .button-link-content a:hover, | ||
.button-link-content a:visited { | .button-link-content a:visited { | ||
color: var(--btn-text | color: var(--btn-text-light) !important; | ||
} | } | ||
| Ligne 80 : | Ligne 85 : | ||
/* ============================================ | /* ============================================ | ||
COULEURS PRÉDÉFINIES | COULEURS PRÉDÉFINIES (logos) | ||
============================================ */ | ============================================ */ | ||
/* ========== COULEURS | /* ========== COULEURS GÉNÉRIQUES ========== */ | ||
.button-link-- | .button-link--danger { background: #dc3545; } | ||
.button-link--dark { background: #343a40; } | |||
} | .button-link--info { background: #17a2b8; } | ||
.button-link-- | |||
} | |||
.button-link--light { | .button-link--light { | ||
background: var(--btn-surface-1 | background: var(--btn-surface-1); | ||
} | } | ||
.button-link--light .button-link-content a { | .button-link--light .button-link-content a { | ||
color: var(-- | color: var(--btn-text-dark) !important; | ||
} | } | ||
.button-link--primary { background: var(--btn-progressive); } | |||
.button-link--secondary { background: var(--btn-surface-2); } | |||
.button-link-- | |||
.button-link-- | |||
.button-link--success { background: #28a745; } | .button-link--success { background: #28a745; } | ||
.button-link--warning { | .button-link--warning { background: #ffc107; } | ||
} | |||
.button-link--warning .button-link-content a { | .button-link--warning .button-link-content a { | ||
color: #000 !important; | color: #000 !important; | ||
} | } | ||
/* ========== VARIABLES CITIZEN (nouvelles options) ========== */ | |||
.button-link--surface-0 { background: var(--btn-surface-0); } | |||
.button-link--surface-0 .button-link-content a { color: var(--btn-text-dark) !important; } | |||
.button-link--surface-1 { background: var(--btn-surface-1); } | |||
.button-link--surface-1 .button-link-content a { color: var(--btn-text-dark) !important; } | |||
.button-link--surface-2 { background: var(--btn-surface-2); } | |||
.button-link--surface-2 .button-link-content a { color: var(--btn-text-dark) !important; } | |||
.button-link--surface-3 { background: var(--btn-surface-3); } | |||
.button-link--surface-3 .button-link-content a { color: var(--btn-text-dark) !important; } | |||
.button-link--surface-4 { background: var(--btn-surface-4); } | |||
.button-link--surface-4 .button-link-content a { color: var(--btn-text-light) !important; } | |||
.button-link--progressive { background: var(--btn-progressive); } | |||
/* ========== RÉSEAUX SOCIAUX ========== */ | /* ========== RÉSEAUX SOCIAUX ========== */ | ||