theme: make default h2 colour green except for home
This commit is contained in:
parent
72da4d0fac
commit
8a35c8a9ed
14
style.css
14
style.css
@ -25,34 +25,38 @@ with others.
|
||||
display: flex;
|
||||
height: 36px;
|
||||
align-items: center;
|
||||
border-bottom: 1px solid;
|
||||
border-top: 1px solid;
|
||||
}
|
||||
|
||||
|
||||
.wp-site-blocks h2::before {
|
||||
content: "";
|
||||
border-top: 1px solid;
|
||||
border-bottom: 1px solid;
|
||||
border-right: 1px solid;
|
||||
width: 80px;
|
||||
margin-right: 8px;
|
||||
height: 36px;
|
||||
border-bottom: 2px solid var(--wp--preset--color--background);
|
||||
border-top: 2px solid var(--wp--preset--color--background);
|
||||
}
|
||||
|
||||
.wp-site-blocks h2::after {
|
||||
content: "";
|
||||
border-top: 1px solid;
|
||||
border-bottom: 1px solid;
|
||||
flex-grow: 1;
|
||||
margin-left: 8px;
|
||||
height: 36px;
|
||||
border-left: 1px solid;
|
||||
border-bottom: 2px solid var(--wp--preset--color--background);
|
||||
border-top: 2px solid var(--wp--preset--color--background);
|
||||
}
|
||||
|
||||
.home .wp-site-blocks ul {
|
||||
list-style-image: url('https://beta.autonomic.zone/wp-content/uploads/2023/01/arrow.png');
|
||||
}
|
||||
|
||||
.home .wp-site-blocks h2 {
|
||||
color: var(--wp--preset--color--primary)
|
||||
}
|
||||
|
||||
.wp-block-navigation-item.current-menu-item {
|
||||
color: var(--wp--preset--color--secondary)
|
||||
}
|
||||
|
@ -4,7 +4,8 @@
|
||||
<div class="wp-block-column" style="flex-basis:20%">
|
||||
<!-- wp:group {"style":{"spacing":{"padding":{"top":"188px","right":"64px"}}},"layout":{"type":"constrained"}} -->
|
||||
<div class="wp-block-group" style="padding-top:188px;padding-right:64px">
|
||||
<!-- wp:template-part {"slug":"nav-menu","theme":"autonomic-block-theme","area":"uncategorized"} /--></div>
|
||||
<!-- wp:template-part {"slug":"nav-menu","theme":"autonomic-block-theme","area":"uncategorized"} /-->
|
||||
</div>
|
||||
<!-- /wp:group -->
|
||||
</div>
|
||||
<!-- /wp:column -->
|
||||
@ -14,7 +15,7 @@
|
||||
|
||||
<!-- wp:query {"queryId":40,"query":{"perPage":3,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":false,"parents":[]}} -->
|
||||
<div class="wp-block-query"><!-- wp:post-template -->
|
||||
<!-- wp:post-title {"isLink":true,"style":{"elements":{"link":{"color":{"text":"var:preset|color|secondary"}}},"typography":{"textDecoration":"none"}},"textColor":"secondary"} /-->
|
||||
<!-- wp:post-title {"isLink":true,"style":{"typography":{"textDecoration":"none"},"elements":{"link":{"color":{"text":"var:preset|color|secondary"}}}}} /-->
|
||||
|
||||
<!-- wp:post-featured-image {"isLink":true,"align":"wide","style":{"border":{"width":"1px"}},"borderColor":"primary"} /-->
|
||||
|
||||
|
@ -176,6 +176,9 @@
|
||||
"typography": {
|
||||
"fontSize": "14px",
|
||||
"textTransform": "uppercase"
|
||||
},
|
||||
"color": {
|
||||
"text": "var(--wp--preset--color--secondary)"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user