Project

General

Profile

Download (4.48 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 a.tabs-primary__tab-link{
34
  color: #333; // increasing specificity to avoid the color of the tabs to be overwritten
35
}
36

    
37
#page-toc {
38
  float:right;
39
    background-color: $page-background-color;
40
  h3 {
41
    margin-top: 0;
42
    line-height: $base-line-height;
43
  }
44
}
45

    
46
#taxonProfileImage{
47
  float: left;
48
}
49

    
50
.block-cdm-dataportal-feature,  .media-caption, .specimens {
51
  clear: both;
52
  margin-bottom: $page-part-margin;
53
  dt {
54
      float: left;
55
      font-weight: bold;
56
      margin-right: 0.3em;
57
  }
58
  dd {
59
    margin: 0;
60
    margin-left: $zen-gutter-width;
61
  }
62
  dl dl {
63
    margin: 0; /* reset default from cdm_dataportal.css */
64
  }
65
}
66

    
67
.breadcrumbs li {
68
  padding: 0 0 0 0;
69
}
70

    
71
/*
72
 * Search results
73
 */
74

    
75

    
76
#search_results{
77
  @include cdm-link-style;
78

    
79
  table {
80
    margin: 1em 0;
81
  }
82
}
83

    
84
div.cdm-item-list div.item {
85
  margin: $base-line-height / 2 0;
86
}
87

    
88
/*
89
 * Taxon page and parts
90
 */
91

    
92
.page-part {
93
  margin-bottom: $page-part-margin;
94
  clear: none;
95
}
96

    
97
/*
98
 * definition list container rendered by the
99
 * drupal theme function theme_description_list()
100
 */
101
.description_list {
102
  h3 {
103
    font-size: $base-font-size;
104
    line-height: $base-line-height;
105
    font-weight: bold;
106
  }
107
}
108

    
109

    
110

    
111
/*
112
 * Synonymy
113
 */
114

    
115
#synonymy {
116
  div.accepted-name {
117
    margin-bottom: -1em;
118
    margin-top: 1em;
119
  }
120

    
121
  .homotypic-synonymy-group, .heterotypic-synonymy-group, .taxon-relationships {
122
    border-bottom: 1px solid #DEDEDE;
123
    /* replace padding by margin */
124
    margin: 1em 0px;
125
    padding: 0;
126
  }
127
}
128

    
129
/*
130
 * Media
131
 */
132
dl.media-caption {
133
  margin: 0;
134
}
135
.media-caption {
136
  dd {
137
    margin-left: 0;
138
    .title {
139
      font-size: 100%;
140
    }
141
  }
142
}
143
.image-gallerie td.caption {
144
  padding-bottom: 1em;
145
}
146

    
147
/*
148
 * specimens and type designations
149
 */
150
#specimens {
151
  table.media_gallery {
152
    margin-top: 0.2em;
153
  }
154
  .description_list {
155
    clear: both;
156
    h3 {
157
      margin-top: 0;
158
      background-color: #ddd;
159
    }
160
    h4 {
161
      clear: left;
162
      margin-bottom: 0;
163
      font-style: italic;
164
    }
165
  }
166
  .dynabox_content {
167
    margin-left: $zen-gutter-width / 2;
168
    margin-right: $zen-gutter-width / 2;
169
  }
170
  .block-cdm-dataportal-feature {
171
    margin-left: $zen-gutter-width;
172
    margin-bottom: 0;
173
    h2 {
174
      font-size: $base-font-size;
175
      line-height: $base-line-height;
176
      font-weight: bold;
177
    }
178
  }
179
  ul.typeDesignations {
180
    clear: both;
181
  }
182
  .dna-sequence div {
183
    font-size: $base-font-size;
184
    font-family: monospace;
185
    clear: left;
186
    padding-left: $zen-gutter-width;
187
  }
188
  .derived_from {
189
    clear: both;
190
  }
191
}
192

    
193
/*
194
 * Map
195
 */
196
.openlayers-container {
197
  margin-top: $zen-gutter-width / 4;
198
  margin-bottom: $zen-gutter-width / 4;
199
}
200

    
201
/*
202
 * Registration page & items
203
 */
204
.registration {
205

    
206
  .type-status{
207
    font-weight: bold;
208
  }
209

    
210
  .registration-date-and-institute {
211
    color: #999;
212
  }
213

    
214
  .published-name {
215
    .TaxonName .name {
216
      font-weight: bold;
217
    }
218
  }
219
  .typified-name .cdm\:TaxonName {
220
    color: #999;
221
    a {
222
      color: #999;
223
    }
224
    .TaxonName .name {
225
      font-weight: bold;
226
    }
227
  }
228

    
229
  .registration-summary {
230
    .registered_name .name {
231
      font-weight: bold;
232
    }
233
    .referenced_typified_name {
234
      color: #999;
235
    }
236
    .label {
237
      font-weight: bold;
238
    }
239
  }
240
}
241

    
242
/*
243
 * Theme settings page
244
 */
245
#system-theme-settings {
246

    
247
  .image-preview {
248
    width: 600px;
249
    max-height: 150px;
250
    overflow: auto; // let it scroll
251
    img {
252
      max-width: none; /* reset style in mormalize.scss */
253
    }
254

    
255
  }
256
}
257

    
258
/*****************************************************************************************
259
 * RESPONSIVE
260
 *
261
 * using the same media queries here as in layout/_responsive.scss
262
 *****************************************************************************************/
263

    
264
#classification-breadcrumbs {
265
  font-size: 1.5em;
266
  line-height: 1.5em;
267
}
268

    
269
@media all and (min-width: 480px) and (max-width: 959px) {
270

    
271

    
272
}
273

    
274
@media all and (min-width: 960px) {
275
  #classification-breadcrumbs {
276
    font-size: 1em;
277
  }
278
}
(7-7/13)