Skip to content

Commit 57f9cb3

Browse files
authored
Fixes icon font theme issue (#39)
Signed-off-by: Daniel Kastl <[email protected]>
1 parent 0a88b41 commit 57f9cb3

File tree

1 file changed

+20
-17
lines changed

1 file changed

+20
-17
lines changed

assets/stylesheets/fonts.css

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,18 @@
99
font-weight: normal;
1010
font-style: normal;
1111
}
12-
[class*='icon-']:before{
12+
[class^='icon-']:before{
1313
display: inline-block;
14-
font-family: 'Redmine';
15-
font-style: normal;
16-
font-weight: normal;
17-
line-height: 1;
18-
-webkit-font-smoothing: antialiased;
19-
-moz-osx-font-smoothing: grayscale
14+
font-family: 'Redmine';
15+
font-style: normal;
16+
font-weight: normal;
17+
line-height: 1em;
18+
font-variant: normal;
19+
text-transform: none;
20+
-webkit-font-smoothing: antialiased;
21+
-moz-osx-font-smoothing: grayscale;
2022
}
23+
2124
.icon-point:before{content:'\0041';}
2225
.icon-linestring:before{content:'\0042';}
2326
.icon-polygon:before{content:'\0043';}
@@ -51,7 +54,7 @@ url("../fonts/mcr-icons.svg?b88144ffa3049f78bfa19b5159b89f09#mcr-icons") format(
5154
font-weight: normal !important;
5255
font-variant: normal;
5356
text-transform: none;
54-
line-height: 1;
57+
line-height: 1em;
5558
-webkit-font-smoothing: antialiased;
5659
-moz-osx-font-smoothing: grayscale;
5760
}
@@ -121,42 +124,42 @@ url("../fonts/mcr-icons.svg?b88144ffa3049f78bfa19b5159b89f09#mcr-icons") format(
121124
}
122125
}
123126
*/
124-
127+
125128
[class^="maki-"]:before, [class*=" maki-"]:before {
126129
font-family: "fontmaki";
127130
font-style: normal;
128131
font-weight: normal;
129132
speak: none;
130-
133+
131134
display: inline-block;
132135
text-decoration: inherit;
133136
width: 1em;
134137
margin-right: .2em;
135138
text-align: center;
136139
/* opacity: .8; */
137-
140+
138141
/* For safety - reset parent styles, that can break glyph codes*/
139142
font-variant: normal;
140143
text-transform: none;
141-
144+
142145
/* fix buttons height, for twitter bootstrap */
143146
line-height: 1em;
144-
147+
145148
/* Animation center compensation - margins should be symmetric */
146149
/* remove if not needed */
147150
margin-left: .2em;
148-
151+
149152
/* you can be more comfortable with increased icons size */
150153
/* font-size: 120%; */
151-
154+
152155
/* Font smoothing. That was taken from TWBS */
153156
-webkit-font-smoothing: antialiased;
154157
-moz-osx-font-smoothing: grayscale;
155-
158+
156159
/* Uncomment for 3D effect */
157160
/* text-shadow: 1px 1px 1px rgba(127, 127, 127, 0.3); */
158161
}
159-
162+
160163
.maki-bicycle:before { content: '\e800'; } /* '' */
161164
.maki-building:before { content: '\e801'; } /* '' */
162165
.maki-bus:before { content: '\e802'; } /* '' */

0 commit comments

Comments
 (0)