Skip to content

Commit

Permalink
Subtle USP modifier, resolves #253
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasbritton committed Feb 2, 2018
1 parent 9cea924 commit 17db930
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.2.3
2.3.4
2 changes: 1 addition & 1 deletion dist/ustyle-content.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/ustyle-latest.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/ustyle.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion vendor/assets/stylesheets/ustyle/components/_tabs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -202,11 +202,11 @@ $tab-active-color: $tab-border-color;
display: flex;
-webkit-box-align: center;
-webkit-box-pack: center;
-webkit-align-items: center;
-webkit-justify-content: center;
justify-content: center;
-ms-flex-align: center;
-ms-flex-pack: center;
-webkit-align-items: center;
align-items: center;
}
// scss-lint:enable Comment, MergeableSelector
Expand Down
34 changes: 34 additions & 0 deletions vendor/assets/stylesheets/ustyle/components/_usp.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
// @state .us-usp--red - Generic vertical specific USP.
//
// @markup
// <div class='us-usp us-usp--subtle {$modifiers}'>Subtle USP</div>
// <div class='us-usp {$modifiers}'>Shortened USP</div>
// <div class='us-usp us-usp--annotated'>
// <div class='us-usp {$modifiers}'>Annotated USP</div>
Expand Down Expand Up @@ -54,6 +55,10 @@ $variants: (
color: #{nth($colour, 3)};
}
}

.us-usp--subtle.us-usp--#{nth($colour, 1)} {
color: #{nth($colour, 2)};
}
}

.us-usp--annotated {
Expand All @@ -67,3 +72,32 @@ $variants: (
margin-left: -10px;
}
}

.us-usp--subtle {
width: 100%;
padding: 0;
font-size: 1em;
color: $c-typecyan;
background-color: transparent;

@include respond-to(tablet) {
width: auto;
}

&:after {
@include respond-to(tablet) {
position: relative;
top: -1px;
right: 0;
margin-right: 3px;
font-weight: normal;
line-height: 0;
color: $c-bordergrey;
content: " | ";
}
}

&:last-child:after {
display: none;
}
}

0 comments on commit 17db930

Please sign in to comment.