11
11
}
12
12
13
13
// styles to ensure icons can only be applied through the <i> element, but also allowing
14
- // to be applied directly to text links
14
+ // to be applied directly to text links
15
15
16
16
i [class *= icon- ], i [class ^= icon- ], a [class *= icon- ], a [class ^= icon- ] {
17
-
17
+
18
18
& :before {
19
19
font-family : ' canvasregular' ;
20
20
display : inline-block ;
21
21
vertical-align : middle ;
22
-
22
+
23
23
// override any properties in the cascade that might make the font display incorrectly
24
24
text-transform : none !important ;
25
25
font-weight : normal !important ;
26
26
font-style : normal !important ;
27
27
}
28
-
28
+
29
29
}
30
30
31
31
i [class *= icon- ], i [class ^= icon- ] {
32
32
display : inline-block ;
33
33
font-style : normal !important ;
34
34
width : 16px ; height : 16px ; line-height : 16px ; font-size : 16px ;
35
-
35
+
36
36
// adjust icon sizes to look good with our large-size button class
37
37
.btn-large & { width : 18px ; height : 18px ; line-height : 18px ; font-size : 18px ; }
38
-
38
+
39
39
// suppress icons when the smallest buttons are used
40
40
.btn-mini & { display : none ; }
41
-
41
+
42
42
}
43
43
44
44
// when an icon is applied directly to a link, add a little left margin to make
45
45
// things look nicer
46
- a [class *= icon- ]:before , a [class ^= icon- ]:before {
47
- margin-right : 4px ;
46
+ a [class *= icon- ], a [class ^= icon- ] {
47
+ & :before { margin-right : 4px ; }
48
+ }
49
+
50
+ .standalone-icon {
51
+ // make standalone icons within links display as dark gray, not default link blue
52
+ & :before { color : #666 ; }
48
53
}
49
54
50
55
@@ -181,4 +186,4 @@ span.screen-reader-text {
181
186
top : -9999px ;
182
187
left : -9999px ;
183
188
font-size : 4px ;
184
- }
189
+ }
0 commit comments