-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathcss.php
118 lines (116 loc) · 2.33 KB
/
css.php
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
<?php
$order = range(1, 24);
srand($year);
shuffle($order);
$orderstring = implode(',',$order);
for ($k = 0; $k < 24; $k++) : ?>
li:nth-of-type(<?=$k+1?>) {
order: <?=$order[$k]?>;
} <?php
endfor ?>
html {
--bgcolor: #e6f2f7;
--linkcolor: #306f91;
--bordercolor: #c32e04;
background-color: var(--bgcolor);
}
h1 {
font-size: 3rem;
margin: 1rem auto;
padding: 5rem 0 2rem;
text-align: center;
}
h1 a {
text-decoration: none;
color: inherit;
padding: 6rem 0 2rem calc(126px + 1rem);
background-image: url(Selfhtml-nico.png);
background-position: left center;
background-repeat: no-repeat;
}
span.self {
text-transform: uppercase;
}
ol {
display: grid;
grid-gap: 1rem;
max-width: 90rem;
margin: 1rem auto;
padding: 0;
counter-reset: my-awesome-counter;
list-style: none;
}
@media (min-width: 30rem) {
ol {
grid-template-columns: repeat(2, 1fr);
grid-template-rows: repeat(12, 1fr);
}
}
@media (min-width: 50rem) {
ol {
grid-template-columns: repeat(4, 1fr);
grid-template-rows: repeat(6, 1fr);
}
}
li {
padding: 0;
border: thin solid var(--bordercolor);
counter-increment: my-awesome-counter;
position: relative;
display: flex;
}
li::after {
--size: 2rem;
content: counter(my-awesome-counter);
position: absolute;
color: var(--bgcolor);
font-size: calc(var(--size) * .75);
font-weight: bold;
right: calc(var(--size) * .25);
top: calc(var(--size) * .25);
line-height: var(--size);
width: var(--size);
height: var(--size);
padding: calc(var(--size) * .2);
transform: rotate(-10deg);
background-color: var(--bordercolor);
border-radius: 50%;
text-align: center;
box-shadow: calc(var(--size) * .05) calc(var(--size) * .05) 0 #999;
}
li > a {
text-decoration: none;
color: var(--linkcolor);
padding: 1rem;
flex: 1 1 auto;
}
li > a > :first-child {
margin-top: 0;
}
li > a > :last-child {
margin-bottom: 0;
}
li > .donate, li > .coming_soon {
margin: 0;
align-self: center;
text-align: center;
}
li > .donate::after, li > .coming_soon::after {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
}
li > :not(.open) {
color: var(--bgcolor);
transition: color ease .5s;
}
li > :not(.open):hover, li > :not(.open):focus {
color: var(--linkcolor);
transition: color ease .5s;
}
li > .coming_soon:hover {
color: inherit;
}