main

mattermost/focalboard

Last updated at: 28/12/2023 01:42

calculation.scss

TLDR

The provided file calculation.scss contains CSS styles for the Calculation component in a web application. It defines various styles for different states of the component, such as when it is disabled, hovered, or when a menu is open.

// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.

.Calculation {
    cursor: pointer;
    transition: opacity 0.1s ease-in;

    &.disabled {
        cursor: unset;
    }

    &.none {
        opacity: 0;

        .calculationLabel {
            text-transform: capitalize;
            letter-spacing: 0;
            font-size: 14px;
            margin-right: 0;
        }

        &.hovered {
            opacity: 0.64;
        }

        &.menuOpen {
            opacity: 1;
        }
    }

    .calculationLabel {
        text-transform: uppercase;
        font-size: 12px;
        opacity: 0.8;
        margin-right: 8px;
        letter-spacing: 0.8px;
    }

    .calculationValue {
        top: -1px;
        position: relative;
        font-weight: bold;
        max-height: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .ChevronUpIcon {
        font-size: 22px;
        line-height: 14px;
        padding: 0;
    }

    .CalculationOptions {
        right: 0;
        top: 0;
        position: absolute;
    }
}