Spaces:
Sleeping
Sleeping
francescoKrnl
commited on
Commit
•
546e90b
1
Parent(s):
ade53d7
Update style.css
Browse files
style.css
CHANGED
@@ -1,218 +1,117 @@
|
|
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 |
#fullscreen {
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
/*
|
66 |
-
|
67 |
-
|
68 |
-
justify-content: center; /* Center horizontally */
|
69 |
-
align-items: center; /* Center vertically */
|
70 |
-
}
|
71 |
-
|
72 |
-
/* this is the "UNDO_BUTTON, X_BUTTON" */
|
73 |
-
div.svelte-1030q2h{
|
74 |
-
width: 30px;
|
75 |
-
height: 30px;
|
76 |
-
display: none;
|
77 |
-
}
|
78 |
-
|
79 |
-
|
80 |
-
#component-5 > div{
|
81 |
-
border: 0px;
|
82 |
-
box-shadow: none;
|
83 |
-
}
|
84 |
-
|
85 |
-
#cb-eraser, #cb-line{
|
86 |
-
display: none;
|
87 |
-
}
|
88 |
-
|
89 |
-
/* eraser text */
|
90 |
-
#cb-eraser > label > span{
|
91 |
-
display: none;
|
92 |
-
}
|
93 |
-
#cb-line > label > span{
|
94 |
-
display: none;
|
95 |
-
}
|
96 |
-
|
97 |
-
|
98 |
-
.button-row {
|
99 |
-
display: flex;
|
100 |
-
justify-content: center;
|
101 |
-
align-items: center;
|
102 |
-
height: 50px;
|
103 |
-
border: 0px;
|
104 |
-
}
|
105 |
-
|
106 |
-
#my-toggle-pencil{
|
107 |
-
background-image: url("https://icons.getbootstrap.com/assets/icons/pencil.svg");
|
108 |
-
background-color: white;
|
109 |
-
background-size: cover;
|
110 |
-
margin: 0px;
|
111 |
-
box-shadow: none;
|
112 |
-
width: 40px;
|
113 |
-
height: 40px;
|
114 |
-
}
|
115 |
-
|
116 |
-
#my-toggle-pencil.clicked{
|
117 |
-
background-image: url("https://icons.getbootstrap.com/assets/icons/pencil-fill.svg");
|
118 |
-
transform: scale(0.98);
|
119 |
-
background-color: gray;
|
120 |
-
background-size: cover;
|
121 |
-
/* background-size: 95%;
|
122 |
-
background-position: center; */
|
123 |
-
/* border: 2px solid #000; */
|
124 |
-
margin: 0px;
|
125 |
-
box-shadow: none;
|
126 |
-
width: 40px;
|
127 |
-
height: 40px;
|
128 |
-
}
|
129 |
-
|
130 |
-
|
131 |
-
#my-toggle-eraser{
|
132 |
-
background-image: url("https://icons.getbootstrap.com/assets/icons/eraser.svg");
|
133 |
-
background-color: white;
|
134 |
-
background-color: white;
|
135 |
-
background-size: cover;
|
136 |
-
margin: 0px;
|
137 |
-
box-shadow: none;
|
138 |
-
width: 40px;
|
139 |
-
height: 40px;
|
140 |
-
}
|
141 |
-
|
142 |
-
#my-toggle-eraser.clicked{
|
143 |
-
background-image: url("https://icons.getbootstrap.com/assets/icons/eraser-fill.svg");
|
144 |
-
transform: scale(0.98);
|
145 |
-
background-color: gray;
|
146 |
-
background-size: cover;
|
147 |
-
margin: 0px;
|
148 |
-
box-shadow: none;
|
149 |
-
width: 40px;
|
150 |
-
height: 40px;
|
151 |
-
}
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
#my-button-undo{
|
156 |
-
background-image: url("https://icons.getbootstrap.com/assets/icons/arrow-counterclockwise.svg");
|
157 |
-
background-color: white;
|
158 |
-
background-size: cover;
|
159 |
-
margin: 0px;
|
160 |
-
box-shadow: none;
|
161 |
-
width: 40px;
|
162 |
-
height: 40px;
|
163 |
-
}
|
164 |
-
|
165 |
-
#my-button-clear{
|
166 |
-
background-image: url("https://icons.getbootstrap.com/assets/icons/x-lg.svg");
|
167 |
-
background-color: white;
|
168 |
-
background-size: cover;
|
169 |
-
margin: 0px;
|
170 |
-
box-shadow: none;
|
171 |
-
width: 40px;
|
172 |
-
height: 40px;
|
173 |
-
|
174 |
-
}
|
175 |
-
|
176 |
-
|
177 |
-
#my-button-down{
|
178 |
-
background-image: url("https://icons.getbootstrap.com/assets/icons/arrow-down.svg");
|
179 |
-
background-color: white;
|
180 |
-
background-size: cover;
|
181 |
-
margin: 0px;
|
182 |
-
box-shadow: none;
|
183 |
-
width: 40px;
|
184 |
-
height: 40px;
|
185 |
-
|
186 |
-
}
|
187 |
-
|
188 |
-
.pad2{
|
189 |
-
padding: 2px;
|
190 |
-
background-color: white;
|
191 |
-
border: 2px solid #000;
|
192 |
-
margin: 10px;
|
193 |
-
display: flex;
|
194 |
-
justify-content: center; /* Center horizontally */
|
195 |
-
align-items: center; /* Center vertically */
|
196 |
-
}
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
#output_image, #input_image{
|
202 |
-
border-radius: 0px;
|
203 |
-
border: 5px solid #000;
|
204 |
-
border-width: none;
|
205 |
-
}
|
206 |
-
|
207 |
-
|
208 |
-
#output_image > img{
|
209 |
-
border: 5px solid #000;
|
210 |
-
border-radius: 0px;
|
211 |
-
border-width: none;
|
212 |
-
}
|
213 |
-
|
214 |
-
#input_image > div.image-container.svelte-p3y7hu > div.wrap.svelte-yigbas > canvas:nth-child(1){
|
215 |
-
border: 5px solid #000;
|
216 |
-
border-radius: 0px;
|
217 |
-
border-width: none;
|
218 |
-
}
|
|
|
1 |
+
* {
|
2 |
+
margin: 0;
|
3 |
+
padding: 0;
|
4 |
+
box-sizing: border-box;
|
5 |
+
font-family: sans-serif;
|
6 |
+
}
|
7 |
+
body {
|
8 |
+
height: 100vh;
|
9 |
+
|
10 |
+
padding: 5% 5% 0% 5%;
|
11 |
+
display: flex;
|
12 |
+
flex-direction: column;
|
13 |
+
background-color: #121212;
|
14 |
+
background-image: url("assets/bg.png");
|
15 |
+
background-size: cover;
|
16 |
+
}
|
17 |
+
#header_block {
|
18 |
+
display: flex;
|
19 |
+
justify-content: space-between;
|
20 |
+
align-items: center;
|
21 |
+
}
|
22 |
+
#main_block {
|
23 |
+
flex-grow: 1;
|
24 |
+
display: flex;
|
25 |
+
flex-direction: column;
|
26 |
+
}
|
27 |
+
|
28 |
+
#board_row {
|
29 |
+
flex-grow: 1;
|
30 |
+
display: flex;
|
31 |
+
align-items: center;
|
32 |
+
justify-content: space-evenly;
|
33 |
+
}
|
34 |
+
|
35 |
+
#radio_row {
|
36 |
+
align-self: center;
|
37 |
+
}
|
38 |
+
|
39 |
+
.image_container {
|
40 |
+
margin: 26px;
|
41 |
+
position: relative;
|
42 |
+
display: inline-block;
|
43 |
+
text-align: center;
|
44 |
+
aspect-ratio: 1;
|
45 |
+
flex-grow: 1;
|
46 |
+
border: 2px solid #2c2c2c;
|
47 |
+
background-color: #121212;
|
48 |
+
border-radius: 30px;
|
49 |
+
}
|
50 |
+
#draw_cta {
|
51 |
+
position: absolute;
|
52 |
+
top: -91px;
|
53 |
+
right: -124px;
|
54 |
+
}
|
55 |
+
#eraser {
|
56 |
+
position: absolute;
|
57 |
+
top: calc(50% - 31px);
|
58 |
+
right: -31px;
|
59 |
+
padding: 16px;
|
60 |
+
border-radius: 50%;
|
61 |
+
border: none;
|
62 |
+
background-color: rgba(255, 255, 255, 0.2);
|
63 |
+
}
|
64 |
+
#eraser_icon {
|
65 |
+
display: inline-block;
|
66 |
+
width: 30px;
|
67 |
+
height: 30px;
|
68 |
+
background-image: url(assets/eraser.png);
|
69 |
+
background-size: cover;
|
70 |
+
}
|
71 |
+
#footer_block {
|
72 |
+
position: relative;
|
73 |
+
display: flex;
|
74 |
+
flex-direction: row;
|
75 |
+
justify-content: center;
|
76 |
+
margin-top: 30px;
|
77 |
+
margin-bottom: 5%;
|
78 |
+
}
|
79 |
+
input[type="radio"] {
|
80 |
+
visibility: hidden;
|
81 |
+
}
|
82 |
+
input[type="radio"] + label {
|
83 |
+
display: inline-block;
|
84 |
+
font-weight: normal;
|
85 |
+
font-size: 20px;
|
86 |
+
color: white;
|
87 |
+
padding: 10px 20px;
|
88 |
+
border-radius: 48px;
|
89 |
+
border: 1px solid #494949;
|
90 |
+
}
|
91 |
+
input[type="radio"]:checked + label {
|
92 |
+
background-color: #c0c0af;
|
93 |
+
color: black;
|
94 |
}
|
95 |
|
96 |
#fullscreen {
|
97 |
+
transition: 150ms;
|
98 |
+
position: absolute;
|
99 |
+
bottom: 0;
|
100 |
+
right: 0;
|
101 |
+
|
102 |
+
margin: auto;
|
103 |
+
height: fit-content;
|
104 |
+
width: fit-content;
|
105 |
+
background-color: rgba(255, 255, 255, 0.2);
|
106 |
+
border-color: transparent;
|
107 |
+
border-radius: 50%;
|
108 |
+
padding: 16px;
|
109 |
+
display: flex;
|
110 |
+
justify-content: center;
|
111 |
+
align-items: center;
|
112 |
+
outline: none;
|
113 |
+
cursor: pointer;
|
114 |
+
}
|
115 |
+
/* .fullscreen:hover {
|
116 |
+
background-color: rgba(255, 255, 255, 1);
|
117 |
+
} */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|