-
Notifications
You must be signed in to change notification settings - Fork 1
/
style.css
140 lines (134 loc) · 2.81 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
@import url('https://fonts.googleapis.com/css2?family=Sono:wght@400;500;600;700;800&display=swap');
:root{
font-family: 'Sono', sans-serif;
--color-1: #000000;
--color-grey-1: #bfbfbf;
--color-grey-2: #f3f3f3;
--color-blue: #139ef5;
--color-red-1: #e3155a;
--color-red-2: #f4e1e1;
--color-button: #000000;
}
:root *{
box-sizing: border-box;
}
html{
font-size: 28px;
}
input,button{
font-size: 1rem;
}
body{
padding: 0;
margin: 0;
}
.weight-container{
position: absolute;
top: 1rem;
left: 50%;
transform: translateX(-50%);
background-color: var(--color-blue);
border-radius: 1rem;
font-size: 0.8rem;
padding: 0.25rem 0.4rem;
color: white;
display: none;
text-align: center;
}
button{
display: flex;
justify-content: center;
align-items: center;
border-radius: 50%;
background-color: rgb(255, 255, 255);
border: 2px solid var(--color-button);
font-weight: 600;
box-shadow: 0px 5px 4px 0px rgba(120, 120, 120, 0.31);
transition: 0.2s ease all;
transform-origin: center;
color: var(--color-button);
}
button *{
color: var(--color-button);
}
button:hover{
background-color: rgb(244, 244, 244);
}
button:active{
background-color: rgb(255, 255, 255);
box-shadow: 0px 3px 2px 0px rgba(82, 82, 82, 0.302);
transform: scale(0.95);
}
.sort-tree{
top: 1rem;
right: 1rem;
--color-button: var(--color-blue);
}
.clear-tree{
top: 3.5rem;
right: 1rem;
--color-button: var(--color-grey-1);
}
.info-button{
bottom: 1rem;
left: 1rem;
--color-button: var(--color-grey-1);
}
button .check-icon,
button .close-icon{
fill: var(--color-button);
}
.add-node{
top: 1rem;
right: 3.5rem;
}
.add-node,
.sort-tree,
.clear-tree,
.info-button{
position: absolute;
height: 2rem;
width: 2rem;
margin: 0;
padding: 0;
}
.delete-dropzone{
position: absolute;
bottom: 1rem;
right: 1rem;
height: 3.5rem;
width: 4.5rem;
background-color: var(--color-grey-2);
border-radius: 10px;
display: flex;
justify-content: center;
align-items: center;
transform-origin: 100% 100%;
transition: 0.3s ease all;
}
.delete-dropzone--inside{
height: 90%;
width: 90%;
border: dashed 3px var(--color-grey-1);
background-color: transparent;
border-radius: 10px;
display: flex;
justify-content: center;
align-items: center;
}
.delete-dropzone.droppable{
background-color: var(--color-red-2);
/* transform: scale(1.02); */
}
.delete-dropzone.droppable.hover{
transform: scale(1.05);
}
.delete-icon{
fill: var(--color-grey-1);
}
.delete-dropzone.droppable .delete-dropzone--inside{
border: dashed 3px var(--color-red-1);
}
.delete-dropzone.droppable .delete-icon{
fill: var(--color-red-1);
}