Project

General

Profile

Download (8.84 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
.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
  /*
229
   * derivatives tree view (see also derivation-tree.js)
230
   * partially based on ideas found in https://jsfiddle.net/xuonpjmh/21/
231
   */
232
  $tree-entry-vspace: 7px; //$base-font-size / 2 ???
233
  $tree-line-width: 3px;
234
  $tree-line-style: $tree-line-width dotted $menu-bar-background-color;
235
  $tree-hline-length: 1em; // 5px;
236
  $tree-lines-top-offset: ($base-line-height / 7) ;
237
  $tree-lines-left-offset: $base-line-height / 7;
238
  $derived-unit-details-table-gutter: $base-line-height / 2;
239
  div.derived-unit-tree,
240
  ul.derived-unit-sub-tree,
241
  ul.derived-unit-sub-tree ul {
242
    list-style: none;
243
    margin: 0 0 0 $tree-lines-left-offset;
244
    padding: 0;
245

    
246
   .unit-header {
247
     padding-top: $tree-entry-vspace;
248
     .unit-label {
249
       cursor: pointer;
250
       background-color: $menu-bar-background-color;
251
       padding-left: 5px;
252
       .page-link {
253
         float: right;
254
       }
255
     }
256
      .unit-label:hover {
257
        background-color: lighten($menu-bar-background-color, 10%)
258
      }
259
    }
260
    .unit-content {
261
      padding: $derived-unit-details-table-gutter;
262
      background-color: lighten($menu-bar-background-color, 5%);
263

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

    
315
  ul.derived-unit-sub-tree{
316
    ul {
317
      margin-left: 1.0em;
318
    }
319
    li {
320
      position: relative;
321

    
322
      margin-left: 0;
323
      padding-left: 1em;
324
      margin-top: -$tree-lines-top-offset;
325
      line-height: $base-line-height;
326

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

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

    
352
  /*
353
   * Map
354
   */
355
  .openlayers-container {
356
    margin-top: $zen-gutter-width / 4;
357
    margin-bottom: $zen-gutter-width / 4;
358
  }
359

    
360
  /*
361
   * Registration page & items
362
   */
363
  .registration {
364

    
365
    .type-status{
366
      font-weight: bold;
367
    }
368

    
369
    .registration-date-and-institute {
370
      color: #999;
371
    }
372

    
373

    
374
    .published-name {
375
      .TaxonName .name {
376
        font-weight: bold;
377
      }
378
    }
379
    .typified-name .cdm\:TaxonName {
380
      color: #999;
381
      a {
382
        color: #999;
383
      }
384
      .TaxonName .name {
385
        font-weight: bold;
386
      }
387
    }
388

    
389
    .registration-summary {
390
      .registered_name .name {
391
        font-weight: bold;
392
      }
393
      .referenced_typified_name {
394
        color: #999;
395
      }
396
      .label {
397
        font-weight: bold;
398
      }
399
    }
400
  }
401

    
402
  /*
403
   * Theme settings page
404
   */
405
  #system-theme-settings {
406

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

    
415
    }
416
  }
417

    
418
  /*****************************************************************************************
419
   * RESPONSIVE
420
   *
421
   * using the same media queries here as in layout/_responsive.scss
422
   *****************************************************************************************/
423

    
424
  #classification-breadcrumbs {
425
    font-size: 1.5em;
426
    line-height: 1.5em;
427
  }
428

    
429
  @media all and (min-width: 480px) and (max-width: 959px) {
430

    
431

    
432
  }
433

    
434
  @media all and (min-width: 960px) {
435
    #classification-breadcrumbs {
436
      font-size: 1em;
437
    }
438
  }
439

    
440
/***************************
441
 * TESTING ONLY 2020-02-20
442
 */
443
.font-noto {
444
  font-family: $noto-sans !important;
445
}
(7-7/13)