git ssb

0+

alanz / patchwork



forked from Matt McKegg / patchwork

Tree: 76bc25fbc6edd50d2de53f58f3033960b0b32a34

Files: 76bc25fbc6edd50d2de53f58f3033960b0b32a34 / styles / dark / main-window.mcss

6019 bytesRaw
1MainWindow {
2 height: 100%
3 display: flex
4 flex-direction: column
5
6 -darwin {
7 div.top {
8 padding-left: 70px
9 span.appTitle {
10 span.title {
11 visibility: visible
12 }
13 }
14 }
15 }
16
17 -linux, -win32 {
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
36 div.top {
37 display: flex;
38 align-items: center;
39 background: #2d2c2c;
40 padding: 6px;
41 border-bottom: 2px solid #6f74e5;
42 position: relative;
43 z-index: 100
44
45 span {
46 input.search {
47 padding: 4px 8px;
48 border-radius: 3px;
49 border: 0 none;
50 background: rgba(0, 0, 0, 0.2);
51 color: #ccc;
52 font-size: 120%;
53 width: 180px;
54 box-shadow: inset 0 0 0px 1px rgba(0,0,0,0.1)
55 :focus {
56 outline: 0;
57 background: #383736;
58 }
59 ::-webkit-input-placeholder {
60 color: #757474
61 }
62 }
63 }
64
65 span.history {
66 padding-left: 6px
67 height: 26px;
68 display: inline-block
69 a {
70 cursor: pointer;
71 text-decoration: none !important
72 display: inline-block
73 width: 28px
74 height: 100%
75 border-radius: 3px
76 background: svg(backArrow) no-repeat center
77 opacity: 0.4
78 -active {
79 opacity: 1
80 }
81 :hover {
82 background-color: #383736
83 }
84 }
85
86 a + a {
87 transform: rotate(180deg)
88 }
89
90 @svg backArrow {
91 width: 14px
92 height: 14px
93 content: '<g stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"><path d="M1.5 7h11M7 13L1 7l6-6"/></g>'
94
95 path {
96 stroke: #979797
97 }
98
99 -active {
100 path {
101 fill: #DDD
102 }
103 }
104 }
105 }
106
107 span.nav {
108 display: inline-block
109 a {
110 padding: 4px 10px;
111 border-radius: 3px;
112 background: #434141;
113 color: #aaa;
114 font-size: 120%;
115 font-weight: 200;
116 cursor: pointer;
117 margin-left: 8px;
118 text-decoration: none !important
119
120 :hover {
121 color: black
122 background: #aeaeae
123 }
124
125 -selected {
126 background: #aeaeae
127 color: black
128 :hover {
129 background: #aeaeae
130 }
131 }
132
133 -drop {
134
135 :after {
136 background-image: svg(dropArrow)
137 background-repeat: no-repeat;
138 background-position: center right;
139 width: 10px;
140 height: 14px;
141 display: inline-block;
142 content: ' ';
143 margin-left: 6px;
144 margin-right: -6px;
145 border-left: 1px solid #6e6d6d;
146 padding-left: 5px;
147 margin-bottom: -2px;
148 }
149 }
150
151 -add {
152 border-color: #498849
153 background-color: #255D24
154 text-shadow: 1px 1px 1px #000
155 color: white
156
157 :active {
158 background-color: #1F331F !important
159 }
160
161 :hover {
162 background-color: #356D34
163 border-color: #4CB54C
164 }
165 }
166 }
167 }
168
169 span.appTitle {
170 flex: 1;
171 text-align: center;
172 font-size: 20px;
173 color: #ccc;
174 letter-spacing: 1px;
175 font-weight: 200;
176 -webkit-app-region: drag;
177 position: relative
178
179 span.title {
180 visibility: hidden
181 }
182
183 div.info {
184 display: block
185 position: absolute;
186 top: 0;
187 bottom: 0;
188 left: 0;
189 right: 0;
190 background: #2d2c2c;
191 margin-top: -3px;
192 opacity: 1;
193 transition: opacity 0.1s;
194 max-height: 25px;
195 padding: 0 10px;
196 font-size: 13px;
197 letter-spacing: 0;
198 [hidden] {
199 opacity: 0
200 }
201 }
202 }
203 }
204
205 div.info {
206 a.message {
207 display: block;
208 padding: 10px;
209 background: #deffde;
210 transition: color 0.2s, background-color 0.2s;
211 color: #217720;
212
213 a.ignore {
214 float: right
215 border-radius: 10px
216 padding: 2px 5px
217 margin-top: -2px
218 :hover {
219 text-decoration: none
220 background: #c0c0c0
221 color: white
222 }
223 }
224
225 :hover {
226 text-decoration: none
227 background: #c0ffae
228 }
229 }
230
231 div.status {
232 padding: 5px
233 background: #7c7c7c
234 color: white
235 (svg) {
236 width: 20px
237 height: 20px
238 }
239 }
240
241 [hidden] {
242 display: block
243 max-height: 0
244 animation: none
245 }
246
247 max-height: 100px
248 box-shadow: 0 0 3px #616161
249 overflow: hidden
250 transition: 0.5s max-height
251 animation: 0.5s slide-in
252 position: relative
253 z-index: 1
254 }
255
256 div.main {
257 flex: 1
258 position: relative
259
260 div.view {
261
262 position: absolute
263 top: 0
264 bottom: 0
265 left: 0
266 right: 0
267
268 [hidden] {
269 visibility: hidden
270 }
271
272 display: flex
273 flex-direction: column
274
275 div {
276 -webkit-user-select: text
277 }
278 }
279 }
280
281 div.bottom {
282 position: relative
283 box-shadow: 0 0 3px #222
284 background: #222
285 align-items: center
286 display: flex
287 padding: 5px
288
289 audio {
290 color: #EEE
291
292 ::-webkit-media-controls-panel {
293 background: transparent
294 }
295
296 ::-webkit-media-controls-current-time-display {
297 color: inherit
298 }
299
300 width: 100%
301 }
302 }
303}
304
305@keyframes slide-in {
306 0% {
307 max-height: 0
308 }
309 100% {
310 max-height: 100px
311 }
312}
313
314@svg dropArrow {
315 width: 12px
316 height: 6px
317 content: "<path d='M2,0 L10,0 L6,6 Z' />"
318
319 path {
320 fill: #888
321 }
322
323 -active {
324 path {
325 fill: #DDD
326 }
327 }
328}
329

Built with git-ssb-web