$tool-btn-fore-color: var(--bs-gray-700);
$tool-btn-back-color: white;
$tool-btn-hover-fore-color: var(--bs-info);
$error-fore-color: var(--bs-danger);
$text-stroke-color: var(--bs-white);

$toolbar-height: 30px;
$toolbar-font-size: 14px;
$scale-font-size: 12px;
$error-font-size: 20px;

body {
    overflow: hidden;
}

/* Toolbar */
@mixin tool-item {
    background-color: $tool-btn-back-color;
    border: 0;
    color: $tool-btn-fore-color;
    cursor: pointer;
    display: inline-block;
    height: $toolbar-height;
    line-height: $toolbar-height;
    margin: 0 5px 0 0;
    opacity: 0.5;
    padding: 0 10px;
    vertical-align: top;
}

@mixin text-stroked {
    text-shadow: 
        -1px -1px 0 $text-stroke-color, 
        1px -1px 0 $text-stroke-color, 
        -1px 1px 0 $text-stroke-color, 
        1px 1px 0 $text-stroke-color;
}

#divToolbar {
    display: inline-block;
    font-size: $toolbar-font-size;
    height: $toolbar-height;
    left: 0;
    line-height: $toolbar-height;
    position: fixed;
    top: 0;
    white-space: nowrap;

    &:hover {
        button, span {
            opacity: 1;
        }
    }

    .tool-btn {
        @include tool-item;

        &:hover {
            color: $tool-btn-hover-fore-color;
        }
    }

    &.toolbar-hidden {
        .tool-item {
            display: none;
        }
    }
}

#spanScaleValue {
    @include tool-item;
    cursor: default;
    font-size: $scale-font-size;
}

#spanErrorIcon {
    @include text-stroked;
    color: $error-fore-color;
    display: inline-block;
    font-size: $error-font-size;
    height: $toolbar-height;
    line-height: $toolbar-height;
    padding: 0 5px;
}
