NodeBB/NodeBB

View on GitHub
public/scss/admin/common.scss

Summary

Maintainability
Test Coverage

.form-label {
    font-weight: 500;
    font-size: $font-size-sm;
    font-family: $font-family-base;
    margin-bottom: 0;
}

.form-text {
    font-size: 0.75rem!important;;
    font-family: $font-family-base;
}

.tracking-tight { letter-spacing: -0.02em; }

@mixin btn-ghost-base {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: ($spacer * 0.5);
    border-radius: $border-radius-sm;
    border-width: 1px;
    border-color: transparent;
    background-color: transparent;
    padding: ($spacer * 0.25) ($spacer * 0.5);
    text-align: left;
    --bs-text-opacity: 1;
    color: $btn-ghost-color;
    font-family: $font-family-secondary;
    cursor: pointer;
    &:hover, &.active {
        background-color: $btn-ghost-hover-color;
        text-decoration: none;
    }
}

.btn-ghost {
    @include btn-ghost-base();
    line-height: 1.5rem;
    > i {
        line-height: 1.5rem;
    }
}

.btn-ghost-sm {
    @include btn-ghost-base();
    font-size: 0.875rem;
    line-height: 1.25rem;
    > i {
        line-height: 1.25rem;
    }
}

@include color-mode(dark) {
    .btn-light {
        @extend .btn-dark;
    }
    .text-bg-light {
        @extend .text-bg-dark;
    }
    .btn-ghost, .btn-ghost-sm {
        color: $btn-ghost-color-dark;
        &:hover, &.active {
            background-color: $btn-ghost-hover-color-dark;
        }
    }
}

.flex-basis-md-200 {
    @include media-breakpoint-up(md) {
        flex-basis: 200px!important;
    }
}