-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
83 lines (71 loc) · 1.25 KB
/
styles.css
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
/*
TODO: Convert all of this to scss or less
*/
body {
font-family: Arial;
font-size: 1em;
padding: 1em;
box-shadow: 0 .2em 3em rgba(0, 0, 0, .25);
}
meter {
width: 100%;
-webkit-transition: opacity 2s;
-moz-transition: opacity 2s;
transition: all 2s;
}
meter[value='100'],
meter[value='5'] {
opacity: 0;
}
/* Using flexbox here, even though I would not
do so in the wild just yet.
*/
.row {
display: flex;
padding: 0;
margin: 0;
}
.row .cell {
flex: 1;
display: table-cell;
padding: .5em 1em;
border-bottom: 1px solid #CCC;
}
.record .cell {
font-size: .75em;
}
.record .cell:first-child {
font-weight: bold;
}
.header .cell {
font-size: 1em;
}
.row.header {
font-weight: bold;
text-align: center;
background: #00acee;
color: #FFF;
}
.row:nth-of-type(2n) {
background: #f1f1f1;
}
.box.summary {
width: 300px;
background: rgba(255, 255, 255, .85);
position: fixed;
top: 50%; left: 50%;
-webkit-transform: translateY(-50%) translateX(-50%);
-moz-transform: translateY(-50%) translateX(-50%);
transform: translateY(-50%) translateX(-50%);
box-shadow: 0 .25em 1em rgba(0,0,0,.25);
}
.box.summary h1 {
margin: 0;
padding: .25em 1rem;
background: #00acee;
color: #fff;
font-weight: normal;
}
.box.summary p {
padding: 0 1rem;
}