Vorlage:Button/styles.css

Aus Ardapedia
Version vom 15. November 2025, 23:14 Uhr von 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; } .…“)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)

/* 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;
}

.tg-button > a:active {
    background-color: var(--background-color-button-quiet--active) !important;
}

.tg-button.tg-button--framed > a {
    border-color: #8A9163;
}

.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: var(--tg-color-inverted-progressive) !important;
    background-color: var(--tg-color-progressive) !important;
}

.tg-button.tg-button--primary > a:hover {
    background-color: var(--tg-color-progressive--hover) !important;
}

.tg-button.tg-button--primary > a:active {
    background-color: var(--tg-color-progressive--active) !important;
}

.tg-button.tg-button--secondary > a {
    border-color: #8A9163 !important;
    color: #8A9163 !important;
}

.tg-button.tg-button--secondary > a:hover {
    border-color: #8A9163 !important;
    background-color: #F3FAE2 !important;
    color: #F3FAE2 !important;
}

.tg-button.tg-button--secondary > a:active {
    border-color: #8A9163 !important;
    background-color: #F3FAE2 !important;
    color: #F3FAE2 !important;
}