generated from SU-SWS/stanford_starter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* THUB-15: initial commit * THUB-15: setting up the variants * THUB-15: removed the top banner as an option * THUB-15: overlay banner * THUB-15: banner fixup
- Loading branch information
Showing
12 changed files
with
230 additions
and
3 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,124 @@ | ||
@charset "UTF-8"; | ||
|
||
.thub-wrapper--banner-overlay { | ||
background: $su-color-black url("../assets/png/banner-bg.jpg") no-repeat 100% / cover; | ||
|
||
// Border top. | ||
&::before { | ||
background: $thub-gradient-lagunita-to-ochre-to-red; | ||
height: 3px; | ||
border-radius: 1.5px; | ||
display: block; | ||
content: ' '; | ||
} | ||
|
||
.su-hero { | ||
display: flex; | ||
justify-content: flex-start; | ||
flex-direction: column; | ||
|
||
@include grid-media-min('lg') { | ||
flex-direction: row; | ||
} | ||
} | ||
|
||
.su-hero__card { | ||
max-width: 500px; | ||
background: transparent; | ||
border: none; | ||
box-shadow: none; | ||
|
||
section.su-card__contents { | ||
color: $su-color-white; | ||
|
||
div.su-card__superhead { | ||
@include slab; | ||
|
||
font-weight: $su-font-regular; | ||
font-size: 1.7rem; | ||
} | ||
|
||
h2, | ||
h3 { | ||
@include thub-type-b; | ||
} | ||
|
||
p { | ||
font-size: 2.1rem; | ||
line-height: 1.5; | ||
|
||
a { | ||
@include thub-type-link; | ||
} | ||
} | ||
|
||
a.su-link--action { | ||
@include thub-type-link; | ||
} | ||
} | ||
} | ||
|
||
.su-hero__media { | ||
right: 0; | ||
width: fit-content; | ||
min-height: 370px; | ||
position: relative; | ||
background: transparent; | ||
|
||
@include grid-media-max('md') { | ||
aspect-ratio: 11/11; | ||
} | ||
|
||
@include grid-media-min('lg') { | ||
position: absolute; | ||
width: 50%; | ||
} | ||
} | ||
|
||
// Left text | ||
.overlay-left { | ||
.su-hero__card { | ||
left: 3%; | ||
max-width: 500px; | ||
|
||
@include grid-media-max('lg') { | ||
width: calc(50% - 70px); | ||
} | ||
|
||
@include grid-media-max('md') { | ||
width: calc(100% - 70px); | ||
} | ||
} | ||
} | ||
|
||
// Right text | ||
.overlay-right { | ||
.su-hero__media { | ||
right: unset; | ||
} | ||
|
||
@include grid-media-max('md') { | ||
.su-hero__card { | ||
left: 45px; | ||
margin-left: inherit; | ||
right: 45px; | ||
} | ||
} | ||
|
||
.su-hero__card { | ||
right: 3%; | ||
max-width: 500px; | ||
|
||
@include grid-media-max('lg') { | ||
width: calc(50% - 70px); | ||
} | ||
|
||
@include grid-media-max('md') { | ||
width: calc(100% - 70px); | ||
} | ||
} | ||
} | ||
} | ||
|
||
|
||
|
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,5 @@ | ||
@charset "UTF-8"; | ||
|
||
// Banner rollup file. | ||
|
||
@import 'overlay-banner'; |
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,22 @@ | ||
@charset "UTF-8"; | ||
|
||
|
||
@mixin thub-type-link { | ||
color: $thub-color-ochre-light; | ||
text-decoration: none; | ||
|
||
&::after { | ||
background-color: $thub-color-ochre-light; | ||
} | ||
|
||
&:hover, | ||
&:focus, | ||
&:active { | ||
color: $su-color-white; | ||
text-decoration: underline; | ||
|
||
&::after { | ||
background-color: $su-color-white; | ||
} | ||
} | ||
} |
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 |
---|---|---|
|
@@ -11,4 +11,5 @@ | |
@import 'cta'; | ||
@import 'headings'; | ||
@import 'link-icon'; | ||
@import 'links'; | ||
@import 'typography'; |
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 @@ | ||
# Example react_behaviors plugin definitions. | ||
# Plugin property $defaults are defined in ReactBehaviorsPluginManager. | ||
banner_variant_info: # part of the key after the : | ||
id: banner_type | ||
label: 'Banner Paragraphs Type' | ||
bundles: | ||
- paragraphs_type|stanford_banner | ||
config: | ||
banner_style: | ||
type: select | ||
title: 'Banner style' | ||
description: Select the button color for displaying this banner. | ||
options: | ||
thub-wrapper--banner-default: Default variant | ||
thub-wrapper--banner-overlay: Overlay variant |
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