Project

General

Profile

Download (8.89 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
       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
      display: grid;
269
      grid-column-gap: $derived-unit-details-table-gutter;
270
      grid-row-gap: $derived-unit-details-table-gutter;
271
      @media all and (max-width: 659px) {
272
        grid-template-columns : repeat(1, 1fr);
273
      }
274
      @media all and (min-width: 660px) {
275
        grid-template-columns: repeat(2, 1fr);
276
      }
277
      dl {
278
        margin: 0;
279
      }
280
    }
281
    .derivation-event {
282
      font-size: smaller;
283
      margin-top: -$derived-unit-details-table-gutter;
284
      color: $link-color-synonym;
285
    }
286
  }
287
  div.derived-unit-tree {
288
    table.details-table {
289
      margin: 0;
290
      width: 100%;
291
      vertical-align: top;
292
      font-size: smaller;
293
      background-color: $page-background-color;
294
      thead {
295
        border-bottom: thin solid $menu-bar-background-color;
296
      }
297
      tbody {
298
        background-color: $page-background-color;
299
        .label {
300
          text-align: right;
301
          white-space: nowrap;
302
          border-right: thin solid $menu-bar-background-color;
303
          width: 50%;
304
        }
305
      }
306
      td, th {
307
        padding-right: $derived-unit-details-table-gutter;
308
        padding-left: $derived-unit-details-table-gutter;
309
      }
310
    }
311
  }
312
  div.derived-unit-tree-root {
313
    .unit-content-wrapper {
314
      border-left: $tree-line-style;
315
      margin-left: $tree-lines-left-offset;
316
    }
317
  }
318

    
319
  ul.derived-unit-sub-tree{
320
    ul {
321
      margin-left: 1.0em;
322
    }
323
    li {
324
      position: relative;
325

    
326
      margin-left: 0;
327
      padding-left: 1em;
328
      margin-top: -$tree-lines-top-offset;
329
      line-height: $base-line-height;
330

    
331
      border-left: $tree-line-style;
332
    }
333
    li:last-child {
334
      border-left: none;
335
      .unit-header, .unit-content {
336
        margin-left: $tree-line-width;
337
      }
338
    }
339
    li:before {
340
      position: absolute;
341
      top: $tree-lines-top-offset;
342
      left: 0;
343

    
344
      width: $tree-hline-length; /* width of horizontal line */
345
      height: $base-line-height / 2 + $tree-line-width / 2; /* vertical position of line */
346
      vertical-align: top;
347
      border-bottom: $tree-line-style;
348
      content: "";
349
      display: inline-block;
350
    }
351
    li:last-child:before {
352
      border-left: $tree-line-style;
353
    }
354
  }
355

    
356
  /*
357
   * Map
358
   */
359
  .openlayers-container {
360
    margin-top: $zen-gutter-width / 4;
361
    margin-bottom: $zen-gutter-width / 4;
362
  }
363

    
364
  /*
365
   * Registration page & items
366
   */
367
  .registration {
368

    
369
    .type-status{
370
      font-weight: bold;
371
    }
372

    
373
    .registration-date-and-institute {
374
      color: #999;
375
    }
376

    
377

    
378
    .published-name {
379
      .TaxonName .name {
380
        font-weight: bold;
381
      }
382
    }
383
    .typified-name .cdm\:TaxonName {
384
      color: #999;
385
      a {
386
        color: #999;
387
      }
388
      .TaxonName .name {
389
        font-weight: bold;
390
      }
391
    }
392

    
393
    .registration-summary {
394
      .registered_name .name {
395
        font-weight: bold;
396
      }
397
      .referenced_typified_name {
398
        color: #999;
399
      }
400
      .label {
401
        font-weight: bold;
402
      }
403
    }
404
  }
405

    
406
  /*
407
   * Theme settings page
408
   */
409
  #system-theme-settings {
410

    
411
    .image-preview {
412
      width: 600px;
413
      max-height: 150px;
414
      overflow: auto; // let it scroll
415
      img {
416
        max-width: none; /* reset style in mormalize.scss */
417
      }
418

    
419
    }
420
  }
421

    
422
  /*****************************************************************************************
423
   * RESPONSIVE
424
   *
425
   * using the same media queries here as in layout/_responsive.scss
426
   *****************************************************************************************/
427

    
428
  #classification-breadcrumbs {
429
    font-size: 1.5em;
430
    line-height: 1.5em;
431
  }
432

    
433
  @media all and (min-width: 480px) and (max-width: 959px) {
434

    
435

    
436
  }
437

    
438
  @media all and (min-width: 960px) {
439
    #classification-breadcrumbs {
440
      font-size: 1em;
441
    }
442
  }
443

    
444
/***************************
445
 * TESTING ONLY 2020-02-20
446
 */
447
.font-noto {
448
  font-family: $noto-sans !important;
449
}
(7-7/13)