0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-27 00:49:28 -05:00
penpot/frontend/resources/styles/common/refactor/basic-rules.scss
2023-04-27 12:26:26 +02:00

64 lines
1.3 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;
&: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 {
border: 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;
}
}
.button-icon {
@include flexCenter;
height: $s-16;
width: $s-16;
color: transparent;
fill: none;
stroke: var(--icon-foreground);
}
.button-icon-small {
@extend .button-icon;
height: $s-12;
width: $s-12;
}