Compare commits

...

10 Commits
v2.1.0 ... main

Author SHA1 Message Date
Damillora 08284c78ce fix: spacing 2021-07-11 04:32:15 +07:00
Damillora 12329cb4a8 feat: new post design 2021-07-11 04:23:40 +07:00
Damillora 478d47217b feat: animate caption 2021-07-11 03:35:31 +07:00
Damillora 77c6d76d46 feat: new caption design 2021-07-11 03:19:24 +07:00
Damillora a1d30b3b13 chore: update depends 2021-07-11 01:01:07 +07:00
Damillora 62ab8aa6ba fix(shian): make search toggles not conflict with menu toggles 2021-07-11 00:52:36 +07:00
Damillora 78c1bd6421 feat(shian): add permanent icon menus 2021-07-11 00:26:56 +07:00
Damillora 6def68f493 perf(shian): switch back to usual nav menu
BREAKING CHANGE: please update your stylesheets accordingly
2021-07-11 00:24:55 +07:00
Damillora 4f53496885 chore: update gulp-sass 2021-07-08 02:32:21 +07:00
Damillora fa7253e18b feat: basic forms 2021-05-15 14:40:19 +07:00
15 changed files with 10673 additions and 829 deletions

View File

@ -1,6 +1,6 @@
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 zip = require('gulp-zip');
const concat = require('gulp-concat');

9925
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -11,7 +11,9 @@
"dev": "gulp dev",
"semantic-release": "semantic-release"
},
"dependencies": {},
"dependencies": {
"sass": "^1.35.1"
},
"devDependencies": {
"@fullhuman/postcss-purgecss": "^1.3.0",
"autoprefixer": "^10.2.1",
@ -20,12 +22,12 @@
"gulp-concat": "^2.6.1",
"gulp-livereload": "^4.0.2",
"gulp-postcss": "^9.0.0",
"gulp-sass": "^4.1.0",
"gulp-sass": "5",
"gulp-uglify": "^3.0.2",
"gulp-zip": "^5.0.1",
"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": [
"dist/**"
@ -35,6 +37,8 @@
"url": "https://github.com/Damillora/Shian.git"
},
"release": {
"branches": ["main"]
"branches": [
"main"
]
}
}

View File

@ -20,3 +20,5 @@
@import './components/copyarea';
@import './components/floatingyuriko';
@import './components/tag';
@import './components/forms';
@import './components/button';

View File

@ -38,7 +38,9 @@ body {
}
.main {
padding: 1rem;
margin: 1rem;
@include px(1rem);
@include screen(sm) {
@include px(2rem);
}

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

@ -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

@ -21,10 +21,10 @@
opacity: 0%;
top: -23vh;
&--enabled {
opacity: 100%;
top: 0;
}
}
&.enabled &__background {
opacity: 100%;
top: 0;
}
&__overlay {
background-color: rgba(0, 0, 0, 0.5);
@ -34,6 +34,8 @@
z-index: 1;
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
@include transition;
}
@ -48,12 +50,16 @@
.header {
display: flex;
flex-direction: column;
height: 100%;
@include transition;
@include screen(md) {
height: 4rem;
flex-direction: row;
}
&__top {
display: flex;
flex-direction: row;
flex-grow: 1;
height: 3rem;
@include screen(md) {
height: 4rem;
@ -89,8 +95,10 @@
cursor: pointer;
text-align: center;
white-space: nowrap;
@include transition;
@include screen(md) {
display: none;
}
&:hover {
background-color: $theme-blue;
}

View File

@ -1,11 +1,57 @@
.menu {
max-height: 0px;
display: flex;
flex-direction: column;
@include transition;
overflow: hidden;
&.enabled {
max-height: 100vh;
@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 screen(md) {
flex-direction: row;
}
&.hidden {
height: 0;
@include screen(md) {
height: 100%;
}
}
}
&__item {
color: $white;
@ -16,6 +62,10 @@
cursor: pointer;
@include transition;
@include screen(md) {
height: 4rem;
}
&:hover {
background-color: $theme-blue;
}
@ -42,6 +92,10 @@
text-align: center;
@include px(0.5rem);
@include py(0.75rem);
@include screen(md) {
display: none;
}
}
&__text {
display: inline-block;
@ -94,4 +148,4 @@
text-decoration: underline;
}
}
}
}

View File

@ -10,6 +10,14 @@
display: flex;
align-items: flex-end;
&--short {
min-height: 3rem;
@include screen(md) {
min-height: 4rem;
}
}
&__heading {
color: $white;
@include my(0.5rem);
@ -36,6 +44,7 @@
&__contents {
z-index: 1;
width: 100%;
padding-top: 3rem;
@include screen(md) {
padding-top: 4rem;

View File

@ -1,20 +1,24 @@
.post-header {
width: 100%;
margin-top: 3rem;
margin-bottom: 1rem;
&__heading {
@include my(0.5rem);
&--tag {
display: flex;
flex-direction: row;
align-items: center;
}
&--tag-text {
margin-left: 0.5rem;
color: $white;
margin-right: 0.5rem;
}
&--tag-color {
display: inline-block;
border-radius: 9999px;
vertical-align: text-bottom;
margin-right: 0.5rem;
height: 4rem;
width: 4rem;
}
@ -35,7 +39,6 @@
@include my(0.5rem);
}
&__title {
color: $white;
@include my(0.5rem);
}
&__author-list {
@ -43,8 +46,7 @@
display: flex;
flex-direction: row;
justify-content: center;
@include my(0.5rem);
@include py(0.5rem);
@include my(1rem);
}
&__author-images {
display: flex;
@ -63,10 +65,59 @@
flex-grow: 1;
justify-content: center;
}
&__author-name {
color: $white;
}
&__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 {
@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 {
@include my(2rem);
@include my(1rem);
display: grid;
grid-template-columns: 1fr;
row-gap: 1rem;

View File

@ -12,7 +12,7 @@
text-decoration: underline;
}
&--post-header {
color: $white;
color: var(--text-color);
}
}
&__paywall {

View File

@ -13,9 +13,34 @@
flex-direction: column;
align-items: center;
object-fit: contain;
position: relative;
.kg-image {
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 {
min-width: 100vw;
@ -33,13 +58,6 @@
.kg-width-full .kg-image {
min-width: 100vw;
}
.kg-card figcaption {
font-size: $text-sm;
color: var(--highlight-color);
margin-top: 0.5rem;
text-align: center;
}
.kg-gallery-container {
min-width: 100vw;
@include screen(md) {
@ -131,3 +149,21 @@
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