First draft
This commit is contained in:
8
assets/scss/_about.scss
Normal file
8
assets/scss/_about.scss
Normal file
@ -0,0 +1,8 @@
|
||||
.about-content {
|
||||
font-size: 1rem;
|
||||
margin: 2rem 0;
|
||||
@media (max-width: 768px) {
|
||||
font-size: 16px;
|
||||
}
|
||||
}
|
||||
|
13
assets/scss/_archive.scss
Normal file
13
assets/scss/_archive.scss
Normal file
@ -0,0 +1,13 @@
|
||||
@import "variables";
|
||||
.archive {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
line-height: 1.3em;
|
||||
text-align: left;
|
||||
color: #111;
|
||||
}
|
||||
|
||||
.dark-mode .archive {
|
||||
color: $dark-font;
|
||||
}
|
9
assets/scss/_footer.scss
Normal file
9
assets/scss/_footer.scss
Normal file
@ -0,0 +1,9 @@
|
||||
@import "variables";
|
||||
.footer {
|
||||
padding: 18px;
|
||||
font-size: $font-size-content;
|
||||
}
|
||||
|
||||
.dark-mode .footer {
|
||||
background-color: $dark-navbar;
|
||||
}
|
147
assets/scss/_header.scss
Normal file
147
assets/scss/_header.scss
Normal file
@ -0,0 +1,147 @@
|
||||
@import "variables";
|
||||
|
||||
.navbar {
|
||||
height: 6vmin;
|
||||
@media (max-width: 768px) {
|
||||
height: 6vh;
|
||||
}
|
||||
|
||||
.navbar-brand {
|
||||
padding: 0px 15px;
|
||||
@media (max-width: 768px) {
|
||||
padding: 0;
|
||||
height: 6vh;
|
||||
}
|
||||
|
||||
.logo h1 {
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
/* Let the sun icon not be next to the top*/
|
||||
.theme-toggle {
|
||||
margin-top: 5px;
|
||||
}
|
||||
}
|
||||
|
||||
.navbar-menu {
|
||||
background-color: $main-light;
|
||||
font-size: 1.1rem;
|
||||
|
||||
}
|
||||
.dark-mode .navbar-menu {
|
||||
background-color: $dark-navbar;
|
||||
color: $dark-font;
|
||||
}
|
||||
|
||||
.search {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
height: 100%;
|
||||
@media (max-width: 768px) {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
#fastSearch {
|
||||
height: 60%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
#searchInput {
|
||||
height: 100%;
|
||||
flex-shrink: 0
|
||||
}
|
||||
|
||||
#searchResults {
|
||||
position: relative;
|
||||
margin-top: 10px;
|
||||
display: inline-block;
|
||||
border-radius: 5px;
|
||||
|
||||
li {
|
||||
background-color: $main-light;
|
||||
padding-left: 1rem;
|
||||
border-bottom: 1px solid $main-black;
|
||||
border-left: 1px solid $main-black;
|
||||
border-right: 1px solid $main-black;
|
||||
|
||||
&:hover {
|
||||
background-color: $main-grey;
|
||||
}
|
||||
|
||||
&:first-child {
|
||||
border-top: 1px solid $main-black;
|
||||
border-top-left-radius: 5px;
|
||||
border-top-right-radius: 5px;
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
border-bottom-left-radius: 5px;
|
||||
border-bottom-right-radius: 5px;
|
||||
}
|
||||
|
||||
a .title {
|
||||
text-decoration: none;
|
||||
/*display: block;*/
|
||||
font-size: $font-size-content;
|
||||
padding-left: 0.5rem;
|
||||
font-weight: normal;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.navbar-item {
|
||||
@media (max-width: 768px) {
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
.dark-mode {
|
||||
.navbar.is-light {
|
||||
background-color: $dark-navbar;
|
||||
color: $dark-font;
|
||||
.navbar-menu{
|
||||
background-color: $dark-navbar;
|
||||
color: $dark-font;
|
||||
}
|
||||
.navbar-brand > .navbar-item {
|
||||
color: $dark-font;
|
||||
background-color: $dark-navbar;
|
||||
}
|
||||
|
||||
.navbar-start > .navbar-item {
|
||||
background-color: $dark-navbar;
|
||||
color: $dark-font;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
.dark-mode #searchResults li {
|
||||
background-color: $dark-navbar;
|
||||
border-bottom: 1px solid $dark-font;
|
||||
border-left: 1px solid $dark-font;
|
||||
border-right: 1px solid $dark-font;
|
||||
}
|
||||
|
||||
.dark-mode #searchResults li:first-child {
|
||||
border-top: 1px solid $dark-font;
|
||||
}
|
||||
|
||||
.dark-mode #searchResults li:hover {
|
||||
color: $dark-font;
|
||||
background-color: $dark-background;
|
||||
}
|
||||
|
||||
.dark-mode .navbar.is-light .navbar-burger {
|
||||
color: $dark-font;
|
||||
}
|
||||
.dark-mode .navbar.is-light .navbar-brand > a.navbar-item:hover, .dark-mode .navbar.is-light .navbar-start > a.navbar-item:hover {
|
||||
background-color: $dark-navbar;
|
||||
color: $dark-font;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
94
assets/scss/_index.scss
Normal file
94
assets/scss/_index.scss
Normal file
@ -0,0 +1,94 @@
|
||||
@import "variables";
|
||||
|
||||
#home-box {
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
|
||||
#home-title {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.description {
|
||||
text-align: center;
|
||||
font-size: $font-size-content;
|
||||
}
|
||||
|
||||
.typewriter-effect {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
|
||||
.text {
|
||||
max-width: 0;
|
||||
text-transform: capitalize;
|
||||
animation: typing 3s steps(var(--characters)) infinite;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
&:after {
|
||||
content: " |";
|
||||
animation: blink 1s infinite;
|
||||
animation-timing-function: step-end;
|
||||
}
|
||||
}
|
||||
|
||||
//Override bulma's style
|
||||
.avatar-container {
|
||||
text-align: center;
|
||||
|
||||
.author-avatar {
|
||||
object-fit: cover;
|
||||
border-radius: 50%;
|
||||
width: 10rem;
|
||||
height: 10rem;
|
||||
text-align: center;
|
||||
margin: 2rem auto 0 auto;
|
||||
}
|
||||
}
|
||||
|
||||
.social-icon {
|
||||
text-align: center;
|
||||
margin-bottom: 2rem;
|
||||
|
||||
span {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
svg {
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/*Typewriter effect*/
|
||||
@keyframes typing {
|
||||
75%,
|
||||
100% {
|
||||
max-width: calc(var(--characters) * 1ch);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes blink {
|
||||
0%,
|
||||
75%,
|
||||
100% {
|
||||
opacity: 1;
|
||||
}
|
||||
25% {
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
/* Rewrite some of bulma's styles */
|
||||
.navbar.is-light .navbar-end .navbar-link.is-active,
|
||||
.navbar.is-light .navbar-end .navbar-link:hover,
|
||||
navbar .navbar.is-light .navbar-end > a.navbar-item.is-active,
|
||||
.navbar.is-light .navbar-end > a.navbar-item:hover,
|
||||
.navbar.is-light .navbar-start .navbar-link.is-active,
|
||||
.navbar.is-light .navbar-start .navbar-link:hover,
|
||||
.navbar.is-light .navbar-start > a.navbar-item.is-active,
|
||||
.navbar.is-light .navbar-start > a.navbar-item:hover, .navbar.is-light .navbar-brand > a.navbar-item:hover {
|
||||
background-color: $main-light;
|
||||
color: $main-black;
|
||||
}
|
289
assets/scss/_main.scss
Normal file
289
assets/scss/_main.scss
Normal file
@ -0,0 +1,289 @@
|
||||
@import "_variables";
|
||||
/* sticky footer */
|
||||
body {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 100vh;
|
||||
font-family: Ubuntu, Roboto, 'Open Sans', 'Microsoft YaHei', sans-serif;
|
||||
font-size: $font-size-content;
|
||||
}
|
||||
.dark-mode {
|
||||
color: $dark-font;
|
||||
background-color: $dark-background;
|
||||
}
|
||||
.heading {
|
||||
text-transform: none;
|
||||
}
|
||||
|
||||
main {
|
||||
flex: 1;
|
||||
flex-shrink: 0;
|
||||
flex-basis: auto;
|
||||
}
|
||||
|
||||
header,
|
||||
footer {
|
||||
flex-grow: 0;
|
||||
flex-shrink: 0;
|
||||
flex-basis: auto;
|
||||
}
|
||||
|
||||
.dark-mode .title {
|
||||
color: $dark-font;
|
||||
}
|
||||
|
||||
.dark-mode hr {
|
||||
background-color: $dark-navbar;
|
||||
}
|
||||
|
||||
.title.is-1 {
|
||||
font-family: Inter, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
|
||||
font-size: $font-size-article-title;
|
||||
}
|
||||
|
||||
.max-800px {
|
||||
max-width: 800px;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.icon {
|
||||
color: $main-black;
|
||||
margin: 0 0.3rem;
|
||||
}
|
||||
|
||||
.dark-mode .icon {
|
||||
color: $dark-font;
|
||||
}
|
||||
|
||||
.icon:hover, .search-svg:hover {
|
||||
color: $main-orange;
|
||||
transform: scale(1.2);
|
||||
transition: all 0.2s linear;
|
||||
}
|
||||
|
||||
.single-container,
|
||||
.archive-container,
|
||||
.each-category {
|
||||
padding-left: 20vw;
|
||||
padding-right: 20vw;
|
||||
}
|
||||
|
||||
p {
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
input {
|
||||
height: 100%;
|
||||
width: 20vw;
|
||||
align-self: center;
|
||||
margin-right: 0.5rem;
|
||||
border-radius: 24px;
|
||||
padding-left: 1rem;
|
||||
}
|
||||
|
||||
input:focus {
|
||||
outline: none;
|
||||
border: 2px solid;
|
||||
}
|
||||
|
||||
button {
|
||||
border: none;
|
||||
background-color: white;
|
||||
}
|
||||
|
||||
.dark-mode button {
|
||||
background-color: $dark-background;
|
||||
color: $dark-font;
|
||||
border-color: $dark-navbar;
|
||||
}
|
||||
|
||||
a {
|
||||
color: $main-black;
|
||||
}
|
||||
|
||||
.dark-mode a {
|
||||
color: $dark-font;
|
||||
}
|
||||
.dark-mode .content h1, .dark-mode .content h2, .dark-mode .content h3, .dark-mode .content h4, .dark-mode .content h5, .dark-mode .content h6 {
|
||||
color: $dark-font;
|
||||
}
|
||||
|
||||
.dark-mode code {
|
||||
background-color: $dark-background;
|
||||
}
|
||||
.dark-mode .content blockquote {
|
||||
color: $dark-font;
|
||||
background-color: $dark-background;
|
||||
}
|
||||
|
||||
.dark-mode strong {
|
||||
color: white;
|
||||
}
|
||||
.dark-mode .content table thead td, .dark-mode .content table thead th {
|
||||
color: $dark-font;
|
||||
}
|
||||
|
||||
.dark-mode .card {
|
||||
background-color: $dark-navbar;
|
||||
}
|
||||
|
||||
|
||||
.dark-mode .icon:hover {
|
||||
color: $main-orange;
|
||||
}
|
||||
|
||||
.dark-mode pre {
|
||||
color: #f8f8f2;
|
||||
background-color: #272822;
|
||||
-moz-tab-size: 4;
|
||||
-o-tab-size: 4;
|
||||
tab-size: 4;
|
||||
}
|
||||
.hover-underline-animation {
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
@media (min-width: 768px) {
|
||||
padding: 5px 0;
|
||||
}
|
||||
|
||||
&:after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
transform: scaleX(0);
|
||||
height: 2px;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
background-color: $main-orange;
|
||||
transform-origin: bottom right;
|
||||
transition: transform 0.25s ease-out;
|
||||
}
|
||||
|
||||
&:hover:after {
|
||||
transform: scaleX(1);
|
||||
transform-origin: bottom left;
|
||||
}
|
||||
}
|
||||
|
||||
.title,
|
||||
.archive-title {
|
||||
font-size: $font-size-archive-title;
|
||||
margin-top: 2rem;
|
||||
margin-bottom: 2rem;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.archive-item {
|
||||
margin: 5px 0 15px;
|
||||
padding: 0;
|
||||
|
||||
}
|
||||
|
||||
.archive-item-date {
|
||||
color: $main-grey;
|
||||
font-size: $font-size-content;
|
||||
padding: 5px 0;
|
||||
margin-top: 5px;
|
||||
float: right;
|
||||
}
|
||||
.archive-item-link {
|
||||
display: inline-block;
|
||||
text-decoration: none;
|
||||
font-size: $font-size-content-larger;
|
||||
color: #222;
|
||||
padding: 5px 0;
|
||||
transition: all 0.1s linear;
|
||||
|
||||
}
|
||||
.pp-container{
|
||||
margin-top: 2rem;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
html {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.content h1 {
|
||||
font-size: 27px;
|
||||
}
|
||||
|
||||
.title.is-1 {
|
||||
margin-top: 25px;
|
||||
font-size: 25.6px;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.column {
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.section {
|
||||
padding-bottom: 3rem;
|
||||
}
|
||||
|
||||
.artical-content h1 {
|
||||
font-size: 25.6px;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.artical-content h2 {
|
||||
font-size: 24px;
|
||||
}
|
||||
|
||||
.artical-content h3 {
|
||||
font-size: 22px;
|
||||
}
|
||||
|
||||
.artical-content h4 {
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
.artical-content h5 {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.artical-content h6 {
|
||||
font-size: 17px;
|
||||
}
|
||||
|
||||
.archive-title {
|
||||
font-size: 1rem;
|
||||
margin-top: 1rem;
|
||||
margin-bottom: 1rem;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.archive-item-link {
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
|
||||
.archive-item-date {
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.section {
|
||||
padding-top: 1rem;
|
||||
padding-bottom: 1rem;
|
||||
}
|
||||
|
||||
|
||||
.single-container,
|
||||
.archive-container,
|
||||
.each-category {
|
||||
padding-left: 5vw;
|
||||
padding-right: 5vw;
|
||||
}
|
||||
|
||||
.title,
|
||||
.archive-title {
|
||||
margin-top: 1vh;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
346
assets/scss/_normalize.scss
Normal file
346
assets/scss/_normalize.scss
Normal file
@ -0,0 +1,346 @@
|
||||
/*! normalize.css v8.0.0 | MIT License | github.com/necolas/normalize.css */
|
||||
|
||||
/* Document
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* 1. Correct the line height in all browsers.
|
||||
* 2. Prevent adjustments of font size after orientation changes in iOS.
|
||||
*/
|
||||
/* Solve the problem that mobile pages generate shadows when clicking on icons or buttons */
|
||||
html {
|
||||
line-height: 1.15; /* 1 */
|
||||
-webkit-text-size-adjust: 100%; /* 2 */
|
||||
|
||||
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
}
|
||||
|
||||
/* Sections
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Remove the margin in all browsers.
|
||||
*/
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Correct the font size and margin on `h1` elements within `section` and
|
||||
* `article` contexts in Chrome, Firefox, and Safari.
|
||||
*/
|
||||
|
||||
h1 {
|
||||
font-size: 2em;
|
||||
}
|
||||
|
||||
/* Grouping content
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* 1. Add the correct box sizing in Firefox.
|
||||
* 2. Show the overflow in Edge and IE.
|
||||
*/
|
||||
|
||||
hr {
|
||||
box-sizing: content-box; /* 1 */
|
||||
height: 0; /* 1 */
|
||||
overflow: visible; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Correct the inheritance and scaling of font size in all browsers.
|
||||
* 2. Correct the odd `em` font sizing in all browsers.
|
||||
*/
|
||||
|
||||
pre {
|
||||
font-family: monospace, monospace; /* 1 */
|
||||
font-size: 1em; /* 2 */
|
||||
}
|
||||
|
||||
/* Text-level semantics
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Remove the gray background on active links in IE 10.
|
||||
*/
|
||||
|
||||
a {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Remove the bottom border in Chrome 57-
|
||||
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
|
||||
*/
|
||||
|
||||
abbr[title] {
|
||||
border-bottom: none; /* 1 */
|
||||
text-decoration: underline; /* 2 */
|
||||
text-decoration: underline dotted; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Add the correct font weight in Chrome, Edge, and Safari.
|
||||
*/
|
||||
|
||||
b,
|
||||
strong {
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Correct the inheritance and scaling of font size in all browsers.
|
||||
* 2. Correct the odd `em` font sizing in all browsers.
|
||||
*/
|
||||
|
||||
code,
|
||||
kbd,
|
||||
samp {
|
||||
font-family: monospace, monospace; /* 1 */
|
||||
font-size: 1em; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Add the correct font size in all browsers.
|
||||
*/
|
||||
|
||||
small {
|
||||
font-size: 80%;
|
||||
}
|
||||
|
||||
/**
|
||||
* Prevent `sub` and `sup` elements from affecting the line height in
|
||||
* all browsers.
|
||||
*/
|
||||
|
||||
sub,
|
||||
sup {
|
||||
font-size: 75%;
|
||||
line-height: 0;
|
||||
position: relative;
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
sub {
|
||||
bottom: -0.25em;
|
||||
}
|
||||
|
||||
sup {
|
||||
top: -0.5em;
|
||||
}
|
||||
|
||||
/* Embedded content
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Remove the border on images inside links in IE 10.
|
||||
*/
|
||||
|
||||
img {
|
||||
border-style: none;
|
||||
}
|
||||
|
||||
/* Forms
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* 1. Change the font styles in all browsers.
|
||||
* 2. Remove the margin in Firefox and Safari.
|
||||
*/
|
||||
|
||||
button,
|
||||
input,
|
||||
optgroup,
|
||||
select,
|
||||
textarea {
|
||||
font-family: inherit; /* 1 */
|
||||
font-size: 100%; /* 1 */
|
||||
line-height: 1.15; /* 1 */
|
||||
margin: 0; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the overflow in IE.
|
||||
* 1. Show the overflow in Edge.
|
||||
*/
|
||||
|
||||
button,
|
||||
input {
|
||||
/* 1 */
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove the inheritance of text transform in Edge, Firefox, and IE.
|
||||
* 1. Remove the inheritance of text transform in Firefox.
|
||||
*/
|
||||
|
||||
button,
|
||||
select {
|
||||
/* 1 */
|
||||
text-transform: none;
|
||||
}
|
||||
|
||||
/**
|
||||
* Correct the inability to style clickable types in iOS and Safari.
|
||||
*/
|
||||
|
||||
button,
|
||||
[type='button'],
|
||||
[type='reset'],
|
||||
[type='submit'] {
|
||||
-webkit-appearance: button;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove the inner border and padding in Firefox.
|
||||
*/
|
||||
|
||||
button::-moz-focus-inner,
|
||||
[type='button']::-moz-focus-inner,
|
||||
[type='reset']::-moz-focus-inner,
|
||||
[type='submit']::-moz-focus-inner {
|
||||
border-style: none;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Restore the focus styles unset by the previous rule.
|
||||
*/
|
||||
|
||||
button:-moz-focusring,
|
||||
[type='button']:-moz-focusring,
|
||||
[type='reset']:-moz-focusring,
|
||||
[type='submit']:-moz-focusring {
|
||||
outline: 1px dotted ButtonText;
|
||||
}
|
||||
|
||||
/**
|
||||
* Correct the padding in Firefox.
|
||||
*/
|
||||
|
||||
fieldset {
|
||||
padding: 0.35em 0.75em 0.625em;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Correct the text wrapping in Edge and IE.
|
||||
* 2. Correct the color inheritance from `fieldset` elements in IE.
|
||||
* 3. Remove the padding so developers are not caught out when they zero out
|
||||
* `fieldset` elements in all browsers.
|
||||
*/
|
||||
|
||||
legend {
|
||||
box-sizing: border-box; /* 1 */
|
||||
color: inherit; /* 2 */
|
||||
display: table; /* 1 */
|
||||
max-width: 100%; /* 1 */
|
||||
padding: 0; /* 3 */
|
||||
white-space: normal; /* 1 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Add the correct vertical alignment in Chrome, Firefox, and Opera.
|
||||
*/
|
||||
|
||||
progress {
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove the default vertical scrollbar in IE 10+.
|
||||
*/
|
||||
|
||||
textarea {
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Add the correct box sizing in IE 10.
|
||||
* 2. Remove the padding in IE 10.
|
||||
*/
|
||||
|
||||
[type='checkbox'],
|
||||
[type='radio'] {
|
||||
box-sizing: border-box; /* 1 */
|
||||
padding: 0; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Correct the cursor style of increment and decrement buttons in Chrome.
|
||||
*/
|
||||
|
||||
[type='number']::-webkit-inner-spin-button,
|
||||
[type='number']::-webkit-outer-spin-button {
|
||||
height: auto;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Correct the odd appearance in Chrome and Safari.
|
||||
* 2. Correct the outline style in Safari.
|
||||
*/
|
||||
|
||||
[type='search'] {
|
||||
-webkit-appearance: textfield; /* 1 */
|
||||
outline-offset: -2px; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove the inner padding in Chrome and Safari on macOS.
|
||||
*/
|
||||
|
||||
[type='search']::-webkit-search-decoration {
|
||||
-webkit-appearance: none;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Correct the inability to style clickable types in iOS and Safari.
|
||||
* 2. Change font properties to `inherit` in Safari.
|
||||
*/
|
||||
|
||||
::-webkit-file-upload-button {
|
||||
-webkit-appearance: button; /* 1 */
|
||||
font: inherit; /* 2 */
|
||||
}
|
||||
|
||||
/* Interactive
|
||||
========================================================================== */
|
||||
|
||||
/*
|
||||
* Add the correct display in Edge, IE 10+, and Firefox.
|
||||
*/
|
||||
|
||||
details {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/*
|
||||
* Add the correct display in all browsers.
|
||||
*/
|
||||
|
||||
summary {
|
||||
display: list-item;
|
||||
}
|
||||
|
||||
/* Misc
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Add the correct display in IE 10+.
|
||||
*/
|
||||
|
||||
template {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add the correct display in IE 10.
|
||||
*/
|
||||
|
||||
[hidden] {
|
||||
display: none;
|
||||
}
|
9
assets/scss/_pagination.scss
Normal file
9
assets/scss/_pagination.scss
Normal file
@ -0,0 +1,9 @@
|
||||
.pagination {
|
||||
justify-content: space-around;
|
||||
margin: 0 10vw 1rem 10vw;
|
||||
|
||||
.pag-link {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
}
|
115
assets/scss/_single.scss
Normal file
115
assets/scss/_single.scss
Normal file
@ -0,0 +1,115 @@
|
||||
#scrollToTopButton{
|
||||
position: fixed;
|
||||
bottom: 20px;
|
||||
right: 20px;
|
||||
z-index: 9999;
|
||||
}
|
||||
#verification{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
margin-top: 20vh;
|
||||
#secret-word{
|
||||
font-size: 1.5rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
form {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
width: auto;
|
||||
input[type="password"] {
|
||||
margin-bottom: 1.5rem;
|
||||
padding: 10px 20px;
|
||||
}
|
||||
input[type="submit"] {
|
||||
padding: 10px 20px;
|
||||
cursor: pointer;
|
||||
}
|
||||
input[type="submit"]:hover {
|
||||
background-color: $main-orange;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.hidden{
|
||||
display: none;
|
||||
}
|
||||
.single-container{
|
||||
|
||||
.archive{
|
||||
|
||||
.author-image {
|
||||
object-fit: cover;
|
||||
border-radius: 50%;
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
}
|
||||
|
||||
.author-info {
|
||||
display: flex;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.small-categories-container {
|
||||
margin-right: 3rem;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.article-content > :not(.toc-container){
|
||||
a{
|
||||
color: #6086b4;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
.pre-and-post {
|
||||
display: flex;
|
||||
margin: 5px 0;
|
||||
justify-content: space-between;
|
||||
a {
|
||||
font-weight: bolder;
|
||||
}
|
||||
}
|
||||
|
||||
.article-content {
|
||||
margin: 2rem 0;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
#verification{
|
||||
|
||||
#secret-word{
|
||||
font-size: 1rem;
|
||||
margin-top: 1rem;
|
||||
}
|
||||
form {
|
||||
|
||||
input[type="password"] {
|
||||
padding: 10px 20px;
|
||||
width: auto;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
input[type="submit"] {
|
||||
padding: 10px 20px;
|
||||
cursor: pointer;
|
||||
background-color: $main-orange;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
.single-container .title {
|
||||
text-align: left;
|
||||
.small-categories-container {
|
||||
margin-right: 5vw;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
37
assets/scss/_summary.scss
Normal file
37
assets/scss/_summary.scss
Normal file
@ -0,0 +1,37 @@
|
||||
@import "variables";
|
||||
|
||||
.post-title {
|
||||
margin-bottom: 1rem;
|
||||
@media (max-width: 768px){
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
.post-link {
|
||||
color: $main-black;
|
||||
font-size: $font-size-content-larger;
|
||||
@media (max-width: 768px) {
|
||||
font-size: $font-size-content;
|
||||
}
|
||||
}
|
||||
|
||||
#post-container {
|
||||
padding: 1rem;
|
||||
background-color: $main-light;
|
||||
border-radius: 24px;
|
||||
|
||||
.excerpt {
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 3;
|
||||
-webkit-box-orient: vertical;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.post-time-container {
|
||||
margin-top: 0.5rem;
|
||||
}
|
||||
}
|
||||
.dark-mode #post-container {
|
||||
background-color: $dark-navbar;
|
||||
color: $dark-font;
|
||||
}
|
0
assets/scss/_taxonomy.scss
Normal file
0
assets/scss/_taxonomy.scss
Normal file
38
assets/scss/_terms.scss
Normal file
38
assets/scss/_terms.scss
Normal file
@ -0,0 +1,38 @@
|
||||
|
||||
.card-container {
|
||||
display: flex;
|
||||
padding-left: 20vw;
|
||||
padding-right: 20vw;
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
|
||||
.card {
|
||||
height: 72px;
|
||||
width: auto;
|
||||
margin: 2rem;
|
||||
border-radius: 6%;
|
||||
|
||||
&:hover {
|
||||
transform: scale(1.1);
|
||||
transition: all 0.3s linear;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
|
||||
.card-container {
|
||||
display: flex;
|
||||
padding: 0 20vw;
|
||||
flex-direction: column;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.card {
|
||||
margin: 1rem;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
58
assets/scss/_toc.scss
Normal file
58
assets/scss/_toc.scss
Normal file
@ -0,0 +1,58 @@
|
||||
@import "variables";
|
||||
|
||||
.post-toc {
|
||||
margin-left: 16px;
|
||||
font-size: 0.9em;
|
||||
line-height: 1.6;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
@media (max-width: 768px){
|
||||
margin-left: 0;
|
||||
}
|
||||
nav{
|
||||
margin-left: -1rem;
|
||||
}
|
||||
ul,li {
|
||||
list-style: none;
|
||||
}
|
||||
nav {
|
||||
font-weight: bold;
|
||||
}
|
||||
nav > ul > li > a::before {
|
||||
content: "┃";
|
||||
color: $main-orange;
|
||||
}
|
||||
ul > li > ul > li :first-child::before {
|
||||
content: "┃";
|
||||
color: #fded01;
|
||||
}
|
||||
a :last-child {
|
||||
margin-left: 5px;
|
||||
}
|
||||
}
|
||||
|
||||
#TableOfContents a:hover, #TableOfContents a:active {
|
||||
color: $main-orange;
|
||||
}
|
||||
.toc-container {
|
||||
position: fixed;
|
||||
right: 5vw;
|
||||
overflow: auto;
|
||||
top: 100px;
|
||||
width: 15vw;
|
||||
bottom: 50px;
|
||||
button{
|
||||
display: none;
|
||||
}
|
||||
@media (max-width: 768px){
|
||||
position: static;
|
||||
width: auto;
|
||||
#hide{
|
||||
display: none;
|
||||
}
|
||||
button{
|
||||
display: inline;
|
||||
}
|
||||
}
|
||||
margin-bottom: 1rem;
|
||||
}
|
13
assets/scss/_variables.scss
Normal file
13
assets/scss/_variables.scss
Normal file
@ -0,0 +1,13 @@
|
||||
$main-black: #363636;
|
||||
$main-orange: #FAB005;
|
||||
$main-light: #f5f5f5;
|
||||
$main-grey: rgb(142, 139, 139);
|
||||
$dark-background: #1F1F1F;
|
||||
$dark-navbar: #2D2F31;
|
||||
$dark-font: #E3E3E3;
|
||||
$font-size-home-title: 2.5rem;
|
||||
$font-size-article-title: 2.5rem;
|
||||
$font-size-article-title-mobile: 1.8rem;
|
||||
$font-size-content: 1rem;
|
||||
$font-size-content-larger: 1.3rem;
|
||||
$font-size-archive-title: 1.9rem;
|
13
assets/scss/style.scss
Normal file
13
assets/scss/style.scss
Normal file
@ -0,0 +1,13 @@
|
||||
@import "normalize";
|
||||
@import "main";
|
||||
@import "header";
|
||||
@import "single";
|
||||
@import "archive";
|
||||
@import "footer";
|
||||
@import "header";
|
||||
@import "index";
|
||||
@import "terms";
|
||||
@import "summary";
|
||||
@import "toc";
|
||||
@import "about";
|
||||
@import "pagination";
|
Reference in New Issue
Block a user