mirror of
https://github.com/moparisthebest/mail
synced 2025-01-11 05:28:00 -05:00
[WO-328] Show and style webkit scrollbars
This commit is contained in:
parent
138a462862
commit
0b3f19a8ce
@ -4,6 +4,9 @@
|
|||||||
*:before,
|
*:before,
|
||||||
*:after {
|
*:after {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
|
||||||
|
// remove flickering on item touch selection in ios
|
||||||
|
-webkit-tap-highlight-color: transparent !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Body reset
|
// Body reset
|
||||||
@ -34,6 +37,24 @@ textarea {
|
|||||||
-moz-osx-font-smoothing: grayscale;
|
-moz-osx-font-smoothing: grayscale;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Custom scrollbars in webkit
|
||||||
|
// @see http://css-tricks.com/custom-scrollbars-in-webkit/
|
||||||
|
::-webkit-scrollbar {
|
||||||
|
width: 10px;
|
||||||
|
}
|
||||||
|
::-webkit-scrollbar-track {
|
||||||
|
background: transparent;
|
||||||
|
}
|
||||||
|
::-webkit-scrollbar-thumb {
|
||||||
|
background: $color-grey-lighter;
|
||||||
|
border: 3px solid transparent;
|
||||||
|
background-clip: content-box;
|
||||||
|
cursor: pointer;
|
||||||
|
&:hover {
|
||||||
|
background-color: $color-blue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// add space at the top since ios7 apps are now fullscreen
|
// add space at the top since ios7 apps are now fullscreen
|
||||||
.ios-spacer {
|
.ios-spacer {
|
||||||
padding-top: 20px;
|
padding-top: 20px;
|
||||||
@ -45,14 +66,4 @@ textarea {
|
|||||||
|
|
||||||
// allow text selection
|
// allow text selection
|
||||||
user-select: none;
|
user-select: none;
|
||||||
|
|
||||||
// make scrollbars invisible
|
|
||||||
::-webkit-scrollbar {
|
|
||||||
width: 0px;
|
|
||||||
}
|
|
||||||
|
|
||||||
// remove flickering on item touch selection in ios
|
|
||||||
* {
|
|
||||||
-webkit-tap-highlight-color: transparent !important;
|
|
||||||
}
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user