-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.css
290 lines (241 loc) · 6.59 KB
/
main.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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
:root {
--main-color: #baad84;
--light-color:#f3f3f3;
--background-color: #ffffff0a;
--table-background-color: rgb(22, 22, 22);
--text-color: rgb(155, 155, 155); /* Text color */
}
body, html {
margin: 0;
padding: 0;
overscroll-behavior: none;
overflow: hidden;
font-family: 'Karla', sans-serif;
}
/* Keyframes for the spinning effect */
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
@keyframes slideOut {
from {
transform: translate(0px);
}
to {
transform: translate(-90%);
}
}
@keyframes slideIn {
from {
transform: translate(-90%);
}
to {
transform: translate(0px);
}
}
@keyframes fadeAway {
from {
opacity: 100;
}
to {
opacity: 0;
}
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 100;
}
}
/* Styles for the loading spinner container */
.loading {
z-index: 1000; /* To ensure it stays above other content */
position: fixed;
flex-direction: column;
align-items: center;
display: flex;
justify-content: space-evenly; /* Aligns children vertically in the center */
height: 100vh; /* Adjust height to viewport */
width: 100vw; /* Adjust height to viewport */
background-color: #ffffff0a; /* Adjust color as needed */
backdrop-filter: blur(10px); /* Blur effect */
-webkit-backdrop-filter: blur(10px); /* For Safari */
}
.loading.off {
animation: fadeAway 2s forwards; /* 10-second animation to hide */
z-index: -1;
}
/* Styles for the loading spinner itself */
#loading-spinner {
border: 6px solid var(--light-color); /* Light grey border */
border-top: 6px solid var(--main-color); /* Blue color for the spinning part */
border-radius: 50%;
width: 60px;
height: 60px;
animation: spin 2s linear infinite;
}
.logoload{
width: 50%;
}
.sidebar {
transform: translate(-100%);
padding-right: 5%;
position: fixed;
display: flex;
flex-direction: column;
justify-content: center; /* Aligns children vertically in the center */
align-items: center; /* Centers children horizontally */
width: 30%; /* Adjust as needed */
height: 100vh; /* Adjust height to viewport */
clip-path: polygon(0 0, 90% 0%,90% 40%,calc(90% + 50px) 42%, calc(90% + 50px) 58%, 90% 60%, 90% 100%,0 100%);
background-color: var(--background-color); /* Adjust color as needed */
z-index: 1000; /* To ensure it stays above other content */
backdrop-filter: blur(10px); /* Blur effect */
-webkit-backdrop-filter: blur(10px); /* For Safari */
}
.sidebarbutton {
position: fixed;
display: flex;
left:90%;
flex-direction: column;
justify-content: center; /* Aligns children vertically in the center */
align-items: center; /* Centers children horizontally */
height: 200px; /* Adjust height to viewport */
background-color: var(--background-color); /* Adjust color as needed */
z-index: 1000; /* To ensure it stays above other content */
display: flex;
justify-content: center;
align-items: center;
border-top-right-radius: 10px; /* Adjust as needed for rounded top right edge */
border-bottom-right-radius: 10px;
}
.logo {
width: 80%; /* Adjust as needed */
margin-bottom: 10px;
}
table {
width: 80%;
border-collapse: collapse;
background-color: var(--table-background-color);
border-radius: 10px; /* Rounded corners for the table */
overflow: hidden; /* Ensures the rounded corners are visible */
box-shadow: 0 0 10px rgba(43, 43, 43, 0.5); /* Optional: Adds shadow for depth */
margin-bottom: 20px; /* Space below the table */
color: var(--text-color);
font-weight: lighter;
}
table, th, td {
border: 1px solid #2a2a2a;
padding: 5px;
text-align: left;
}
table th[colspan="3"] {
text-align: center;
color: var(--main-color);
padding: 10px;
font-size: 1.2em;
}
th, td {
padding: 10px; /* Padding inside cells */
text-align: left; /* Align text to the left */
}
thead {
background: linear-gradient(145deg, #1a1a1a, #2e2e2e); /* Gradient for header */
}
tbody tr:nth-child(odd) {
background: #1a1a1a; /* Slightly lighter rows for better readability */
}
tbody tr:hover {
background: #333; /* Hover effect */
}
.sidebar.slide-out {
animation: slideIn 2s forwards; /* 10-second animation to hide */
}
.sidebar.slide-in {
animation: slideOut 2s forwards; /* 10-second animation to show */
}
.chevron {
width: 50px;
height: 50px;
background-color: transparent;
border: none;
cursor: pointer;
position: relative;
color: var(--main-color);
}
.chevron:before, .chevron:after {
/* existing styles... */
transform: translate(-50%, -50%) rotate(-45deg); /* Chevron pointing right */
}
.chevron.open:before, .chevron.open:after {
transform: translate(-50%, -50%) rotate(135deg); /* Chevron pointing left */
}
#toggleButton i {
/* Rotate icon for open state */
transition: transform 0.3s ease;
font-size: 30px;
}
#toggleButton.open i {
transform: rotate(180deg); /* Adjust rotation for desired direction */
}
#material-selector-container {
position: absolute;
opacity: 0;
bottom: 10px; /* Adjust as needed */
right: 10px; /* Adjust as needed */
z-index: 100; /* Ensure it's on top of the canvas */
display: flex;
flex-direction: column;
background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent black background */
padding: 10px;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
align-items: stretch;
color: var(--text-color);
}
#material-selector-container.on {
animation: fadeIn 3s forwards;
}
.material-select-row span {
margin-right: 10px;
}
.material-select-row {
display: flex;
justify-content: space-between;
align-items: center;
margin: 10px 0;
}
.circle-container {
display: flex;
}
.material-color-circle {
width: 20px;
height: 20px;
border-radius: 50%;
margin-left: 5px; /* Add space between circles */
border: 1px solid var(--text-color);
cursor: pointer;
}
@media (max-width: 1400px) {
.sidebar {
width: 100%;
padding-right: 0%;
/* You may want to add additional styles for the smaller screen, like changing the font size or padding */
}
.sidebar.slide-out{
clip-path: polygon(0 0, 100% 0%,100% 100%,0 100%);
padding-right: 0%;
}
#material-selector-container {
left: 10px;
}
.logoload{
width: 100%;
}
}