Skip to content

Commit f9b8bd5

Browse files
ryankshawcodekitchen
authored andcommitted
make standalone-icons gray, not default link blue
Change-Id: I5b86d51972d3be499c242ab0ebb775080b99a5ef refs: #CNVS-913 Reviewed-on: https://gerrit.instructure.com/15812 Tested-by: Jenkins <[email protected]> Reviewed-by: Chris Hart <[email protected]>
1 parent bc67d23 commit f9b8bd5

File tree

1 file changed

+15
-10
lines changed

1 file changed

+15
-10
lines changed

Diff for: app/stylesheets/blue/_icons.scss

+15-10
Original file line numberDiff line numberDiff line change
@@ -11,40 +11,45 @@
1111
}
1212

1313
// 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
1515

1616
i[class*=icon-], i[class^=icon-], a[class*=icon-], a[class^=icon-] {
17-
17+
1818
&:before {
1919
font-family: 'canvasregular';
2020
display: inline-block;
2121
vertical-align: middle;
22-
22+
2323
// override any properties in the cascade that might make the font display incorrectly
2424
text-transform: none !important;
2525
font-weight: normal !important;
2626
font-style: normal !important;
2727
}
28-
28+
2929
}
3030

3131
i[class*=icon-], i[class^=icon-] {
3232
display: inline-block;
3333
font-style: normal !important;
3434
width: 16px; height: 16px; line-height: 16px; font-size: 16px;
35-
35+
3636
// adjust icon sizes to look good with our large-size button class
3737
.btn-large & { width: 18px; height: 18px; line-height: 18px; font-size: 18px; }
38-
38+
3939
// suppress icons when the smallest buttons are used
4040
.btn-mini & { display: none; }
41-
41+
4242
}
4343

4444
// when an icon is applied directly to a link, add a little left margin to make
4545
// 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; }
4853
}
4954

5055

@@ -181,4 +186,4 @@ span.screen-reader-text {
181186
top: -9999px;
182187
left: -9999px;
183188
font-size: 4px;
184-
}
189+
}

0 commit comments

Comments
 (0)