superdesk/superdesk-client-core

View on GitHub
scripts/apps/users/styles/settings.scss

Summary

Maintainability
Test Coverage
// users.scss
// Styling for the superdesk users page (list, prevew, profile)
// ----------------------------------------------------------------------------------------
@import '~mixins.scss';
@import '~variables.scss';

// User roles
// -------------------------------------

$roles-border: 1px solid $tableBorder;
.user-roles-settings {
    // ROLES TAB
    .new-role-modal {
        width: 299px;
        position: absolute;
        inset-block-start: 0;
        inset-inline-start: 50%;
        margin-inline-start: -150px;
        .content {
            .field {
                margin-block-end: 10px;
                textarea {
                    height: 22px;
                }
            }
        }
    }

    .label.default {
        font-size: 9px;
        font-weight: 600;
        padding: 2px 5px;
        line-height: 12px;
        margin-inline-start: 5px;
        text-transform: uppercase;
    }
}

// PRIVILEGES SETTINGS
.privileges-settings {
    padding: 0;
    overflow: auto !important;
    table {
        padding: 20px;
    }
    thead tr {
        .label {
            position: absolute;
            inset-block-start: -6px;
            inset-inline-start: 17%;
            text-transform: uppercase;
            font-weight: normal;
            font-size: 9px;
            line-height: 10px;
            height: 13px;
            letter-spacing: 0.1em;
            box-sizing:border-box;
        }
        th {
            font-size: 13px;
            font-weight: normal;
            word-wrap: break-word;
            text-align: center;
            border: $roles-border !important;
            border-inline-end: 0 !important;
            border-color: $tableBorder !important;
            background: $tableBackground;
            padding: 10px 16px;
            white-space: nowrap;
            z-index: 1; // ensure that relatively positioned items in tables aren't displayed on top of the sticky toolbar
        }
        .name {
            min-width: 270px;
        }

        input[type="checkbox"] {
            display: inline-block;
            vertical-align: middle;
            margin-inline-end: 5px;
        }
    }
    td {
        padding: 10px 16px;
        border-block-end: $roles-border;
        border-inline-start: $roles-border;
        border-block-start: 0;
        text-align: center;
        word-wrap: break-word;
        vertical-align: middle;
        @include user-select(none);
    }
    .name {
        min-width: 270px;
        font-size: 11px;
        line-height: 1.1;
        text-align: start;
        border-inline-start: 0 !important;
        padding: 10px;
        text-transform: uppercase;
        font-weight: 500;
        max-width: 270px;
        color: var(--color-text-light);
        & > div {
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: space-between;

        }
    }
    .role-field {
        min-width: 90px;
    }
}