Commit 08d3127203ab8e7500aba6fcdd7343ef094146d3
Style scrollbar if platform is linux
Alan Shaw committed on 9/15/2017, 3:23:36 PMParent: d398268f2297572879a8f99ecd25e97e46ceb570
Files changed
styles/dark/base.mcss | changed |
styles/dark/main-window.mcss | changed |
styles/dark/base.mcss | ||
---|---|---|
@@ -14,24 +14,8 @@ | ||
14 | 14 | flex-direction: column |
15 | 15 | line-height: 1.2 |
16 | 16 | } |
17 | 17 | |
18 | -::-webkit-scrollbar { | |
19 | - width: 12px | |
20 | -} | |
21 | - | |
22 | -::-webkit-scrollbar-track { | |
23 | - -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3) | |
24 | - border-radius: 10px | |
25 | -} | |
26 | - | |
27 | -::-webkit-scrollbar-thumb { | |
28 | - border-radius: 10px | |
29 | - background-color: #2d2c2c | |
30 | - /* -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5) */ | |
31 | -} | |
32 | - | |
33 | - | |
34 | 18 | h1 { |
35 | 19 | font-size: 200% |
36 | 20 | margin: 4px 0 |
37 | 21 | font-weight: normal |
styles/dark/main-window.mcss | ||
---|---|---|
@@ -13,8 +13,27 @@ | ||
13 | 13 | } |
14 | 14 | } |
15 | 15 | } |
16 | 16 | |
17 | + -linux { | |
18 | + (div) { | |
19 | + ::-webkit-scrollbar { | |
20 | + width: 12px | |
21 | + } | |
22 | + | |
23 | + ::-webkit-scrollbar-track { | |
24 | + -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3) | |
25 | + border-radius: 10px | |
26 | + } | |
27 | + | |
28 | + ::-webkit-scrollbar-thumb { | |
29 | + border-radius: 10px | |
30 | + background-color: #2d2c2c | |
31 | + /* -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5) */ | |
32 | + } | |
33 | + } | |
34 | + } | |
35 | + | |
17 | 36 | div.top { |
18 | 37 | display: flex; |
19 | 38 | align-items: center; |
20 | 39 | background: #2d2c2c; |
Built with git-ssb-web