2021-08-09 21:15:55 +02:00
|
|
|
@use "sass:math";
|
|
|
|
|
2021-03-14 19:09:38 +01:00
|
|
|
@import '~bootstrap/scss/mixins';
|
|
|
|
|
2019-12-29 06:04:00 +01:00
|
|
|
@mixin hover-disabled() {
|
2021-03-14 19:09:38 +01:00
|
|
|
&:not(.disabled) {
|
|
|
|
|
|
|
|
&.active,
|
|
|
|
&:active,
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
@content;
|
|
|
|
}
|
|
|
|
}
|
2019-12-20 03:54:33 +01:00
|
|
|
}
|
2021-01-14 16:47:36 +01:00
|
|
|
|
|
|
|
@mixin pseudo($display: block, $pos: absolute, $content: '') {
|
2021-03-14 19:09:38 +01:00
|
|
|
content: $content;
|
|
|
|
display: $display;
|
|
|
|
position: $pos;
|
2021-01-14 16:47:36 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@mixin responsive-ratio($x, $y, $pseudo: false) {
|
2021-08-09 21:15:55 +02:00
|
|
|
$padding: unquote(math.div($y, $x) * 100 + '%');
|
2021-03-14 19:09:38 +01:00
|
|
|
|
|
|
|
@if $pseudo {
|
|
|
|
&:before {
|
|
|
|
@include pseudo($pos: relative);
|
|
|
|
width: 100%;
|
|
|
|
padding-top: $padding;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@else {
|
|
|
|
padding-top: $padding;
|
|
|
|
}
|
2021-01-14 16:47:36 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@mixin input-placeholder {
|
2021-03-14 19:09:38 +01:00
|
|
|
&.placeholder {
|
|
|
|
@content;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:-moz-placeholder {
|
|
|
|
@content;
|
|
|
|
}
|
|
|
|
|
|
|
|
&::-moz-placeholder {
|
|
|
|
@content;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:-ms-input-placeholder {
|
|
|
|
@content;
|
|
|
|
}
|
|
|
|
|
|
|
|
&::-webkit-input-placeholder {
|
|
|
|
@content;
|
|
|
|
}
|
2021-01-14 16:47:36 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@mixin truncate($truncation-boundary) {
|
2021-03-14 19:09:38 +01:00
|
|
|
max-width: $truncation-boundary;
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
2021-01-14 16:47:36 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@mixin fix-bold() {
|
2021-03-14 19:09:38 +01:00
|
|
|
display: inline-flex;
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
content: attr(data-text);
|
|
|
|
content: attr(data-text) / '';
|
|
|
|
height: 0;
|
|
|
|
visibility: hidden;
|
|
|
|
overflow: hidden;
|
|
|
|
user-select: none;
|
|
|
|
pointer-events: none;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
2021-01-14 16:47:36 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@mixin dropdowns-dark() {
|
2021-03-14 19:09:38 +01:00
|
|
|
.navbar-dark {
|
|
|
|
.nav-link {
|
|
|
|
@include hover-focus {
|
|
|
|
background: $navbar-dark-hover-background;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.active>.nav-link,
|
|
|
|
.nav-link.active {
|
|
|
|
background: $navbar-dark-active-background;
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav-link.show,
|
|
|
|
.navbar-nav .show>.nav-link {
|
|
|
|
background: $navbar-dark-show-background;
|
|
|
|
color: $navbar-dark-show-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.dropdown-menu.bg-dark {
|
|
|
|
border-color: $dark;
|
|
|
|
|
|
|
|
.nav-link {
|
|
|
|
color: $navbar-dark-color;
|
|
|
|
|
|
|
|
@include hover-focus {
|
|
|
|
color: $navbar-dark-hover-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.disabled {
|
|
|
|
cursor: default;
|
|
|
|
color: $navbar-dark-disabled-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.show>.nav-link,
|
|
|
|
.active>.nav-link,
|
|
|
|
.nav-link.show,
|
|
|
|
.nav-link.active {
|
|
|
|
color: $navbar-dark-active-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
.dropdown-item {
|
|
|
|
@include hover-focus {
|
|
|
|
color: $navbar-dark-hover-color;
|
|
|
|
background: $navbar-dark-hover-background;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.active,
|
|
|
|
&:active {
|
|
|
|
background: $navbar-dark-active-background;
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav-link {
|
|
|
|
background: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-01-14 16:47:36 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@mixin dropdown-hovers() {
|
2021-03-14 19:09:38 +01:00
|
|
|
.dropdown.show {
|
|
|
|
.dropdown {
|
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&.active,
|
|
|
|
&:focus {
|
|
|
|
.dropdown-menu {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media only screen and (min-width: map-get($grid-breakpoints, 'md')) {
|
|
|
|
.dropdown-hover ul li {
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
.dropdown-hover ul li {
|
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&.active,
|
|
|
|
&:focus {
|
|
|
|
>.dropdown-toggle::after {
|
|
|
|
transform: rotate(-90deg);
|
|
|
|
}
|
|
|
|
|
|
|
|
>ul {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.dropdown-hover ul ul {
|
|
|
|
position: absolute;
|
|
|
|
top: 100%;
|
|
|
|
left: 0;
|
|
|
|
min-width: 250px;
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.dropdown-hover ul ul li {
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
.dropdown-hover ul ul li {
|
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&.active,
|
|
|
|
&:focus {
|
|
|
|
>ul {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.dropdown-hover ul ul ul {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 100%;
|
|
|
|
min-width: 250px;
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.dropdown-hover ul ul ul li {
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
.dropdown-hover ul ul ul li {
|
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&.active,
|
|
|
|
&:focus {
|
|
|
|
ul {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.dropdown-hover ul ul ul ul {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: -100%;
|
|
|
|
min-width: 250px;
|
|
|
|
display: none;
|
|
|
|
z-index: 1;
|
|
|
|
}
|
|
|
|
}
|
2021-01-14 16:47:36 +01:00
|
|
|
}
|