-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
193 lines (173 loc) · 7.47 KB
/
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
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
184
185
186
187
188
189
190
191
192
193
@import url("https://fonts.googleapis.com/css2?family=Open+Sans+Condensed:wght@300;700&display=swap");
*, *::before, *::after {
padding: 0;
margin: 0 auto;
box-sizing: border-box;
}
body {
font-family: "Open Sans Condensed", sans-serif;
min-height: 100vh;
background-color: #eee;
background-size: 10px 10px;
background-image: radial-gradient(circle at 50% 50%, #ddd, #ddd 1px, transparent 1px), radial-gradient(circle at 0 0, #ddd, #ddd 1px, transparent 1px), radial-gradient(circle at 0 100%, #ddd, #ddd 1px, transparent 1px), radial-gradient(circle at 100% 0, #ddd, #ddd 1px, transparent 1px), radial-gradient(circle at 100% 100%, #ddd, #ddd 1px, transparent 1px);
color: #333;
}
:root {
--clr-border: #333;
--AnimationLength: 0px;
}
.content {
width: 100%;
max-width: 960px;
padding: 2em 2em 10em;
}
h2 {
margin: 1em auto;
text-decoration: underline;
-webkit-text-decoration-color: #aaa;
text-decoration-color: #aaa;
}
h2 span {
color: #777;
}
p {
margin: 2em auto;
font-weight: bold;
}
hr {
height: 3px;
border: none;
margin: 4em auto;
background-color: #aaa;
}
.boxes {
width: 100%;
display: grid;
grid-gap: 2em;
grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.box {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
height: 123px;
font-size: 2em;
padding: 0.5em;
line-height: 1;
background-position: 0 0, 0 0, 100% 0, 0 100%;
background-size: 3px 100%, 100% 3px, 3px 100%, 100% 3px;
background-repeat: no-repeat;
}
.box-a {
background-image: repeating-linear-gradient(0deg, var(--clr-border), var(--clr-border) 10px, transparent 10px, transparent 20px), repeating-linear-gradient(90deg, var(--clr-border), var(--clr-border) 10px, transparent 10px, transparent 20px), repeating-linear-gradient(180deg, var(--clr-border), var(--clr-border) 10px, transparent 10px, transparent 20px), repeating-linear-gradient(270deg, var(--clr-border), var(--clr-border) 10px, transparent 10px, transparent 20px);
-o-border-image: repeating-linear-gradient(0deg, var(--clr-border), var(--clr-border) 10px, transparent 10px, transparent 20px);
border-image: repeating-linear-gradient(0deg, var(--clr-border), var(--clr-border) 10px, transparent 10px, transparent 20px);
}
.box-b {
background-image: repeating-linear-gradient(45deg, var(--clr-border), var(--clr-border) 10px, transparent 10px, transparent 20px), repeating-linear-gradient(135deg, var(--clr-border), var(--clr-border) 10px, transparent 10px, transparent 20px), repeating-linear-gradient(225deg, var(--clr-border), var(--clr-border) 10px, transparent 10px, transparent 20px), repeating-linear-gradient(315deg, var(--clr-border), var(--clr-border) 10px, transparent 10px, transparent 20px);
}
.box-c {
background-image: repeating-linear-gradient(0deg, var(--clr-border), var(--clr-border) 3px, transparent 3px, transparent 6px), repeating-linear-gradient(90deg, var(--clr-border), var(--clr-border) 3px, transparent 3px, transparent 6px), repeating-linear-gradient(180deg, var(--clr-border), var(--clr-border) 3px, transparent 3px, transparent 6px), repeating-linear-gradient(270deg, var(--clr-border), var(--clr-border) 3px, transparent 3px, transparent 6px);
}
.box-d {
background-image: repeating-linear-gradient(0deg, var(--clr-border), var(--clr-border) 30px, transparent 30px, transparent 36px), repeating-linear-gradient(90deg, var(--clr-border), var(--clr-border) 30px, transparent 30px, transparent 36px), repeating-linear-gradient(180deg, var(--clr-border), var(--clr-border) 30px, transparent 30px, transparent 36px), repeating-linear-gradient(270deg, var(--clr-border), var(--clr-border) 30px, transparent 30px, transparent 36px);
}
.box-e {
background-image: linear-gradient(0deg, var(--clr-border), var(--clr-border) 25%, transparent 25%, transparent 75%, var(--clr-border) 75%), linear-gradient(90deg, var(--clr-border), var(--clr-border) 25%, transparent 25%, transparent 75%, var(--clr-border) 75%), linear-gradient(180deg, var(--clr-border), var(--clr-border) 25%, transparent 25%, transparent 75%, var(--clr-border) 75%), linear-gradient(270deg, var(--clr-border), var(--clr-border) 25%, transparent 25%, transparent 75%, var(--clr-border) 75%);
}
.box-f {
background-image: linear-gradient(0deg, transparent 15%, var(--clr-border) 15%, var(--clr-border) 85%, transparent 85%), linear-gradient(90deg, transparent 15%, var(--clr-border) 15%, var(--clr-border) 85%, transparent 85%), linear-gradient(180deg, transparent 15%, var(--clr-border) 15%, var(--clr-border) 85%, transparent 85%), linear-gradient(270deg, transparent 15%, var(--clr-border) 15%, var(--clr-border) 85%, transparent 85%);
}
.box-g {
background-image: repeating-linear-gradient(0deg, var(--clr-border), var(--clr-border) 10px, transparent 20px, transparent 30px, var(--clr-border) 40px), repeating-linear-gradient(90deg, var(--clr-border), var(--clr-border) 10px, transparent 20px, transparent 30px, var(--clr-border) 40px), repeating-linear-gradient(180deg, var(--clr-border), var(--clr-border) 10px, transparent 20px, transparent 30px, var(--clr-border) 40px), repeating-linear-gradient(270deg, var(--clr-border), var(--clr-border) 10px, transparent 20px, transparent 30px, var(--clr-border) 40px);
}
.box-h {
background-image: repeating-linear-gradient(0deg, var(--clr-border), var(--clr-border) 10px, transparent 10px, transparent 20px), repeating-linear-gradient(90deg, var(--clr-border), var(--clr-border) 10px, transparent 10px, transparent 20px), repeating-linear-gradient(180deg, var(--clr-border), var(--clr-border) 10px, transparent 10px, transparent 20px), repeating-linear-gradient(270deg, var(--clr-border), var(--clr-border) 10px, transparent 10px, transparent 20px);
background-size: 3px calc(100% + 20px), calc(100% + 20px) 3px, 3px calc(100% + 20px), calc(100% + 20px) 3px;
-webkit-animation: boxBorderAnimation 1s infinite linear;
animation: boxBorderAnimation 1s infinite linear;
}
@-webkit-keyframes boxBorderAnimation {
from {
background-position: 0 0, -20px 0, 100% -20px, 0 100%;
}
to {
background-position: 0 -20px, 0 0, 100% 0, -20px 100%;
}
}
@keyframes boxBorderAnimation {
from {
background-position: 0 0, -20px 0, 100% -20px, 0 100%;
}
to {
background-position: 0 -20px, 0 0, 100% 0, -20px 100%;
}
}
.generator {
display: grid;
grid-template-columns: repeat(2, 1fr);
grid-gap: 3em;
}
@media (max-width: 768px) {
.generator {
grid-template-columns: 1fr;
}
}
form {
width: 100%;
}
form label {
display: block;
font-weight: bold;
width: 100%;
}
form label + label {
margin-top: 1.5em;
}
form .input {
display: block;
width: 100%;
}
.result {
width: 100%;
height: 100%;
padding: 1em;
line-height: 1.2;
background-repeat: no-repeat;
}
.result span {
display: block;
padding-left: 4em;
text-indent: -2em;
margin: 0.5em auto;
}
@-webkit-keyframes borderAnimation {
from {
background-position: 0 0, var(--AnimationLength) 0, 100% var(--AnimationLength), 0 100%;
}
to {
background-position: 0 var(--AnimationLength), 0 0, 100% 0, var(--AnimationLength) 100%;
}
}
@keyframes borderAnimation {
from {
background-position: 0 0, var(--AnimationLength) 0, 100% var(--AnimationLength), 0 100%;
}
to {
background-position: 0 var(--AnimationLength), 0 0, 100% 0, var(--AnimationLength) 100%;
}
}
.twitterLink {
position: fixed;
bottom: 0.5em;
right: 0.5em;
}
.twitterLink img {
width: 2em;
filter: grayscale(100%);
transition: filter 0.25s;
}
.twitterLink img:hover {
filter: grayscale(0%);
}