Compare commits

..

No commits in common. "main" and "v1.1.0" have entirely different histories.
main ... v1.1.0

21 changed files with 1197 additions and 11104 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')(require('sass')); const sass = require('gulp-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

File diff suppressed because it is too large Load Diff

View File

@ -11,9 +11,7 @@
"dev": "gulp dev", "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",
@ -22,12 +20,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": "5", "gulp-sass": "^4.1.0",
"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",
"semantic-release": "^17.4.2", "typeface-exo-2": "^0.0.72",
"typeface-exo-2": "^0.0.72" "semantic-release": "^17.4.2"
}, },
"files": [ "files": [
"dist/**" "dist/**"
@ -37,8 +35,6 @@
"url": "https://github.com/Damillora/Shian.git" "url": "https://github.com/Damillora/Shian.git"
}, },
"release": { "release": {
"branches": [ "branches": ["main"]
"main"
]
} }
} }

View File

@ -19,6 +19,3 @@
@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

@ -38,9 +38,7 @@ body {
} }
.main { .main {
margin: 1rem; padding: 1rem;
@include px(1rem);
@include screen(sm) { @include screen(sm) {
@include px(2rem); @include px(2rem);
} }
@ -60,7 +58,7 @@ body {
.main { .main {
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
}
p, p,
h1, h1,
h2, h2,
@ -77,7 +75,6 @@ h4,
h5, h5,
h6 { h6 {
font-weight: 300; font-weight: 300;
color: var(--accent-color);
} }
h1 { h1 {
font-size: $text-4xl; font-size: $text-4xl;
@ -129,6 +126,7 @@ pre {
padding: 0.5rem; padding: 0.5rem;
border: 1px solid var(--accent-color); border: 1px solid var(--accent-color);
} }
}
.card-list { .card-list {
display: flex; display: flex;

View File

@ -1,12 +0,0 @@
.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

@ -4,7 +4,7 @@
bottom: 1rem; bottom: 1rem;
margin-bottom: 0px; margin-bottom: 0px;
cursor: pointer; cursor: pointer;
&__image { img {
height: 20vh; height: 20vh;
} }
} }
@ -22,9 +22,7 @@
-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:hover, .hvr-float:focus, .hvr-float:active {
.hvr-float:focus,
.hvr-float:active {
-webkit-transform: translateY(-8px); -webkit-transform: translateY(-8px);
transform: translateY(-8px); transform: translateY(-8px);
} }

View File

@ -1,12 +0,0 @@
.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,16 +27,16 @@
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 {
&__popup-image {
max-height: 100%; max-height: 100%;
} }
}
&__exit { &__exit {
position: fixed; position: fixed;

View File

@ -24,13 +24,13 @@
@include my(0.5rem); @include my(0.5rem);
display: block; display: block;
flex-shrink: 1; p {
}
&__text {
@include my(0.25rem); @include my(0.25rem);
white-space: nowrap; white-space: nowrap;
text-align: right; text-align: right;
} }
flex-shrink: 1;
}
&__icon { &__icon {
padding: 0.5rem; padding: 0.5rem;
vertical-align: middle; vertical-align: middle;

View File

@ -1,3 +1,4 @@
.site-header { .site-header {
position: fixed; position: fixed;
z-index: 10; z-index: 10;
@ -6,7 +7,7 @@
overflow: hidden; overflow: hidden;
@include transition; @include transition;
&.enabled { &.enabled {
height: 100%; height: 100vh;
} }
@include screen(md) { @include screen(md) {
height: 4rem; height: 4rem;
@ -21,11 +22,11 @@
opacity: 0%; opacity: 0%;
top: -23vh; top: -23vh;
} &--enabled {
&.enabled &__background {
opacity: 100%; opacity: 100%;
top: 0; top: 0;
} }
}
&__overlay { &__overlay {
background-color: rgba(0,0,0,0.5); background-color: rgba(0,0,0,0.5);
} }
@ -34,8 +35,6 @@
z-index: 1; z-index: 1;
width: 100%; width: 100%;
height: 100%; height: 100%;
display: flex;
flex-direction: column;
@include transition; @include transition;
} }
@ -51,22 +50,16 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@include transition; @include transition;
@include screen(md) {
height: 4rem;
flex-direction: row;
}
&__top { &__top {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
flex-grow: 1; height: 100%;
height: 3rem;
@include screen(md) {
height: 4rem;
}
} }
&__title { &__title {
flex-grow: 1;
@include transition;
a {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
@ -78,11 +71,9 @@
font-size: $text-lg; font-size: $text-lg;
padding-left: 1rem; padding-left: 1rem;
height: 100%; height: 100%;
flex-grow: 1; }
@include transition;
&:hover { &:hover {
background-color: $theme-blue; background-color: $theme-blue;
text-decoration: none;
} }
} }
@ -93,17 +84,17 @@
height: 100%; height: 100%;
position: relative; position: relative;
cursor: pointer; cursor: pointer;
padding: 0.5rem;
@include screen(md) {
@include py(1rem);
}
text-align: center; text-align: center;
white-space: nowrap; white-space: nowrap;
@include transition; @include transition;
@include screen(md) {
display: none;
}
&:hover { &:hover {
background-color: $theme-blue; background-color: $theme-blue;
} }
} p {
&__nav-button-text {
color: $white; color: $white;
margin-right: 0.5rem; margin-right: 0.5rem;
display: none; display: none;
@ -111,11 +102,13 @@
display: block; display: block;
} }
} }
}
&__icon { &__icon {
width: 3rem; width: 3rem;
height: 100%;
color: $white; color: $white;
display: inline-block; display: inline-block;
@include px(0.5rem); @include px(0.50rem);
vertical-align: middle; vertical-align: middle;
// @include py(0.25rem); // @include py(0.25rem);
// @include screen(md) { // @include screen(md) {

View File

@ -16,8 +16,9 @@
width: 100%; width: 100%;
@include my(0.5rem); @include my(0.5rem);
display: block; display: block;
}
&__text { p {
@include my(0.25rem); @include my(0.25rem);
} }
} }
}

