1
|
// @file
|
2
|
// Custom sass mixins
|
3
|
//
|
4
|
// Define the custom mixins for your project here.
|
5
|
// http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#defining_a_mixin
|
6
|
|
7
|
// Makes an element visually hidden, but accessible.
|
8
|
// @see http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
|
9
|
@mixin element-invisible {
|
10
|
position: absolute !important;
|
11
|
height: 1px;
|
12
|
width: 1px;
|
13
|
overflow: hidden;
|
14
|
@if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
|
15
|
clip: rect(1px 1px 1px 1px); // IE6 and IE7 use the wrong syntax.
|
16
|
}
|
17
|
clip: rect(1px, 1px, 1px, 1px);
|
18
|
}
|
19
|
|
20
|
// Turns off the element-invisible effect.
|
21
|
@mixin element-invisible-off {
|
22
|
position: static !important;
|
23
|
clip: auto;
|
24
|
height: auto;
|
25
|
width: auto;
|
26
|
overflow: auto;
|
27
|
}
|
28
|
|
29
|
// ======= CUSTOM MIXINS FOR DATAPORTAL ====== //
|
30
|
|
31
|
// Makes an element visually hidden by default, but visible when focused.
|
32
|
@mixin element-focusable {
|
33
|
@include element-invisible;
|
34
|
|
35
|
&:active,
|
36
|
&:focus {
|
37
|
@include element-invisible-off;
|
38
|
}
|
39
|
}
|
40
|
|
41
|
@mixin cdm-link-style {
|
42
|
a:link,
|
43
|
a:visited {
|
44
|
color: $link-color;
|
45
|
text-decoration: none;
|
46
|
}
|
47
|
|
48
|
a:hover,
|
49
|
a:focus {
|
50
|
text-decoration: underline;
|
51
|
}
|
52
|
|
53
|
//synonyms and mispplied name links have different color
|
54
|
// a.synonym:visited
|
55
|
// a.synonym:link,
|
56
|
.Synonym, .misapplied-name {
|
57
|
a:link,
|
58
|
a:visited {
|
59
|
color: $link-color-synonym;
|
60
|
}
|
61
|
}
|
62
|
.Taxon {
|
63
|
a:link,
|
64
|
a:visited {
|
65
|
color: $link-color;
|
66
|
}
|
67
|
}
|
68
|
}
|
69
|
|
70
|
|