Compare commits

...

24 Commits
v1.0.0 ... main

Author SHA1 Message Date
08284c78ce fix: spacing 2021-07-11 04:32:15 +07:00
12329cb4a8 feat: new post design 2021-07-11 04:23:40 +07:00
478d47217b feat: animate caption 2021-07-11 03:35:31 +07:00
77c6d76d46 feat: new caption design 2021-07-11 03:19:24 +07:00
a1d30b3b13 chore: update depends 2021-07-11 01:01:07 +07:00
62ab8aa6ba fix(shian): make search toggles not conflict with menu toggles 2021-07-11 00:52:36 +07:00
78c1bd6421 feat(shian): add permanent icon menus 2021-07-11 00:26:56 +07:00
6def68f493 perf(shian): switch back to usual nav menu
BREAKING CHANGE: please update your stylesheets accordingly
2021-07-11 00:24:55 +07:00
4f53496885 chore: update gulp-sass 2021-07-08 02:32:21 +07:00
fa7253e18b feat: basic forms 2021-05-15 14:40:19 +07:00
cc4febf595 feat(shian): search styles 2021-05-07 21:41:48 +07:00
f873e60897 fix(shian): fix colors 2021-04-22 22:01:33 +07:00
2a23ca143f perf(shian): overhaul styling to minimize CSS processing
BREAKING CHANGE: several styles are rewritten completely for performance reasons. please update accordingly.
2021-04-22 20:32:54 +07:00
c4540bfe26 feat(shian): dynamic page header size depending on content 2021-04-22 16:40:07 +07:00
912be0730e chore(shian): Center captions 2021-04-19 19:10:53 +07:00
424f7234bf fix(shian): fix weird header title height change on expanding menu 2021-04-16 20:58:45 +07:00
3359eb9575 fix(shian): only fix height of the title row of the header 2021-04-16 20:42:24 +07:00
b2a4a3868a fix(shian): fix height of the header instead 2021-04-16 20:35:33 +07:00
eef1519f53 fix(shian): Fix header component height 2021-04-16 20:25:27 +07:00
c556c3667d fix(shian): readjust header menu 2021-04-15 13:29:36 +07:00
80b7edc301 feat(shian): allow menu on both sides of header 2021-04-15 13:09:45 +07:00
7735874650 fix(shian): Do not reimport normalize on the Ghost-specific stylesheet 2021-04-14 19:23:19 +07:00
f38a1d0f43 fix(shian): use rgba background color instead of opacity + background-color 2021-04-14 19:11:55 +07:00
4242d4b015 chore: add dev script 2021-04-14 19:09:18 +07:00
21 changed files with 13435 additions and 853 deletions

View File

@ -1,6 +1,6 @@
const {series, watch, src, dest, parallel} = require('gulp'); const {series, watch, src, dest, parallel} = require('gulp');
const sass = require('gulp-sass'); const sass = require('gulp-sass')(require('sass'));
const livereload = require('gulp-livereload'); const livereload = require('gulp-livereload');
const zip = require('gulp-zip'); const zip = require('gulp-zip');
const concat = require('gulp-concat'); const concat = require('gulp-concat');

9925
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -8,9 +8,12 @@
}, },
"scripts": { "scripts": {
"build": "gulp build", "build": "gulp build",
"dev": "gulp dev",
"semantic-release": "semantic-release" "semantic-release": "semantic-release"
}, },
"dependencies": {}, "dependencies": {
"sass": "^1.35.1"
},
"devDependencies": { "devDependencies": {
"@fullhuman/postcss-purgecss": "^1.3.0", "@fullhuman/postcss-purgecss": "^1.3.0",
"autoprefixer": "^10.2.1", "autoprefixer": "^10.2.1",
@ -19,12 +22,12 @@
"gulp-concat": "^2.6.1", "gulp-concat": "^2.6.1",
"gulp-livereload": "^4.0.2", "gulp-livereload": "^4.0.2",
"gulp-postcss": "^9.0.0", "gulp-postcss": "^9.0.0",
"gulp-sass": "^4.1.0", "gulp-sass": "5",
"gulp-uglify": "^3.0.2", "gulp-uglify": "^3.0.2",
"gulp-zip": "^5.0.1", "gulp-zip": "^5.0.1",
"postcss": "^8.2.3", "postcss": "^8.2.3",
"typeface-exo-2": "^0.0.72", "semantic-release": "^17.4.2",
"semantic-release": "^17.4.2" "typeface-exo-2": "^0.0.72"
}, },
"files": [ "files": [
"dist/**" "dist/**"
@ -34,6 +37,8 @@
"url": "https://github.com/Damillora/Shian.git" "url": "https://github.com/Damillora/Shian.git"
}, },
"release": { "release": {
"branches": ["main"] "branches": [
"main"
]
} }
} }

