-
Notifications
You must be signed in to change notification settings - Fork 13
/
themes.content.js
87 lines (72 loc) · 2.46 KB
/
themes.content.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
module.exports = (themeName) => {
const isDark = themeName.startsWith("dark")
return (
`
@import '~rsuite/lib/styles/themes/${isDark ? "dark" : "default"}/index.less';
.rc-slider-rail {
.rs-slider-bar
}
.rc-slider-track {
.rs-slider-progress-bar
}
.rc-slider-handle {
width: @slider-handle-diameter;
height: @slider-handle-diameter;
border: @slider-handle-border-width solid @slider-handle-default-border-color;
background-color: @slider-handle-default-bg;
top: 50%;
&:hover {
box-shadow: @slider-handle-hover-box-shadow;
transition: box-shadow @slider-handle-transition, background-color @slider-handle-transition,
transform @slider-handle-transition;
border: @slider-handle-border-width solid @slider-handle-default-border-color;
cursor: pointer;
}
&:active {
box-shadow: none;
transform: scale(1.2);
border: @slider-handle-border-width solid @slider-handle-default-border-color;
cursor: pointer;
}
&-click-focused:focus {
border: @slider-handle-border-width solid @slider-handle-default-border-color;
}
}
.loader:before {
background-color: @base-color;
}
.music-player {
background-color: ${isDark ? "@B700" : "#fff"};
border-top : ${isDark ? "none" : "1px solid #f0f0f0"};
}
.music-player .rs-icon-inverse {
color: ${isDark ? "#3b3f43" : "#f2f2f5"}
}
.artist-header {
color: ${isDark ? "@base-color" : "inherit"};
}
.currently-playing {
color: @base-color;
font-weight: bold;
}
.link_to_artist:hover {
background-color: @nav-item-default-hover-bg;
cursor: pointer;
color: @base-color;
font-weight: bold;
}
.link_to_album:hover {
background-color: @nav-item-default-hover-bg;
cursor: pointer;
color: @base-color;
font-weight: bold;
}
.theme-element:hover {
background-color: @nav-item-default-hover-bg;
cursor: pointer;
font-weight: bold;
}
@scrollbar-width: 8px;
`
)
}