1
|
/**
|
2
|
* @file
|
3
|
* cdm_dataportal specific styling
|
4
|
*
|
5
|
* Style the markup found in the cdm_dataportal module.
|
6
|
*/
|
7
|
|
8
|
@import "init";
|
9
|
|
10
|
|
11
|
$page-part-margin: $base-line-height * 1;
|
12
|
|
13
|
// style links only for content in blocks and node and backbutton
|
14
|
// added also #identificationKey since there are not yet drupal nodes
|
15
|
// #content requires the fix below!
|
16
|
.block, .node, #identificationKey, #content {
|
17
|
@include cdm-link-style;
|
18
|
}
|
19
|
|
20
|
.footnotes .footnote {
|
21
|
font-size: smaller;
|
22
|
}
|
23
|
|
24
|
.node-cdm-name {
|
25
|
.name-page-name {
|
26
|
margin-top: $zen-gutter-width / 2;
|
27
|
margin-bottom: $zen-gutter-width / 2;
|
28
|
}
|
29
|
.registered_name{
|
30
|
font-weight: bold;
|
31
|
}
|
32
|
.type-status {
|
33
|
font-weight: bold;
|
34
|
}
|
35
|
}
|
36
|
|
37
|
#content {
|
38
|
a.tabs-primary__tab-link {
|
39
|
color: #333; // increasing specificity to avoid the color of the tabs to be overwritten
|
40
|
}
|
41
|
|
42
|
table {
|
43
|
th {
|
44
|
text-align: left;
|
45
|
}
|
46
|
caption-side: top;
|
47
|
caption {
|
48
|
text-align: right;
|
49
|
font-size: smaller;
|
50
|
}
|
51
|
}
|
52
|
}
|
53
|
|
54
|
#page-toc {
|
55
|
float:right;
|
56
|
background-color: $page-background-color;
|
57
|
h3 {
|
58
|
margin-top: 0;
|
59
|
line-height: $base-line-height;
|
60
|
}
|
61
|
}
|
62
|
|
63
|
#taxonProfileImage{
|
64
|
float: left;
|
65
|
}
|
66
|
|
67
|
.block-cdm-dataportal-feature {
|
68
|
.content-caption {
|
69
|
text-align: right;
|
70
|
}
|
71
|
.label { // for CategoricalData and QuantitativeData but could be used for other situations, therefore style rule is not too specific
|
72
|
font-style: italic;
|
73
|
}
|
74
|
}
|
75
|
|
76
|
.block-cdm-dataportal-feature, .media-caption, .specimens { // TODO .specimens may be obsolete
|
77
|
clear: both;
|
78
|
margin-bottom: $page-part-margin;
|
79
|
dt {
|
80
|
float: left;
|
81
|
font-weight: bold;
|
82
|
margin-right: 0.3em;
|
83
|
}
|
84
|
dd {
|
85
|
margin: 0;
|
86
|
margin-left: $zen-gutter-width;
|
87
|
}
|
88
|
dl dl {
|
89
|
margin: 0; /* reset default from cdm_dataportal.css */
|
90
|
}
|
91
|
}
|
92
|
|
93
|
.breadcrumbs li {
|
94
|
padding: 0 0 0 0;
|
95
|
}
|
96
|
|
97
|
.description-table .described-entities {
|
98
|
.label {
|
99
|
font-weight: bold;
|
100
|
}
|
101
|
|
102
|
}
|
103
|
|
104
|
/*
|
105
|
* Search results
|
106
|
*/
|
107
|
|
108
|
|
109
|
#search_results{
|
110
|
@include cdm-link-style;
|
111
|
|
112
|
table {
|
113
|
margin: 1em 0;
|
114
|
}
|
115
|
}
|
116
|
|
117
|
div.cdm-item-list {
|
118
|
.label {
|
119
|
// color: #9a9a9a;
|
120
|
}
|
121
|
div.item {
|
122
|
margin: $base-line-height / 2 0;
|
123
|
}
|
124
|
}
|
125
|
|
126
|
/*
|
127
|
* Taxon page and parts
|
128
|
*/
|
129
|
|
130
|
.page-part {
|
131
|
margin-bottom: $page-part-margin;
|
132
|
clear: none;
|
133
|
}
|
134
|
|
135
|
/*
|
136
|
* definition list container rendered by the
|
137
|
* drupal theme function theme_description_list()
|
138
|
*/
|
139
|
.description_list {
|
140
|
h3 {
|
141
|
font-size: $base-font-size;
|
142
|
line-height: $base-line-height;
|
143
|
font-weight: bold;
|
144
|
}
|
145
|
}
|
146
|
|
147
|
|
148
|
|
149
|
/*
|
150
|
* Synonymy
|
151
|
*/
|
152
|
|
153
|
#synonymy {
|
154
|
div.accepted-name {
|
155
|
margin-bottom: -1em;
|
156
|
margin-top: 1em;
|
157
|
}
|
158
|
|
159
|
.homotypic-synonymy-group, .heterotypic-synonymy-group, .taxon-relationships {
|
160
|
border-bottom: 1px solid #DEDEDE;
|
161
|
/* replace padding by margin */
|
162
|
margin: 1em 0px;
|
163
|
padding: 0;
|
164
|
}
|
165
|
}
|
166
|
|
167
|
/*
|
168
|
* Media
|
169
|
*/
|
170
|
dl.media-caption {
|
171
|
margin: 0;
|
172
|
}
|
173
|
.media-caption {
|
174
|
dd {
|
175
|
margin-left: 0;
|
176
|
.title {
|
177
|
font-size: 100%;
|
178
|
}
|
179
|
}
|
180
|
}
|
181
|
.image-gallerie td.caption {
|
182
|
padding-bottom: 1em;
|
183
|
}
|
184
|
|
185
|
/*
|
186
|
* specimens and type designations
|
187
|
*/
|
188
|
#specimens {
|
189
|
table.media_gallery {
|
190
|
margin-top: 0.2em;
|
191
|
}
|
192
|
.description_list {
|
193
|
clear: both;
|
194
|
h3 {
|
195
|
margin-top: 0;
|
196
|
background-color: #ddd;
|
197
|
}
|
198
|
h4 {
|
199
|
clear: left;
|
200
|
margin-bottom: 0;
|
201
|
font-style: italic;
|
202
|
}
|
203
|
}
|
204
|
.dynabox_content {
|
205
|
margin-left: $zen-gutter-width / 2;
|
206
|
margin-right: $zen-gutter-width / 2;
|
207
|
}
|
208
|
.block-cdm-dataportal-feature {
|
209
|
margin-left: $zen-gutter-width;
|
210
|
margin-bottom: 0;
|
211
|
h2 {
|
212
|
font-size: $base-font-size;
|
213
|
line-height: $base-line-height;
|
214
|
font-weight: bold;
|
215
|
}
|
216
|
}
|
217
|
|
218
|
ul.typeDesignations {
|
219
|
clear: both;
|
220
|
}
|
221
|
.dna-sequence div {
|
222
|
font-size: $base-font-size;
|
223
|
font-family: monospace;
|
224
|
clear: left;
|
225
|
padding-left: $zen-gutter-width;
|
226
|
}
|
227
|
.derived_from {
|
228
|
clear: both;
|
229
|
}
|
230
|
}
|
231
|
|
232
|
/*
|
233
|
* derivatives tree view (see also derivation-tree.js)
|
234
|
* partially based on ideas found in https://jsfiddle.net/xuonpjmh/21/
|
235
|
*/
|
236
|
$tree-entry-vspace: 7px; //$base-font-size / 2 ???
|
237
|
$tree-line-width: 3px;
|
238
|
$tree-line-style: $tree-line-width dotted $menu-bar-background-color;
|
239
|
$tree-hline-length: 1em; // 5px;
|
240
|
$tree-lines-top-offset: ($base-line-height / 7) ;
|
241
|
$tree-lines-left-offset: $base-line-height / 7;
|
242
|
$derived-unit-details-table-gutter: $base-line-height / 2;
|
243
|
div.derived-unit-tree,
|
244
|
ul.derived-unit-sub-tree,
|
245
|
ul.derived-unit-sub-tree ul {
|
246
|
list-style: none;
|
247
|
margin: 0 0 0 $tree-lines-left-offset;
|
248
|
padding: 0;
|
249
|
|
250
|
.unit-header {
|
251
|
padding-top: $tree-entry-vspace;
|
252
|
.unit-label {
|
253
|
cursor: pointer;
|
254
|
background-color: $menu-bar-background-color;
|
255
|
padding-left: 5px;
|
256
|
.page-link {
|
257
|
float: right;
|
258
|
}
|
259
|
}
|
260
|
.unit-label:hover {
|
261
|
background-color: lighten($menu-bar-background-color, 10%)
|
262
|
}
|
263
|
}
|
264
|
.unit-content {
|
265
|
padding: $derived-unit-details-table-gutter;
|
266
|
background-color: lighten($menu-bar-background-color, 5%);
|
267
|
}
|
268
|
.derivation-event {
|
269
|
font-size: smaller;
|
270
|
margin-top: -$derived-unit-details-table-gutter;
|
271
|
color: $link-color-synonym;
|
272
|
}
|
273
|
}
|
274
|
div.derived-unit-tree-root {
|
275
|
.unit-content-wrapper {
|
276
|
border-left: $tree-line-style;
|
277
|
margin-left: $tree-lines-left-offset;
|
278
|
}
|
279
|
}
|
280
|
ul.derived-unit-sub-tree{
|
281
|
ul {
|
282
|
margin-left: 1.0em;
|
283
|
}
|
284
|
li {
|
285
|
position: relative;
|
286
|
|
287
|
margin-left: 0;
|
288
|
padding-left: 1em;
|
289
|
margin-top: -$tree-lines-top-offset;
|
290
|
line-height: $base-line-height;
|
291
|
|
292
|
border-left: $tree-line-style;
|
293
|
}
|
294
|
li:last-child {
|
295
|
border-left: none;
|
296
|
.unit-header, .unit-content {
|
297
|
margin-left: $tree-line-width;
|
298
|
}
|
299
|
}
|
300
|
li:before {
|
301
|
position: absolute;
|
302
|
top: $tree-lines-top-offset;
|
303
|
left: 0;
|
304
|
|
305
|
width: $tree-hline-length; /* width of horizontal line */
|
306
|
height: $base-line-height / 2 + $tree-line-width / 2; /* vertical position of line */
|
307
|
vertical-align: top;
|
308
|
border-bottom: $tree-line-style;
|
309
|
content: "";
|
310
|
display: inline-block;
|
311
|
}
|
312
|
li:last-child:before {
|
313
|
border-left: $tree-line-style;
|
314
|
}
|
315
|
}
|
316
|
div.derived-unit-tree {
|
317
|
table.details-table {
|
318
|
font-size: smaller;
|
319
|
}
|
320
|
}
|
321
|
.derived-unit-details-grid {
|
322
|
table.details-table {
|
323
|
margin: 0;
|
324
|
width: 100%;
|
325
|
vertical-align: top;
|
326
|
background-color: $page-background-color;
|
327
|
thead {
|
328
|
border-bottom: thin solid $menu-bar-background-color;
|
329
|
}
|
330
|
tbody {
|
331
|
background-color: $page-background-color;
|
332
|
.label {
|
333
|
text-align: right;
|
334
|
white-space: nowrap;
|
335
|
border-right: thin solid $menu-bar-background-color;
|
336
|
width: 50%;
|
337
|
}
|
338
|
}
|
339
|
td, th {
|
340
|
padding-right: $derived-unit-details-table-gutter;
|
341
|
padding-left: $derived-unit-details-table-gutter;
|
342
|
}
|
343
|
}
|
344
|
}
|
345
|
.derived-unit-details-grid {
|
346
|
display: grid;
|
347
|
grid-column-gap: $derived-unit-details-table-gutter;
|
348
|
grid-row-gap: $derived-unit-details-table-gutter;
|
349
|
@media all and (max-width: 659px) {
|
350
|
grid-template-columns : repeat(1, 1fr);
|
351
|
}
|
352
|
@media all and (min-width: 660px) {
|
353
|
grid-template-columns: repeat(2, 1fr);
|
354
|
}
|
355
|
dl {
|
356
|
margin: 0;
|
357
|
}
|
358
|
}
|
359
|
|
360
|
|
361
|
/*
|
362
|
* Map
|
363
|
*/
|
364
|
.openlayers-container {
|
365
|
margin-top: $zen-gutter-width / 4;
|
366
|
margin-bottom: $zen-gutter-width / 4;
|
367
|
}
|
368
|
|
369
|
/*
|
370
|
* Registration page & items
|
371
|
*/
|
372
|
.registration {
|
373
|
|
374
|
.type-status{
|
375
|
font-weight: bold;
|
376
|
}
|
377
|
|
378
|
.registration-date-and-institute {
|
379
|
color: #999;
|
380
|
}
|
381
|
|
382
|
|
383
|
.published-name {
|
384
|
.TaxonName .name {
|
385
|
font-weight: bold;
|
386
|
}
|
387
|
}
|
388
|
.typified-name .cdm\:TaxonName {
|
389
|
color: #999;
|
390
|
a {
|
391
|
color: #999;
|
392
|
}
|
393
|
.TaxonName .name {
|
394
|
font-weight: bold;
|
395
|
}
|
396
|
}
|
397
|
|
398
|
.registration-summary {
|
399
|
.registered_name .name {
|
400
|
font-weight: bold;
|
401
|
}
|
402
|
.referenced_typified_name {
|
403
|
color: #999;
|
404
|
}
|
405
|
.label {
|
406
|
font-weight: bold;
|
407
|
}
|
408
|
}
|
409
|
}
|
410
|
|
411
|
/*
|
412
|
* Theme settings page
|
413
|
*/
|
414
|
#system-theme-settings {
|
415
|
|
416
|
.image-preview {
|
417
|
width: 600px;
|
418
|
max-height: 150px;
|
419
|
overflow: auto; // let it scroll
|
420
|
img {
|
421
|
max-width: none; /* reset style in mormalize.scss */
|
422
|
}
|
423
|
|
424
|
}
|
425
|
}
|
426
|
|
427
|
/*****************************************************************************************
|
428
|
* RESPONSIVE
|
429
|
*
|
430
|
* using the same media queries here as in layout/_responsive.scss
|
431
|
*****************************************************************************************/
|
432
|
|
433
|
#classification-breadcrumbs {
|
434
|
font-size: 1.5em;
|
435
|
line-height: 1.5em;
|
436
|
}
|
437
|
|
438
|
@media all and (min-width: 480px) and (max-width: 959px) {
|
439
|
|
440
|
|
441
|
}
|
442
|
|
443
|
@media all and (min-width: 960px) {
|
444
|
#classification-breadcrumbs {
|
445
|
font-size: 1em;
|
446
|
}
|
447
|
}
|
448
|
|
449
|
/***************************
|
450
|
* TESTING ONLY 2020-02-20
|
451
|
*/
|
452
|
.font-noto {
|
453
|
font-family: $noto-sans !important;
|
454
|
}
|