Skip to content

Commit a69c3b2

Browse files
author
Joe Day
committed
Merge pull request #123 from winjs/bug-fixes
Added default variables for font paths.
2 parents 14bd031 + e425a69 commit a69c3b2

File tree

5 files changed

+23
-18
lines changed

5 files changed

+23
-18
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Winstrap",
3-
"version": "0.5.4",
3+
"version": "0.5.5",
44
"main": [
55
"src/scss/winstrap.scss"
66
],

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"type": "git",
66
"url": "git+https://github.com/winjs/winstrap.git"
77
},
8-
"version": "0.5.4",
8+
"version": "0.5.5",
99
"author": "Microsoft",
1010
"contributors": [
1111
"Frederic Perrin",

src/scss/win/_resources.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
$icon-font-path: "../fonts/glyphs";
1+
$font-path: "../fonts" !default;
2+
$icon-font-path: "#{$font-path}/glyphs" !default;

src/scss/win/_side-navigation.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
// This is for viewports 1 & 2 and lives outside the .side-navigation structure to be visible when .side-navigation is not
22
a.navigation-btn {
33
position: relative;
4+
text-align: left;
45
margin-top: spacing(xs);
56
padding-left: spacing(sm);
67
[dir="rtl"] & {
8+
text-align: right;
79
padding-right: spacing(sm);
810
}
911
&:hover {

src/scss/win/_type.scss

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,37 +8,37 @@
88

99
@font-face {
1010
font-family: "Selawik";
11-
src: url("../fonts/selawk.eot");
12-
src: url("../fonts/selawk.eot#iefix") format("embedded-opentype"),
13-
url("../fonts/selawk.ttf") format("truetype");
11+
src: url("#{$font-path}/selawk.eot");
12+
src: url("#{$font-path}/selawk.eot#iefix") format("embedded-opentype"),
13+
url("#{$font-path}/selawk.ttf") format("truetype");
1414
}
1515

1616
@font-face {
1717
font-family: "Selawik Bold";
18-
src: url("../fonts/selawkb.eot");
19-
src: url("../fonts/selawkb.eot#iefix") format("embedded-opentype"),
20-
url("../fonts/selawkb.ttf") format("truetype");
18+
src: url("#{$font-path}/selawkb.eot");
19+
src: url("#{$font-path}/selawkb.eot#iefix") format("embedded-opentype"),
20+
url("#{$font-path}/selawkb.ttf") format("truetype");
2121
}
2222

2323
@font-face {
2424
font-family: "Selawik Light";
25-
src: url("../fonts/selawkl.eot");
26-
src: url("../fonts/selawkl.eot#iefix") format("embedded-opentype"),
27-
url("../fonts/selawkl.ttf") format("truetype");
25+
src: url("#{$font-path}/selawkl.eot");
26+
src: url("#{$font-path}/selawkl.eot#iefix") format("embedded-opentype"),
27+
url("#{$font-path}/selawkl.ttf") format("truetype");
2828
}
2929

3030
@font-face {
3131
font-family: "Selawik Semibold";
32-
src: url("../fonts/selawksb.eot");
33-
src: url("../fonts/selawksb.eot#iefix") format("embedded-opentype"),
34-
url("../fonts/selawksb.ttf") format("truetype");
32+
src: url("#{$font-path}/selawksb.eot");
33+
src: url("#{$font-path}/selawksb.eot#iefix") format("embedded-opentype"),
34+
url("#{$font-path}/selawksb.ttf") format("truetype");
3535
}
3636

3737
@font-face {
3838
font-family: "Selawik Semilight";
39-
src: url("../fonts/selawksl.eot");
40-
src: url("../fonts/selawksl.eot#iefix") format("embedded-opentype"),
41-
url("../fonts/selawksl.ttf") format("truetype");
39+
src: url("#{$font-path}/selawksl.eot");
40+
src: url("#{$font-path}/selawksl.eot#iefix") format("embedded-opentype"),
41+
url("#{$font-path}/selawksl.ttf") format("truetype");
4242
}
4343

4444
// Responsive Typography mixin
@@ -203,3 +203,5 @@ h5 { @extend .type-h5; }
203203
h6 { @extend .type-h6; }
204204

205205
p { @extend .type-p3; }
206+
207+
figcaption { @extend .type-c1 }

0 commit comments

Comments
 (0)