-
Notifications
You must be signed in to change notification settings - Fork 222
/
style.scss
59 lines (52 loc) · 1.01 KB
/
style.scss
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
@import '../styles/base.scss';
:root {
--color-gray: #8c97b7;
--color-blue: #1c38f1;
--color-green: #1fcdb0;
--input-height: 3rem;
}
body {
display: flex;
justify-content: center;
align-items: center;
background-color: #f9fbff;
}
.ui-form {
background: #fff;
box-shadow: 0 0.5rem 1rem #0003;
padding: 1rem;
border-radius: 0.25rem;
display: grid;
grid-template-columns: 1fr auto;
grid-template-rows: 1fr;
grid-column-gap: 1rem;
grid-template-areas: 'input button';
--color: var(--color-gray);
&:focus-within {
--color: var(--color-blue);
}
}
.ui-input {
grid-area: input;
padding: 0 1rem;
height: var(--input-height);
border: 2px solid var(--color);
border-radius: 0.25rem;
outline: none;
}
.ui-button {
grid-area: button;
border: none;
padding: 0 1rem;
color: white;
font-weight: bold;
border-radius: 0.25rem;
height: var(--input-height);
background-color: var(--color);
}
[data-show]:not([data-active]) {
display: none;
}
.ui-form {
overflow: hidden;
}