Project

General

Profile

Download (8.91 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
    .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

    
317
  .derived-unit-details-grid {
318
    table.details-table {
319
      margin: 0;
320
      width: 100%;
321
      vertical-align: top;
322
      font-size: smaller;
323
      background-color: $page-background-color;
324
      thead {
325
        border-bottom: thin solid $menu-bar-background-color;
326
      }
327
      tbody {
328
        background-color: $page-background-color;
329
        .label {
330
          text-align: right;
331
          white-space: nowrap;
332
          border-right: thin solid $menu-bar-background-color;
333
          width: 50%;
334
        }
335
      }
336
      td, th {
337
        padding-right: $derived-unit-details-table-gutter;
338
        padding-left: $derived-unit-details-table-gutter;
339
      }
340
    }
341
  }
342
  .derived-unit-details-grid {
343
    display: grid;
344
    grid-column-gap: $derived-unit-details-table-gutter;
345
    grid-row-gap: $derived-unit-details-table-gutter;
346
    @media all and (max-width: 659px) {
347
      grid-template-columns : repeat(1, 1fr);
348
    }
349
    @media all and (min-width: 660px) {
350
      grid-template-columns: repeat(2, 1fr);
351
    }
352
    dl {
353
      margin: 0;
354
    }
355
  }
356

    
357

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

    
366
  /*
367
   * Registration page & items
368
   */
369
  .registration {
370

    
371
    .type-status{
372
      font-weight: bold;
373
    }
374

    
375
    .registration-date-and-institute {
376
      color: #999;
377
    }
378

    
379

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

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

    
408
  /*
409
   * Theme settings page
410
   */
411
  #system-theme-settings {
412

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

    
421
    }
422
  }
423

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

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

    
435
  @media all and (min-width: 480px) and (max-width: 959px) {
436

    
437

    
438
  }
439

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

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