Files
Journal-ghost/assets/css/screen.css
Sodbileg Gansukh aa4ab650d3 Minor details
2021-07-05 15:00:46 +08:00

489 lines
8.4 KiB
CSS

@import "shared/assets/css/screen.css";
@font-face {
font-family: Inter;
font-style: normal;
font-weight: 100 900;
font-display: optional;
src: url("/fonts/inter-var-latin.woff2") format("woff2");
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
--font-sans: Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif; /* stylelint-disable-line value-keyword-case */
--color-primary-text: var(--color-black);
--color-darker-gray: var(--color-black);
--content-font-name: var(--font-sans);
--content-font-size: 1.9rem;
--content-letter-spacing: -0.01em;
}
.tag-template .gh-main,
.author-template .gh-main {
padding-top: 8vmin;
}
.gh-head-menu,
.gh-head-actions {
font-size: 1.2rem;
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.01em;
}
.gh-head-btn {
font-weight: 600;
}
.gh-head-btn svg {
width: 16px;
height: 16px;
}
.gh-latest {
margin-top: 6.4rem;
}
.gh-latest .gh-card-meta {
margin-top: 2.4rem;
}
.gh-wrapper {
display: grid;
grid-template-columns: 4fr 2fr;
column-gap: 2.4rem;
margin-top: 12vmin;
}
.gh-wrapper > .gh-section {
max-width: 720px;
}
.gh-section-title {
display: flex;
align-items: center;
margin-bottom: 3.2rem;
font-size: 1.2rem;
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.01em;
}
.gh-section-title::after {
flex-grow: 1;
height: 1px;
margin-left: 1.6rem;
content: "";
background-color: var(--color-light-gray);
}
.gh-card + .gh-card {
margin-top: 8rem;
}
.gh-card-link {
display: block;
}
.gh-card-link:hover {
opacity: 1;
}
.gh-card-title {
font-size: 3.4rem;
font-weight: 600;
}
.gh-card-link:hover .gh-card-title {
opacity: 0.8;
}
.gh-card-excerpt {
margin-top: 1.2rem;
font-size: 1.8rem;
line-height: 1.5;
letter-spacing: -0.01em;
}
.gh-card-meta {
margin-top: 2rem;
font-size: 1.2rem;
font-weight: 500;
line-height: 1;
color: var(--color-secondary-text);
text-transform: uppercase;
}
.gh-card-date {
color: var(--ghost-accent-color);
}
.gh-card-meta-wrapper {
display: inline-flex;
align-items: center;
}
.gh-card-meta-wrapper svg {
position: relative;
top: -1px;
margin-left: 0.6rem;
}
.gh-sidebar {
position: sticky;
top: 4.8rem;
height: max-content;
padding-left: 4rem;
font-size: 1.4rem;
}
.gh-sidebar .gh-section + .gh-section {
margin-top: 8rem;
}
.gh-about {
display: flex;
}
.gh-about-icon {
width: 64px;
height: 64px;
margin-right: 2rem;
}
.gh-about-title {
font-size: 2.2rem;
font-weight: 600;
letter-spacing: -0.02em;
}
.gh-about-description {
margin-top: 0.4rem;
line-height: 1.55;
}
.gh-signup {
margin-top: 2.8rem;
}
.gh-signup-description {
line-height: 1.55;
}
.gh-signup .gh-subscribe-input {
height: 48px;
padding-left: 1.2rem;
margin-top: 1.6rem;
font-size: 1.5rem;
}
.gh-featured .gh-card + .gh-card {
margin-top: 2.8rem;
}
.gh-featured .gh-card-title {
font-size: 1.8rem;
font-weight: 600;
line-height: 1.25;
letter-spacing: -0.01em;
}
.gh-featured .gh-card-excerpt {
margin-top: 0.8rem;
font-size: inherit;
line-height: 1.55;
color: var(--color-secondary-text);
letter-spacing: 0;
}
.gh-featured .gh-card-meta {
margin-top: 1.6rem;
}
.gh-topic-item {
display: flex;
align-items: center;
justify-content: space-between;
}
.gh-topic-item + .gh-topic-item {
margin-top: 1.6rem;
}
.gh-topic-name {
font-size: 1.7rem;
font-weight: 600;
letter-spacing: 0;
}
.gh-topic-count {
padding: 0.4rem 0.8rem;
font-size: 1.3rem;
line-height: 1;
border: 1px solid var(--color-light-gray);
border-radius: 32px;
}
.gh-subscribe {
padding: 7.2vmin 0 8vmin;
margin: 12vmin 0 8vmin;
background-color: var(--ghost-accent-color);
}
.gh-subscribe-inner {
max-width: 520px;
margin: 0 auto;
text-align: center;
}
.gh-subscribe-title {
font-size: 3.6rem;
font-weight: 700;
color: #fff;
}
.gh-subscribe-description {
margin-top: 2rem;
font-size: 1.9rem;
line-height: 1.4;
color: #fff;
}
.gh-subscribe-input {
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
max-width: 440px;
height: 56px;
padding: 0 1.6rem;
margin: 4.8rem auto 0;
font-size: 1.6rem;
color: var(--color-secondary-text);
background-color: var(--color-white);
border: 1px solid var(--color-light-gray);
border-radius: 6px;
transition: border-color 0.2s ease-in-out;
}
.gh-subscribe .gh-subscribe-input {
border: 0;
}
.gh-subscribe-input:hover {
border-color: var(--ghost-accent-color);
opacity: 1;
}
.gh-subscribe-input-text {
display: flex;
align-items: center;
}
.gh-subscribe-input svg {
position: relative;
top: 1px;
margin-right: 0.8rem;
}
.gh-subscribe-btn {
font-size: 1.2rem;
font-weight: 600;
color: var(--ghost-accent-color);
text-transform: uppercase;
letter-spacing: 0.01em;
}
.gh-article {
padding: 6.4rem 0 0;
}
.gh-article:not(.no-image) .gh-article-header > * {
grid-column: wide-start / wide-end;
}
.gh-article-meta {
margin-bottom: 2rem;
font-size: 1.2rem;
font-weight: 500;
line-height: 1;
color: var(--color-secondary-text);
text-transform: uppercase;
}
.gh-article-meta a {
font-weight: 600;
}
.gh-article-title {
font-size: 7.4rem;
font-weight: 600;
line-height: 1;
}
.gh-article-excerpt {
max-width: 920px;
margin-top: 1.6rem;
font-size: 2.8rem;
line-height: 1.35;
color: var(--color-darker-gray);
}
.gh-article-footer {
padding-top: 3.2rem;
margin-top: 8rem;
border-top: 1px solid var(--color-light-gray);
}
.gh-navigation {
grid-column: wide-start / wide-end;
}
.gh-navigation > div {
align-items: flex-start;
height: 100%;
}
.gh-navigation-link {
flex-direction: column;
align-items: flex-start;
}
.gh-navigation-next .gh-navigation-link {
align-items: flex-end;
text-align: right;
}
.gh-navigation-previous svg {
margin-left: -2px;
}
.gh-navigation-next svg {
margin-right: -2px;
}
.gh-navigation-label {
display: flex;
align-items: center;
font-size: 1.7rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.01em;
}
.gh-navigation-title {
margin-top: 0.8rem;
font-size: 1.7rem;
font-weight: 400;
letter-spacing: 0;
}
.gh-pagehead {
position: sticky;
top: 4vmin;
grid-column: wide-start/main-start;
max-width: 200px;
height: max-content;
padding-top: 0.8rem;
font-size: 1.4rem;
line-height: 1;
}
.gh-pagehead-title {
font-size: 2.1rem;
font-weight: 600;
letter-spacing: -0.02em;
}
.gh-pagehead-description {
margin-top: 0.8rem;
line-height: 1.45;
color: var(--color-secondary-text);
}
.gh-tag-label {
margin-bottom: 1.2rem;
font-size: 1.2rem;
font-weight: 500;
color: var(--ghost-accent-color);
text-transform: uppercase;
}
.gh-tag-description {
margin-top: 1.6rem;
}
.gh-author-image {
width: 80px;
height: 80px;
margin-bottom: 2.4rem;
border-radius: 50%;
}
.gh-author-meta {
display: flex;
flex-direction: column;
margin-top: 2rem;
}
.gh-author-location {
margin-left: -4px;
color: var(--color-darker-gray);
}
.gh-author-website {
margin-top: 1.2rem;
}
.gh-author-social {
display: flex;
margin-top: 2.4rem;
}
.gh-author-facebook {
margin-left: 0.8rem;
}
@media (min-width: 992px) {
.gh-head-inner {
row-gap: 0 !important;
padding: 0;
}
.gh-head-brand {
display: flex;
align-items: center;
height: 80px;
}
.gh-head-menu {
height: 56px;
}
.gh-head-menu::before,
.gh-head-menu::after {
position: absolute;
top: 80px;
left: 0;
width: 100%;
height: 1px;
content: "";
background-color: var(--color-light-gray);
}
.gh-head-menu::after {
top: 136px;
}
}
@supports (-moz-appearance: none) {
.gh-topic-count {
padding-bottom: 0.5rem;
}
.gh-subscribe-btn {
position: relative;
top: 1px;
}
}