mirror of
https://github.com/minio/docs.git
synced 2025-04-24 06:05:11 +03:00
59 lines
967 B
SCSS
59 lines
967 B
SCSS
// Get theme colors
|
|
@function breakpoints($key) {
|
|
@return map-get($breakpoints, $key);
|
|
}
|
|
|
|
|
|
// Breakpoints
|
|
@mixin breakpoint-min($bp) {
|
|
@media (min-width: $bp) {
|
|
@content;
|
|
}
|
|
}
|
|
|
|
@mixin breakpoint-max($bp) {
|
|
@media (max-width: ($bp - 1)) {
|
|
@content;
|
|
}
|
|
}
|
|
|
|
@mixin breakpoint-between($lower, $upper) {
|
|
@media (min-width: $lower) and (max-width: ($upper - 1)) {
|
|
@content;
|
|
}
|
|
}
|
|
|
|
// Hide Scrollbars
|
|
@mixin hide-scrollbars {
|
|
overflow: -moz-scrollbars-none;
|
|
-ms-overflow-style: none;
|
|
|
|
&::-webkit-scrollbar {
|
|
display: none;
|
|
width: 0;
|
|
}
|
|
}
|
|
|
|
// Dark/Light Theme
|
|
@mixin theme-switch($map) {
|
|
:root {
|
|
&:not(.dark-mode) {
|
|
@each $property, $value in $map {
|
|
$light: nth($value, 1);
|
|
$dark: nth($value, 2);
|
|
|
|
#{$property}: #{$light};
|
|
}
|
|
}
|
|
|
|
&.dark-mode {
|
|
@each $property, $value in $map {
|
|
$light: nth($value, 1);
|
|
$dark: nth($value, 2);
|
|
|
|
#{$property}: #{$dark};
|
|
}
|
|
}
|
|
}
|
|
|
|
} |