-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathstyle.css
81 lines (81 loc) · 1.53 KB
/
style.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
body {
font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif;
}
table {
border-collapse: collapse;
width: 100%;
}
th, td {
border: 1px solid #ddd;
padding: 8px 12px;
text-align: left;
white-space: nowrap;
}
th {
background-color: #f4f4f4;
}
.progress-bar {
display: inline-block;
background-color: #4caf50;
color: white;
height: 20px;
line-height: 20px;
text-align: center;
overflow: hidden;
white-space: nowrap;
box-sizing: border-box;
}
.progress-bar-outer-label {
display: none;
padding-left: .5em;
height: 20px;
line-height: 20px;
overflow: hidden;
}
.progress-bar.low {
color: transparent;
user-select: none;
}
.progress-bar.low + .progress-bar-outer-label {
display: inline-block;
}
td[data-label="visitors"], td[data-label="translators"] {
text-align: right;
}
td[data-label="completion"] {
width: 100%;
line-height: 0;
}
@media screen and (max-width: 600px) {
table, thead, tbody, th, td, tr {
display: block;
}
th {
position: absolute;
top: -9999px;
left: -9999px;
}
tr {
border: 1px solid #ccc;
margin-bottom: 5px;
}
td {
border: none;
border-bottom: 1px solid #eee;
padding-left: 50%;
position: relative;
}
td:before {
content: attr(data-label);
font-weight: bold;
left: 10px;
position: absolute;
}
td[data-label="completion"] {
width: inherit;
}
.progress-bar {
min-width: 0;
width: 100% !important;
}
}