-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
123 lines (113 loc) · 2.11 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
/* FONT */
@font-face {
font-family: "Rubik";
src: url("/fonts/static/Rubik-Medium.ttf") format("truetype");
font-weight: normal;
}
/* CUSTOM_PROPERTIES */
:root {
--bg-color: #a7adc6;
--bg-gradient: radial-gradient(
circle,
rgba(0, 0, 0, 0.5) 0 10%,
transparent 15%
);
--bg-size: 1rem 1rem;
--bg-position: 100% 50%;
--main-color: #2c1320;
--secondary-color: #8a7891;
--text-color-dark: #000;
--text-color-light: #fff;
--border: 1px solid var(--secondary-color);
--transition: border-color 300ms ease-out, background-color 300ms ease-out,
color 300ms ease-out;
}
/* RESET */
*,
*::after,
*::before {
font-family: "Rubik", sans-serif;
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
width: 100%;
height: 100dvh;
user-select: none;
}
ul {
list-style: none;
}
button,
input {
border: none;
outline: none;
}
/* STYLES */
body {
background-color: var(--bg-color);
background-image: var(--bg-gradient);
background-size: var(--bg-size);
background-position: var(--bg-position);
overflow: hidden;
}
#app {
width: 350px;
margin: 10% auto;
text-align: center;
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: center;
gap: 2rem;
}
#title {
font-size: clamp(2rem, 10vw, 3rem);
color: var(--main-color);
background: var(--bg-color);
}
#input-form {
display: flex;
flex-direction: column;
align-self: stretch;
gap: 1rem;
}
#input-form input,
#input-form button,
#item-list .item {
padding: 0.75rem;
border-radius: 0.5rem;
text-align: center;
font-size: 1rem;
background-color: var(--bg-color);
border: var(--border);
color: var(--text-color-dark);
transition: var(--transition);
}
#input-form input:focus-visible,
#input-form button:active {
border-color: var(--main-color);
}
#input-form input::placeholder {
color: #000a;
}
#input-form button {
cursor: pointer;
}
#input-form button:hover {
background-color: var(--main-color);
color: #fff;
}
#item-list {
display: flex;
flex-wrap: wrap;
gap: 1rem;
}
#item-list .item {
flex-grow: 1;
background-color: var(--main-color);
color: var(--text-color-light);
padding-inline: 1.5rem;
cursor: pointer;
}