feat: use hexo
This commit is contained in:
182
themes/vanilla/source/css/index.scss
Normal file
182
themes/vanilla/source/css/index.scss
Normal file
@@ -0,0 +1,182 @@
|
||||
@import url("https://fonts.googleapis.com/css?family=PT+Sans:400,700");
|
||||
|
||||
$break-small: 500px;
|
||||
$break-large: 840px;
|
||||
|
||||
:root {
|
||||
--background: #fff;
|
||||
--text: #000;
|
||||
--accent: #4f33e8;
|
||||
--highlight: #f6f6f6;
|
||||
--tone: #989898;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root {
|
||||
--background: #261e3a;
|
||||
--text: #e2dfea;
|
||||
--accent: #7033e8;
|
||||
--highlight: #140d25;
|
||||
--tone: #989898;
|
||||
}
|
||||
}
|
||||
|
||||
html,
|
||||
body {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
width: 900px;
|
||||
margin: 0 auto;
|
||||
padding: 0 20px;
|
||||
font-family: "PT Sans", "Hiragino Sans", "Hiragino Mincho ProN", sans-serif;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
text-rendering: optimizeLegibility;
|
||||
font-feature-settings: "kern", "palt", "pwid";
|
||||
-webkit-font-feature-settings: "kern", "palt", "pwid";
|
||||
-moz-font-feature-settings: "kern", "palt", "pwid";
|
||||
-moz-font-feature-settings: "kern=1", "palt", "pwid";
|
||||
background: var(--background);
|
||||
color: var(--text);
|
||||
|
||||
@media screen and (max-width: $break-large) {
|
||||
width: auto;
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
|
||||
// Highlight.js
|
||||
.hljs {
|
||||
border-radius: 6px;
|
||||
font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
||||
font-size: 14px;
|
||||
background: #0e0127 !important;
|
||||
padding: 12px 18px !important;
|
||||
line-height: 1.6em !important;
|
||||
margin: 0;
|
||||
}
|
||||
code {
|
||||
padding: 0 12px;
|
||||
}
|
||||
p code {
|
||||
padding: 3px 10px;
|
||||
background: var(--highlight);
|
||||
border-radius: 3px;
|
||||
font-size: 16px;
|
||||
}
|
||||
a:hover,
|
||||
a:active,
|
||||
a:link,
|
||||
a:visited {
|
||||
color: var(--text);
|
||||
text-decoration: none;
|
||||
}
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
p {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
line-height: 1.333em;
|
||||
}
|
||||
hr {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 1px;
|
||||
background-color: var(--highlight);
|
||||
border: 0;
|
||||
margin: 40px 0;
|
||||
}
|
||||
|
||||
.header {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
margin-top: 50px;
|
||||
margin-bottom: 50px;
|
||||
padding: 15px 0;
|
||||
|
||||
@media screen and (max-width: $break-small) {
|
||||
margin-top: 0px;
|
||||
justify-content: center;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.logo {
|
||||
margin: 10px 0 10px;
|
||||
@media (prefers-color-scheme: dark) {
|
||||
filter: invert(1);
|
||||
}
|
||||
}
|
||||
|
||||
.menu {
|
||||
list-style: none;
|
||||
margin-left: 40px;
|
||||
padding: 8px 0;
|
||||
display: flex;
|
||||
flex-flow: row wrap;
|
||||
text-transform: uppercase;
|
||||
font-weight: bold;
|
||||
|
||||
.menu__item:not(:last-child) {
|
||||
margin-right: 30px;
|
||||
|
||||
@media screen and (max-width: $break-small) {
|
||||
margin-right: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: $break-small) {
|
||||
padding: 0;
|
||||
margin: 5px 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.metro {
|
||||
// text-align: center;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
margin: 75px 0 100px;
|
||||
|
||||
.logo {
|
||||
@media (prefers-color-scheme: dark) {
|
||||
filter: invert(1);
|
||||
}
|
||||
}
|
||||
|
||||
.menu {
|
||||
margin: 15px 0 0 0;
|
||||
padding: 0;
|
||||
text-transform: uppercase;
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
list-style: none;
|
||||
.menu__item:not(:last-child) {
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: $break-small) {
|
||||
margin: 40px 0 40px;
|
||||
.menu {
|
||||
font-size: 15px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.page-nav {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
|
||||
.page-prev,
|
||||
.page-number,
|
||||
.page-next {
|
||||
font-size: 1.2rem;
|
||||
padding: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
@import "./post";
|
227
themes/vanilla/source/css/post.scss
Normal file
227
themes/vanilla/source/css/post.scss
Normal file
@@ -0,0 +1,227 @@
|
||||
.article-list__item {
|
||||
margin: 0 0 60px;
|
||||
|
||||
img {
|
||||
max-width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.article-list__item__title {
|
||||
margin: 0 0 2px;
|
||||
font-size: 40px;
|
||||
}
|
||||
|
||||
.article-list__item__pubdate {
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.article-list__item__excerpt {
|
||||
margin-top: 5px;
|
||||
font-size: 20px;
|
||||
color: var(--tone);
|
||||
line-height: 1.6em;
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
a.article-list__item__button {
|
||||
border: 1px solid var(--tone);
|
||||
border-radius: 3px;
|
||||
color: var(--tone);
|
||||
font-family: "Open Sans", sans-serif;
|
||||
font-size: 14px;
|
||||
display: inline-block;
|
||||
margin: 10px 0;
|
||||
padding: 10px 17px;
|
||||
text-transform: uppercase;
|
||||
|
||||
&:hover {
|
||||
background-color: var(--tone);
|
||||
color: var(--background);
|
||||
}
|
||||
|
||||
@media screen and (max-width: $break-small) {
|
||||
display: block;
|
||||
text-align: center;
|
||||
font-size: 17px;
|
||||
padding: 15px;
|
||||
|
||||
&:hover {
|
||||
background-color: var(--background);
|
||||
color: var(--tone);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.article {
|
||||
margin-bottom: 60px;
|
||||
}
|
||||
|
||||
.article__social {
|
||||
margin-top: 60px;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.article__social > * {
|
||||
margin-right: 4px;
|
||||
}
|
||||
|
||||
.article__metadata {
|
||||
margin: 40px 0 40px;
|
||||
|
||||
@media screen and (max-width: $break-small) {
|
||||
margin: 25px 0 25px;
|
||||
text-align: left;
|
||||
}
|
||||
}
|
||||
|
||||
.article__title {
|
||||
font-size: 55px;
|
||||
letter-spacing: -0.5px;
|
||||
|
||||
@media screen and (max-width: $break-small) {
|
||||
font-size: 40px;
|
||||
text-align: left;
|
||||
}
|
||||
}
|
||||
|
||||
.article__pubdate {
|
||||
color: var(--tone);
|
||||
font-size: 14px;
|
||||
font-weight: normal;
|
||||
font-family: sans-serif;
|
||||
margin-bottom: 10px;
|
||||
border: 1px solid var(--tone);
|
||||
display: inline-block;
|
||||
padding: 5px 20px;
|
||||
|
||||
@media screen and (max-width: $break-small) {
|
||||
margin-bottom: 15px;
|
||||
font-size: 10pt;
|
||||
}
|
||||
}
|
||||
|
||||
.article__content {
|
||||
p {
|
||||
font-size: 20px;
|
||||
font-weight: normal;
|
||||
line-height: 1.666em;
|
||||
margin: 25px 0;
|
||||
|
||||
@media screen and (max-width: $break-small) {
|
||||
font-size: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
ul {
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
||||
li {
|
||||
font-size: 20px;
|
||||
line-height: 1.6em;
|
||||
}
|
||||
|
||||
a {
|
||||
color: mediumslateblue;
|
||||
}
|
||||
|
||||
h1 {
|
||||
margin: 70px 0 0px;
|
||||
font-size: 2.5em;
|
||||
|
||||
@media screen and (max-width: $break-small) {
|
||||
margin: 30px 0 15px;
|
||||
font-size: 1.7em;
|
||||
}
|
||||
}
|
||||
|
||||
h2 {
|
||||
margin: 35px 0 15px;
|
||||
font-family: sans-serif;
|
||||
font-weight: bold;
|
||||
font-size: 1.7em;
|
||||
|
||||
@media screen and (max-width: $break-small) {
|
||||
margin: 20px 0 15px;
|
||||
font-family: sans-serif;
|
||||
font-weight: bold;
|
||||
font-size: 1.5em;
|
||||
}
|
||||
}
|
||||
|
||||
h3 {
|
||||
margin: 25px 0 15px;
|
||||
font-family: sans-serif;
|
||||
font-weight: bold;
|
||||
font-size: 1.3em;
|
||||
|
||||
@media screen and (max-width: $break-small) {
|
||||
margin: 15px 0 15px;
|
||||
font-family: sans-serif;
|
||||
font-weight: bold;
|
||||
font-size: 1.4em;
|
||||
}
|
||||
}
|
||||
|
||||
h4 {
|
||||
margin: 25px 0 15px;
|
||||
font-family: sans-serif;
|
||||
font-weight: bold;
|
||||
|
||||
@media screen and (max-width: $break-small) {
|
||||
margin: 15px 0 15px;
|
||||
font-family: sans-serif;
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
|
||||
img {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
blockquote {
|
||||
border-left: 5px solid var(--accent);
|
||||
padding-left: 20px;
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
|
||||
// Pay
|
||||
#pay {
|
||||
font-family: sans-serif;
|
||||
|
||||
.monospace {
|
||||
font-family: monospace;
|
||||
font-weight: bold;
|
||||
padding: 0 5px;
|
||||
font-size: 12pt;
|
||||
user-select: all;
|
||||
-webkit-user-select: all;
|
||||
-moz-user-select: all;
|
||||
}
|
||||
|
||||
p {
|
||||
padding: 10px 0;
|
||||
}
|
||||
|
||||
a.button {
|
||||
margin: 10px 0;
|
||||
padding: 20px;
|
||||
display: block;
|
||||
background: var(--text);
|
||||
color: var(--background);
|
||||
text-align: center;
|
||||
border-radius: 2px;
|
||||
}
|
||||
|
||||
img {
|
||||
margin: 10px 0;
|
||||
}
|
||||
|
||||
section {
|
||||
margin: 50px 0;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user