-
Notifications
You must be signed in to change notification settings - Fork 7
/
demo.css
86 lines (85 loc) · 1.66 KB
/
demo.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
*, *::before, *::after {
box-sizing: border-box;
}
body {
margin: 0;
font-size: 1.2em;
height: 100%;
max-width: 60ch;
background-color: rgb(24, 3, 83); color: white;
font-family: monospace;
user-select: none;
}
:link { color: rgb(138, 166, 255); }
:visited { color: rgb(206, 147, 255); }
::placeholder { color:rgb(132, 118, 175); }
header {
contain: content;
padding-top: 2ch;
display: grid;
place-items: center;
gap: 0.75ch
}
main {
contain: content;
padding: 3.5ch;
display: grid;
place-items: center;
gap: 2ch;
}
legend {
padding: 0.5ch 1ch;
font-size: 1.1em;
text-align: center;
}
label {
padding-block: 0.5ch;
}
input, textarea, select, fieldset {
border: dashed 0.3ch rgb(125, 88, 185);
border-radius: 0.5ch;
box-sizing: content-box;
font: inherit;
background: inherit;
color: inherit;
}
input:focus, textarea:focus, select:focus {
border: solid 0.3ch rgb(125, 88, 185);
outline: none;
}
fieldset {
border-style: dotted;
}
textarea {
margin-top: 0.5ch;
width: 100%;
resize: vertical;
box-sizing: border-box;
}
option {
background: initial;
color: initial;
}
input[type="number"] {
width: 8ch;
text-align: end;
}
@keyframes dancing-emoji {
from { transform: translateY(0); }
25% { transform: translateY(0.25ch); }
50% { transform: translateY(0); }
75% { transform: translateY(-0.25ch); }
to { transform: translateY(0);}
}
.dancing-emoji {
display: inline-block;
/* position: relative; */
/* animation: 1s linear 0s infinite forward dancing_emoji; */
animation-name: dancing-emoji;
animation-iteration-count: infinite;
animation-duration: 1s;
animation-timing-function: step-end;
}
.dancing-emoji:nth-child(2n) {
animation-delay: 0.25s;
}