/
_dash-to-dock-3.scss
169 lines (147 loc) · 3.48 KB
/
_dash-to-dock-3.scss
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
// Dash to Dock
// Scrollview style
.bottom #dashtodockDashScrollview,
.top #dashtodockDashScrollview {
-st-hfade-offset: 24px;
}
.left #dashtodockDashScrollview,
.right #dashtodockDashScrollview {
-st-vfade-offset: 24px;
}
#dashtodockContainer {
background-color: transparent;
.number-overlay {
color: $light_fg_color;
background-color: rgba(black, 0.75);
text-align: center;
}
.notification-badge {
color: $light_fg_color;
background-color: $primary_color;
box-shadow: 0 2px 3px 0 rgba(0, 0, 0, 0.25);
border-radius: 1000px;
margin: 2px;
padding: 0.2em 0.6em;
font-weight: bold;
text-align: center;
}
&.dashtodock #dash,
&.dashtodock:overview #dash,
&.extended #dash,
&.extended:overview #dash {
border: 1px solid if($variant == 'light', rgba(black, 0.03), rgba(black, 0.35));
}
&.straight-corner #dash,
&.shrink.straight-corner #dash {
border-radius: 0;
margin: 0;
}
@each $_dock, $_radius, $_shadow in (top, $dash_radius, 0 -1px),
(bottom, $dash_radius, 0 1px),
(left, $dash_radius, -1px 0),
(right, $dash_radius, 1px 0) {
&.#{$_dock}.dashtodock #dash,
&.#{$_dock}.dashtodock:overview #dash {
border-radius: #{$_radius};
margin-#{$_dock}: 6px;
padding: 6px;
box-shadow: inset 0 0 0 1px rgba(white, 0.05);
}
&.#{$_dock}.shrink #dash {
border-#{$_dock}-width: 0;
}
&.#{$_dock}.extended #dash,
&.#{$_dock}.extended:overview #dash {
margin: 0;
padding: 0;
border-radius: 0;
box-shadow: inset #{$_shadow} rgba(white, 0.05);
}
}
&.extended.top,
&.extended.bottom {
#dash {
border-left: 0;
border-right: 0;
padding-top: 0;
padding-bottom: 0;
}
}
&.extended.right,
&.extended.left {
#dash {
border-top: 0;
border-bottom: 0;
padding-top: 0;
padding-bottom: 0;
}
}
// &.dashtodock #dash { background-color: $dash_bg; }
//
// &.opaque #dash { // solid-mode
// background-color: $dash_bg;
// }
//
// &.transparent #dash { // translucent-mode
// background-color: $dash_bg; // does not work
// }
// &:overview #dash { // overview-mode #1
// background-color: $light_divider_color;
// }
//
// &.opaque:overview,
// &.transparent:overview { // overview-mode #2
// #dash {
// background-color: transparent !important;
// box-shadow: none !important;
// }
// }
// &.extended:overview, // overview-mode #3
// &.opaque.extended:overview,
// &.transparent.extended:overview {
// #dash {
// background-color: $dash_bg;
// }
// }
&.running-dots,
&.dashtodock {
.dash-item-container > StButton {
transition-duration: 250ms;
background-size: contain;
}
}
&.shrink,
&.dashtodock {
.dash-item-container > StButton {
padding: 1px 2px;
}
}
.app-well-app,
.show-apps {
.overview-icon {
padding: 8px;
background-size: contain;
}
}
&.extended,
&.extended:overview {
.app-well-app,
.show-apps {
.overview-icon {
border-radius: $bt_radius;
}
}
}
.metro .overview-icon {
border-radius: 0;
}
}
.dashtodock-app-well-preview-menu-item {
padding: 1em 1em 0.5em 1em;
}
#dashtodockPreviewSeparator.popup-separator-menu-item-horizontal {
width: 1px;
height: auto;
border-right-width: 1px;
margin: 32px 0;
}