Skip to content

Commit

Permalink
refactor(text): Remove telus-font-family mixin
Browse files Browse the repository at this point in the history
And make styleguidist sidebar a bit wider to properly display DisplayHeading.Sup and
DisplayHeading.Sub components
  • Loading branch information
lzcabrera committed Sep 5, 2017
1 parent 8cc4c88 commit 4aa6d6c
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 20 deletions.
5 changes: 5 additions & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
<link rel="favicon" href="/favicon.ico">
</head>
<body>
<style>
.sidebar-0-4{
width: 230px;
}
</style>
<div id="app"></div>
</body>
</html>
1 change: 1 addition & 0 deletions src/components/Button/Button.modules.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ $button-text-color: $color-white;

transition: background .2s;

font-family: $font-telus;
composes: medium from '../Typography/Text/Text.modules.scss';
composes: boldFont from '../Typography/Text/Text.modules.scss';
text-align: center;
Expand Down
1 change: 0 additions & 1 deletion src/components/Link/ChevronLink/ChevronLink.modules.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
@import '../../../scss/settings/typography';

.link {
@include telus-font-family;
@include helvetica-neue-roman-55;

composes: medium from '../../Typography/Text/Text.modules.scss';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
@import '../../../scss/utility/responsive';

.baseHeadingSupSubScripts {
@include telus-font-family;
position: relative;
vertical-align: baseline;
}
Expand Down
1 change: 0 additions & 1 deletion src/components/Typography/Heading/Heading.modules.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
@import '../../../scss/utility/responsive';

.baseHeadingSupSubScripts {
@include telus-font-family;
position: relative;
vertical-align: baseline;
}
Expand Down
13 changes: 0 additions & 13 deletions src/components/Typography/Text/Text.modules.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,11 @@
@import '../../../scss/settings/typography';

.baseSupSubScripts {
@include telus-font-family;
position: relative;
vertical-align: baseline;
font-size: .875rem;
}

.fontFamily {
@include telus-font-family;
}

.sup {
composes: baseSupSubScripts;
top: -.5em;
Expand All @@ -38,8 +33,6 @@

.smallFont {
@include helvetica-neue-roman-55;

composes: fontFamily;
}

.medium {
Expand All @@ -50,8 +43,6 @@

.mediumFont {
@include helvetica-neue-light-45;

composes: fontFamily;
}

.large {
Expand All @@ -62,14 +53,10 @@

.largeFont {
@include helvetica-neue-light-45;

composes: fontFamily;
}

.boldFont {
@include helvetica-neue-medium-65;

composes: fontFamily;
}

.color {
Expand Down
4 changes: 0 additions & 4 deletions src/scss/settings/_typography.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ $body-medium-line-height: 1.5; // 24px
$body-small-text-size: 14px;
$body-small-line-height: 1.71; // 24px

@mixin telus-font-family {
font-family: $font-telus;
}

@mixin helvetica-neue-thin-35 {
font-weight: 300;
}
Expand Down

0 comments on commit 4aa6d6c

Please sign in to comment.