<commit_before>//######################################################################################################################
// #SUBNAV#
#cms-toolbar {
    .cms-submenu-btn {
        @include icon(menu);
        display: block;
        position: absolute;
        right: $submenu-right;
        width: $submenu-icon-area-size;
        height: $submenu-icon-area-size;
        cursor: pointer;
        top: 50%;
        margin-top: -($submenu-icon-area-size / 2);
        &:before {
            @extend %icon;
            position: absolute;
            left: 50%;
            top: 50%;
            margin-left: -($icon-size / 2);
            margin-top: -($icon-size / 2);
            color: $submenu-icon-color;
        }

        .cms-hover-tooltip {
            position: absolute;
            left: 0;
            top: 0;
            right: 0;
            bottom: 0;
        }
    }
    .cms-dragbar .cms-submenu-btn {
        margin-right: 2px;
        background-color: transparent;
        &:active,
        &.cms-btn-active {
            background-color: darken($btn-default-bgcolor, 10%);
        }
    }
    .cms-submenu-settings {
        border: none;
    }

    .cms-submenu-edit {
        @include icon(pencil);
        right: $submenu-right * 3 + $submenu-icon-area-size * 2;
    }
    .cms-submenu-add {
        @include icon(plus);
        right: $submenu-right * 2 + $submenu-icon-area-size;
    }
    .cms-submenu-edit,
    .cms-submenu-add {
        &:before {
            margin-left: -($icon-size / 2);
            margin-top: -($icon-size / 2);
            font-size: $icon-size;
        }
    }

    .cms-submenu-lang {
        position: absolute;
        top: 50%;
        height: $line-height-normal;
        margin-top: -($line-height-normal / 2);
        line-height: $line-height-normal - 2px;
        right: 10px;
        padding: 0 5px;
        border: 1px solid $gray-lighter;
        border-radius: $border-radius-base;
    }

    .cms-submenu-dropdown-top {
        top: $structure-dragbar-height + $structure-dragarea-space;
    }
    .cms-submenu-dropdown-bottom {
        bottom: $structure-dragbar-height + $structure-dragarea-space;
    }
    .cms-submenu-dropdown-children {
        right: $submenu-icon-area-size * 2 + $submenu-right * 3;
    }

    // TODO this will be cms-submenu-dropdown (or rather cms-dropdown) in future
    .cms-submenu-dropdown-settings {
        display: none;
        position: absolute;
        z-index: z(structure, content, dropdown);
        min-width: $dropdown-width;
        background: $submenu-dropdown-bgcolor;
        border-radius: $border-radius-normal;
        box-shadow: $dropdown-shadow;
        right: $submenu-right * 2 + $submenu-icon-area-size;
        transform: translateZ(0);

        .cms-submenu-item {
            a {
                position: relative;
                display: block;
                font-size: $submenu-item-font-size;
                text-align: left;
                padding: 0px $submenu-item-padding-horizontal;
                line-height: $dropdown-item-height;
                min-height: $dropdown-item-height;
                padding-left: $dropdown-item-icon-space;
                color: $submenu-item-color;
                &:hover,
                &:focus {
                    color: $submenu-item-hover-color;
                    background: $color-primary;
                }
                &[data-rel],
                &[data-icon] {
                    &:before {
                        @extend %icon;
                        position: absolute;
                        left: $dropdown-item-icon-position;
                        top: 0;
                        height: $dropdown-item-height;
                        line-height: $dropdown-item-height
                    }
                }
                &[data-icon=copy] {
                    @include icon(copy);
                }
                &[data-icon=paste] {
                    @include icon(paste);
                }
                &[data-icon=scissors] {
                    @include icon(scissors);
                }
                &[data-icon=bin] {
                    @include icon(bin);
                }
                &[href*=alias_plugin] {
                    @include icon(alias);
                }
            }
        }
        .cms-submenu-item-paste-tooltip {
            display: none;
        }
        .cms-submenu-item-disabled {
            position: relative;
            a {
                &,
                &:hover,
                &:focus {
                    cursor: default !important;
                    opacity: 0.2;
                    color: $submenu-item-color !important;
                    background: none !important;
                    box-shadow: none;
                }
            }
            .cms-submenu-item-paste-tooltip {
                cursor: default;
                position: absolute;
                left: 0;
                top: 0;
                right: 0;
                bottom: 0;
            }
        }
        &:before {
            z-index: z(below);
            position: absolute;
            content: '';
            left: 100%;
            width: $dropdown-arrow-side;
            height: $dropdown-arrow-side;
            margin-left: -($dropdown-arrow-side / 2);
            transform: rotate(45deg);
            background-color: $submenu-dropdown-bgcolor;
            box-shadow: $dropdown-shadow;
        }

        &.cms-submenu-dropdown-top {
            // TODO importants can be removed
            // after new "add plugin" is in place
            top: 0 !important;
            &:before {
                top: $dropdown-arrow-position !important;
            }
        }
        &.cms-submenu-dropdown-bottom {
            bottom: 0 !important;
            &:before {
                bottom: $dropdown-arrow-position !important;
            }
        }

        .cms-dropdown-inner {
            z-index: 1;
            background-color: white;
            border-radius: $border-radius-normal;
        }

    }
    .cms-dragbar .cms-submenu-dropdown-settings {
        &.cms-submenu-dropdown-top:before {
            top: $dropdown-arrow-position - 4px !important;
        }
        &.cms-submenu-dropdown-bottom:before {
            bottom: 12px !important;
            bottom: $dropdown-arrow-position - 4px !important;
        }
    }

    .cms-z-index-9999 {
        z-index: 9999 !important;
    }
}
<commit_msg>hide lang when pasted<commit_after>//######################################################################################################################
// #SUBNAV#
#cms-toolbar {
    .cms-submenu-btn {
        @include icon(menu);
        display: block;
        position: absolute;
        right: $submenu-right;
        width: $submenu-icon-area-size;
        height: $submenu-icon-area-size;
        cursor: pointer;
        top: 50%;
        margin-top: -($submenu-icon-area-size / 2);
        &:before {
            @extend %icon;
            position: absolute;
            left: 50%;
            top: 50%;
            margin-left: -($icon-size / 2);
            margin-top: -($icon-size / 2);
            color: $submenu-icon-color;
        }

        .cms-hover-tooltip {
            position: absolute;
            left: 0;
            top: 0;
            right: 0;
            bottom: 0;
        }
    }
    .cms-dragbar .cms-submenu-btn {
        margin-right: 2px;
        background-color: transparent;
        &:active,
        &.cms-btn-active {
            background-color: darken($btn-default-bgcolor, 10%);
        }
    }
    .cms-submenu-settings {
        border: none;
    }

    .cms-submenu-edit {
        @include icon(pencil);
        right: $submenu-right * 3 + $submenu-icon-area-size * 2;
    }
    .cms-submenu-add {
        @include icon(plus);
        right: $submenu-right * 2 + $submenu-icon-area-size;
    }
    .cms-submenu-edit,
    .cms-submenu-add {
        &:before {
            margin-left: -($icon-size / 2);
            margin-top: -($icon-size / 2);
            font-size: $icon-size;
        }
    }

    .cms-submenu-lang {
        position: absolute;
        top: 50%;
        height: $line-height-normal;
        margin-top: -($line-height-normal / 2);
        line-height: $line-height-normal - 2px;
        right: 10px;
        padding: 0 5px;
        border: 1px solid $gray-lighter;
        border-radius: $border-radius-base;
    }
    .cms-structure-content .cms-submenu-lang {
        display: none;
    }

    .cms-submenu-dropdown-top {
        top: $structure-dragbar-height + $structure-dragarea-space;
    }
    .cms-submenu-dropdown-bottom {
        bottom: $structure-dragbar-height + $structure-dragarea-space;
    }
    .cms-submenu-dropdown-children {
        right: $submenu-icon-area-size * 2 + $submenu-right * 3;
    }

    // TODO this will be cms-submenu-dropdown (or rather cms-dropdown) in future
    .cms-submenu-dropdown-settings {
        display: none;
        position: absolute;
        z-index: z(structure, content, dropdown);
        min-width: $dropdown-width;
        background: $submenu-dropdown-bgcolor;
        border-radius: $border-radius-normal;
        box-shadow: $dropdown-shadow;
        right: $submenu-right * 2 + $submenu-icon-area-size;
        transform: translateZ(0);

        .cms-submenu-item {
            a {
                position: relative;
                display: block;
                font-size: $submenu-item-font-size;
                text-align: left;
                padding: 0px $submenu-item-padding-horizontal;
                line-height: $dropdown-item-height;
                min-height: $dropdown-item-height;
                padding-left: $dropdown-item-icon-space;
                color: $submenu-item-color;
                &:hover,
                &:focus {
                    color: $submenu-item-hover-color;
                    background: $color-primary;
                }
                &[data-rel],
                &[data-icon] {
                    &:before {
                        @extend %icon;
                        position: absolute;
                        left: $dropdown-item-icon-position;
                        top: 0;
                        height: $dropdown-item-height;
                        line-height: $dropdown-item-height
                    }
                }
                &[data-icon=copy] {
                    @include icon(copy);
                }
                &[data-icon=paste] {
                    @include icon(paste);
                }
                &[data-icon=scissors] {
                    @include icon(scissors);
                }
                &[data-icon=bin] {
                    @include icon(bin);
                }
                &[href*=alias_plugin] {
                    @include icon(alias);
                }
            }
        }
        .cms-submenu-item-paste-tooltip {
            display: none;
        }
        .cms-submenu-item-disabled {
            position: relative;
            a {
                &,
                &:hover,
                &:focus {
                    cursor: default !important;
                    opacity: 0.2;
                    color: $submenu-item-color !important;
                    background: none !important;
                    box-shadow: none;
                }
            }
            .cms-submenu-item-paste-tooltip {
                cursor: default;
                position: absolute;
                left: 0;
                top: 0;
                right: 0;
                bottom: 0;
            }
        }
        &:before {
            z-index: z(below);
            position: absolute;
            content: '';
            left: 100%;
            width: $dropdown-arrow-side;
            height: $dropdown-arrow-side;
            margin-left: -($dropdown-arrow-side / 2);
            transform: rotate(45deg);
            background-color: $submenu-dropdown-bgcolor;
            box-shadow: $dropdown-shadow;
        }

        &.cms-submenu-dropdown-top {
            // TODO importants can be removed
            // after new "add plugin" is in place
            top: 0 !important;
            &:before {
                top: $dropdown-arrow-position !important;
            }
        }
        &.cms-submenu-dropdown-bottom {
            bottom: 0 !important;
            &:before {
                bottom: $dropdown-arrow-position !important;
            }
        }

        .cms-dropdown-inner {
            z-index: 1;
            background-color: white;
            border-radius: $border-radius-normal;
        }

    }
    .cms-dragbar .cms-submenu-dropdown-settings {
        &.cms-submenu-dropdown-top:before {
            top: $dropdown-arrow-position - 4px !important;
        }
        &.cms-submenu-dropdown-bottom:before {
            bottom: 12px !important;
            bottom: $dropdown-arrow-position - 4px !important;
        }
    }

    .cms-z-index-9999 {
        z-index: 9999 !important;
    }
}

{'fraction_non_alphanumeric': 0.1361695638914303, 'fraction_numerical': 0.00960658737419945, 'mean_word_length': 1.2179573892458573, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1204206', 'n_tokens_mistral': 3912, 'n_tokens_neox': 3577, 'n_words': 665}