-
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.
- D8CORE-3247: Publications styles (#66) (a487064) - Update composer.json for stanford_basic (#65) (586fabc) - D8CORE-3528: updating class name to match reality (#64) (a49c69d) - D8CORE-3499: fixing the link icons (#61) (a3a1119) - D8CORE-3246 D8CORE-3487: fixing the external link icons (#63) (414b076) - D8CORE-3248: publication set up for SOE (#59) (af11eda)
- Loading branch information
Showing
13 changed files
with
236 additions
and
17 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,163 @@ | ||
@charset 'UTF-8'; | ||
|
||
|
||
.publication { | ||
.main-region { | ||
|
||
.su-publication-cta { | ||
.su-button { | ||
@include soe-button--turquoise; | ||
|
||
&.su-link--external { | ||
&::after { | ||
background-color: $su-color-black; | ||
} | ||
} | ||
|
||
&:hover { | ||
color: $su-color-white; | ||
|
||
&::after { | ||
background-color: $su-color-white; | ||
} | ||
} | ||
} | ||
} | ||
|
||
} | ||
|
||
// More publications cards on the publication node page. | ||
.su-card__contents { | ||
h2 { | ||
> a:not(.su-link--external) { | ||
@include soe--link; | ||
@include soe-link-icon(soe_arrow, 1.8rem, 0); | ||
|
||
display: inline; | ||
font-weight: $su-font-bold; | ||
margin: 0; | ||
animation: none; | ||
|
||
&::after { | ||
background-color: $su-color-black; | ||
color: $su-color-black; | ||
transform: none; | ||
} | ||
|
||
&:hover, | ||
&:focus { | ||
@include soe--link-hover; | ||
|
||
color: $su-color-black; | ||
text-decoration: none; | ||
|
||
&::after { | ||
transform: none; | ||
} | ||
} | ||
|
||
&::after { | ||
background-color: $su-color-black; | ||
} | ||
} | ||
|
||
> a { | ||
&.su-link--external { | ||
@include soe--link; | ||
@include link-icon(arrow-up-right, 1.3rem, topright); | ||
|
||
&::after { | ||
background-color: $su-color-black; | ||
} | ||
|
||
&:hover, | ||
&:focus { | ||
@include soe--link-hover; | ||
|
||
color: $su-color-black; | ||
text-decoration: none; | ||
|
||
&::after { | ||
transform: none; | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
// Publications list view | ||
.stanford-publications { | ||
&.view { | ||
a:not([class*="button"]) { | ||
@include soe--link; | ||
|
||
display: inline; | ||
font-weight: $su-font-bold; | ||
margin: 0; | ||
animation: none; | ||
color: $su-color-black; | ||
|
||
&:hover, | ||
&:focus { | ||
@include soe--link-hover; | ||
|
||
text-decoration: none; | ||
|
||
&::after { | ||
transform: none; | ||
} | ||
} | ||
|
||
&::after { | ||
background-color: $su-color-black; | ||
} | ||
|
||
&.su-link--external { | ||
@include link-icon(arrow-up-right, 1.3rem, 0); | ||
|
||
&::after { | ||
background-color: $su-color-black; | ||
} | ||
} | ||
} | ||
|
||
// Load more button. | ||
.js-pager__items { | ||
.pager__item { | ||
.button { | ||
@include button-big; | ||
@include box-shadow('shallow'); | ||
|
||
background-color: $soe-color-turquoise; | ||
color: $soe-color-black; | ||
|
||
&:hover { | ||
background-color: $su-color-black; | ||
color: $su-color-white; | ||
} | ||
} | ||
} | ||
} | ||
|
||
} | ||
} | ||
|
||
// Filter list view | ||
// Getting the banner aligned full width | ||
.publications-terms--filtered { | ||
max-width: 100vw; | ||
width: 100vw; | ||
position: relative; | ||
left: 50%; | ||
right: 50%; | ||
margin-left: -50vw; | ||
margin-right: -50vw; | ||
|
||
h1 { | ||
@include centered-column; | ||
} | ||
|
||
} | ||
|
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 |
---|---|---|
|
@@ -22,4 +22,5 @@ | |
@import 'image-cta'; | ||
@import 'news'; | ||
@import 'people'; | ||
@import 'publications'; | ||
@import 'super-footer'; |
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,33 @@ | ||
@charset "UTF-8"; | ||
|
||
/// | ||
/// Display SOE arrow icon after a link. | ||
/// | ||
/// @name link-icon | ||
/// | ||
/// @param {string} $icon - Basename of link icon .svg file (without the .svg suffix). | ||
/// @param {string} $width - Width of icon including unit, e.g. 0.75em, 24px. | ||
/// @param {string} $vertical - Adjustment of vertical position of icon, e.g., '2px' moves icon up 2 pixels, '-0.3em' moves it down 0.3 em. | ||
/// | ||
/// @group mixin | ||
@mixin soe-link-icon($icon, $width: 0.65em, $vertical: null) { | ||
text-decoration: none; | ||
@supports (mask-repeat: no-repeat) { | ||
&::after { | ||
@include margin(null 0.3em $vertical 0.4em); | ||
@include size($width); | ||
display: inline-block; | ||
content: ''; | ||
mask: url("#{$soe-image-path}/soe_arrow.svg") no-repeat 0 0; | ||
mask-size: contain; | ||
background-color: color(link); | ||
} | ||
|
||
&:hover, | ||
&:focus { | ||
&::after { | ||
background-color: color(link--hover); | ||
} | ||
} | ||
} | ||
} |
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 |
---|---|---|
|
@@ -8,3 +8,4 @@ | |
@import 'gradients'; | ||
@import 'buttons'; | ||
@import 'links'; | ||
@import 'soe_link-icon'; |