0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-03 12:59:12 -05:00
penpot/frontend/resources/styles/common/refactor/basic-rules.scss

76 lines
1.5 KiB
SCSS
Raw Normal View History

// 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;
&:hover {
background-color: var(--button-background-hover);
svg {
stroke: var(--button-foreground-hover);
}
}
&:focus {
outline: none;
border: 1px solid var(--button-border-focus);
background-color: var(--button-background-focus);
svg {
stroke: var(--button-foreground-focus);
}
}
&:active {
2023-04-27 12:44:11 +02:00
border: 1px solid var(--button-border-focus);
outline: none;
}
&:focus-visible {
border: none;
2023-04-27 12:44:11 +02:00
outline: none;
}
}
.button-secondary {
@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;
}
2023-04-27 12:44:11 +02:00
&:focus-visible {
border: none;
outline: none;
}
}
.button-icon {
@include flexCenter;
height: $s-16;
width: $s-16;
color: transparent;
fill: none;
stroke: var(--icon-foreground);
2023-04-27 12:44:11 +02:00
stroke-width: 1px;
}
.button-icon-small {
@extend .button-icon;
height: $s-12;
width: $s-12;
2023-04-27 12:44:11 +02:00
stroke-width: 1.33px;
}