main

mattermost/focalboard

Last updated at: 29/12/2023 09:40

topBar.scss

TLDR

This file contains the SCSS code for styling the top bar component of the application.

Classes

TopBar

This class is used to style the top bar component. It sets the position to absolute, aligns it to the top right of the page, and applies flexbox properties for the layout. It also contains styles for the links, help icon, and version display.

Methods

@import '../styles/z-index';

.TopBar {
    @include z-index(top-bar);
    position: absolute;
    top: 8px;
    right: 32px;

    display: flex;
    flex-direction: row;

    a {
        display: flex;
        align-items: center;
        padding: 2px;
    }

    a.link {
        font-size: 12px;
        line-height: 14px;
        padding: 2px 10px;
        color: rgba(var(--center-channel-color-rgb), 0.72);

        &:hover {
            color: rgba(var(--center-channel-color-rgb), 1);
        }
    }

    .HelpIcon {
        font-size: 20px;
        color: currentColor;
    }

    .versionFrame {
        display: flex;
        flex-direction: row;
        align-items: center;
    }

    .version {
        font-size: 11px;
        line-height: 14px;
        font-weight: 500;
        color: currentColor;
    }

    .versionBadge {
        font-size: 10px;
        line-height: 14px;
        font-weight: 500;
        margin-left: 3px;
        color: currentColor;
    }
}