Project

General

Profile

Download (10.2 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
 */
235
$tree-entry-vspace: $base-font-size / 2;
236
$tree-entry-header-height: $base-line-height;
237
$tree-line-width: $tree-entry-vspace / 2;
238
$tree-hline-length: $base-font-size * 2; // 1em; // 5px;
239
$tree-line-style: $tree-line-width dotted $menu-bar-background-color;
240
$tree-hline-to-item-gap: $tree-hline-length / 2;
241
$tree-lines-top-offset: $base-line-height / 7;
242
$tree-lines-left-offset: $base-line-height / 7;
243
$collapse-symbol-width: $base-line-height;
244

    
245
.item-tree {
246
  ul {
247
    list-style: none;
248
    margin: 0;
249
    padding-left: 0; //$tree-hline-length;
250

    
251
    &.collapsed {
252
      display: none;
253
    }
254
    li {
255
      padding: $tree-entry-vspace 0px 0px $tree-hline-length;
256
      margin-top: $tree-line-width; // add little extra space for perfect border connections
257
      position: relative;
258

    
259
      &::before { // vertical & horizontal lines
260
        content: "";
261
        position: absolute;
262
        top: $tree-entry-vspace + ($tree-entry-header-height / 2);
263
        left: -$tree-hline-to-item-gap;
264
        border-left: $tree-line-style;
265
        border-bottom: $tree-line-style;
266
        width: $tree-hline-length;
267
        height: 100%;
268
      }
269

    
270
      &:last-child:before {
271
        content: none;
272
      }
273

    
274
      .item-wrapper-with-sub-items {
275
        position: relative;
276
        &::after {
277
          content: "";
278
          position: absolute;
279
          top: $tree-entry-vspace + ($tree-entry-header-height / 2);
280
          left: -$tree-hline-to-item-gap;
281
          border-left: $tree-line-style;
282
          border-bottom: $tree-line-style;
283
          // debug
284
          //border-left: 2px dashed cyan;
285
          //border-bottom: 2px dashed cyan;
286
          width: $tree-hline-length;
287
          height: 100%;
288
        }
289
      }
290
      &.collapsed .item-wrapper-with-sub-items::after {
291
        content: none; // negates the style set with .item-wrapper-with-sub-items:after in case the sub-items are collapsed
292
      }
293
    }
294
  }
295
  // First Level Elements
296
  & > .item-list > ul {
297
    margin-left: -$tree-hline-to-item-gap; // re-align whole tree with parent block element
298
    & > li {
299
      &:last-child:before {
300
        content: unset;
301
      }
302
      &::before {
303
        content: unset;
304
      }
305
      &:not(:last-child) > ul > li {
306
        &:before {
307
          content: unset;
308
        }
309
      }
310
    }
311
  }
312
  // debug
313
  //li:first-child::before {
314
  //  border-color: #1bdf00;
315
  //}
316
  .tree-node-symbol {
317
    display: inline-block;
318
    width: $collapse-symbol-width;
319
    height: $collapse-symbol-width;
320
    color: $menu-bar-background-color;
321
    background-color: $page-background-color;
322
    margin-left: -($collapse-symbol-width / 2) - $tree-hline-to-item-gap + ($tree-line-width / 2);
323
    text-align: center;
324
    font-size: larger;
325
    //.open {
326
    //  display: none;
327
    //}
328
  }
329
  .tree-node-symbol-collapsible:hover {
330
    color: $menu-bar-text-color;
331
  }
332
}
333

    
334
// -- tree independent styling
335
$derived-unit-details-table-gutter: $base-line-height / 2;
336

    
337
.item-tree {
338
  .unit-header-wrapper {
339
    .unit-label {
340
      background-color: $menu-bar-background-color;
341
      .symbol {
342
        padding-left: 5px;
343
        padding-right: 5px;
344
      }
345
      .page-link {
346
        float: right;
347
        padding-right: $derived-unit-details-table-gutter / 2;
348
      }
349
    }
350
    .unit-label-hover-effect:hover {
351
      cursor: pointer;
352
      background-color: lighten($menu-bar-background-color, 10%)
353
    }
354
  }
355
  .unit-content {
356
    padding: $derived-unit-details-table-gutter;
357
    background-color: lighten($menu-bar-background-color, 5%);
358
  }
359
  .derivation-event {
360
    font-size: smaller;
361
    margin-top: -$derived-unit-details-table-gutter;
362
    color: $link-color-synonym;
363
  }
364
  .focused_item {
365
    font-weight: bold;
366
  }
367
}
368

    
369
// --- details grid
370
.derived-unit-details-grid {
371
  table.details-table {
372
    margin: 0;
373
    width: 100%;
374
    vertical-align: top;
375
    background-color: $page-background-color;
376
    thead {
377
      border-bottom: thin solid $menu-bar-background-color;
378
    }
379
    tbody {
380
      background-color: $page-background-color;
381
      .label {
382
        text-align: right;
383
        white-space: nowrap;
384
        border-right: thin solid $menu-bar-background-color;
385
        width: 50%;
386
      }
387
    }
388
    td, th {
389
      padding-right: $derived-unit-details-table-gutter;
390
      padding-left: $derived-unit-details-table-gutter;
391
    }
392
  }
393
}
394
.derived-unit-details-grid {
395
  display: grid;
396
  grid-column-gap: $derived-unit-details-table-gutter;
397
  grid-row-gap: $derived-unit-details-table-gutter;
398
  @media all and (max-width: 659px) {
399
    grid-template-columns : repeat(1, 1fr);
400
  }
401
  @media all and (min-width: 660px) {
402
    grid-template-columns: repeat(2, 1fr);
403
  }
404
  dl {
405
    margin: 0;
406
  }
407
}
408

    
409

    
410
  /*
411
   * Map
412
   */
413
  .openlayers-container {
414
    margin-top: $zen-gutter-width / 4;
415
    margin-bottom: $zen-gutter-width / 4;
416
  }
417

    
418
  /*
419
   * Registration page & items
420
   */
421
  .registration {
422

    
423
    .type-status{
424
      font-weight: bold;
425
    }
426

    
427
    .registration-date-and-institute {
428
      color: #999;
429
    }
430

    
431

    
432
    .published-name {
433
      .TaxonName .name {
434
        font-weight: bold;
435
      }
436
    }
437
    .typified-name .cdm\:TaxonName {
438
      color: #999;
439
      a {
440
        color: #999;
441
      }
442
      .TaxonName .name {
443
        font-weight: bold;
444
      }
445
    }
446

    
447
    .registration-summary {
448
      .registered_name .name {
449
        font-weight: bold;
450
      }
451
      .referenced_typified_name {
452
        color: #999;
453
      }
454
      .label {
455
        font-weight: bold;
456
      }
457
    }
458
  }
459

    
460
  /*
461
   * Theme settings page
462
   */
463
  #system-theme-settings {
464

    
465
    .image-preview {
466
      width: 600px;
467
      max-height: 150px;
468
      overflow: auto; // let it scroll
469
      img {
470
        max-width: none; /* reset style in mormalize.scss */
471
      }
472

    
473
    }
474
  }
475

    
476
  /*****************************************************************************************
477
   * RESPONSIVE
478
   *
479
   * using the same media queries here as in layout/_responsive.scss
480
   *****************************************************************************************/
481

    
482
  #classification-breadcrumbs {
483
    font-size: 1.5em;
484
    line-height: 1.5em;
485
  }
486

    
487
  @media all and (min-width: 480px) and (max-width: 959px) {
488

    
489

    
490
  }
491

    
492
  @media all and (min-width: 960px) {
493
    #classification-breadcrumbs {
494
      font-size: 1em;
495
    }
496
  }
497

    
498
/***************************
499
 * TESTING ONLY 2020-02-20
500
 */
501
.font-noto {
502
  font-family: $noto-sans !important;
503
}
(7-7/13)