-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
146 lines (141 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
137
138
139
140
141
142
143
144
145
146
body {
text-align: center;
height: 100vh;
margin: 0;
padding: 0;
}
/* Cards */
.card {
display: flex;
width: 50%;
margin: 10px auto 0px auto;
padding: 5px;
text-align: left;
border-radius: 0.25rem;
background-color: var(--bg-3);
transition: 500ms;
box-sizing: border-box;
}
.card:hover {
background-color: var(--bg-2);
}
.card div {
flex: 1;
display: flex;
flex-direction: column;
justify-content: center;
}
#preview {
transition: 500ms;
}
#title {
display: inline-block;
width: calc(50% - 66px);
max-width: 300px;
}
#desc {
width: 50%;
max-width: 370px;
resize: none;
}
#edit {
width: 25vw;
}
#edit div {
display: flex;
flex-direction: column;
}
textarea {
resize: none;
}
.appear {
animation-name: appear;
animation-duration: 1s;
animation-iteration-count: 1;
}
@keyframes appear {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
/* Order */
.order {
display: flex;
align-items: center;
width: 50%;
margin-inline: auto;
box-sizing: border-box;
}
.order p {
flex: 1;
text-align: left;
}
.order div {
display: flex;
width: fit-content;
background-color: var(--bg-3);
padding: 2px 6px 2px 2px;
border-radius: 0.5rem;
cursor: pointer;
transition: 500ms;
}
.order div:hover {
background-color: var(--bg-2);
}
/* Data menu */
.data-menu {
position: fixed;
left: 0;
bottom: 0;
padding: 10px 15px;
border: 5px var(--bg-1) solid;
border-left: none;
border-bottom: none;
border-radius: 0px 1rem 0px 0px;
background-color: var(--bg-3);
}
/* Custom cehckbox */
.container {
display: block;
position: relative;
padding-left: 35px;
cursor: pointer;
font-size: 22px;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.container input {
position: absolute;
opacity: 0;
cursor: pointer;
height: 0;
width: 0;
}
.checkmark {
position: absolute;
top: 50%;
transform: translateY(-50%);
left: 5px;
height: 20px;
width: 20px;
background-color: var(--text-1);
border-radius: 0.25rem;
transition: 500ms;
}
.card:hover input ~ .checkmark {
background-color: var(--text-2);
}
/* Mobile devices */
@media (max-width: 700px) {
#desc, .card, .order {
width: 90%;
}
#title {
width: calc(90% - 66px);
}
}