-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(bundler): add global CSS to the rollup build
- Loading branch information
1 parent
fc73985
commit 6c5daa7
Showing
19 changed files
with
2,169 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,182 @@ | ||
// Button styles | ||
|
||
.button, | ||
a.button { | ||
border: 0; | ||
border-radius: 4px; | ||
cursor: pointer; | ||
display: block; | ||
font-size: rem(16px); | ||
font-weight: 700; | ||
letter-spacing: .2px; | ||
line-height: 1.166666; | ||
margin: 9px 0; | ||
padding: 16px 32px; | ||
text-align: center; | ||
text-decoration: none; | ||
transition: background .2s; | ||
width: 100%; | ||
min-height: 52px; | ||
min-width: 180px; | ||
|
||
@include from-breakpoint(medium) { | ||
display: inline-block; | ||
width: auto; | ||
vertical-align: top; | ||
|
||
+ .button { | ||
// Using < 20px to compensate for the extra margin which appears between inline-block | ||
// elements due to whitespace in the actual markup. | ||
margin-left: 16px; | ||
} | ||
|
||
+ .button--link { | ||
margin-left: 34px; | ||
} | ||
|
||
&--link { | ||
+ .button--link { | ||
margin-left: 40px; | ||
} | ||
|
||
+ .button:not(.button--link) { | ||
margin-left: 40px; | ||
} | ||
} | ||
} | ||
|
||
&--primary { | ||
background-color: $color-primary; | ||
color: $color-white; | ||
|
||
&:hover { | ||
background-color: transparent; | ||
color: $color-primary; | ||
box-shadow: 0 0 0 1px; | ||
} | ||
|
||
&.button--outlined { | ||
background-color: transparent; | ||
box-shadow: 0 0 0 1px; | ||
color: $color-primary; | ||
|
||
&:hover { | ||
background-color: $color-primary; | ||
color: $color-white; | ||
} | ||
} | ||
|
||
&.button--inverted { | ||
background-color: $color-white; | ||
color: $color-primary; | ||
|
||
&:hover { | ||
box-shadow: 0 0 0 1px; | ||
color: $color-white; | ||
background-color: transparent; | ||
} | ||
|
||
&.button--outlined { | ||
background-color: transparent; | ||
color: $color-white; | ||
|
||
&:hover { | ||
background-color: $color-white; | ||
color: $color-primary; | ||
box-shadow: 0 0 0 1px; | ||
} | ||
} | ||
} | ||
|
||
&.button--link { | ||
&::after { | ||
padding-left: 4px; | ||
} | ||
|
||
@include chevron-links($color-primary); | ||
} | ||
} | ||
|
||
&--secondary { | ||
background-color: $color-secondary; | ||
color: $color-white; | ||
|
||
&:hover { | ||
background-color: transparent; | ||
color: $color-secondary; | ||
box-shadow: 0 0 0 1px; | ||
} | ||
|
||
&.button--outlined { | ||
background-color: transparent; | ||
color: $color-secondary; | ||
box-shadow: 0 0 0 1px; | ||
|
||
&:hover { | ||
background-color: $color-secondary; | ||
color: $color-white; | ||
} | ||
} | ||
|
||
&.button--inverted { | ||
background-color: $color-white; | ||
color: $color-secondary; | ||
|
||
&:hover { | ||
box-shadow: 0 0 0 1px; | ||
color: $color-white; | ||
background-color: transparent; | ||
} | ||
|
||
&.button--outlined { | ||
background-color: transparent; | ||
color: $color-white; | ||
|
||
&:hover { | ||
background-color: $color-white; | ||
color: $color-secondary; | ||
box-shadow: 0 0 0 1px; | ||
} | ||
} | ||
} | ||
|
||
&.button--link { | ||
&::after { | ||
padding-left: 4px; | ||
} | ||
|
||
@include chevron-links($color-secondary); | ||
} | ||
} | ||
|
||
&--link { | ||
-webkit-appearance: none; | ||
appearance: none; | ||
background-color: inherit; | ||
font-family: inherit; | ||
line-height: 1; | ||
font-size: rem(16px); | ||
border: 0; | ||
text-decoration: underline; | ||
padding-left: 0; | ||
padding-right: 0; | ||
font-weight: 500; | ||
min-width: auto; | ||
} | ||
|
||
&--plain { | ||
margin: 0; | ||
padding: 0; | ||
border: 0; | ||
background-image: none; | ||
background-color: transparent; | ||
box-shadow: none; | ||
text-align: center; | ||
} | ||
} | ||
|
||
// Github Issue 394 fix | ||
a.button--primary.button--outlined:hover { | ||
display: inline-block; | ||
background-color: $color-primary; | ||
} |
Oops, something went wrong.