-
Notifications
You must be signed in to change notification settings - Fork 3
/
style.css
136 lines (119 loc) · 2.26 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
:root {
--main: #3F0071;
--second: #FB2576;
--third: #332FD0;
--contrast: #0002A1;
}
/* * {outline: solid red;} */
body {
overflow: hidden;
width: 100vw;
height: 100vh;
background-color: var(--main);
display: grid;
justify-items: center;
align-items: flex-start;
margin: unset;
}
header {
align-self: center;
}
h1 {
color: var(--main);
font-weight: 500;
-webkit-text-stroke-width: 2px;
-webkit-text-stroke-color: var(--second);
}
main {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
form {
width: auto;
margin: 3vh 0;
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
column-gap: 2vmax;
}
input[type="number"] {
transition-property: background-color, color, border-color;
transition-duration: 500ms;
width: 25vmin;
height: 6vmin;
background-color: var(--second);
color: var(--main);
border-radius: 2em;
border-style: solid;
border-color: var(--contrast);
border-width: .25em;
font-size: 2em;
text-align: start;
padding: .25em 1em;
}
input[type="number"]:hover,
input[type="number"]:focus {
background-color: var(--main);
color: var(--second);
border-color: var(--second);
outline: none;
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
appearance: none;
margin: 0;
}
form > button {
background-color: var(--second);
color: var(--main);
border-color: var(--contrast);
}
form > button:hover {
background-color: var(--main);
color: var(--second);
border-color: var(--second);
}
div {
margin: 1.5vh 0;
display: flex;
flex-direction: row;
justify-content: space-evenly;
align-items: center;
column-gap: 2vmax;
}
aside {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
button {
transition-property: scale, color, border-color, border-width;
transition-duration: 250ms;
aspect-ratio: 1/1;
width: 10vmin;
scale: 1;
background-color: var(--contrast);
color: var(--second);
border-radius: 50%;
border-style: solid;
border-width: .25em;
border-color: var(--third);
font-size: 2em;
text-align: center;
}
button:hover,
button:active {
color: var(--second);
border-width: .3em;
border-color: var(--second);
}
button:hover {
scale: 1.25;
}
button:active {
scale: .75;
}