-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.css
194 lines (192 loc) · 4.8 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
/* -
-*-~*~-*-*-~*~-*-*-~*~* |
●▬▬▬▬▬▬▬๑۩۩๑▬▬▬▬▬▬▬●
Made by ~
AndyMagwayer
앤디 마그웨이어
●▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬●
──────▄▀▄─────▄▀▄
─────▄█░░▀▀▀▀▀░░█▄
─▄▄──█░░░░░░░░░░░█──▄▄
█▄▄█─█░░▀░░┬░░▀░░█─█▄▄█
-*-~*~-*-*-~*~-*-*-~*~* |
- */
body, html {
margin: 0;
padding: 0;
font-family: "Roboto", sans-serif;
}
@keyframes dash {
to {
stroke-dashoffset: 0;
}
}
.tdc-main {
height: 100vh;
width: 100%;
}
.tdc-main-left {
width: 20%;
float: left;
height: 100%;
color: white;
background: rgba(0, 0, 0, 0.9);
box-shadow: 0 0 11px 1px rgba(0, 0, 0, 0.4);
}
.tdc-main-left-wrapper {
height: 100%;
}
.tdc-main-left-wrapper-info {
display: block;
padding: 10px;
}
.tdc-main-left-wrapper-info .tdc-info-title {
font-size: 25px;
font-weight: bold;
}
.tdc-main-left-wrapper-info .tdc-info-description {
font-size: 20px;
}
.tdc-main-right {
position: relative;
width: 80%;
float: left;
height: 100%;
}
.tdc-main-right-filter {
position: absolute;
left: 0;
width: 50%;
height: 100%;
}
.tdc-main-right-filter-item {
width: 50%;
display: inline-block;
padding: 2px;
height: calc(100vh / 18.5);
border: 1px solid grey;
border-radius: 0 2px 2px 0;
opacity: 0.3;
transition: all 0.2s;
box-sizing: border-box;
text-align: center;
transform: scale(1);
transform-origin: left;
line-height: calc(100vh / 21);
}
.tdc-main-right-filter-item.active {
opacity: 1;
color: white;
border-color: transparent;
transform: scale(1.1);
}
.tdc-main-right-filter-item.active.frontal_lobe {
background: #00bcd4;
}
.tdc-main-right-filter-item.active.temporal_lobe {
background: #7e7acf;
}
.tdc-main-right-filter-item.active.occipital_lobe {
background: #ffc446;
}
.tdc-main-right-filter-item.active.cerebellum {
background: #00aa7f;
}
.tdc-main-right-filter-item.active.parietal_lobe {
background: #e497a4;
}
.tdc-main-right-filter-item.active.brain_stem {
background: #b81434;
}
.tdc-main-right-demo {
width: 100%;
height: 100%;
}
.tdc-main-right-demo-brain {
position: relative;
float: right;
right: 100px;
width: 420px;
height: 450px;
top: calc(50% - 450px/2);
display: block;
}
.tdc-main-right-demo-brain:hover svg {
opacity: 0.5;
}
.tdc-main-right-demo-brain .tdc-brain-part {
position: absolute;
cursor: pointer;
}
.tdc-main-right-demo-brain .tdc-brain-part svg {
width: 200px;
fill: white;
stroke: black;
transform: scale(1);
transition: all 0.5s;
}
.tdc-main-right-demo-brain .tdc-brain-part svg path {
pointer-events: all;
stroke-dasharray: 1000;
stroke-dashoffset: 1000;
animation: dash 2s linear forwards;
}
.tdc-main-right-demo-brain .tdc-brain-part:hover svg, .tdc-main-right-demo-brain .tdc-brain-part.active svg {
transform: scale(1.5);
opacity: 1;
stroke: #fff;
}
.tdc-main-right-demo-brain .tdc-frontal-lobe {
top: 0;
left: 0;
}
.tdc-main-right-demo-brain .tdc-frontal-lobe:hover svg, .tdc-main-right-demo-brain .tdc-frontal-lobe.active svg {
fill: #00bcd4;
}
.tdc-main-right-demo-brain .tdc-cerebellum {
top: 235px;
left: 215px;
}
.tdc-main-right-demo-brain .tdc-cerebellum svg {
width: 160px;
}
.tdc-main-right-demo-brain .tdc-cerebellum:hover svg, .tdc-main-right-demo-brain .tdc-cerebellum.active svg {
fill: #00aa7f;
}
.tdc-main-right-demo-brain .tdc-occipital-lobe {
top: 100px;
left: 280px;
}
.tdc-main-right-demo-brain .tdc-occipital-lobe svg {
width: 140px;
}
.tdc-main-right-demo-brain .tdc-occipital-lobe:hover svg, .tdc-main-right-demo-brain .tdc-occipital-lobe.active svg {
fill: #ffc446;
}
.tdc-main-right-demo-brain .tdc-parietal-lobe {
top: 0;
left: 180px;
}
.tdc-main-right-demo-brain .tdc-parietal-lobe:hover svg, .tdc-main-right-demo-brain .tdc-parietal-lobe.active svg {
fill: #e497a4;
}
.tdc-main-right-demo-brain .tdc-temporal-lobe {
top: 140px;
left: 95px;
}
.tdc-main-right-demo-brain .tdc-temporal-lobe svg {
width: 220px;
}
.tdc-main-right-demo-brain .tdc-temporal-lobe:hover svg, .tdc-main-right-demo-brain .tdc-temporal-lobe.active svg {
fill: #7e7acf;
}
.tdc-main-right-demo-brain .tdc-brain-stem {
top: 280px;
left: 180px;
}
.tdc-main-right-demo-brain .tdc-brain-stem svg {
width: 140px;
}
.tdc-main-right-demo-brain .tdc-brain-stem:hover svg, .tdc-main-right-demo-brain .tdc-brain-stem.active svg {
fill: #b81434;
}