-
Notifications
You must be signed in to change notification settings - Fork 50
/
main.css
183 lines (149 loc) · 2.85 KB
/
main.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
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
* {
box-sizing: border-box;
}
:root {
--imgcols: 2;
}
@media screen and (min-width: 800px) {
:root {
--imgcols: 1;
}
}
html {
scroll-behavior: smooth;
}
@media screen and (prefers-reduced-motion: reduce) {
html {
scroll-behavior: auto;
}
}
body {
font-family: system,Helvetica Neue,Helvetica,sans-serif;
font-size: 16px;
color: rgb(77, 86, 89);
}
.compat-table {
grid-column: 1/-1;
max-width: 100%;
overflow-x: auto;
text-align: center;
}
table {
border-collapse: collapse; /* Use 'collapse' for better spacing */
}
table td {
padding: 0.5em;
border: 1px solid #ccc; /* Add a border to separate cells */
}
td:not(:empty) {
background: lightgreen;
}
thead {
background: none;
}
thead tr:first-child td {
border-bottom: 2px solid gray; /* Increase the border thickness for headers */
font-weight: bold;
background: none;
}
td:first-child, td:nth-child(2) {
background: none; /* Feature Name and Standardisation don't have implementation states, so don't highlight */
}
main {
margin: 0 auto;
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 1em;
max-width: 1024px;
}
h1, h2, h3 {
grid-column: 1/-1;
}
.targetlink {
color: grey;
font-size: 0.8em;
text-decoration: none;
}
table {
grid-column: 1/span 4;
}
figure {
grid-column-end: span 1;
grid-column-end: span var( --imgcols);
}
figure a.img-a {
display: inline-block;
width: 100%;
line-height: 0;
position: relative;
border: 3px solid #24aef4;
padding-bottom: 66%;
overflow: hidden;
}
figure a.img-a:hover img {
transform: scale(1.2);
}
figure a.img-a img {
position: absolute;
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 1s ease-out;
}
figure {
display: flex;
flex-direction: column;
align-items: center;
width: 100%;
max-width: 100%;
margin: 0;
}
figcaption {
margin-top: 0.5em;
}
footer {
grid-column: 1/-1;
padding-top: 1em;
border-top: 1px solid grey;
}
nav[role="tablist"], .tabs {
grid-column: 1/-1;
max-width: 100%;
}
nav[role="tablist"] {
border-bottom: 1px solid grey;
margin-bottom: -1em;
overflow-x: auto;
white-space: nowrap;
z-index: 2;
}
nav[role="tablist"] > a {
background: #bcccd4;
padding: 0.5em 0.5em 0.2em 0.5em;
border-bottom: 2px solid cornflowerblue;
display: inline-block;
}
nav[role="tablist"] > a:target {
font-weight: bold;
}
.tabs {
padding: 1em;
background: #bcccd4;
}
.tabs > article:not(:target):not(.default-fallback) {
display: none;
}
.tabs > article:target ~ .default-fallback {
display: none;
}
.tabs > article {
margin-top: -5em;
padding-top: 5em;
pointer-events: painted;
}
.tabs img {
max-width: 100%;
}
*:focus {
outline: 3px solid #24aef4;
}