mirror of
https://github.com/tabler/tabler.git
synced 2025-12-26 11:16:12 +04:00
scrollbars fixes
This commit is contained in:
@@ -12,6 +12,10 @@ body {
|
||||
text-rendering: optimizeLegibility;
|
||||
font-feature-settings: "liga" 0;
|
||||
|
||||
* {
|
||||
@include scrollbar;
|
||||
}
|
||||
|
||||
@media print {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
@@ -128,8 +128,8 @@ Top nav
|
||||
border-color: $navbar-border-color;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
left: 0;
|
||||
width: 100vw;
|
||||
padding: 0 .5rem;
|
||||
z-index: $zindex-sticky;
|
||||
min-height: $navbar-height;
|
||||
|
||||
@@ -10,31 +10,31 @@
|
||||
}
|
||||
|
||||
@mixin scrollbar($is-dark: false) {
|
||||
//&::-webkit-scrollbar {
|
||||
// width: 6px;
|
||||
// height: 6px;
|
||||
// transition: .3s background;
|
||||
//}
|
||||
//
|
||||
//&::-webkit-scrollbar-thumb {
|
||||
// border-radius: 5px;
|
||||
//
|
||||
// @if ($is-dark) {
|
||||
// background: transparent;
|
||||
// } @else {
|
||||
// background: $gray-400;
|
||||
// }
|
||||
//}
|
||||
//
|
||||
//&:hover::-webkit-scrollbar-thumb {
|
||||
// background: $gray-500;
|
||||
//
|
||||
// @if ($is-dark) {
|
||||
// background: mix(#fff, $dark, 20%);
|
||||
// } @else {
|
||||
// background: $gray-500;
|
||||
// }
|
||||
//}
|
||||
&::-webkit-scrollbar {
|
||||
width: 6px;
|
||||
height: 6px;
|
||||
transition: .3s background;
|
||||
}
|
||||
|
||||
&::-webkit-scrollbar-thumb {
|
||||
border-radius: 5px;
|
||||
|
||||
@if ($is-dark) {
|
||||
background: transparent;
|
||||
} @else {
|
||||
background: $gray-400;
|
||||
}
|
||||
}
|
||||
|
||||
&:hover::-webkit-scrollbar-thumb {
|
||||
background: $gray-500;
|
||||
|
||||
@if ($is-dark) {
|
||||
background: mix(#fff, $dark, 20%);
|
||||
} @else {
|
||||
background: $gray-500;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@mixin dark {
|
||||
|
||||
Reference in New Issue
Block a user