Add scroll styles for scrollbar

This commit is contained in:
mmcw-dev 2018-01-04 23:42:57 -05:00
parent 6f7350169b
commit 59b4a51cca
3 changed files with 43 additions and 0 deletions

View File

@ -569,6 +569,25 @@ button:focus {
.cmd .active i {
color: #272b30;
}
::-webkit-scrollbar {
width: 8px;
}
::-webkit-scrollbar-track {
-webkit-border-radius: 10px;
border-radius: 10px;
background: rgba(0, 0, 0, 0.1);
}
::-webkit-scrollbar-thumb {
-webkit-border-radius: 10px;
border-radius: 10px;
background: rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb:hover {
background: rgba(0, 0, 0, 0.4);
}
::-webkit-scrollbar-thumb:window-inactive {
background: rgba(0, 0, 0, 0.05);
}
#log {
position: fixed;
width: 100%;

View File

@ -5,6 +5,7 @@
@import "./light.less";
@import "./seq.less";
@import "./cmd.less";
@import "./scroll.less";
#log{
position: fixed;

23
app/less/scroll.less Normal file
View File

@ -0,0 +1,23 @@
::-webkit-scrollbar {
width:8px;
}
::-webkit-scrollbar-track {
-webkit-border-radius:10px;
border-radius:10px;
background:rgba(0,0,0,0.1);
}
::-webkit-scrollbar-thumb {
-webkit-border-radius:10px;
border-radius:10px;
background:rgba(0,0,0,0.2);
}
::-webkit-scrollbar-thumb:hover {
background:rgba(0,0,0,0.4);
}
::-webkit-scrollbar-thumb:window-inactive {
background:rgba(0,0,0,0.05);
}