-
Notifications
You must be signed in to change notification settings - Fork 3.9k
/
Copy pathlayout.styl
612 lines (509 loc) · 10.8 KB
/
layout.styl
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
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
/**
Copyright 2015 The Cockroach Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied. See the License for the specific language governing
permissions and limitations under the License.
Author: Matt Tracy ([email protected])
*/
@require 'typography.styl'
@require '../modules/layout-vars.styl'
@require '../modules/palette.styl'
$topbar-border = $secondary-gray-1
$last-updated-color = $secondary-gray-2
$subnav-background = $secondary-gray-3
*
margin 0
padding 0
box-sizing border-box
html
body
height 100%
background-color $secondary-gray-4
min-width 700px
#page-container
position relative
min-height 100vh
#root
position relative
padding-left $nav-width
min-height "calc(100vh - %s)" % $footer-height
&:after
content ""
display table
clear both
#content
min-height 100%
.page
position relative
.page.cluster
min-width $chart-width
.page.help-us
height 100%
background-color white
.section
padding 1rem 2rem
&:after
content ""
display table
clear both
.topbar + &
padding-top $top-bar-height + 10px
width 100%
.nav + &
padding-top "calc(%s + 3rem)" % ($top-bar-height + $subnav-height)
&.table
margin 0
padding-left 0
padding-right 0
.nav + &
padding-top $top-bar-height + $subnav-height
h1
font-family Lato-Medium
font-size 23px
color $main-navy
margin-top 10px
margin-bottom 10px
font-weight normal
.header
width calc(100% + 40px)
height 88px
background-color $secondary-gray-4
margin -20px -20px 0 -21px
padding 40px 30px
border-bottom 1px solid $secondary-gray-1
h1
font-size 19px
line-height 19px
padding 0
margin 0
&:not(:first-child)
border-top 1px solid $secondary-gray-1
.form
padding 40px 10px
width 600px
font-size 13px
hr
border 1px solid $secondary-gray-8
margin 40px 0
input
border-radius 5px
border 1px solid $secondary-gray-1
padding 15px
font-size 12px
font-family Lato-Medium
margin-bottom 25px
&:not([type=checkbox])
width 47%
margin-right 3%
height 40px
&[type=checkbox]
display inline
margin-right 15px
padding-bottom 0
margin-bottom 25px
&.show-required
&:invalid
border-color $secondary-red-2
&:invalid + span.status:after
content "Required"
&:invalid + * + span.icon:after
content "\26A0"
span.status
position absolute
margin-left -65px
margin-top 10px
color $secondary-red-3
span.icon
margin-top 10px
color $secondary-red-4
position absolute
margin-left -15px
button
width 100px
height 40px
border-radius 2px
border 0
background-color $secondary-blue
color white
font-family Lato-Medium
font-size 14px
letter-spacing .25px
margin-right 20px
&:hover
background-color $secondary-blue-2
&.right
float right
margin-right 3%
&.cancel
background-color $secondary-gray-12
color $secondary-gray-13
&:hover
background-color $secondary-gray-14
.topbar
padding 0 3rem 1rem
background-color white
border-bottom 1px solid $topbar-border
height $top-bar-height
width 100%
position absolute
top 0
right 0
z-index 1
h2
font-size 3rem
font-family Lato-Medium
color $main-navy
line-height $top-bar-height
padding-top 0
margin-top 0
display inline-block
a
text-decoration none
color $main-gray
img
position relative
top 8px
.health
text-transform uppercase
display block
font-size 11px
letter-spacing 1px
color $main-dark-gray
span.health-icon
display inline-block
padding 0 3px
height 21px
border-radius 100%
.icon-check-circle
color $main-green
.icon-x, .icon-stop-sign
color $secondary-red
.icon-skull
background-color $secondary-gray-11
color white
*
display inline
.unreachable-text, .good
position relative
top -1.5px
font-variant normal
font-family Lato-Heavy
color $secondary-red
.good
color $main-green
.info-container
display inline-block
margin-left 25px
.last-updated
font-size 1rem
font-family Lato-Regular
color $last-updated-color
letter-spacing .2px
.health
font-family Lato-Heavy
div
margin-left 5px
position relative
top 1px
span.refreshing-text
color $secondary-gray-2
font-variant none
strong
font-family Lato-Bold
.page .nav
padding 0 3rem 1rem
background-color $subnav-background
text-transform uppercase
letter-spacing 2.17px
border-bottom 1px solid $secondary-gray-1
height $subnav-height
position absolute
top $top-bar-height
right 0
width 100%
z-index 1
.sql-table
margin 20 20
a.toggle
font Lato-Bold
font-size 1rem
color $secondary-light-gray
.status
font-size 9px
&.missing
color $secondary-red
&.stale
color $secondary-gold
&.healthy
color $main-green
.section.overview
padding-left 3rem
.charts
width $chart-width
&:first-child
margin-top 10px
.section.node, .section.nodes
.charts
width $chart-width
h2
clear both
padding-top 15px
&:first-child
padding-top 0
.banner
width 100%
background-color $secondary-blue
transition height .2s ease-in, opacity .2s ease-in
font-family Lato-Medium
font-size 13px
text-align center
line-height 73px
color white
position relative
&.helpus
&.expanded
height 73px
&.hidden
height 0
// only show the first .banner
// any .banner with a previous .banner as a sibling is hidden
& ~ &
height 0
opacity 0
button
margin-left 15px
background-color $secondary-gold
height 33px
text-shadow 1px 1px rgba(0, 0, 0, .24)
&:hover
background-color $secondary-gold-2
.checkmark, .icon-warning
font-size 15px
margin-right 15px
border-radius 100%
border 2px solid white
width 38px
height 38px
padding 5px 5px 5px 7px
.icon-warning
color $secondary-gold
border 0
vertical-align middle
.close
position absolute
top 0
right 3rem
.modal-container
z-index 10
&.close
.screen, .modal
transition opacity .2s ease-in
opacity 0
.screen
position fixed
top 0
left 0
bottom 0
right 0
background-color rgba(21, 31, 52, .8)
z-index 10
.modal
position absolute
width 700px
height 620px
background-color white
top 20px
z-index 20
left 50%
margin-left -350px
border 8px solid rgba(21, 31, 52, .4)
box-shadow 0 2px 4px rgba(0, 0, 0, .5)
border-radius 4px
background-clip padding-box
padding 35px
opacity 1
transition height .4s ease-in, width .4s ease-in, opacity .2s ease-in, margin .4s ease-in
&.hide-modal
opacity 0
&.thanks, &.thanks-pre
width 500px
height 375px
margin-left -250px
&.thanks
button
margin-left 52px
h1, .intro, .thanks, button, form
transition opacity .2s ease-in
&.hide, &.thanks-pre
h1, .intro, .thanks, button, form
opacity 0
transition opacity .2s ease-in
h1
color $main-green
margin-bottom 5px
margin-top 0
width 100%
text-align left
font-size 33px
font-family Lato-Regular
.intro
color $main-navy
margin 15px 0 30px
line-height 18px
font-family Lato-Regular
font-size 14px
line-height 2.25rem
.optin-text
margin -17px 20px 20px 28px
.thanks
margin 35px 52px
a
color $main-navy
.inputs
background-color $secondary-gray-3
margin 0 -35px
padding 30px 30px 10px
border-top 1px solid $secondary-gray-1
border-bottom 1px solid $secondary-gray-1
.close
position absolute
top 30px
right 30px
color $secondary-gray-9
button
margin 20px 0 35px 20px
width auto
padding 10px 25px
#content
position relative
.saving
display inline
font-family Lato-Medium
color $secondary-gray-2
transition opacity .5s ease-in
opacity 0
&.no-animate
transition opacity 0s
&.failed
opacity 1
.optin-text
font-size 10px
margin -17px 28px 20px
line-height 1.8rem
.event-table-container
background-color white
.table-header
padding 15px
padding-left 3rem
button, h1
margin 0
padding 0
display inline
margin-right 20px
button.toggled, button.untoggled
border 2px solid $secondary-blue
height auto
width auto
padding 5px
font-size 12px
button.untoggled
background-color white
color $secondary-blue
// TODO: if we want the green border from the mock, we should inline the svg
.icon-info-filled
color $main-green
width 18px
height 18px
padding 0
margin 0
line-height 0
.timestamp
font-family Lato-Bold
font-size 11px
color $secondary-gray-10
.page.events
.section
padding 154px 0 0
.event-table-container
.table-header
display none
.section
.node-info, .store-info
padding 0 0 20px 0
h1
padding-left 0
.stats-table td
border 0
&.logs
span
margin 5px
input:not([type=checkbox])
width 100px
height 20px
margin 5px
.num-ranges
font-size 16px
margin-bottom 2rem
table
td:first-child
padding-left 3rem
#footer
height $footer-height
padding-left 80px
border-top 1px solid $secondary-gray-1
.links
width 600px
margin auto
a
line-height $footer-height
margin 20px
text-decoration none
color $main-gray
.tooltip
position absolute
z-index $tooltip-layer
padding 35px
border 1px solid $secondary-gray-1
box-shadow 2px 2px 0 $secondary-gray-15
border-radius 4px
display none
background-color white
top 20px
&.right
left 95%
right auto
&.left
right 15%
left auto
bottom 100%
top auto
.content
font-size 11px
color $secondary-gray-16
font-family Lato-Regular
.title
font-size 13px
color $main-navy
font-family Lato-Heavy
text-align center
width 100%
padding-bottom 5px
&.viz-tooltip
width 250px
*:hover + .tooltip
display block
div.charts
div:last-child .visualization-wrapper .tooltip
right 15%
left auto
bottom 100%
top auto
div:first-child .visualization-wrapper .tooltip
left 95%
right auto