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;
|
|
|
|
|
2024-02-24 18:51:58 +00:00
|
|
|
$border-width-thickness-num: 1.1;
|
|
|
|
// $border-width-thickness-num: 1.5;
|
2024-01-19 19:06:06 +00:00
|
|
|
$border-width-thickness: space($border-width-thickness-num);
|
|
|
|
|
2024-01-07 21:33:22 +00:00
|
|
|
@mixin border($col: $color-border) {
|
2024-01-19 19:06:06 +00:00
|
|
|
border-width: $border-width-thickness;
|
2024-04-21 15:54:48 +00:00
|
|
|
border-color: $col;
|
2024-01-07 21:33:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@mixin border-top($col: $color-border) {
|
2024-01-19 19:06:06 +00:00
|
|
|
border-top-width: $border-width-thickness;
|
2024-04-21 15:54:48 +00:00
|
|
|
border-top-color: $col;
|
2024-01-07 21:33:22 +00:00
|
|
|
}
|
2024-01-29 15:42:23 +00:00
|
|
|
|
|
|
|
@mixin border-bottom($col: $color-border) {
|
|
|
|
border-bottom-width: $border-width-thickness;
|
2024-04-21 15:54:48 +00:00
|
|
|
border-bottom-color: $col;
|
2024-01-29 15:42:23 +00:00
|
|
|
}
|
2024-02-24 18:51:58 +00:00
|
|
|
|
|
|
|
@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;
|
|
|
|
}
|