This commit is contained in:
@@ -53,11 +53,11 @@
|
||||
/>
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="https://unpkg.com/highlight.js@9.18.1/styles/night-owl.css"
|
||||
href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/styles/tokyo-night-dark.min.css"
|
||||
/>
|
||||
<%- css('css/index') %>
|
||||
|
||||
<!-- Feed -->
|
||||
<link rel="alternate" type="application/atom+xml" title="<%= config.title %>" href="<%= full_url_for(`/feed.xml`) %>" />
|
||||
<link rel="alternate" type="application/json" title="<%= config.title %>" href="<%= full_url_for(`/feed.json`) %>" />
|
||||
</head>
|
||||
</head>
|
||||
|
@@ -4,15 +4,18 @@
|
||||
/></a>
|
||||
<nav>
|
||||
<ul class="menu">
|
||||
<li class="menu__item">
|
||||
<a href="/me">Me</a>
|
||||
</li>
|
||||
<li class="menu__item">
|
||||
<a href="https://github.com/<%- config.github.username %>">GitHub</a>
|
||||
</li>
|
||||
<li class="menu__item">
|
||||
<a href="https://twitter.com/<%- config.twitter.username %>">Twitter</a>
|
||||
<a href="/me">Readme</a>
|
||||
</li>
|
||||
<!-- <li class="menu__item">
|
||||
<a href="https://sigvt.org">SIGVT</a>
|
||||
</li> -->
|
||||
<!-- <li class="menu__item">
|
||||
<a href="https://twitter.com/<%- config.twitter.username %>">Twitter</a>
|
||||
</li> -->
|
||||
<li class="menu__item">
|
||||
<a href="/wallpaper">Wallpaper</a>
|
||||
</li>
|
||||
|
@@ -1,4 +1,4 @@
|
||||
<section>
|
||||
<section class="article-list">
|
||||
<% page.posts.each(function (post) { %>
|
||||
<article class="article-list__item">
|
||||
<h2 class="article-list__item__title">
|
||||
@@ -32,4 +32,4 @@
|
||||
</article>
|
||||
<% }) %>
|
||||
<%- partial('_partial/paginator') %>
|
||||
</section>
|
||||
</section>
|
||||
|
@@ -1,27 +1,31 @@
|
||||
<section>
|
||||
<article class="article">
|
||||
<h1 class="article__title"><%- page.title %></h1>
|
||||
<hgroup class="article__metadata">
|
||||
<% if (page.date) { %>
|
||||
<h3 class="article__pubdate">
|
||||
<time pubdate><%- date(page.date, "YYYY / <b>MM</b>") %></time>
|
||||
</h3>
|
||||
<div class="article__pubdate">
|
||||
<time pubdate><%- date(page.date, "<b>YYYY</b> / MM") %></time>
|
||||
</div>
|
||||
<% } %>
|
||||
<h2 class="article__title"><%- page.title %></h2>
|
||||
<div class="article__updated">
|
||||
written by <b>uetchy</b>
|
||||
</div>
|
||||
<!-- <% if (page.updated) { %>
|
||||
LAST UPDATE: <time pubdate><%- date(page.updated, "<b>YYYY</b> / MM") %></time>
|
||||
</div>
|
||||
<% } %> -->
|
||||
</hgroup>
|
||||
<div class="article__content"><%- page.content %></div>
|
||||
<div class="article__content">
|
||||
<!-- <%- toc(page.content, {list_number: false}) %> -->
|
||||
<%- page.content %>
|
||||
</div>
|
||||
|
||||
<!-- Social buttons -->
|
||||
<script
|
||||
defer
|
||||
src="https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.8"
|
||||
id="facebook-jssdk"
|
||||
></script>
|
||||
<script
|
||||
defer
|
||||
src="https://platform.twitter.com/widgets.js"
|
||||
id="twitter-wjs"
|
||||
></script>
|
||||
<div id="fb-root"></div>
|
||||
<div class="article__social">
|
||||
<a
|
||||
href="https://twitter.com/share"
|
||||
@@ -29,14 +33,6 @@
|
||||
data-size="large"
|
||||
>Tweet</a
|
||||
>
|
||||
<div
|
||||
class="fb-like"
|
||||
data-layout="button"
|
||||
data-action="like"
|
||||
data-size="large"
|
||||
data-show-faces="false"
|
||||
data-share="true"
|
||||
></div>
|
||||
</div>
|
||||
</article>
|
||||
</section>
|
||||
@@ -52,4 +48,4 @@
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.18.1/languages/lua.min.js"></script>
|
||||
<script>
|
||||
hljs.initHighlightingOnLoad()
|
||||
</script> -->
|
||||
</script> -->
|
||||
|
@@ -1,69 +1,136 @@
|
||||
.article,
|
||||
.article-list__item {
|
||||
.article {
|
||||
font-feature-settings: "kern";
|
||||
margin-bottom: 60px;
|
||||
text-rendering: optimizeLegibility;
|
||||
font-feature-settings: "kern";
|
||||
}
|
||||
|
||||
.article__title {
|
||||
// margin: 0.2em 0 1.2em;
|
||||
font-family: "Montserrat", "Noto Sans JP", sans-serif;
|
||||
font-size: 3.5rem;
|
||||
line-height: 1.2em;
|
||||
text-align: center;
|
||||
text-rendering: geometricprecision;
|
||||
|
||||
@media screen and (max-width: $break-small) {
|
||||
font-size: 2.8rem;
|
||||
}
|
||||
}
|
||||
|
||||
.article__metadata {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
margin: 1.5em 0 1em;
|
||||
color: var(--tone);
|
||||
font-size: 0.8rem;
|
||||
font-weight: 400;
|
||||
|
||||
.article__pubdate,
|
||||
.article__updated {
|
||||
b {
|
||||
font-weight: 700;
|
||||
}
|
||||
}
|
||||
|
||||
.article__pubdate {
|
||||
border: 1px solid var(--tone);
|
||||
border-radius: 20px;
|
||||
padding: 0.5em 1.5em;
|
||||
}
|
||||
|
||||
.article__updated {
|
||||
margin-left: 1em;
|
||||
padding: 0.5em 0;
|
||||
}
|
||||
}
|
||||
|
||||
.article__content {
|
||||
margin: 5em 0 0;
|
||||
font-size: 1.1rem;
|
||||
|
||||
@media screen and (max-width: $break-small) {
|
||||
margin: 3em 0 0;
|
||||
}
|
||||
|
||||
p {
|
||||
line-height: 1.6em;
|
||||
margin: 1.25em 0;
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5 {
|
||||
h4 {
|
||||
text-rendering: geometricprecision;
|
||||
font-feature-settings: "kern", "palt";
|
||||
}
|
||||
}
|
||||
|
||||
.article {
|
||||
margin-bottom: 60px;
|
||||
}
|
||||
h1 {
|
||||
margin: 2em 0 0;
|
||||
font-size: 2.5rem;
|
||||
font-family: "Lora", serif;
|
||||
|
||||
.article-list__item {
|
||||
margin: 0 0 60px;
|
||||
@media screen and (max-width: $break-small) {
|
||||
margin: 1.5em 0 0.7em;
|
||||
font-size: 2.4rem;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
h2 {
|
||||
margin: 2em 0 0;
|
||||
font-size: 1.8rem;
|
||||
font-weight: bold;
|
||||
|
||||
@media screen and (max-width: $break-small) {
|
||||
margin: 1.5em 0 0;
|
||||
font-size: 1.8rem;
|
||||
}
|
||||
}
|
||||
|
||||
h3 {
|
||||
margin: 2em 0 0;
|
||||
font-size: 1.7rem;
|
||||
font-weight: normal;
|
||||
|
||||
@media screen and (max-width: $break-small) {
|
||||
margin: 2em 0 0;
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
h4 {
|
||||
margin: 35px 0 0;
|
||||
font-size: 1.2rem;
|
||||
font-weight: bold;
|
||||
|
||||
@media screen and (max-width: $break-small) {
|
||||
margin: 1em;
|
||||
}
|
||||
}
|
||||
|
||||
ul {
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
||||
li {
|
||||
line-height: 1.6em;
|
||||
}
|
||||
|
||||
a {
|
||||
color: var(--link-text);
|
||||
}
|
||||
|
||||
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);
|
||||
height: auto;
|
||||
}
|
||||
|
||||
@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);
|
||||
}
|
||||
blockquote {
|
||||
border-left: 5px solid var(--accent);
|
||||
padding-left: 20px;
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -78,135 +145,97 @@ a.article-list__item__button {
|
||||
margin-right: 4px;
|
||||
}
|
||||
|
||||
.article__metadata {
|
||||
margin: 40px 0 40px;
|
||||
|
||||
@media screen and (max-width: $break-small) {
|
||||
margin: 25px 0 25px;
|
||||
text-align: left;
|
||||
}
|
||||
.article-list {
|
||||
text-rendering: optimizeLegibility;
|
||||
font-feature-settings: "kern";
|
||||
}
|
||||
|
||||
.article__title {
|
||||
font-size: 4rem;
|
||||
letter-spacing: -0.2px;
|
||||
// line-height: 1em;
|
||||
|
||||
@media screen and (max-width: $break-small) {
|
||||
font-size: 40px;
|
||||
text-align: left;
|
||||
}
|
||||
}
|
||||
|
||||
.article__pubdate {
|
||||
color: var(--tone);
|
||||
font-size: 18px;
|
||||
font-weight: 300;
|
||||
margin-bottom: 10px;
|
||||
border: 1px solid var(--tone);
|
||||
display: inline-block;
|
||||
padding: 5px 20px;
|
||||
|
||||
b {
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
@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.5em;
|
||||
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.8em;
|
||||
|
||||
@media screen and (max-width: $break-small) {
|
||||
margin: 30px 0 15px;
|
||||
font-size: 1.7em;
|
||||
}
|
||||
}
|
||||
|
||||
h2 {
|
||||
margin: 35px 0 15px;
|
||||
font-weight: bold;
|
||||
font-size: 2em;
|
||||
|
||||
@media screen and (max-width: $break-small) {
|
||||
margin: 20px 0 15px;
|
||||
font-weight: bold;
|
||||
font-size: 1.5em;
|
||||
}
|
||||
}
|
||||
|
||||
h3 {
|
||||
margin: 25px 0 15px;
|
||||
font-weight: bold;
|
||||
font-size: 1.3em;
|
||||
|
||||
@media screen and (max-width: $break-small) {
|
||||
margin: 15px 0 15px;
|
||||
font-weight: bold;
|
||||
font-size: 1.4em;
|
||||
}
|
||||
}
|
||||
|
||||
h4 {
|
||||
margin: 25px 0 15px;
|
||||
font-weight: bold;
|
||||
|
||||
@media screen and (max-width: $break-small) {
|
||||
margin: 15px 0 15px;
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
.article-list__item {
|
||||
margin: 0 0 4em;
|
||||
|
||||
img {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
blockquote {
|
||||
border-left: 5px solid var(--accent);
|
||||
padding-left: 20px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
pre .caption {
|
||||
padding: 10px 0;
|
||||
font-size: 0.8rem;
|
||||
font-style: italic;
|
||||
opacity: 0.7;
|
||||
|
||||
span {
|
||||
white-space: break-spaces;
|
||||
.article-list__item__title {
|
||||
margin: 0 0 2px;
|
||||
font-size: 2.5rem;
|
||||
font-family: "Montserrat", "Noto Sans JP", sans-serif;
|
||||
text-rendering: geometricprecision;
|
||||
font-feature-settings: "kern", "palt";
|
||||
@media screen and (max-width: $break-small) {
|
||||
font-size: 2rem;
|
||||
}
|
||||
}
|
||||
|
||||
.article-list__item__pubdate {
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.article-list__item__excerpt {
|
||||
margin: 0.8em 0 0.3em;
|
||||
color: var(--tone);
|
||||
font-size: 1.1rem;
|
||||
line-height: 1.6em;
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
a.article-list__item__button {
|
||||
display: inline-block;
|
||||
margin: 10px 0;
|
||||
padding: 0.8em 1.5em;
|
||||
color: var(--tone);
|
||||
font-size: 14px;
|
||||
text-transform: uppercase;
|
||||
border: 1px solid var(--tone);
|
||||
border-radius: 3px;
|
||||
|
||||
&:hover {
|
||||
background-color: var(--tone);
|
||||
color: var(--background);
|
||||
}
|
||||
|
||||
@media screen and (max-width: $break-small) {
|
||||
display: block;
|
||||
padding: 15px;
|
||||
text-align: center;
|
||||
|
||||
&:hover {
|
||||
background-color: var(--background);
|
||||
color: var(--tone);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Highlight.js
|
||||
.hljs {
|
||||
border-radius: 6px;
|
||||
font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
||||
font-size: 0.8rem;
|
||||
background: #0c031c !important;
|
||||
padding: 12px 18px !important;
|
||||
line-height: 1.6em !important;
|
||||
margin: 0;
|
||||
@media screen and (max-width: $break-small) {
|
||||
font-size: 0.7rem;
|
||||
}
|
||||
}
|
||||
code {
|
||||
padding: 3px 10px;
|
||||
background: var(--highlight);
|
||||
font-size: 0.8em;
|
||||
border-radius: 3px;
|
||||
}
|
||||
pre .caption {
|
||||
padding: 10px 0;
|
||||
font-family: monospace;
|
||||
font-size: 0.8rem;
|
||||
opacity: 0.7;
|
||||
|
||||
span {
|
||||
white-space: break-spaces;
|
||||
}
|
||||
}
|
||||
|
||||
// Pay
|
||||
|
@@ -1,4 +1,4 @@
|
||||
@import url("https://fonts.googleapis.com/css?family=PT+Sans:400,700");
|
||||
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Noto+Sans+JP:wght@700&family=Lora&display=swap");
|
||||
|
||||
$break-small: 500px;
|
||||
$break-large: 840px;
|
||||
@@ -10,16 +10,18 @@ $break-large: 840px;
|
||||
--highlight: #f6f6f6;
|
||||
--tone: #989898;
|
||||
--dim: rgb(203, 203, 203);
|
||||
--link-text: #4f33e8;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root {
|
||||
--background: #261e3a;
|
||||
--text: #e2dfea;
|
||||
--background: #231a37;
|
||||
--text: #d9d5e1;
|
||||
--accent: #7033e8;
|
||||
--highlight: #140d25;
|
||||
--tone: #989898;
|
||||
--dim: rgb(90, 83, 101);
|
||||
--link-text: #af93ff;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -28,14 +30,17 @@ body {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
html {
|
||||
font-size: 100%;
|
||||
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
|
||||
Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
|
||||
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";
|
||||
background: var(--background);
|
||||
color: var(--text);
|
||||
|
||||
@@ -45,28 +50,10 @@ body {
|
||||
}
|
||||
}
|
||||
|
||||
// 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;
|
||||
@media screen and (max-width: $break-small) {
|
||||
font-size: 0.8em;
|
||||
}
|
||||
}
|
||||
code {
|
||||
padding: 0 12px;
|
||||
}
|
||||
p code {
|
||||
padding: 3px 10px;
|
||||
background: var(--highlight);
|
||||
border-radius: 3px;
|
||||
font-size: 16px;
|
||||
a {
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
a:hover,
|
||||
a:active,
|
||||
a:link,
|
||||
@@ -74,6 +61,7 @@ a:visited {
|
||||
color: var(--text);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
@@ -83,6 +71,7 @@ p {
|
||||
padding: 0;
|
||||
line-height: 1.333em;
|
||||
}
|
||||
|
||||
hr {
|
||||
display: block;
|
||||
width: 100%;
|
||||
@@ -92,19 +81,18 @@ hr {
|
||||
margin: 40px 0;
|
||||
}
|
||||
|
||||
// Header
|
||||
header.header {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
margin-top: 60px;
|
||||
margin-bottom: 80px;
|
||||
margin: 70px 0 70px;
|
||||
flex-direction: row;
|
||||
justify-content: flex-start;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
|
||||
@media screen and (max-width: $break-small) {
|
||||
margin-top: 30px;
|
||||
margin-bottom: 60px;
|
||||
// justify-content: center;
|
||||
}
|
||||
|
||||
.logo {
|
||||
@@ -124,18 +112,18 @@ header.header {
|
||||
text-transform: lowercase;
|
||||
font-weight: bold;
|
||||
border-left: 1px solid var(--tone);
|
||||
// font-family: Rockwell;
|
||||
|
||||
padding: 0;
|
||||
margin: 0 0 0 30px;
|
||||
padding: 0 0 0 30px;
|
||||
|
||||
.menu__item {
|
||||
margin: 5px 0;
|
||||
margin: 2px 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Pagination
|
||||
.page-nav {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
|
Reference in New Issue
Block a user