mirror of
https://github.com/penpot/penpot.git
synced 2025-01-29 18:09:19 -05:00
243 lines
5.7 KiB
SCSS
243 lines
5.7 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
|
|
|
|
.button-primary {
|
|
@include buttonStyle;
|
|
@include flexCenter;
|
|
background-color: var(--button-primary-background-color-rest);
|
|
border: $s-1 solid var(--button-primary-border-color-rest);
|
|
color: var(--button-primary-foreground-color-rest);
|
|
&:hover {
|
|
background-color: var(--button-primary-background-color-hover);
|
|
border: $s-1 solid var(--button-primary-border-color-hover);
|
|
color: var(--button-primary-foreground-color-hover);
|
|
svg {
|
|
stroke: var(--button-primary-foreground-color-hover);
|
|
}
|
|
}
|
|
&:focus {
|
|
outline: none;
|
|
background-color: var(--button-primary-background-color-focus);
|
|
border: $s-1 solid var(--button-primary-boder-color-focus);
|
|
color: var(--button-primary-foreground-color-focus);
|
|
svg {
|
|
stroke: var(--button-primary-foreground-color-focus);
|
|
}
|
|
}
|
|
&:active {
|
|
border: 1px solid var(--button-border-focus);
|
|
outline: none;
|
|
}
|
|
&:focus-visible {
|
|
border: none;
|
|
outline: none;
|
|
}
|
|
}
|
|
|
|
.button-secondary {
|
|
@include buttonStyle;
|
|
@include flexCenter;
|
|
background-color: var(--button-secondary-background-color-rest);
|
|
border: $s-1 solid var(--button-secondary-border-color-rest);
|
|
color: var(--button-secondary-foreground-color-rest);
|
|
&:hover {
|
|
background-color: var(--button-secondary-background-color-hover);
|
|
border: $s-1 solid var(--button-secondary-border-color-hover);
|
|
color: var(--button-secondary-foreground-color-hover);
|
|
svg,
|
|
span svg {
|
|
stroke: var(--button-secondary-foreground-color-hover);
|
|
}
|
|
}
|
|
&:focus {
|
|
outline: none;
|
|
background-color: var(--button-secondary-background-color-focus);
|
|
border: $s-1 solid var(--button-secondary-boder-color-focus);
|
|
color: var(--button-secondary-foreground-color-focus);
|
|
svg {
|
|
stroke: var(--button-secondary-foreground-color-focus);
|
|
}
|
|
}
|
|
&:active {
|
|
border: none;
|
|
background-color: transparent;
|
|
}
|
|
&:focus-visible {
|
|
border: none;
|
|
outline: none;
|
|
}
|
|
}
|
|
|
|
.button-tertiary {
|
|
@include buttonStyle;
|
|
@include flexCenter;
|
|
color: var(--button-tertiary-foreground-color-rest);
|
|
svg {
|
|
stroke: var(--button-tertiary-foreground-color-rest);
|
|
}
|
|
&:hover {
|
|
background-color: var(--button-tertiary-background-color-hover);
|
|
color: var(--button-tertiary-foreground-color-hover);
|
|
svg {
|
|
stroke: var(--button-tertiary-foreground-color-hover);
|
|
}
|
|
}
|
|
&:focus {
|
|
outline: none;
|
|
border: $s-1 solid var(--button-tertiary-border-color-focus);
|
|
background-color: var(--button-tertiary-background-color-focus);
|
|
color: var(--button-tertiary-foreground-color-focus);
|
|
svg {
|
|
stroke: var(--button-tertiary-foreground-color-focus);
|
|
}
|
|
}
|
|
&:active {
|
|
border: $s-1 solid var(--button-tertiary-border-color-focus);
|
|
outline: none;
|
|
}
|
|
&:focus-visible {
|
|
border: none;
|
|
outline: none;
|
|
}
|
|
}
|
|
|
|
.button-tag {
|
|
@include buttonStyle;
|
|
@include flexCenter;
|
|
&:hover {
|
|
svg {
|
|
stroke: var(--title-foreground-color-hover);
|
|
}
|
|
}
|
|
&:focus {
|
|
outline: none;
|
|
border: 1px solid var(--button-border-focus);
|
|
background-color: var(--button-background-focus);
|
|
svg {
|
|
stroke: var(--button-foreground-focus);
|
|
}
|
|
}
|
|
&:active {
|
|
border: none;
|
|
background-color: transparent;
|
|
}
|
|
&:focus-visible {
|
|
border: none;
|
|
outline: none;
|
|
}
|
|
}
|
|
|
|
.button-icon {
|
|
@include flexCenter;
|
|
height: $s-16;
|
|
width: $s-16;
|
|
color: transparent;
|
|
fill: none;
|
|
stroke: var(--icon-foreground);
|
|
stroke-width: 1px;
|
|
}
|
|
|
|
.button-icon-small {
|
|
@extend .button-icon;
|
|
height: $s-12;
|
|
width: $s-12;
|
|
stroke-width: 1.33px;
|
|
}
|
|
|
|
.asset-element {
|
|
@include titleTipography;
|
|
display: flex;
|
|
align-items: center;
|
|
height: $s-32;
|
|
border-radius: $br-8;
|
|
margin-bottom: $s-4;
|
|
padding: $s-8 $s-12;
|
|
background-color: var(--assets-item-background-color);
|
|
color: var(--assets-item-name-foreground-color);
|
|
&:hover,
|
|
&:focus-within {
|
|
background-color: var(--assets-item-background-color-hover);
|
|
color: var(--assets-item-name-foreground-color-hover);
|
|
}
|
|
}
|
|
|
|
.new-scrollbar {
|
|
::-webkit-scrollbar {
|
|
background-color: transparent;
|
|
cursor: pointer;
|
|
height: $s-12;
|
|
width: $s-12;
|
|
}
|
|
::-webkit-scrollbar-track,
|
|
::-webkit-scrollbar-corner {
|
|
background-color: transparent;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background-color: rgba(170, 181, 186, 0.3);
|
|
background-clip: content-box;
|
|
border: $s-2 solid transparent;
|
|
border-radius: $br-8;
|
|
&:hover {
|
|
background-color: rgba(170, 181, 186, 0.7);
|
|
outline: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
.menu-dropdown {
|
|
@include menuShadow;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: $s-4;
|
|
width: $s-192;
|
|
padding: $s-4;
|
|
border-radius: $br-8;
|
|
background-color: var(--menu-background-color);
|
|
z-index: $z-index-10;
|
|
}
|
|
|
|
.menu-item {
|
|
@include titleTipography;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
height: $s-28;
|
|
width: 100%;
|
|
padding: $s-6;
|
|
border-radius: $br-8;
|
|
cursor: pointer;
|
|
&:hover {
|
|
background-color: var(--menu-background-color-hover);
|
|
}
|
|
}
|
|
|
|
.shortcut {
|
|
@include flexCenter;
|
|
gap: $s-2;
|
|
color: var(--menu-shortcut-foreground-color);
|
|
}
|
|
|
|
.shortcut-key {
|
|
@include titleTipography;
|
|
@include flexCenter;
|
|
height: $s-20;
|
|
padding: $s-2 $s-6;
|
|
border-radius: $br-6;
|
|
background-color: var(--menu-shortcut-background-color);
|
|
}
|
|
|
|
.user-icon {
|
|
@include flexCenter;
|
|
@include titleTipography;
|
|
height: $s-24;
|
|
width: $s-24;
|
|
border-radius: $br-circle;
|
|
img {
|
|
border-radius: $br-circle;
|
|
border: $s-2 solid var(--user-count-foreground-color);
|
|
}
|
|
}
|