Skip to content

Commit

Permalink
Added font paths variable and CDN for hpinc.
Browse files Browse the repository at this point in the history
  • Loading branch information
alansouzati committed Jul 2, 2015
1 parent 3e8e818 commit f7baf6b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
12 changes: 7 additions & 5 deletions src/scss/hpe/_hpe.defaults.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,32 +17,34 @@ $brand-text-decoration: underline solid $brand-color;
$brand-grey-colors: (#333333, #3B3B3B, #434343, #666666);
$brand-graph-colors: (#FF8D6D, #877B75, #2AD2C9, #614767, #617D78);

$hpe-fonts-path: "http://hpefonts.s3.amazonaws.com";

@font-face {
font-family: "Metric";
src: url("http://hpefonts.s3.amazonaws.com/MetricWeb-Regular.woff") format('woff');
src: url("#{$hpe-fonts-path}/MetricWeb-Regular.woff") format('woff');
}

@font-face {
font-family: "Metric";
src: url("http://hpefonts.s3.amazonaws.com/MetricWeb-Bold.woff") format('woff');
src: url("#{$hpe-fonts-path}/MetricWeb-Bold.woff") format('woff');
font-weight: 700;
}

@font-face {
font-family: "Metric";
src: url("http://hpefonts.s3.amazonaws.com/MetricWeb-Semibold.woff") format('woff');
src: url("#{$hpe-fonts-path}/MetricWeb-Semibold.woff") format('woff');
font-weight: 600;
}

@font-face {
font-family: "Metric";
src: url("http://hpefonts.s3.amazonaws.com/MetricWeb-Light.woff") format('woff');
src: url("#{$hpe-fonts-path}/MetricWeb-Light.woff") format('woff');
font-weight: 100;
}

@font-face {
font-family: "Simple";
src: url("~grommet/scss/hpe/font/SimRg.otf") format("opentype");
src: url("#{$hpe-fonts-path}/SimRg.otf") format("opentype");
}

.large-number-font {
Expand Down
4 changes: 3 additions & 1 deletion src/scss/hpinc/_hpinc.defaults.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@ $brand-grey-colors: (#545454, #767676, #989898);
$brand-graph-colors: (#0096D6, #C094bf, #99d5ef, #87898b, #b9b8bb);
$focus-border-color: #99d5ef;

$hpinc-fonts-path: "http://hpincfonts.s3.amazonaws.com";

@font-face {
font-family: "HPSimplified";
src: url("~grommet/scss/hpinc/font/hps-me-w27-regular-woff.woff") format('woff');
src: url("#{$hpinc-fonts-path}/hps-me-w27-regular-woff.woff") format('woff');
}

.control-icon {
Expand Down

0 comments on commit f7baf6b

Please sign in to comment.