Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CHEMH-242 | @jdwjdwjdw | Update more-link button for news pages #64

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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