Project

General

Profile

Download (9.03 KB) Statistics
| Branch: | Tag: | Revision:
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
       background-color: $menu-bar-background-color;
254
       padding-left: 5px;
255
       .page-link {
256
         float: right;
257
       }
258
     }
259
      .unit-label-hover-effect:hover {
260
        cursor: pointer;
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
    .focused_item {
274
      font-weight: bold;
275
    }
276
  }
277
  div.derived-unit-tree-root {
278
    .unit-content-wrapper {
279
      border-left: $tree-line-style;
280
      margin-left: $tree-lines-left-offset;
281
    }
282
  }
283
  ul.derived-unit-sub-tree{
284
    ul {
285
      margin-left: 1.0em;
286
    }
287
    li {
288
      position: relative;
289

    
290
      margin-left: 0;
291
      padding-left: 1em;
292
      margin-top: -$tree-lines-top-offset;
293
      line-height: $base-line-height;
294

    
295
      border-left: $tree-line-style;
296
    }
297
    li:last-child {
298
      border-left: none;
299
      .unit-header, .unit-content {
300
        margin-left: $tree-line-width;
301
      }
302
    }
303
    li:before {
304
      position: absolute;
305
      top: $tree-lines-top-offset;
306
      left: 0;
307

    
308
      width: $tree-hline-length; /* width of horizontal line */
309
      height: $base-line-height / 2 + $tree-line-width / 2; /* vertical position of line */
310
      vertical-align: top;
311
      border-bottom: $tree-line-style;
312
      content: "";
313
      display: inline-block;
314
    }
315
    li:last-child:before {
316
      border-left: $tree-line-style;
317
    }
318
  }
319
  div.derived-unit-tree {
320
    table.details-table {
321
      font-size: smaller;
322
    }
323
  }
324
  .derived-unit-details-grid {
325
    table.details-table {
326
      margin: 0;
327
      width: 100%;
328
      vertical-align: top;
329
      background-color: $page-background-color;
330
      thead {
331
        border-bottom: thin solid $menu-bar-background-color;
332
      }
333
      tbody {
334
        background-color: $page-background-color;
335
        .label {
336
          text-align: right;
337
          white-space: nowrap;
338
          border-right: thin solid $menu-bar-background-color;
339
          width: 50%;
340
        }
341
      }
342
      td, th {
343
        padding-right: $derived-unit-details-table-gutter;
344
        padding-left: $derived-unit-details-table-gutter;
345
      }
346
    }
347
  }
348
  .derived-unit-details-grid {
349
    display: grid;
350
    grid-column-gap: $derived-unit-details-table-gutter;
351
    grid-row-gap: $derived-unit-details-table-gutter;
352
    @media all and (max-width: 659px) {
353
      grid-template-columns : repeat(1, 1fr);
354
    }
355
    @media all and (min-width: 660px) {
356
      grid-template-columns: repeat(2, 1fr);
357
    }
358
    dl {
359
      margin: 0;
360
    }
361
  }
362

    
363

    
364
  /*
365
   * Map
366
   */
367
  .openlayers-container {
368
    margin-top: $zen-gutter-width / 4;
369
    margin-bottom: $zen-gutter-width / 4;
370
  }
371

    
372
  /*
373
   * Registration page & items
374
   */
375
  .registration {
376

    
377
    .type-status{
378
      font-weight: bold;
379
    }
380

    
381
    .registration-date-and-institute {
382
      color: #999;
383
    }
384

    
385

    
386
    .published-name {
387
      .TaxonName .name {
388
        font-weight: bold;
389
      }
390
    }
391
    .typified-name .cdm\:TaxonName {
392
      color: #999;
393
      a {
394
        color: #999;
395
      }
396
      .TaxonName .name {
397
        font-weight: bold;
398
      }
399
    }
400

    
401
    .registration-summary {
402
      .registered_name .name {
403
        font-weight: bold;
404
      }
405
      .referenced_typified_name {
406
        color: #999;
407
      }
408
      .label {
409
        font-weight: bold;
410
      }
411
    }
412
  }
413

    
414
  /*
415
   * Theme settings page
416
   */
417
  #system-theme-settings {
418

    
419
    .image-preview {
420
      width: 600px;
421
      max-height: 150px;
422
      overflow: auto; // let it scroll
423
      img {
424
        max-width: none; /* reset style in mormalize.scss */
425
      }
426

    
427
    }
428
  }
429

    
430
  /*****************************************************************************************
431
   * RESPONSIVE
432
   *
433
   * using the same media queries here as in layout/_responsive.scss
434
   *****************************************************************************************/
435

    
436
  #classification-breadcrumbs {
437
    font-size: 1.5em;
438
    line-height: 1.5em;
439
  }
440

    
441
  @media all and (min-width: 480px) and (max-width: 959px) {
442

    
443

    
444
  }
445

    
446
  @media all and (min-width: 960px) {
447
    #classification-breadcrumbs {
448
      font-size: 1em;
449
    }
450
  }
451

    
452
/***************************
453
 * TESTING ONLY 2020-02-20
454
 */
455
.font-noto {
456
  font-family: $noto-sans !important;
457
}
(7-7/13)