Zelda64Recomp/assets/scss/styles/vars/_borders.scss

43 lines
1023 B
SCSS
Raw Normal View History

2024-01-07 21:33:22 +00:00
$border-radius-sm: 8dp;
$border-radius-md: 12dp;
// modals/pages
$border-radius-lg: 16dp;
$border-radius-modal: $border-radius-lg;
$border-width-thickness-num: 1.1;
// $border-width-thickness-num: 1.5;
$border-width-thickness: space($border-width-thickness-num);
2024-01-07 21:33:22 +00:00
@mixin border($col: $color-border) {
border-color: $col;
border-width: $border-width-thickness;
2024-01-07 21:33:22 +00:00
}
@mixin border-top($col: $color-border) {
border-top-color: $col;
border-top-width: $border-width-thickness;
2024-01-07 21:33:22 +00:00
}
@mixin border-bottom($col: $color-border) {
border-bottom-color: $col;
border-bottom-width: $border-width-thickness;
}
@mixin inset-block($inset-amt) {
position: absolute;
top: $inset-amt;
right: $inset-amt;
bottom: $inset-amt;
left: $inset-amt;
}
// add this to a child of the container that needs a border.
// parent must have `position: relative`
@mixin inner-border-block($col: $color-border) {
@include inset-block($border-width-thickness);
@include border($col);
display: block;
}