-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
67 lines (66 loc) · 907 Bytes
/
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
body {
margin: 0;
}
aside {
width: 25%;
position: fixed;
left: 5%;
}
main {
width: 55%;
float: right;
position: relative;
right: 5%;
}
main h2 {
position: sticky;
position: -webkit-sticky;
background-color: white;
padding: 20px 0;
width: 100%;
margin: 0;
top: 0px;
z-index: 1;
}
fieldset {
width: 100%;
padding: 20px;
margin-top: 20px;
}
p {
text-align: center;
}
table {
width: 100%;
border-collapse: collapse;
position: relative;
margin-bottom: 30px;
}
th {
background-color: lightgray;
position: sticky;
position: -webkit-sticky;
top: 67px;
left: 0;
}
td,
th {
padding: 5px 10px;
width: 30%;
}
tbody {
padding-top: 200px;
}
tbody tr:not(:nth-of-type(1)) {
border-top: 1px solid lightgray;
}
td:first-of-type,
th:first-of-type {
text-align: right;
width: 10%;
}
td:last-of-type,
th:last-of-type {
text-align: right;
width: 15%;
}