2024-01-07 22:33:22 +01:00
|
|
|
|
|
|
|
$border-radius-sm: 8dp;
|
|
|
|
$border-radius-md: 12dp;
|
|
|
|
// modals/pages
|
|
|
|
$border-radius-lg: 16dp;
|
|
|
|
|
|
|
|
$border-radius-modal: $border-radius-lg;
|
|
|
|
|
2024-02-24 19:51:58 +01:00
|
|
|
$border-width-thickness-num: 1.1;
|
|
|
|
// $border-width-thickness-num: 1.5;
|
2024-01-19 20:06:06 +01:00
|
|
|
$border-width-thickness: space($border-width-thickness-num);
|
|
|
|
|
2024-01-07 22:33:22 +01:00
|
|
|
@mixin border($col: $color-border) {
|
2024-01-19 20:06:06 +01:00
|
|
|
border-width: $border-width-thickness;
|
2024-04-21 17:54:48 +02:00
|
|
|
border-color: $col;
|
2024-01-07 22:33:22 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@mixin border-top($col: $color-border) {
|
2024-01-19 20:06:06 +01:00
|
|
|
border-top-width: $border-width-thickness;
|
2024-04-21 17:54:48 +02:00
|
|
|
border-top-color: $col;
|
2024-01-07 22:33:22 +01:00
|
|
|
}
|
2024-01-29 16:42:23 +01:00
|
|
|
|
|
|
|
@mixin border-bottom($col: $color-border) {
|
|
|
|
border-bottom-width: $border-width-thickness;
|
2024-04-21 17:54:48 +02:00
|
|
|
border-bottom-color: $col;
|
2024-01-29 16:42:23 +01:00
|
|
|
}
|
2024-02-24 19:51:58 +01: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;
|
|
|
|
}
|