2022-03-17 01:11:10 +01:00
|
|
|
@import 'variables';
|
2022-03-17 00:43:52 +01:00
|
|
|
|
2022-02-12 23:07:11 +01:00
|
|
|
@mixin display-flex($content: center, $items: center, $direction: row) {
|
|
|
|
display: flex;
|
|
|
|
justify-content: #{$content};
|
|
|
|
align-items: #{$items};
|
|
|
|
flex-direction: #{$direction};
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin element-invisible($enforce: true) {
|
2022-03-17 01:11:10 +01:00
|
|
|
$important: if($enforce, '!important', null);
|
2022-02-12 23:07:11 +01:00
|
|
|
|
2022-03-11 15:58:28 +01:00
|
|
|
max-height: 0 #{$important};
|
|
|
|
opacity: 0 #{$important};
|
|
|
|
visibility: hidden #{$important};
|
|
|
|
transition: $default-transition;
|
2022-02-12 23:07:11 +01:00
|
|
|
}
|
|
|
|
|
2022-03-11 15:58:28 +01:00
|
|
|
@mixin element-invisible-off($value-visibility: 100px, $enforce: true) {
|
2022-03-17 01:11:10 +01:00
|
|
|
$important: if($enforce, '!important', null);
|
2022-02-12 23:07:11 +01:00
|
|
|
|
2022-03-11 15:58:28 +01:00
|
|
|
max-height: #{$value-visibility} #{$important};
|
|
|
|
opacity: 1 #{$important};
|
|
|
|
visibility: visible #{$important};
|
2022-02-12 23:07:11 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@mixin css-triangle($triangle-size, $triangle-color, $triangle-direction) {
|
2022-03-17 01:11:10 +01:00
|
|
|
content: '';
|
2022-02-12 23:07:11 +01:00
|
|
|
display: block;
|
|
|
|
width: 0;
|
|
|
|
height: 0;
|
|
|
|
border-style: solid;
|
|
|
|
border-width: $triangle-size;
|
|
|
|
|
|
|
|
@if $triangle-direction == down {
|
|
|
|
border-bottom-width: 0;
|
|
|
|
border-color: $triangle-color transparent transparent;
|
|
|
|
}
|
|
|
|
@if $triangle-direction == up {
|
|
|
|
border-top-width: 0;
|
|
|
|
border-color: transparent transparent $triangle-color;
|
|
|
|
}
|
|
|
|
@if $triangle-direction == right {
|
|
|
|
border-right-width: 0;
|
|
|
|
border-color: transparent transparent transparent $triangle-color;
|
|
|
|
}
|
|
|
|
@if $triangle-direction == left {
|
|
|
|
border-left-width: 0;
|
|
|
|
border-color: transparent $triangle-color transparent transparent;
|
|
|
|
}
|
|
|
|
}
|
2022-03-17 00:43:52 +01:00
|
|
|
|
|
|
|
@mixin breakpoint($query, $no-query: false) {
|
|
|
|
@include breakpoints.breakpoint($query, $no-query) {
|
|
|
|
@content;
|
|
|
|
}
|
|
|
|
}
|