webpack-bootstrap-ui-kit/src/scss/layout/main/states/mobile.scss

43 lines
672 B
SCSS
Raw Normal View History

2021-08-09 18:04:09 +02:00
/*
* Mobile/Desktop states
*/
// display dropdown on hover + focus
@media (min-width: $full-body-min-width) {
2021-08-18 20:38:12 +02:00
.dropdown-hover {
&:hover,
&:focus {
.dropdown-menu {
display: block;
}
2021-08-09 18:04:09 +02:00
}
2021-08-18 20:38:12 +02:00
}
2021-08-09 18:04:09 +02:00
}
// custom toggler for mobile view
.dropdown {
2021-08-18 20:38:12 +02:00
> .dropdown-toggle-sm {
@media (min-width: $full-body-min-width) {
display: none;
2021-08-09 18:04:09 +02:00
}
2021-08-18 20:38:12 +02:00
}
2021-08-09 18:04:09 +02:00
2021-08-18 20:38:12 +02:00
> .dropdown-toggle-fl {
display: none;
2021-08-09 18:04:09 +02:00
2021-08-18 20:38:12 +02:00
@media (min-width: $full-body-min-width) {
display: inherit;
2021-08-09 18:04:09 +02:00
}
2021-08-18 20:38:12 +02:00
}
2021-08-09 18:04:09 +02:00
2021-08-18 20:38:12 +02:00
@media not all and (hover: none) {
> .dropdown-toggle-touch {
display: inherit;
}
2021-08-09 18:04:09 +02:00
2021-08-18 20:38:12 +02:00
> .dropdown-toggle-notouch {
display: none;
2021-08-09 18:04:09 +02:00
}
2021-08-18 20:38:12 +02:00
}
2021-08-09 18:04:09 +02:00
}