View File

@ -19,3 +19,6 @@
@import './components/gameitem'; @import './components/gameitem';
@import './components/copyarea'; @import './components/copyarea';
@import './components/floatingyuriko'; @import './components/floatingyuriko';
@import './components/tag';
@import './components/forms';
@import './components/button';

View File

@ -1,6 +1,6 @@
html { html {
font-family: 'Exo 2', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, font-family: 'Exo 2', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif !important;
} }
:root, :root,
[data-theme='light'] { [data-theme='light'] {
@ -38,7 +38,9 @@ body {
} }
.main { .main {
padding: 1rem; margin: 1rem;
@include px(1rem);
@include screen(sm) { @include screen(sm) {
@include px(2rem); @include px(2rem);
} }
@ -58,75 +60,75 @@ body {
.main { .main {
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
}
p,
h1,
h2,
h3,
h4,
h5,
h6 {
@include my(1rem);
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-weight: 300;
color: var(--accent-color);
}
h1 {
font-size: $text-4xl;
}
h2 {
font-size: $text-3xl;
}
h3 {
font-size: $text-2xl;
}
h4 {
font-size: $text-xl;
}
h5 {
font-size: $text-lg;
}
h6 {
font-size: $text-base;
}
p, a {
h1, color: var(--accent-color);
h2, &:hover {
h3, text-decoration: underline;
h4,
h5,
h6 {
@include my(1rem);
} }
h1, }
h2, ul {
h3, list-style-type: disc;
h4, li p {
h5, @include my(0rem);
h6 {
font-weight: 300;
}
h1 {
font-size: $text-4xl;
}
h2 {
font-size: $text-3xl;
}
h3 {
font-size: $text-2xl;
}
h4 {
font-size: $text-xl;
}
h5 {
font-size: $text-lg;
}
h6 {
font-size: $text-base;
}
a {
color: var(--accent-color);
&:hover {
text-decoration: underline;
}
}
ul {
list-style-type: disc;
li p {
@include my(0rem);
}
}
ol {
list-style-type: decimal;
}
code {
background-color: var(--accent-bg-color);
color: var(--accent-color);
white-space: pre-wrap;
}
blockquote {
border-left: 0.5rem solid var(--accent-color);
@include my(2rem);
padding: 0.5rem 0 0.5rem 2rem;
}
pre {
background: var(--accent-bg-color);
color: var(--accent-color);
padding: 0.5rem;
border: 1px solid var(--accent-color);
} }
} }
ol {
list-style-type: decimal;
}
code {
background-color: var(--accent-bg-color);
color: var(--accent-color);
white-space: pre-wrap;
}
blockquote {
border-left: 0.5rem solid var(--accent-color);
@include my(2rem);
padding: 0.5rem 0 0.5rem 2rem;
}
pre {
background: var(--accent-bg-color);
color: var(--accent-color);
padding: 0.5rem;
border: 1px solid var(--accent-color);
}
.card-list { .card-list {
display: flex; display: flex;

View File

@ -0,0 +1,12 @@
.button {
border: solid 2px var(--accent-color);
background: var(--accent-color);
color: var(--accent-bg-color);
padding: 0.25rem 1rem;
font-size: 1.125rem;
@include transition;
}
.button:hover {
background: var(--highlight-bg-color);
color: var(--highlight-color);
}

View File

@ -1,12 +1,12 @@
.floating-yuriko { .floating-yuriko {
position: fixed; position: fixed;
right: 1rem; right: 1rem;
bottom: 1rem; bottom: 1rem;
margin-bottom: 0px; margin-bottom: 0px;
cursor: pointer; cursor: pointer;
img { &__image {
height: 20vh; height: 20vh;
} }
} }
.hvr-float { .hvr-float {
@ -22,7 +22,9 @@
-webkit-transition-timing-function: ease-out; -webkit-transition-timing-function: ease-out;
transition-timing-function: ease-out; transition-timing-function: ease-out;
} }
.hvr-float:hover, .hvr-float:focus, .hvr-float:active { .hvr-float:hover,
.hvr-float:focus,
.hvr-float:active {
-webkit-transform: translateY(-8px); -webkit-transform: translateY(-8px);
transform: translateY(-8px); transform: translateY(-8px);
} }

View File

@ -0,0 +1,12 @@
.input {
border: solid 1px var(--accent-color);
padding: 0.5rem;
font-size: 1rem;
width: 100%;
border-radius: 0.25rem;
resize: none;
}
.input:focus-within {
outline: none;
}

View File

@ -27,15 +27,15 @@
justify-content: center; justify-content: center;
align-items: center; align-items: center;
&.hidden { &--hidden {
height: 0; height: 0;
opacity: 0; opacity: 0;
visibility: hidden; visibility: hidden;
} }
img { }
max-height: 100%; &__popup-image {
} max-height: 100%;
} }
&__exit { &__exit {

View File

@ -1,38 +1,38 @@
.game-item { .game-item {
padding: 0.25rem 1rem; padding: 0.25rem 1rem;
width: 100%; width: 100%;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@include transition; @include transition;
@include screen(lg) {
flex-direction: row;
}
&:hover {
background-color: var(--highlight-bg-color);
}
&__title {
flex-grow: 1;
}
&__caption {
font-size: $text-2xl;
@include my(0.25rem);
}
&__content {
@include my(0.5rem);
display: block;
p { @include screen(lg) {
@include my(0.25rem); flex-direction: row;
white-space: nowrap; }
text-align: right; &:hover {
} background-color: var(--highlight-bg-color);
flex-shrink: 1; }
}
&__icon { &__title {
padding: 0.5rem; flex-grow: 1;
vertical-align: middle; }
} &__caption {
} font-size: $text-2xl;
@include my(0.25rem);
}
&__content {
@include my(0.5rem);
display: block;
flex-shrink: 1;
}
&__text {
@include my(0.25rem);
white-space: nowrap;
text-align: right;
}
&__icon {
padding: 0.5rem;
vertical-align: middle;
}
}

View File

@ -1,95 +1,125 @@
.site-header { .site-header {
position: fixed; position: fixed;
z-index: 10; z-index: 10;
height: 3rem;
width: 100%;
overflow: hidden;
@include transition;
&.enabled {
height: 100%;
}
@include screen(md) {
height: 4rem; height: 4rem;
}
&__background {
z-index: -1;
width: 100vw; width: 100vw;
overflow: hidden; height: 100vh;
position: absolute;
@include transition; @include transition;
&.enabled {
height: 100vh;
width: 100vw;
}
&__background { opacity: 0%;
z-index: -1; top: -23vh;
width: 100vw; }
height: 100vh; &.enabled &__background {
position: absolute; opacity: 100%;
@include transition; top: 0;
}
&__overlay {
background-color: rgba(0, 0, 0, 0.5);
}
opacity: 0%; &__inner {
top: -23vh; z-index: 1;
&--enabled { width: 100%;
opacity: 100%; height: 100%;
top: 0;
}
}
&__overlay {
opacity: 50%;
background-color: $black;
}
&__inner {
z-index: 1;
width: 100%;
height: 100%;
@include transition;
}
&.enabled &__inner {
background: rgba(0,0,0,0.5);
}
&.detached &__inner {
background: rgba(0,0,0,0.5);
}
}
.header {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@include transition; @include transition;
&__top { }
display: flex;
flex-direction: row;
}
&__title { &.enabled &__inner {
flex-grow: 1; background: rgba(0, 0, 0, 0.5);
@include transition; }
a { &.detached &__inner {
display: flex; background: rgba(0, 0, 0, 0.5);
flex-direction: row; }
align-items: center; }
@include py(1rem);
color: $white;
font-size: $text-lg;
padding-left: 1rem;
height: 100%;
}
&:hover {
background-color: $theme-blue;
}
}
&__nav-button { .header {
width: 4rem; display: flex;
height: 4rem; flex-direction: column;
position: relative; @include transition;
cursor: pointer;
padding: 0.5rem; @include screen(md) {
text-align: center; height: 4rem;
white-space: nowrap; flex-direction: row;
@include transition; }
&:hover { &__top {
background-color: $theme-blue; display: flex;
} flex-direction: row;
flex-grow: 1;
height: 3rem;
@include screen(md) {
height: 4rem;
} }
&__icon { }
width: 3rem;
height: 3rem; &__title {
color: $white; display: flex;
@include px(0.50rem); flex-direction: row;
@include py(0.75rem); align-items: center;
@include py(0.5rem);
@include screen(md) {
@include py(1rem);
} }
} color: $white;
font-size: $text-lg;
padding-left: 1rem;
height: 100%;
flex-grow: 1;
@include transition;
&:hover {
background-color: $theme-blue;
text-decoration: none;
}
}
&__nav-button {
display: flex;
flex-direction: row;
align-items: center;
height: 100%;
position: relative;
cursor: pointer;
text-align: center;
white-space: nowrap;
@include transition;
@include screen(md) {
display: none;
}
&:hover {
background-color: $theme-blue;
}
}
&__nav-button-text {
color: $white;
margin-right: 0.5rem;
display: none;
@include screen(md) {
display: block;
}
}
&__icon {
width: 3rem;
color: $white;
display: inline-block;
@include px(0.5rem);
vertical-align: middle;
// @include py(0.25rem);
// @include screen(md) {
// @include py(0.75rem);
// }
}
}

View File

@ -1,24 +1,23 @@
.media-item { .media-item {
padding: 0.25rem 1rem; padding: 0.25rem 1rem;
width: 100%;
@include transition;
&:hover {
background-color: var(--highlight-bg-color);
}
&__caption {
font-size: $text-2xl;
@include my(0.25rem);
}
&__content {
width: 100%; width: 100%;
@include transition; @include my(0.5rem);
display: block;
&:hover { }
background-color: var(--highlight-bg-color); &__text {
} @include my(0.25rem);
}
&__caption { }
font-size: $text-2xl;
@include my(0.25rem);
}
&__content {
width: 100%;
@include my(0.5rem);
display: block;
p {
@include my(0.25rem);
}
}
}

View File

@ -1,50 +1,151 @@
.menu { .menu {
max-height: 0px; display: flex;
display: block; flex-direction: column;
@include transition;
@include screen(md) {
flex-direction: row;
}
// Dark mode special menu
&--dark-mode {
.menu__text {
display: block;
@include screen(md) {
display: none;
}
}
.menu__icon {
display: inline-block;
}
}
&--permanent-icon {
.menu__icon {
display: inline-block;
}
}
&__nav {
display: flex;
flex-direction: column;
@include screen(md) {
flex-direction: row;
}
}
&__nav-main {
display: flex;
flex-direction: column;
height: 100%;
overflow-y: hidden;
@include transition; @include transition;
overflow: hidden;
@include screen(md) {
flex-direction: row;
}
&.hidden {
height: 0;
@include screen(md) {
height: 100%;
}
}
}
&__item {
color: $white;
height: 3rem;
display: flex;
flex-direction: row;
align-items: center;
cursor: pointer;
@include transition;
@include screen(md) {
height: 4rem;
}
&:hover {
background-color: $theme-blue;
}
&--hidden {
max-height: 0;
overflow: hidden;
@include transition;
}
}
&__link {
display: flex;
flex-direction: row;
align-items: center;
width: 100%;
height: 100%;
}
&__icon {
display: inline-block;
width: 4rem;
height: 3rem;
color: $white;
text-align: center;
@include px(0.5rem);
@include py(0.75rem);
&.enabled { @include screen(md) {
max-height: 100vh; display: none;
} }
&__item { }
color: $white; &__text {
height: 3rem; display: inline-block;
display: flex; flex-grow: 1;
flex-direction: row; color: $white;
align-items: center; @include px(1rem);
cursor: pointer; }
@include transition;
&:hover { &__separator {
background-color: $theme-blue; margin-left: 5rem;
} margin-right: 4rem;
border-top: 0.125rem solid $white;
}
a { &__search-input {
display: flex; display: inline-block;
flex-direction: row; flex-grow: 1;
align-items: center; color: $white;
width: 100%; @include px(0.5rem);
height: 100%; @include mx(0.5rem);
} @include py(0.25rem);
i { appearance: none;
display: inline-block; background-color: transparent;
width: 4rem; outline: none;
height: 3rem; border-bottom: 1px solid $white;
color: $white; &:focus-visible {
text-align: center; outline: none;
@include px(0.50rem); border-bottom: 1px solid $white;
@include py(0.75rem);
}
p {
display: inline-block;
flex-grow: 1;
@include px(1rem);
}
} }
&__separator { }
margin-left: 5rem; &__search-results {
margin-right: 4rem; flex-grow: 1;
border-top: 0.125rem solid $white; overflow-y: scroll;
}
&__search-result {
color: $white;
display: block;
align-items: center;
@include px(2rem);
@include py(1rem);
@include transition;
&:hover {
background-color: $theme-blue;
} }
}
&__search-title {
color: $white;
&:hover {
text-decoration: underline;
}
}
} }

View File

@ -1,38 +1,63 @@
.page-header { .page-header {
position: relative; position: relative;
width: 100%; width: 100%;
min-height: 200px; min-height: 50vh;
height: 70vh; font-weight: 300;
overflow: hidden;
@include screen(md) {
min-height: 70vh;
}
display: flex;
align-items: flex-end;
&--short {
min-height: 3rem;
@include screen(md) {
min-height: 4rem;
}
}
&__heading {
color: $white; color: $white;
font-weight: 300; @include my(0.5rem);
min-height: 300px; }
height: 70vh; &__text {
@include my(0.5rem);
}
&__background {
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
z-index: -10;
width: 100%;
height: 100%;
}
&__overlay {
z-index: -10;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
}
&__background { &__contents {
width: 100%; z-index: 1;
height: 100%; width: 100%;
} padding-top: 3rem;
&__overlay { @include screen(md) {
width: 100%; padding-top: 4rem;
height: 100%;
background-color: $black;
opacity: 50%;
} }
color: $white;
}
&__contents { &__icon {
position: absolute; width: 3rem;
bottom: 0; height: 3rem;
left: 0; @include screen(md) {
right: 0; width: 4rem;
@include py(0.5rem); height: 4rem;
a {
color: $white;
}
}
&__icon {
width: 6rem;
height: 6rem;
} }
}
} }

View File

@ -18,13 +18,13 @@
min-width: 300px; min-width: 300px;
max-width: 450px; max-width: 450px;
} }
img { }
position: absolute; &__image-inner {
left: 0; position: absolute;
top: 0; left: 0;
width: 100%; top: 0;
height: 100%; width: 100%;
} height: 100%;
} }
&__image::after { &__image::after {
display: block; display: block;
@ -36,32 +36,30 @@
padding-left: 1rem; padding-left: 1rem;
} }
} }
&__tag-row { &__tag-row {
padding-top: 1rem; padding-top: 1rem;
@include screen(md) { @include screen(md) {
padding-top: 0; padding-top: 0;
} }
* {
display: inline-block;
padding-right: 0.25rem;
}
} }
&__tag-color { &__tag-color {
display: inline-block; display: inline-block;
padding-right: 0.25rem;
border-radius: 9999px; border-radius: 9999px;
vertical-align: text-bottom; vertical-align: text-bottom;
height: 1rem; height: 1rem;
width: 1rem; width: 1rem;
} }
&__tag-name { &__tag-name {
display: inline-block;
padding-right: 0.25rem;
font-size: $text-sm; font-size: $text-sm;
&:hover { color: var(--text-color);
text-decoration: underline;
}
} }
&__paywall { &__paywall {
display: inline-block;
padding-right: 0.25rem;
font-size: $text-sm; font-size: $text-sm;
&:hover { &:hover {
text-decoration: underline; text-decoration: underline;
@ -74,6 +72,7 @@
color: var(--accent-color); color: var(--accent-color);
font-size: $text-xl; font-size: $text-xl;
font-weight: 300; font-weight: 300;
@include my(0rem);
@include screen(md) { @include screen(md) {
font-size: $text-2xl; font-size: $text-2xl;
@ -84,10 +83,12 @@
} }
&__time { &__time {
@include my(0rem);
font-size: $text-xs; font-size: $text-xs;
} }
&__author-list { &__author-list {
@include my(0rem);
font-size: $text-xs; font-size: $text-xs;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
@ -98,30 +99,25 @@
&__author-images { &__author-images {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
}
&__author-image {
height: 2rem;
margin-left: 0.25rem; margin-left: 0.25rem;
margin-right: 0.75rem; margin-right: 0.75rem;
}
img { &__author-image {
border-radius: 9999px; border-radius: 9999px;
height: 100%; height: 2rem;
}
} }
&__author-names { &__author-names {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
flex-grow: 1; flex-grow: 1;
justify-content: center; justify-content: center;
}
a:hover { &__author-name {
text-decoration: underline; color: var(--text-color);
}
} }
&__excerpt { &__excerpt {
margin-top: 0.5rem; margin-top: 0.5rem;
margin-bottom: 1rem; margin-bottom: 1rem;
font-size: $text-sm; font-size: $text-sm;
} }
} }

View File

@ -1,95 +1,123 @@
.post-header { .post-header {
h1, width: 100%;
h2, margin-top: 3rem;
h3, margin-bottom: 1rem;
h4,
h5, &__heading {
h6,
p {
@include my(0.5rem); @include my(0.5rem);
&--tag {
display: flex;
flex-direction: row;
align-items: center;
}
&--tag-text {
margin-right: 0.5rem;
}
&--tag-color {
display: inline-block;
border-radius: 9999px;
vertical-align: text-bottom;
margin-right: 0.5rem;
height: 4rem;
width: 4rem;
}
} }
&__tag-row { &__tag-row {
padding-top: 1rem; padding-top: 1rem;
@include screen(md) { @include screen(md) {
padding-top: 0; padding-top: 0;
} }
* {
display: inline-block;
padding-right: 0.25rem;
}
} }
&__tag-info {
&__tag-heading {
display: flex;
flex-direction: row;
h1 {
margin-left: 0.5rem;
}
}
&__tag-heading-color {
display: inline-block; display: inline-block;
border-radius: 9999px; padding-right: 0.25rem;
vertical-align: text-bottom;
height: 4rem;
width: 4rem;
}
&__tag-color {
display: inline-block;
border-radius: 9999px;
vertical-align: text-bottom;
height: 1rem;
width: 1rem;
}
&__tag-name {
font-size: $text-base;
&:hover {
text-decoration: underline;
}
}
&__paywall {
font-size: $text-base;
&:hover {
text-decoration: underline;
}
color: var(--accent-color);
} }
&__time { &__time {
font-size: $text-sm; font-size: $text-sm;
@include my(0.5rem);
}
&__title {
@include my(0.5rem);
} }
&__author-list { &__author-list {
font-size: $text-sm; font-size: $text-sm;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
justify-content: center; justify-content: center;
@include my(0.5rem); @include my(1rem);
@include py(0.5rem);
} }
&__author-images { &__author-images {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
} align-items: center;
&__author-image {
height: 2rem;
margin-left: 0.25rem; margin-left: 0.25rem;
margin-right: 0.75rem; margin-right: 0.75rem;
}
img { &__author-image {
border-radius: 9999px; border-radius: 9999px;
height: 100%; height: 2rem;
}
} }
&__author-names { &__author-names {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
flex-grow: 1; flex-grow: 1;
justify-content: center; justify-content: center;
}
&__social {
color: $white;
}
&__caption {
text-align: center;
font-size: 0.75rem;
margin-top: 0;
margin-bottom: 0;
@include screen(md) {
text-align: center;
font-size: 0.875rem;
}
}
a:hover { &__featured-image {
text-decoration: underline; @include my(2rem);
@include mx(0);
display: flex;
flex-direction: column;
align-items: center;
object-fit: contain;
position: relative;
img {
min-width: 100vw;
object-fit: cover;
height: 50vh;
@include screen(md) {
height: 70vh;
}
}
figcaption {
font-size: $text-sm;
background: var(--bg-color);
color: var(--highlight-color);
padding: 0.25rem 1rem;
border-radius: 1rem;
margin-left: 0.5rem;
margin-right: 0.5rem;
text-align: center;
position: absolute;
bottom: 1rem;
box-shadow: 0px 0px 4px 1px var(--accent-color);
z-index: 120;
@include transition;
@include screen(md) {
padding: 0.5rem 2rem;
}
}
&:hover figcaption {
transform: translateY(100%) translateY(2rem);
} }
} }
} }

View File

@ -1,5 +1,5 @@
.post-list { .post-list {
@include my(2rem); @include my(1rem);
display: grid; display: grid;
grid-template-columns: 1fr; grid-template-columns: 1fr;
row-gap: 1rem; row-gap: 1rem;

View File

@ -58,9 +58,6 @@
&__nav-content { &__nav-content {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
p {
margin: 0;
}
&--previous-post { &--previous-post {
align-items: start; align-items: start;
@ -77,7 +74,11 @@
} }
} }
} }
&__nav-indicator {
margin: 0;
}
&__nav-title { &__nav-title {
margin: 0;
font-size: $text-xl; font-size: $text-xl;
color: var(--accent-color); color: var(--accent-color);
} }

View File

@ -0,0 +1,25 @@
.tag {
&__color {
display: inline-block;
border-radius: 9999px;
vertical-align: text-bottom;
height: 1rem;
width: 1rem;
}
&__name {
font-size: $text-base;
&:hover {
text-decoration: underline;
}
&--post-header {
color: var(--text-color);
}
}
&__paywall {
font-size: $text-base;
&:hover {
text-decoration: underline;
}
color: var(--accent-color);
}
}

View File

@ -1,4 +1,3 @@
@import './utilities/normalize';
@import './utilities/responsive'; @import './utilities/responsive';
@import './utilities/transition'; @import './utilities/transition';
@import './utilities/spacing'; @import './utilities/spacing';
@ -14,9 +13,34 @@
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
object-fit: contain; object-fit: contain;
position: relative;
.kg-image { .kg-image {
width: 100%; width: 100%;
} }
figcaption {
font-size: $text-sm;
background: var(--bg-color);
color: var(--highlight-color);
padding: 0.25rem 1rem;
border-radius: 1rem;
margin-left: 0.5rem;
margin-right: 0.5rem;
text-align: center;
position: absolute;
bottom: 2rem;
box-shadow: 0px 0px 4px 1px var(--accent-color);
z-index: 120;
@include transition;
@include screen(md) {
padding: 0.5rem 2rem;
}
}
&:hover figcaption {
transform: translateY(100%) translateY(2rem);
}
} }
.kg-width-wide .kg-image { .kg-width-wide .kg-image {
min-width: 100vw; min-width: 100vw;
@ -34,12 +58,6 @@
.kg-width-full .kg-image { .kg-width-full .kg-image {
min-width: 100vw; min-width: 100vw;
} }
.kg-card figcaption {
font-size: $text-sm;
color: var(--highlight-color);
margin-top: 0.5rem;
}
.kg-gallery-container { .kg-gallery-container {
min-width: 100vw; min-width: 100vw;
@include screen(md) { @include screen(md) {
@ -131,3 +149,21 @@
white-space: nowrap; white-space: nowrap;
} }
} }
.site-header {
&.search-enabled {
height: 100%;
}
&.search-enabled &__background {
opacity: 100%;
top: 0;
}
&.search-enabled &__inner {
background: rgba(0, 0, 0, 0.5);
}
&.search-detached &__inner {
background: rgba(0, 0, 0, 0.5);
}
}

3286
yarn.lock

File diff suppressed because it is too large Load Diff