mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2025-01-08 17:27:32 +03:00
Styled scroll in servers list for home page
This commit is contained in:
parent
260a6c4940
commit
9e63c463ca
2 changed files with 19 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
@import '../utils/base';
|
||||
@import '../utils/mixins/vertical-align';
|
||||
@import '../utils/mixins/thin-scroll';
|
||||
|
||||
.servers-list__list-group.servers-list__list-group {
|
||||
width: 100%;
|
||||
|
@ -33,6 +34,8 @@
|
|||
@media (min-width: $mdMin) {
|
||||
max-height: 220px;
|
||||
overflow-x: auto;
|
||||
|
||||
@include thin-scroll();
|
||||
}
|
||||
|
||||
.servers-list__server-item {
|
||||
|
|
16
src/utils/mixins/thin-scroll.scss
Normal file
16
src/utils/mixins/thin-scroll.scss
Normal file
|
@ -0,0 +1,16 @@
|
|||
@mixin thin-scroll() {
|
||||
/* Forefox scrollbar */
|
||||
scrollbar-color: rgba(0, 0, 0, .2) #f5f5f5;
|
||||
scrollbar-width: thin;
|
||||
|
||||
/* Chrome webkit scrollbar */
|
||||
&::-webkit-scrollbar {
|
||||
width: 6px;
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
|
||||
&::-webkit-scrollbar-thumb {
|
||||
background-color: rgba(0, 0, 0, .2);
|
||||
border-radius: .5rem;
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue