Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Button/styles.css

Template page
Revision as of 05:33, 21 May 2025 by Maegnus (talk | contribs) (Created page with "Important is needed because of weird externa link rules: .tg-button > a { border: 1px solid transparent; border-radius: var(--tg-border-radius-small); 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; font-size: var(--tg-font-size-small); font-weight: var(--tg-font-weight-medium); text-dec...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
/* Important is needed because of weird externa link rules */
.tg-button > a {
    border: 1px solid transparent;
    border-radius: var(--tg-border-radius-small);
    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;
    font-size: var(--tg-font-size-small);
    font-weight: var(--tg-font-weight-medium);
    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: var(--tg-border-color-interactive);
}

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

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

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