498 lines
9.2 KiB
CSS
498 lines
9.2 KiB
CSS
/*!
|
|
Theme Name: Matt
|
|
Author: Matt Marcha
|
|
Author URI: https://matt.marcha.pro
|
|
Version: 1.0.0
|
|
Tested up to: 6.0
|
|
Requires PHP: 8.1
|
|
License: GNU General Public License v2 or later
|
|
|
|
*/
|
|
|
|
|
|
/* Box sizing
|
|
--------------------------------------------- */
|
|
|
|
/* Inherit box-sizing to more easily change it's value on a component level.
|
|
@link http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
|
|
*,
|
|
*::before,
|
|
*::after {
|
|
box-sizing: inherit;
|
|
}
|
|
|
|
html {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
|
|
/**** General ****/
|
|
|
|
header {
|
|
font-family: var(--sans-font);
|
|
}
|
|
|
|
footer {
|
|
max-width: 900px;
|
|
margin: 2em auto 0;
|
|
font-family: var(--sans-font);
|
|
}
|
|
|
|
/* Header
|
|
--------------------------------------------- */
|
|
|
|
header#masthead .site-branding {
|
|
margin-left: 1em;
|
|
}
|
|
|
|
|
|
header#masthead .site-branding .site-title {
|
|
margin: 1.5rem 0 0;
|
|
padding-bottom: 0;
|
|
line-height: 0.6;
|
|
color: var(--text-light);
|
|
}
|
|
|
|
header#masthead .site-branding .site-title a {
|
|
margin-bottom: 0;
|
|
text-decoration: none;
|
|
font-size: 7rem;
|
|
font-weight: 100;
|
|
text-transform: lowercase;
|
|
font-variant: none;
|
|
font-family: var(--sans-font);
|
|
letter-spacing: -5px;
|
|
color : var(--text-light);
|
|
-webkit-text-stroke: 3px var(--bg);
|
|
}
|
|
|
|
header#masthead .site-description {
|
|
font-weight: 100;
|
|
font-size: .9em;
|
|
padding-left: .5em;
|
|
margin-top: -4px;
|
|
color: var(--text-light);
|
|
}
|
|
|
|
|
|
/* Navigation
|
|
--------------------------------------------- */
|
|
|
|
header#masthead {
|
|
position: relative;
|
|
width: 100vw;
|
|
max-width: 900px;
|
|
overflow: hidden;
|
|
margin: auto;
|
|
}
|
|
|
|
|
|
header#masthead nav div.menu-main-menu-container {
|
|
display: none;
|
|
}
|
|
|
|
header#masthead nav label.menu-toggle,
|
|
header#masthead nav input.menu-toggle {
|
|
position: absolute;
|
|
width: 5em;
|
|
height: 5em;
|
|
right: 1em;
|
|
top: 4.5em;
|
|
background-color: var(--bg);
|
|
border: none;
|
|
color: var(--text-accent);
|
|
overflow: hidden;
|
|
font-size: .5em;
|
|
font-variant: small-caps;
|
|
text-align: center;
|
|
padding-top: 3.2em;
|
|
color: var(--text-light);
|
|
}
|
|
|
|
|
|
header#masthead nav label.menu-toggle:before {
|
|
content: '|||';
|
|
display: block;
|
|
position: absolute;
|
|
width: 1em;
|
|
height: 1em;
|
|
top: -8px;
|
|
left: 2px;
|
|
right: 0;
|
|
bottom: 0;
|
|
margin: 0;
|
|
transform: rotate(90deg);
|
|
font-size:2rem;
|
|
font-family: var(--mono-font);
|
|
letter-spacing: -12px;
|
|
line-height: 0.85;
|
|
color: var(--text-light);
|
|
}
|
|
|
|
|
|
header#masthead nav input.menu-toggle:checked ~ div.menu-main-menu-container {
|
|
display: block;
|
|
width: 100vw;
|
|
}
|
|
|
|
header#masthead nav input.menu-toggle:checked + label.menu-toggle:before {
|
|
content: '+';
|
|
transform: rotate(45deg);
|
|
font-size: 4rem;
|
|
left: -23px;
|
|
top: -18px;
|
|
-webkit-text-stroke: 2px var(--bg);
|
|
}
|
|
|
|
header#masthead div.menu-main-menu-container {
|
|
position: fixed;
|
|
height: 100%;
|
|
z-index: 9;
|
|
overflow: scroll;
|
|
background-color: var(--bg);
|
|
padding-bottom: 10rem;
|
|
}
|
|
|
|
header#masthead div.menu-main-menu-container ul {
|
|
list-style: none;
|
|
padding: 0 1em;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
header#masthead div.menu-main-menu-container a {
|
|
text-decoration: none;
|
|
color: var(--text);
|
|
text-align: center;
|
|
}
|
|
|
|
header#masthead div.menu-main-menu-container ul.menu > li {
|
|
margin-bottom: 1.5em;
|
|
}
|
|
header#masthead div.menu-main-menu-container ul.menu > li > a {
|
|
font-size: 1.5em;
|
|
margin-bottom: .2em;
|
|
display: block;
|
|
font-variant: small-caps;
|
|
}
|
|
|
|
header#masthead div.menu-main-menu-container ul.menu > li > ul.sub-menu {
|
|
border: 1px solid var(--text-light);
|
|
padding: 1em;
|
|
}
|
|
|
|
|
|
header#masthead div.menu-main-menu-container ul.sub-menu > li > a {
|
|
font-size: 1.1em;
|
|
color: var(--text-light);
|
|
}
|
|
|
|
|
|
main#primary nav.posts-navigation .nav-links,
|
|
main#primary nav.post-navigation .nav-links{
|
|
position: relative;
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex-wrap: wrap;
|
|
justify-content: space-between;
|
|
gap: 0 2em;
|
|
font-family: var(--sans-font);
|
|
font-variant: small-caps;
|
|
}
|
|
|
|
main#primary nav.posts-navigation .nav-links a,
|
|
main#primary nav.post-navigation .nav-links a {
|
|
text-decoration: none;
|
|
font-size: 1.2em;
|
|
}
|
|
|
|
main#primary nav.posts-navigation .nav-previous:before,
|
|
main#primary nav.post-navigation .nav-previous:before{
|
|
content: '<';
|
|
color: var(--accent);
|
|
font-size: 1.2em;
|
|
margin-right: .2em;
|
|
}
|
|
|
|
main#primary nav.posts-navigation .nav-next:after,
|
|
main#primary nav.post-navigation .nav-next:after{
|
|
content: '>';
|
|
color: var(--accent);
|
|
font-size: 1.2em;
|
|
margin-left: .2em;
|
|
}
|
|
|
|
@media only screen and (min-width : 764px) {
|
|
|
|
header#masthead {
|
|
overflow: visible;
|
|
}
|
|
|
|
.home header#masthead {
|
|
margin-bottom: 2em;
|
|
}
|
|
|
|
header#masthead nav div.menu-main-menu-container {
|
|
display: block;
|
|
position: static;
|
|
overflow: visible;
|
|
padding: 0 1em;
|
|
text-align: right;
|
|
margin-top: -2.6em;
|
|
background-color: transparent;
|
|
}
|
|
|
|
header#masthead nav label.menu-toggle,
|
|
header#masthead nav input.menu-toggle {
|
|
display: none;
|
|
}
|
|
|
|
header#masthead div.menu-main-menu-container > ul.menu {
|
|
text-align: right;
|
|
}
|
|
|
|
header#masthead div.menu-main-menu-container > ul.menu > li {
|
|
display: inline-block;
|
|
position: relative;
|
|
margin: 0 1em;
|
|
text-align: left;
|
|
}
|
|
|
|
header#masthead div.menu-main-menu-container > ul.menu > li > a {
|
|
font-size: 1.3em;
|
|
}
|
|
|
|
header#masthead div.menu-main-menu-container > ul.menu > li > ul.sub-menu {
|
|
display: none;
|
|
}
|
|
|
|
header#masthead div.menu-main-menu-container > ul.menu > li:hover > ul.sub-menu {
|
|
display: block;
|
|
position: absolute;
|
|
z-index: 1000;
|
|
right: -2em;
|
|
width: fit-content;
|
|
background-color: var(--bg);
|
|
box-shadow: 0 0 10px 5px var(--bg);
|
|
}
|
|
|
|
header#masthead div.menu-main-menu-container > ul.menu > li:hover > ul.sub-menu > li {
|
|
width: auto;
|
|
left: 0;
|
|
width: fit-content;
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
|
|
header#masthead div.menu-main-menu-container > ul.menu > li:hover > ul.sub-menu > li a {
|
|
white-space: nowrap;
|
|
font-size: 1em;
|
|
letter-spacing: -.5px;
|
|
}
|
|
|
|
|
|
}
|
|
|
|
/* Various
|
|
--------------------------------------------- */
|
|
|
|
input, textarea {
|
|
background-color: var(--accent-bg);
|
|
border: 1px solid var(--bg);
|
|
color: var(--text-light);
|
|
padding: .6em;
|
|
}
|
|
|
|
input[type=submit] {
|
|
background-color: var(--bg);
|
|
color: var(--accent);
|
|
border: dashed 2px var(--accent);
|
|
}
|
|
|
|
input[type=submit]:hover {
|
|
border: solid 2px var(--accent);
|
|
}
|
|
|
|
form#commentform label {
|
|
display: block;
|
|
color: var(--text-light);
|
|
}
|
|
|
|
|
|
aside#comments ol.comment-list .comment-author a,
|
|
aside#comments ol.comment-list .comment-meta a {
|
|
text-decoration: none;
|
|
color: var(--text-light);
|
|
}
|
|
|
|
|
|
header .cat-links {
|
|
margin: 0 0 .6em 0;
|
|
padding: 0;
|
|
}
|
|
|
|
header .cat-links a {
|
|
color: var(--text);
|
|
text-transform: uppercase;
|
|
letter-spacing: -1px;
|
|
font-weight: 100;
|
|
text-decoration: none;
|
|
}
|
|
|
|
header .posted-on {
|
|
font-style: italic;
|
|
font-size: .9em;
|
|
opacity: .6;
|
|
margin-bottom: -2.8em;
|
|
}
|
|
|
|
|
|
/* Archives
|
|
--------------------------------------------- */
|
|
|
|
.archive-description {
|
|
font-size: 1.5em;
|
|
color: var(--text-light);
|
|
margin: -1.5em auto 1.5em;
|
|
opacity: .8;
|
|
}
|
|
|
|
|
|
.blog article > header a,
|
|
.archive article > header a,
|
|
.blog article > footer a,
|
|
.archive article > footer a {
|
|
text-decoration: none;
|
|
}
|
|
|
|
.blog article > header a:hover,
|
|
.archive article > header a:hover,
|
|
.blog article > footer a:hover,
|
|
.archive article > footer a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.blog article > header h2,
|
|
.archive article > header h2 {
|
|
margin-bottom: 0.3em;;
|
|
}
|
|
|
|
.blog article > header h2 a:hover,
|
|
.archive article > header h2 a:hover {
|
|
text-decoration: none;
|
|
}
|
|
|
|
|
|
.blog article > footer .post-meta-comments,
|
|
.archive article > footer .post-meta-comments {
|
|
text-align: center;
|
|
opacity: 0.9;
|
|
font-size: 1.1em;
|
|
font-family: var(--sans-font);
|
|
}
|
|
|
|
.blog article > footer .post-meta-comments a,
|
|
.archive article > footer .post-meta-comments a {
|
|
color: var(--text-light);
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.blog article:after,
|
|
.archive article:after {
|
|
content: "";
|
|
display: block;
|
|
width: 100%;
|
|
height: 2px;
|
|
border-bottom: 1px solid var(--accent);
|
|
margin: 1em auto 3em;
|
|
}
|
|
|
|
/* Single
|
|
--------------------------------------------- */
|
|
|
|
.single main article {
|
|
padding-bottom: 2em;
|
|
border-bottom: 1px solid var(--accent);
|
|
margin-bottom: 2em;
|
|
}
|
|
|
|
.single header {
|
|
margin-top: 2em;
|
|
}
|
|
|
|
.single header .posted-on {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
/* Footer
|
|
--------------------------------------------- */
|
|
|
|
footer#colophon {
|
|
margin-top: 5em;
|
|
padding: 1em;
|
|
}
|
|
|
|
footer#colophon nav {
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex-wrap: wrap;
|
|
justify-content: space-between;
|
|
gap: 1em;
|
|
margin-bottom: 2em;
|
|
}
|
|
|
|
footer#colophon nav a {
|
|
text-decoration: none;
|
|
color: var(--text-light);
|
|
}
|
|
|
|
footer#colophon .legals {
|
|
font-size: 0.8em;
|
|
color: var(--text-light);
|
|
opacity: 0.8;
|
|
text-align: center;
|
|
}
|
|
|
|
/* Accessibility
|
|
--------------------------------------------- */
|
|
|
|
/* Text meant only for screen readers. */
|
|
|
|
.screen-reader-text {
|
|
border: 0;
|
|
clip: rect(1px, 1px, 1px, 1px);
|
|
clip-path: inset(50%);
|
|
height: 1px;
|
|
margin: -1px;
|
|
overflow: hidden;
|
|
padding: 0;
|
|
position: absolute !important;
|
|
width: 1px;
|
|
word-wrap: normal !important;
|
|
}
|
|
|
|
.screen-reader-text:focus {
|
|
background-color: #f1f1f1;
|
|
border-radius: 3px;
|
|
box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
|
|
clip: auto !important;
|
|
clip-path: none;
|
|
color: #21759b;
|
|
display: block;
|
|
font-size: 0.875rem;
|
|
font-weight: 700;
|
|
height: auto;
|
|
left: 5px;
|
|
line-height: normal;
|
|
padding: 15px 23px 14px;
|
|
text-decoration: none;
|
|
top: 5px;
|
|
width: auto;
|
|
z-index: 100000;
|
|
}
|
|
|
|
/* Do not show the outline on the skip link target. */
|
|
|
|
#primary[tabindex="-1"]:focus {
|
|
outline: 0;
|
|
}
|