-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into 90-basic-webpack
* master: Reorganize files for CTA so it's consistent with other components (#345) Update main-nav.twig (#331) get rid of ID (#342) 5 Lines Lockup + Variants (#289) Update _alert--info.scss (#330) # Conflicts: all resolved using "mine" # core/dist/css/decanter.css # package-lock.json # package.json
- Loading branch information
Showing
42 changed files
with
1,244 additions
and
255 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
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 |
---|---|---|
|
@@ -53,5 +53,9 @@ | |
.su-alert__text { | ||
@include margin(0 null); | ||
} | ||
|
||
a { | ||
text-decoration: underline; | ||
} | ||
} | ||
} |
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,15 @@ | ||
@charset "UTF-8"; | ||
|
||
// Call-to-action block with an icon centered on image link and a button at the bottom | ||
|
||
.su-cta--button-bottom-icon { | ||
.su-cta__icon { | ||
display: block; | ||
max-width: 30%; | ||
position: absolute; | ||
top: 50%; | ||
left: 50%; | ||
$_shifty: -($lead-font-size + 3rem) / 2; //Extra vertical shift of icon to compensate for button height | ||
transform: translateX(-50%) translateY(-50%) translateY($_shifty); | ||
} | ||
} |
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,13 @@ | ||
@charset "UTF-8"; | ||
|
||
// Call-to-action block with a button in the center | ||
|
||
.su-cta--button-center { | ||
.su-cta__button { | ||
@include centering; | ||
|
||
@include grid-media('xs') { | ||
width: auto; | ||
} | ||
} | ||
} |
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 |
---|---|---|
|
@@ -5,4 +5,6 @@ | |
/// | ||
|
||
@import | ||
'cta'; | ||
'cta', | ||
'cta--button-center', | ||
'cta--button-bottom-icon'; |
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,62 @@ | ||
@charset 'UTF-8'; | ||
|
||
// | ||
// Lockup option A: Multidisciplinary (or long school name) | ||
// | ||
.su-lockup--option-a { | ||
|
||
> a { | ||
@include grid-media-max('sm') { | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
} | ||
|
||
.su-lockup__line2, | ||
.su-lockup__line3, | ||
.su-lockup__line4 { | ||
display: none; | ||
} | ||
|
||
.su-lockup__cell2 { | ||
@include grid-media-max('sm') { | ||
order: 3; | ||
} | ||
} | ||
|
||
.su-lockup__line1 { | ||
line-height: 2.6rem; | ||
|
||
@include grid-media-max('sm') { | ||
@include margin(null null null -2px); | ||
} | ||
|
||
@include grid-media('md') { | ||
font-size: 3.2rem; | ||
line-height: 0.7em; | ||
} | ||
} | ||
|
||
.su-lockup__line5 { | ||
font-size: 2rem; | ||
font-weight: $font-bold; | ||
text-transform: uppercase; | ||
|
||
@include grid-media-max('sm') { | ||
@include margin(.75rem null null -2px); | ||
order: 2; | ||
|
||
&::after { | ||
@include margin(.75rem null .5rem); | ||
border-bottom: 1px solid $color-black; | ||
content: ''; | ||
display: block; | ||
width: 120px; | ||
} | ||
} | ||
|
||
@include grid-media('md') { | ||
font-size: 2.1rem; | ||
} | ||
} | ||
} |
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,35 @@ | ||
@charset 'UTF-8'; | ||
|
||
// | ||
// Lockup option B: Unit (2 lines, big/small) | ||
// | ||
.su-lockup--option-b { | ||
|
||
.su-lockup__line3, | ||
.su-lockup__line4, | ||
.su-lockup__line5 { | ||
display: none; | ||
} | ||
|
||
.su-lockup__line1 { | ||
@include margin(null null 0.2em); | ||
|
||
@include grid-media('md') { | ||
@include margin(-.4rem null null); | ||
font-size: 1.9rem; | ||
} | ||
|
||
@include grid-media-max('sm') { | ||
@include margin(.5rem null .2rem -2px); | ||
} | ||
} | ||
|
||
.su-lockup__line2 { | ||
line-height: 0.7em; | ||
|
||
@include grid-media-max('sm') { | ||
@include margin(null null null -2px); | ||
line-height: 2.6rem; | ||
} | ||
} | ||
} |
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,70 @@ | ||
@charset 'UTF-8'; | ||
|
||
// | ||
// Lockup option C: Multidisciplinary + Unit (2 lines, big/small) | ||
// | ||
.su-lockup--option-c { | ||
|
||
> a { | ||
@include grid-media-max('sm') { | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
} | ||
|
||
.su-lockup__line3, | ||
.su-lockup__line4 { | ||
display: none; | ||
} | ||
|
||
.su-lockup__cell2 { | ||
@include grid-media-max('sm') { | ||
@include margin(null null null -2px); | ||
order: 3; | ||
} | ||
} | ||
|
||
.su-lockup__line1 { | ||
@include margin(null null 0.2em null); | ||
|
||
@include grid-media('md') { | ||
@include margin(-.4rem null null); | ||
font-size: 1.9rem; | ||
} | ||
|
||
@include grid-media-max('sm') { | ||
@include margin(null null .2rem null); | ||
} | ||
} | ||
|
||
.su-lockup__line2 { | ||
line-height: 0.7em; | ||
|
||
@include grid-media-max('sm') { | ||
line-height: 2.6rem; | ||
} | ||
} | ||
|
||
.su-lockup__line5 { | ||
font-size: 2rem; | ||
font-weight: $font-bold; | ||
text-transform: uppercase; | ||
|
||
@include grid-media-max('sm') { | ||
@include margin(.75rem null null -2px); | ||
order: 2; | ||
|
||
&::after { | ||
@include margin(.75rem null .5rem); | ||
border-bottom: 1px solid $color-black; | ||
content: ''; | ||
display: block; | ||
width: 120px; | ||
} | ||
} | ||
|
||
@include grid-media('md') { | ||
font-size: 2.1rem; | ||
} | ||
} | ||
} |
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,31 @@ | ||
@charset 'UTF-8'; | ||
|
||
// | ||
// Lockup option D: Unit + Level (1 line) | ||
// | ||
.su-lockup--option-d { | ||
|
||
.su-lockup__line2, | ||
.su-lockup__line4, | ||
.su-lockup__line5 { | ||
display: none; | ||
} | ||
|
||
.su-lockup__line1 { | ||
@include grid-media("sm") { | ||
@include margin(-.7rem null null); | ||
} | ||
|
||
@include grid-media-max('sm') { | ||
@include margin(.5rem null .2rem -2px); | ||
} | ||
} | ||
|
||
.su-lockup__line3 { | ||
|
||
@include grid-media('md') { | ||
font-size: 1.8rem; | ||
line-height: .7em; | ||
} | ||
} | ||
} |
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,43 @@ | ||
@charset 'UTF-8'; | ||
|
||
// | ||
// Lockup option E: Unit (2 lines) + Level | ||
// | ||
.su-lockup--option-e { | ||
|
||
.su-lockup__line4, | ||
.su-lockup__line5 { | ||
display: none; | ||
} | ||
|
||
.su-lockup__line1 { | ||
|
||
@include grid-media("sm") { | ||
@include margin(-.7rem null null); | ||
font-size: 2.6rem; | ||
} | ||
|
||
@include grid-media-max('sm') { | ||
@include margin(.5rem null null -2px); | ||
} | ||
} | ||
|
||
.su-lockup__line2 { | ||
line-height: 2.6rem; | ||
|
||
@include grid-media-max('sm') { | ||
@include margin(null null null -2px); | ||
} | ||
} | ||
|
||
.su-lockup__line3 { | ||
@include margin(.5rem null null); | ||
font-style: italic; | ||
|
||
@include grid-media('md') { | ||
@include margin(.8rem null null); | ||
font-size: 1.9rem; | ||
line-height: .7em; | ||
} | ||
} | ||
} |
Oops, something went wrong.