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

Stewart: Move link and hover settings to theme.json #6121

Merged
merged 3 commits into from
Nov 7, 2022
Merged
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
4 changes: 2 additions & 2 deletions stewart/readme.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
=== Stewart ===
Contributors: automattic
Requires at least: 5.8
Tested up to: 5.8
Requires at least: 6.1
Tested up to: 6.1
Requires PHP: 5.6
Stable tag: 1.0
License: GPLv2 or later
Expand Down
18 changes: 2 additions & 16 deletions stewart/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ Theme URI: https://wordpress.com/theme/stewart
Author: Automattic
Author URI: https://automattic.com/
Description: Stewart is a modern blogging theme with a left sidebar. Its default color scheme is a striking combination of orange and light gray, to give your blog a sophisticated appearance from day one.
Requires at least: 5.8
Tested up to: 5.8
Requires at least: 6.1
Tested up to: 6.1
Requires PHP: 5.7
Version: 1.9
License: GNU General Public License v2 or later
Expand Down Expand Up @@ -57,25 +57,11 @@ a {
text-decoration: none;
}

a:hover,
.wp-block-site-title a:hover,
.wp-block-post-title a:hover,
.wp-block-post-date a:hover {
color: var(--wp--preset--color--primary);
}

.wp-block-navigation .wp-block-navigation-link a,
.wp-block-navigation .wp-block-page-list a,
.wp-block-navigation .wp-block-pages-list__item a,
.wp-block-navigation .wp-block-post-title a {
text-decoration: underline;
}

.wp-block-navigation .wp-block-navigation-link a:hover,
.wp-block-navigation .wp-block-page-list a:hover,
.wp-block-navigation .wp-block-pages-list__item a:hover,
.wp-block-navigation .wp-block-post-title a:hover {
color: var(--wp--preset--color--primary);
text-decoration: none;
}

Expand Down
17 changes: 17 additions & 0 deletions stewart/theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,18 @@
"typography": {
"fontSize": "var(--wp--preset--font-size--small)",
"lineHeight": 2
},
"elements": {
"link": {
"typography": {
"textDecoration": "underline"
},
":hover": {
"typography": {
"textDecoration": "none"
}
}
}
}
},
"core/post-title": {
Expand Down Expand Up @@ -374,6 +386,11 @@
"link": {
"color": {
"text": "var(--wp--preset--color--foreground)"
},
":hover": {
"color": {
"text": "var(--wp--preset--color--primary)"
}
}
}
},
Expand Down