remove custom-scroll mixin

pull/5395/head
Karl Prieb 9 years ago
parent 70f985fa1b
commit fc77160fe2
  1. 20
      packages/rocketchat-theme/server/colors.less
  2. 19
      packages/rocketchat-theme/server/lesshat.less

@ -34,12 +34,24 @@
/** ----------------------------------------------------------------------------
* Document components
*/
html {
.custom-scroll(@transparent-dark, @custom-scrollbar-color, 0);
}
* {
.custom-scroll(@transparent-dark, @custom-scrollbar-color);
-webkit-overflow-scrolling: touch;
&::-webkit-scrollbar {
height: 8px;
width: 8px;
background: @transparent-dark;
}
&::-webkit-scrollbar-thumb {
background-color: @custom-scrollbar-color;
-webkit-border-radius: 50px;
}
&::-webkit-scrollbar-corner {
background-color: @transparent-dark;
}
}
body {

@ -23,25 +23,6 @@
transition: @process;
}
.custom-scroll(@background, @thumb, @width: 8px, @height: 8px) {
-webkit-overflow-scrolling: touch;
&::-webkit-scrollbar {
height: @height;
width: @width;
background: @background;
}
&::-webkit-scrollbar-thumb {
background-color: @thumb;
-webkit-border-radius: 50px;
}
&::-webkit-scrollbar-corner {
background-color: @background;
}
}
.gradient(@startColor: #eee, @endColor: white) {
background: linear-gradient(to top, @startColor, @endColor);
}

Loading…
Cancel
Save