Custom Scrollbars
/**
* Copyright 2008-2011 The Aydniv Software Company.
*
* @author nuwan.bandara
* @since November, 2010
* @version 1.0
*/
html {
overflow-y: auto;
/* Kudos to @sami for pointing out that setting the overflow to "auto" instead of "hidden" fixes the keyboard nav bug! */
background-color: transparent;
}
@media only screen and (max-device-width:480px) {
html {
overflow: auto;
}
}
body.custom {
background-position: center top;
background-image: url(images/bg.jpg);
background-repeat: no-repeat;
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 10px;
overflow-y: scroll;
overflow-x: hidden;
}
::-webkit-scrollbar {
width: 10px;
height: 6px;
}
::-webkit-scrollbar-button:start:decrement,
::-webkit-scrollbar-button:end:increment {
height: 30px;
display: block;
background-color: transparent;
}
::-webkit-scrollbar-track-piece {
background-color: #3b3b3b;
-webkit-border-radius: 6px;
}
::-webkit-scrollbar-thumb:vertical {
height: 50px;
background-color: #666;
-webkit-border-radius: 6px;
}
::-webkit-scrollbar-thumb:horizontal {
width: 50px;
background-color: #666;
-webkit-border-radius: 3px;
}
Labels: CSS

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home