View File

@ -1,57 +1,10 @@
.menu { .menu {
display: flex; max-height: 0px;
flex-direction: column;
@include transition;
@include screen(md) {
flex-direction: row;
}
// Dark mode special menu
&--dark-mode {
.menu__text {
display: block; 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) { &.enabled {
flex-direction: row; max-height: 100vh;
}
&.hidden {
height: 0;
@include screen(md) {
height: 100%;
}
}
} }
&__item { &__item {
color: $white; color: $white;
@ -61,7 +14,6 @@
align-items: center; align-items: center;
cursor: pointer; cursor: pointer;
@include transition; @include transition;
@include screen(md) { @include screen(md) {
height: 4rem; height: 4rem;
} }
@ -70,21 +22,14 @@
background-color: $theme-blue; background-color: $theme-blue;
} }
&--hidden { a {
max-height: 0;
overflow: hidden;
@include transition;
}
}
&__link {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
&__icon { i {
display: inline-block; display: inline-block;
width: 4rem; width: 4rem;
height: 3rem; height: 3rem;
@ -92,60 +37,16 @@
text-align: center; text-align: center;
@include px(0.5rem); @include px(0.5rem);
@include py(0.75rem); @include py(0.75rem);
@include screen(md) {
display: none;
} }
} p {
&__text {
display: inline-block; display: inline-block;
flex-grow: 1; flex-grow: 1;
color: $white;
@include px(1rem); @include px(1rem);
} }
}
&__separator { &__separator {
margin-left: 5rem; margin-left: 5rem;
margin-right: 4rem; margin-right: 4rem;
border-top: 0.125rem solid $white; border-top: 0.125rem solid $white;
} }
&__search-input {
display: inline-block;
flex-grow: 1;
color: $white;
@include px(0.5rem);
@include mx(0.5rem);
@include py(0.25rem);
appearance: none;
background-color: transparent;
outline: none;
border-bottom: 1px solid $white;
&:focus-visible {
outline: none;
border-bottom: 1px solid $white;
}
}
&__search-results {
flex-grow: 1;
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,63 +1,37 @@
.page-header { .page-header {
position: relative; position: relative;
width: 100%; width: 100%;
min-height: 50vh; min-height: 200px;
font-weight: 300; height: 70vh;
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;
@include my(0.5rem); font-weight: 300;
} min-height: 300px;
&__text { height: 70vh;
@include my(0.5rem);
}
&__background { &__background {
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
z-index: -10;
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
&__overlay { &__overlay {
z-index: -10;
width: 100%; width: 100%;
height: 100%; height: 100%;
background-color: rgba(0,0,0,0.5); background-color: rgba(0,0,0,0.5);
} }
&__contents { &__contents {
z-index: 1; position: absolute;
width: 100%; bottom: 0;
padding-top: 3rem; left: 0;
@include screen(md) { right: 0;
padding-top: 4rem; @include py(0.5rem);
} a {
color: $white; color: $white;
} }
}
&__icon { &__icon {
width: 3rem; width: 6rem;
height: 3rem; height: 6rem;
@include screen(md) {
width: 4rem;
height: 4rem;
}
} }
} }

View File

@ -18,14 +18,14 @@
min-width: 300px; min-width: 300px;
max-width: 450px; max-width: 450px;
} }
} img {
&__image-inner {
position: absolute; position: absolute;
left: 0; left: 0;
top: 0; top: 0;
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
}
&__image::after { &__image::after {
display: block; display: block;
content: ''; content: '';
@ -42,24 +42,26 @@
@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;
color: var(--text-color); &:hover {
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;
@ -72,7 +74,6 @@
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;
@ -83,12 +84,10 @@
} }
&__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;
@ -99,21 +98,26 @@
&__author-images { &__author-images {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
margin-left: 0.25rem;
margin-right: 0.75rem;
} }
&__author-image { &__author-image {
border-radius: 9999px;
height: 2rem; height: 2rem;
margin-left: 0.25rem;
margin-right: 0.75rem;
img {
border-radius: 9999px;
height: 100%;
}
} }
&__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 {
text-decoration: underline;
} }
&__author-name {
color: var(--text-color);
} }
&__excerpt { &__excerpt {
margin-top: 0.5rem; margin-top: 0.5rem;

View File

@ -1,123 +1,95 @@
.post-header { .post-header {
width: 100%; h1,
margin-top: 3rem; h2,
margin-bottom: 1rem; h3,
h4,
&__heading { h5,
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;
} }
}
&__tag-info { * {
display: inline-block; display: inline-block;
padding-right: 0.25rem; padding-right: 0.25rem;
} }
}
&__tag-heading {
display: flex;
flex-direction: row;
h1 {
margin-left: 0.5rem;
}
}
&__tag-heading-color {
display: inline-block;
border-radius: 9999px;
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(1rem); @include my(0.5rem);
@include py(0.5rem);
} }
&__author-images { &__author-images {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
align-items: center;
margin-left: 0.25rem;
margin-right: 0.75rem;
} }
&__author-image { &__author-image {
border-radius: 9999px;
height: 2rem; height: 2rem;
margin-left: 0.25rem;
margin-right: 0.75rem;
img {
border-radius: 9999px;
height: 100%;
}
} }
&__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;
}
}
&__featured-image { a:hover {
@include my(2rem); text-decoration: underline;
@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(1rem); @include my(2rem);
display: grid; display: grid;
grid-template-columns: 1fr; grid-template-columns: 1fr;
row-gap: 1rem; row-gap: 1rem;

View File

@ -58,6 +58,9 @@
&__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;
@ -74,11 +77,7 @@
} }
} }
} }
&__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

@ -1,25 +0,0 @@
.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

@ -13,34 +13,9 @@
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;
@ -58,6 +33,12 @@
.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) {
@ -149,21 +130,3 @@
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);
}
}

1315
yarn.lock

File diff suppressed because it is too large Load Diff