mirror of
https://github.com/penpot/penpot.git
synced 2026-05-24 09:23:40 +00:00
126 lines
2.0 KiB
SCSS
126 lines
2.0 KiB
SCSS
// This Source Code Form is subject to the terms of the Mozilla Public
|
|
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
//
|
|
// Copyright (c) KALEIDOS INC
|
|
|
|
@import "refactor/common-refactor.scss";
|
|
|
|
.menu {
|
|
@extend .menu-dropdown;
|
|
top: $s-48;
|
|
left: calc(var(--width, $s-256) - $s-16);
|
|
width: $s-192;
|
|
margin: 0;
|
|
}
|
|
|
|
.menu-item {
|
|
@extend .menu-item-base;
|
|
cursor: pointer;
|
|
|
|
.open-arrow {
|
|
@include flexCenter;
|
|
|
|
svg {
|
|
@extend .button-icon;
|
|
stroke: var(--icon-foreground);
|
|
}
|
|
}
|
|
|
|
&:hover {
|
|
color: var(--menu-foreground-color-hover);
|
|
|
|
.open-arrow {
|
|
svg {
|
|
stroke: var(--menu-foreground-color-hover);
|
|
}
|
|
}
|
|
|
|
.shortcut-key {
|
|
color: var(--menu-shortcut-foreground-color-hover);
|
|
}
|
|
}
|
|
}
|
|
|
|
.separator {
|
|
border-top: $s-1 solid var(--color-background-quaternary);
|
|
height: $s-4;
|
|
left: calc(-1 * $s-4);
|
|
margin-top: $s-8;
|
|
position: relative;
|
|
width: calc(100% + $s-8);
|
|
}
|
|
|
|
.shortcut {
|
|
@extend .shortcut-base;
|
|
}
|
|
|
|
.shortcut-key {
|
|
@extend .shortcut-key-base;
|
|
}
|
|
|
|
.sub-menu {
|
|
@extend .menu-dropdown;
|
|
left: calc(var(--width, $s-256) + $s-180);
|
|
width: $s-192;
|
|
min-width: calc($s-272 - $s-2);
|
|
width: 110%;
|
|
|
|
.submenu-item {
|
|
@extend .menu-item-base;
|
|
|
|
&:hover {
|
|
color: var(--menu-foreground-color-hover);
|
|
|
|
.shortcut-key {
|
|
color: var(--menu-shortcut-foreground-color-hover);
|
|
}
|
|
}
|
|
}
|
|
|
|
.menu-disabled {
|
|
color: var(--color-foreground-secondary);
|
|
|
|
&:hover {
|
|
cursor: default;
|
|
color: var(--color-foreground-secondary);
|
|
background-color: var(--menu-background-color);
|
|
}
|
|
}
|
|
|
|
&.file {
|
|
top: $s-48;
|
|
}
|
|
|
|
&.edit {
|
|
top: $s-76;
|
|
}
|
|
|
|
&.view {
|
|
top: $s-116;
|
|
}
|
|
|
|
&.preferences {
|
|
top: $s-148;
|
|
}
|
|
|
|
&.plugins {
|
|
top: $s-180;
|
|
}
|
|
|
|
&.help-info {
|
|
top: $s-232;
|
|
}
|
|
|
|
&.help-info-old {
|
|
top: $s-192;
|
|
}
|
|
}
|
|
|
|
.item-icon {
|
|
svg {
|
|
@extend .button-icon;
|
|
stroke: var(--icon-foreground);
|
|
}
|
|
}
|