bgenc.net/src/_button.scss

29 lines
651 B
SCSS
Raw Normal View History

@mixin button($color-bg, $color-text, $scale: 1) {
2024-05-07 23:43:41 -05:00
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
2024-05-08 22:49:33 -05:00
gap: 0.25rem;
2024-05-07 23:43:41 -05:00
color: $color-text;
font-weight: 600;
text-decoration: none;
opacity: 0.8;
background-color: $color-bg;
padding: calc(0.5rem * $scale) calc(1rem * $scale);
font-size: calc(1rem * $scale);
clip-path: polygon(
0px 0px,
calc(100% - 10px * $scale) 0px,
100% calc(40px * $scale),
calc(10px * $scale) calc(40px * $scale)
);
2024-05-07 23:43:41 -05:00
transition: all var(--animation-speed) var(--animation-type);
user-select: none;
2024-05-08 22:49:33 -05:00
&:hover,
&:focus-visible {
2024-05-07 23:43:41 -05:00
opacity: 1;
text-decoration-color: unset;
}
}