-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
262 lines (232 loc) · 4.01 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
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
/*
CSS styles for Ensembl assessment webapp
Andres Veidenberg 2020
*/
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/*
Stretch content to viewport
*/
html {
height: 100vh;
}
body {
min-height: 100vh;
}
/*
Root container: 2-column grid layout
(single-column layout in non-grid (before 2017) browsers)
*/
#app {
min-height: 100vh;
padding: 15px 30px;
display: grid;
grid-template-rows: auto auto auto 1fr auto;
grid-template-columns: 1fr auto;
grid-gap: 10px;
grid-template-areas:
"header header"
"search search"
"sort htitle"
"left right"
"footer footer";
background: linear-gradient(rgb(192, 241, 149), rgb(76, 155, 149));
font-family: Arial, Helvetica, sans-serif;
color: rgb(14, 41, 66);
}
/*
Top section: header (page title) and searchbar
*/
header {
grid-area: header;
text-align: center;
letter-spacing: 1px;
margin: 10px auto;
}
header h1 {
font-size: 42px;
color: rgb(28, 80, 128);
}
header h1 span {
margin-left: 10px;
font-weight: 100;
font-size: 36px;
color: rgb(119, 167, 163);
}
.search {
grid-area: search;
display: flex;
flex-wrap: wrap;
align-items: center;
justify-self: center;
margin: 0 auto;
}
.searchbox{
width: 280px;
margin: 0 auto;
display: flex;
}
.searchbox input {
width: 100%;
line-height: 20px;
text-align: center;
border: none;
border-radius: 20px;
padding: 10px 20px;
background: rgba(255,255,255,0.8);
box-shadow: 0 5px 15px rgba(100,100,100,0.2);
color: rgb(27, 49, 70);
font-size: 18px;
}
.searchbox button {
font-size: 26px;
width: 30px;
height: 30px;
background: transparent;
margin: 5px 0 0 -36px;
cursor: pointer;
}
.searchbox button.go {
color: rgb(119, 167, 163);
border: none;
}
.searchbox button.go:hover {
color: orange;
}
.search button.cancel {
color: transparent;
border: 5px solid #eee;
border-top-color: rgb(140, 196, 191);
border-radius: 50%;
animation: spinner 1s linear infinite;
}
.searchbox button.cancel:hover {
border-top-color: orange;
}
@keyframes spinner {
100% {
transform: rotate(360deg);
}
}
input:focus, button:focus {
outline: none;
}
.search .error {
color: rgb(214, 23, 23);
font-size: 18px;
text-align: center;
width: 100%;
height: 20px;
margin-top: 10px;
}
/*
Left column: sorting selector and drawing canvas
*/
.sort {
grid-area: sort;
text-align: center;
}
.main {
grid-area: left;
background: white;
border-radius: 3px;
box-shadow: 0 5px 10px rgba(100,100,100,0.4);
}
.main .genename, .main .transcripts{
position: relative;
margin: 20px;
text-align: center;
cursor: default;
}
.main .genename {
margin-bottom: 0;
}
.transcript{
position: relative;
height: 30px;
width: 100%;
}
.transcript:hover{
background: #eee;
}
.transcript .line{
position: absolute;
height: 1px;
top: 14px;
background: darkblue;
}
.transcript .exon{
position: absolute;
height: 8px;
top: 10px;
border: 1px solid darkblue;
background: lightblue;
}
.transcript.rev .line{
background: darkred;
}
.transcript.rev .exon{
border: 1px solid darkred;
background: pink;
}
.sort-move{
transition: transform 1s;
}
/*
Right column: History (title and gene list)
*/
.htitle{
grid-area: htitle;
}
.history {
grid-area: right;
min-width: 150px;
}
.history ul {
display: flex;
flex-direction: column;
border-radius: 3px;
padding: 5px;
background: white;
box-shadow: 0 5px 10px rgba(100,100,100,0.4);
}
.history ul li {
padding: 5px 10px;
cursor: pointer;
color: rgb(30, 101, 155);
list-style: none;
}
.history ul li:hover {
color: orange;
}
/*
Placeholders in main/history sections
*/
.empty, .history ul li.empty, .history ul li.empty:hover {
color: rgb(133, 163, 192);
width: 100%;
text-align: center;
padding: 20px 0;
cursor: default;
}
.empty a{
cursor: pointer;
color: rgb(0, 106, 187);
}
.empty a:hover{
color: orange;
text-decoration: none;
}
/*
Bottom footer
*/
footer {
grid-area: footer;
text-align: center;
font-size: 14px;
color: rgb(69, 85, 97);
padding: 10px;
}