Skip to content
This repository has been archived by the owner on May 24, 2021. It is now read-only.

Commit

Permalink
fix(style): Apply normal word-break rule on p and headings in tabs
Browse files Browse the repository at this point in the history
Exchange a strict word-break rule as general styling of p and heading
elements for a normal word-break rule.
  • Loading branch information
plutonik-a committed Feb 29, 2016
1 parent d238f2e commit 8c2ed7a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 6 additions & 0 deletions src/sass/_tabs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ $tab-header-height-mobile: 50px;
background-color: $tab-background;
position: relative;

h2, h3, p {
hyphens: auto;
/* Non standard for webkit */
word-break: break-word;
}

a {
color: $tab-link-color;
&:hover,
Expand Down
5 changes: 0 additions & 5 deletions src/sass/_type.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,12 @@
// -------------------------

.break-all {
hyphens: auto;
word-break: break-all;
/* Non standard for webkit */
word-break: break-word;
}

p {
margin: 0 0 ($line-height-computed / 2);
font-weight: $font-weight-normal;
@extend .break-all;
}


Expand All @@ -31,7 +27,6 @@ h1, h2, h3, h4, h5, h6,
font-family: $headings-font-family;
line-height: $headings-line-height;
color: $headings-color;
@extend .break-all;
}

h1, h2,
Expand Down

0 comments on commit 8c2ed7a

Please sign in to comment.