-
Notifications
You must be signed in to change notification settings - Fork 135
/
web.css
105 lines (105 loc) · 1.66 KB
/
web.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
body {
font-family: "Helvetica Neue", Helvetica, "Segoe UI", Arial, freesans, sans-serif;
margin: 1em;
}
#header {
background-color: #eee;
margin-bottom: 1em;
text-align: center;
}
h1 {
margin: 0;
line-height: 1.5;
}
#links {
background-color: #e0e0e0;
display: table;
width: 100%;
height: 1.5em;
}
#links > a {
display: table-cell;
vertical-align: middle;
width: 20%;
color: #000;
text-decoration: none;
}
#links > a:hover,
#links > a:focus {
background-color: #CCC;
font-weight: bold;
}
a.screenshot {
display: block;
width: 640px;
max-width: 100%;
margin: auto;
}
a.screenshot > img {
width: 100%;
}
@media (min-width: 1120px) {
a.screenshot {
float: right;
margin: 0 0 1em 1em;
}
}
span.hover {
display: none;
}
a:hover + span.hover {
display: block;
position: fixed;
top: 0;
bottom: 0;
left: 0;
right: 0;
pointer-events: none;
background: rgba(0,0,0,0.4);
}
span.hover > img {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
margin: auto;
width: auto;
height: auto;
max-width: 100%;
max-height: 100%;
box-shadow: 5px 5px 20px rgba(0,0,0,0.4);
}
@media (max-width: 960px) {
a.screenshot:hover + span.hover {
display: none;
}
}
@supports not (pointer-events: auto) {
a[href$=".png"] {
position: relative;
}
a[href$=".png"]::after {
content: " ";
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
z-index: 1;
}
}
h2 ~ p, h2 ~ p + ul, input + div, div > h3 ~ * {
margin-left: 1em;
}
input + div {
margin-top: 1em;
margin-bottom: 1em;
margin-left: 1em;
}
h3 {
display: inline;
}
input:checked + div > h3 ~ * {
display: none;
}