Skip to content

Commit

Permalink
Update more-link button for news pages
Browse files Browse the repository at this point in the history
  • Loading branch information
jdwjdwjdw committed Aug 15, 2023
1 parent 9f34bde commit 36dc9c9
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/css/chem_h_subtheme.css

Large diffs are not rendered by default.

10 changes: 9 additions & 1 deletion src/scss/components/news/_news-node.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,15 @@
}

.more-link {
@include chemh--right-arrow-icon;
a {
@include chemh-button--gradient;

&:focus,
&:hover {
background-color: $chemh-color-hover-peach;
}

}
}

// Related news cards in footer.
Expand Down
6 changes: 6 additions & 0 deletions src/scss/theme/_button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
// additional button classes as needed.
// links styled into buttons

.stanford-news-vertical-teaser-term .more-link a,
.su-button,
.su-button.su-link,
.su-button--big,
Expand Down Expand Up @@ -32,6 +33,8 @@ button {
.su-button.su-link:hover,
.su-button:focus,
.su-button:hover,
.stanford-news-vertical-teaser-term .more-link a:focus,
.stanford-news-vertical-teaser-term .more-link a:hover,
[type=button]:focus,
[type=button]:hover,
[type=image]:focus,
Expand All @@ -50,6 +53,7 @@ button:hover {
}

// Active links.
.stanford-news-vertical-teaser-term .more-link a,
.su-button.su-link:active,
.su-button:active,
.su-button--big.su-link:active,
Expand All @@ -75,6 +79,7 @@ button:hover {

main,
footer {
.stanford-news-vertical-teaser-term .more-link a,
.su-button.su-link,
.su-button,
.su-button--big.su-link,
Expand Down Expand Up @@ -113,6 +118,7 @@ footer {
}
}

.stanford-news-vertical-teaser-term .more-link a,
.su-button {
&.su-link--external {
&::after {
Expand Down

0 comments on commit 36dc9c9

Please sign in to comment.