-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsplitTablePretty.css
124 lines (100 loc) · 2.12 KB
/
splitTablePretty.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
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
/* ### CLEANUP ### */
table {
border-collapse: collapse;
border-spacing: 0px;
border: none;
padding: 0px;
margin: 0px;
}
tr,
td,
th,
tbody,
thead,
html,
body {
border: none;
padding: 0px;
margin: 0px;
}
/* ### Fonts ### */
@import url("https://fonts.googleapis.com/css2?family=Kalam&family=Patrick+Hand&family=Permanent+Marker&family=Playfair+Display&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Rye&display=swap");
/* ### MAKE PRETTY ### */
body {
background-color: #f5f4f4;
font-size: clamp(100%, 1rem + 2vw, 24px);
padding: 20px;
}
/* ### TABLE HEAD ### */
table > thead > tr {
background-color: #333;
color: #fff;
}
table > thead > tr > th {
position: sticky;
top: 0px;
/* padding: 4px 6px; */
text-align: center;
background-color: inherit;
color: inherit;
}
/* ### TABLE BODY ### */
table > tbody > tr > td {
padding: 2px 6px;
border-left: 1px dotted #d9d9d9;
border-right: 1px dotted #d9d9d9;
}
table > tbody > tr {
border-bottom: 1px solid #ccc;
}
/* Every other row colors: even */
table > tbody > tr:nth-child(even) {
background-color: #cccccc25;
}
/* Every other row colors: odd */
table > tbody > tr:nth-child(odd) {
background-color: #fcfcfc;
}
/* ### TABLE DIV ### */
div.tablePage {
display: block;
width: max-content; /* https://caniuse.com/#search=max-content */
background-color: #fcfcfc;
padding: 16px;
margin: 12px 6px;
position: relative;
box-shadow: 2px 2px 2px #0008;
}
/* ### FANCY FONTS AND PARAGRAPHS ### */
table > tbody td.description {
padding: 0 20px;
}
table > tbody td.rating {
padding: 0 20px;
}
table td p::first-letter {
float: left;
font-family: "Rye", cursive;
font-size: 195%;
font-weight: normal;
padding: 0px 4px 0px 0px;
margin-top: -8px;
}
table td p span.first-word {
font-family: "Rye", cursive;
text-transform: uppercase;
}
table td p::first-line {
display: inline;
font-size: 105%;
}
h1 {
font-family: "Rye", cursive;
font-weight: normal;
}
td.fruit {
text-align: center;
font-weight: bold;
}