Vorlage:Button/styles.css: Unterschied zwischen den Versionen
Aus Ardapedia
Alboin (Diskussion | Beiträge) Die Seite wurde neu angelegt: „→Important is needed because of weird externa link rules: .tg-button > a { border: 1px solid transparent; height: 36px; padding: 0 1rem !important; color: var(--tg-color-emphasized) !important; display: flex; align-items: center; justify-content: center; gap: 0.5rem; line-height: 1; text-decoration: none; } .tg-button > a:hover { background-color: var(--background-color-button-quiet--hover) !important; } .…“ |
Alboin (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
||
| Zeile 2: | Zeile 2: | ||
.tg-button > a { | .tg-button > a { | ||
border: 1px solid transparent; | border: 1px solid transparent; | ||
border-radius: 4px; | |||
height: 36px; | height: 36px; | ||
padding: 0 1rem !important; | padding: 0 1rem !important; | ||
color: | color: #1a1f15; | ||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
| Zeile 10: | Zeile 11: | ||
gap: 0.5rem; | gap: 0.5rem; | ||
line-height: 1; | line-height: 1; | ||
font-size: 0.875rem; | |||
font-weight: 500; | |||
text-decoration: none; | text-decoration: none; | ||
} | } | ||
| Zeile 22: | Zeile 25: | ||
.tg-button.tg-button--framed > a { | .tg-button.tg-button--framed > a { | ||
border-color: | border-color: rgba(0, 0, 0, 0.11); | ||
} | } | ||
| Zeile 33: | Zeile 36: | ||
.tg-button.tg-button--primary > a { | .tg-button.tg-button--primary > a { | ||
color: | color: rgba(0, 0, 0, 0.11) !important; | ||
background-color: | background-color: rgba(0, 0, 0, 0.11) !important; | ||
} | } | ||
.tg-button.tg-button--primary > a:hover { | .tg-button.tg-button--primary > a:hover { | ||
background-color: | background-color: #588418 !important; | ||
} | } | ||
.tg-button.tg-button--primary > a:active { | .tg-button.tg-button--primary > a:active { | ||
background-color: | background-color: #4a710a !important; | ||
} | } | ||
.tg-button.tg-button--secondary > a { | .tg-button.tg-button--secondary > a { | ||
border-color: # | border-color: #507b07 !important; | ||
color: # | color: #507b07 !important; | ||
} | } | ||
.tg-button.tg-button--secondary > a:hover { | .tg-button.tg-button--secondary > a:hover { | ||
border-color: # | border-color: #588418 !important; | ||
background-color: # | background-color: #588418 !important; | ||
color: | color: rgba(0, 0, 0, 0.11) !important; | ||
} | } | ||
.tg-button.tg-button--secondary > a:active { | .tg-button.tg-button--secondary > a:active { | ||
border-color: # | border-color: #4a710a !important; | ||
background-color: # | background-color: #4a710a !important; | ||
color: | color: rgba(0, 0, 0, 0.11) !important; | ||
} | } | ||
Version vom 16. November 2025, 00:16 Uhr
/* Important is needed because of weird externa link rules */
.tg-button > a {
border: 1px solid transparent;
border-radius: 4px;
height: 36px;
padding: 0 1rem !important;
color: #1a1f15;
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
line-height: 1;
font-size: 0.875rem;
font-weight: 500;
text-decoration: none;
}
.tg-button > a:hover {
background-color: var(--background-color-button-quiet--hover) !important;
}
.tg-button > a:active {
background-color: var(--background-color-button-quiet--active) !important;
}
.tg-button.tg-button--framed > a {
border-color: rgba(0, 0, 0, 0.11);
}
.tg-button.tg-button--icon > a {
padding-left: 0.5rem !important;
padding-right: 0.5rem !important;
font-size: 0;
gap: 0;
}
.tg-button.tg-button--primary > a {
color: rgba(0, 0, 0, 0.11) !important;
background-color: rgba(0, 0, 0, 0.11) !important;
}
.tg-button.tg-button--primary > a:hover {
background-color: #588418 !important;
}
.tg-button.tg-button--primary > a:active {
background-color: #4a710a !important;
}
.tg-button.tg-button--secondary > a {
border-color: #507b07 !important;
color: #507b07 !important;
}
.tg-button.tg-button--secondary > a:hover {
border-color: #588418 !important;
background-color: #588418 !important;
color: rgba(0, 0, 0, 0.11) !important;
}
.tg-button.tg-button--secondary > a:active {
border-color: #4a710a !important;
background-color: #4a710a !important;
color: rgba(0, 0, 0, 0.11) !important;
}
