274 lines
4.4 KiB
CSS
274 lines
4.4 KiB
CSS
/*
|
|
Theme Name: Slowtwitch News Theme
|
|
Text Domain: Slowtwitch
|
|
Version: 1.0.0
|
|
Author: Ross Trottier
|
|
*/
|
|
|
|
/*
|
|
============================
|
|
CSS RESETS + GLOBALS
|
|
============================
|
|
*/
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
font-size: 1.25rem;
|
|
font-family: "Rubik", sans-serif;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
input, button, textarea, select {
|
|
font: inherit;
|
|
}
|
|
|
|
/*
|
|
============================
|
|
TYPOGRAPHY
|
|
============================
|
|
*/
|
|
|
|
h1 {
|
|
font-size: 3rem;
|
|
}
|
|
|
|
.st-site-title {
|
|
text-transform: uppercase;
|
|
color: #0b4fa0;
|
|
text-align: center;
|
|
margin-top: 0;
|
|
font-size: 3.3rem;
|
|
}
|
|
|
|
/*
|
|
============================
|
|
LAYOUT
|
|
============================
|
|
*/
|
|
|
|
.st-main-grid {
|
|
display: grid;
|
|
grid-template-columns: minmax(1em, 1fr) minmax(260px, 500px) minmax(1em, 1fr);
|
|
}
|
|
|
|
.st-main-grid > * {
|
|
grid-column: 2;
|
|
}
|
|
|
|
/*
|
|
============================
|
|
SECTIONS
|
|
============================
|
|
*/
|
|
|
|
/* header bar */
|
|
|
|
.st-header-icon-bar {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
color: black;
|
|
margin-top: .25em;
|
|
}
|
|
|
|
.st-header-logo {
|
|
width: 100%;
|
|
}
|
|
|
|
.st-header-icon {
|
|
text-decoration: none;
|
|
cursor: pointer;
|
|
color: black;
|
|
}
|
|
|
|
/* nav */
|
|
|
|
.st-nav {
|
|
position: absolute;
|
|
background: #fff;
|
|
width: 100%;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
left: -100%;
|
|
transform: translateX(0);
|
|
transition: transform ease-in-out 250ms;
|
|
grid-template-rows: minmax(2.25rem, 3rem) 1fr;
|
|
}
|
|
|
|
.st-nav-sticky {
|
|
|
|
}
|
|
|
|
.st-nav-is-open {
|
|
transform: translateX(100%);
|
|
}
|
|
|
|
.st-nav-btn {
|
|
background: 0;
|
|
border: 0;
|
|
font-size: 1.25rem;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.st-nav-links {
|
|
padding: 0;
|
|
margin-top: 0;
|
|
}
|
|
|
|
.st-nav-links,
|
|
.st-nav-links ul {
|
|
list-style: none;
|
|
}
|
|
|
|
.st-nav-links .menu-item a {
|
|
text-decoration: none;
|
|
cursor: pointer;
|
|
font-size: 2rem;
|
|
text-transform: uppercase;
|
|
margin-bottom: 1em;
|
|
letter-spacing: 1px;
|
|
color: #0b4fa0;
|
|
}
|
|
|
|
.st-nav-links .menu-item a:hover,
|
|
.st-nav-links .menu-item a:hover:active {
|
|
color: #d3d3d3;
|
|
}
|
|
|
|
.st-close-nav {
|
|
text-align: right;
|
|
font-size: 2rem;
|
|
height: 3rem;
|
|
}
|
|
|
|
/*
|
|
============================
|
|
COMPONENTS
|
|
============================
|
|
*/
|
|
/* main article card */
|
|
|
|
.st-article-section-title {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
margin-top: 0;
|
|
margin-bottom: .5em;
|
|
color: black;
|
|
font-weight: 800;
|
|
}
|
|
|
|
.st-article-section-title > a {
|
|
text-decoration: none;
|
|
color: black;
|
|
}
|
|
|
|
.st-article-section-main-article__image-link img {
|
|
width: 100%;
|
|
object-fit: cover;
|
|
border-radius: 10px;
|
|
}
|
|
|
|
.st-article-section-main-article__category-link {
|
|
text-decoration: none;
|
|
color: #fff;
|
|
padding: .3em .75em;
|
|
background: #0b4fa0;
|
|
font-size: .8rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 1px;
|
|
}
|
|
|
|
.st-article-section-main-article__title {
|
|
text-decoration: none;
|
|
color: #454545;
|
|
font-size: 1.2rem;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.st-article-section-main-article__title h3 {
|
|
margin: .25em 0;
|
|
}
|
|
|
|
.st-article-section-main-article__excerpt {
|
|
font-size: .75em;
|
|
margin: 0;
|
|
}
|
|
|
|
.st-article-section-main-article__author-link {
|
|
text-decoration: none;
|
|
color: #8b8680;
|
|
font-size: .5em;
|
|
}
|
|
|
|
.st-article-section-main-article__datetime {
|
|
color: #8b8680;
|
|
font-size: .5em;
|
|
}
|
|
|
|
/* sub article card */
|
|
|
|
.st-article-section-sub-article {
|
|
display: flex;
|
|
flex-direction: row;
|
|
margin-top: 1em;
|
|
}
|
|
|
|
.st-article-section-sub-article__image-link img {
|
|
width: 160px;
|
|
height: auto;
|
|
aspect-ratio: 1.5;
|
|
object-fit: cover;
|
|
object-position: bottom right;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.st-article-section-sub-article__category-link {
|
|
text-decoration: none;
|
|
color: #fff;
|
|
padding: .3em .75em;
|
|
background: #0b4fa0;
|
|
font-size: .6rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 1px;
|
|
}
|
|
|
|
.st-article-section-sub-article__text-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
margin-left: .5em;
|
|
}
|
|
|
|
.st-article-section-sub-article__title {
|
|
font-size: .75rem;
|
|
text-decoration: none;
|
|
color: #454545;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.st-article-section-sub-article__title h3 {
|
|
margin-top: .2em;
|
|
}
|
|
|
|
/* chips */
|
|
|
|
.st-chip {
|
|
padding: .25em .75em;
|
|
font-size: 1rem;
|
|
text-decoration: none;
|
|
cursor: pointer;
|
|
border-radius: 100px;
|
|
color: white;
|
|
}
|
|
|
|
.st-chip-primary {
|
|
background: #0b4fa0;
|
|
}
|
|
|
|
.st-chip-secondary {
|
|
background: #A05C0B;
|
|
} |