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