This commit is contained in:
Morgan 2023-12-01 23:08:41 +09:00
parent ea2ef08d08
commit cd0a225068
42 changed files with 31 additions and 58 deletions

View File

@ -74,7 +74,8 @@ pre:hover .copy-code {
.simpletitle { .simpletitle {
padding: var(--gap); padding: var(--gap);
font-size: 24px; font-size: 28px;
margin: 32px 4px 32px 4px; font-weight: bold;
margin: 32px 4px 36px 4px;
text-align: center; text-align: center;
} }

View File

@ -57,7 +57,7 @@
.post-entry { .post-entry {
position: relative; position: relative;
/** margin-bottom: var(--gap); **/ /** margin-bottom: var(--gap); **/
padding: var(--gap); padding: calc(var(--gap)*2);
/** background: var(--entry); /** background: var(--entry);
border: 1px solid var(--border); **/ border: 1px solid var(--border); **/
border-radius: var(--radius); border-radius: var(--radius);
@ -65,7 +65,7 @@
} }
.post-entry:hover { .post-entry:hover {
transform: scale(1.01); transform: scale(1.02);
} }
.tag-entry .entry-cover { .tag-entry .entry-cover {
@ -74,24 +74,25 @@
.entry-header h2 { .entry-header h2 {
font-weight: 450; font-weight: 450;
font-size: 20px; font-size: 21px;
line-height: 1.3; line-height: 1.5;
} }
.entry-content { .entry-content {
margin: 8px 0;
color: var(--secondary); color: var(--secondary);
font-size: 14px; font-size: 16px;
line-height: 1.6; line-height: 1.6;
overflow: hidden; overflow: hidden;
display: -webkit-box; display: -webkit-box;
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
-webkit-line-clamp: 2; -webkit-line-clamp: 1;
/* display: none;*/
} }
.entry-footer { .entry-footer {
color: var(--secondary); margin: 4px 0;
font-size: 13px; color: var(--primary);
font-size: 15px;
} }
.entry-link { .entry-link {

View File

@ -41,12 +41,10 @@
.post-content { .post-content {
padding-top: var(--gap); padding-top: var(--gap);
font-size: 15.5px; font-size: 15.5px;
font-weight: 200;
font-family: inherit; font-family: inherit;
color: var(--content); color: var(--content);
/* letter-spacing: -0.1px; */
line-height: 2; line-height: 2;
font-family: "Monaspace Neon", sans-serif; font-family: "Monaspace Neon", "Pretendard", sans-serif;
} }
.post-content h3, .post-content h3,

View File

@ -1,76 +1,49 @@
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.8/dist/web/static/pretendard.css"); @import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.8/dist/web/static/pretendard.css");
@import url("https://fonts.googleapis.com/css2?family=Gowun+Batang&family=Gowun+Dodum");
@font-face { @font-face {
font-family: "Line Sans"; font-family: "Source Sans 3";
src: url("/LINESeedKR-Rg.woff2"); src: url("/fonts/SourceSans3-Regular.woff2");
}
@font-face {
font-family: "Line Sans";
src: url("/LINESeedKR-Rg.woff2");
font-weight: 200;
}
@font-face {
font-family: "Line Sans";
src: url("/LINESeedKR-Bd.woff2");
font-weight: bold;
}
@font-face {
font-family: "Line Sans";
src: url("/LINESeedKR-Th.woff2");
font-weight: 300;
} }
@font-face { @font-face {
font-family: "Source Sans 3"; font-family: "Source Sans 3";
src: url("/SourceSans3-Regular.woff2"); src: url("/fonts/SourceSans3-It.woff2");
}
@font-face {
font-family: "Source Sans 3";
src: url("/SourceSans3-It.woff2");
font-style: italic; font-style: italic;
} }
@font-face { @font-face {
font-family: "Source Sans 3"; font-family: "Source Sans 3";
src: url("/SourceSans3-Bold.woff2"); src: url("/fonts/SourceSans3-Bold.woff2");
font-weight: bold; font-weight: bold;
} }
@font-face { @font-face {
font-family: "Source Sans 3"; font-family: "Source Sans 3";
src: url("/SourceSans3-Light.woff2"); src: url("/fonts/SourceSans3-Light.woff2");
font-weight: 300; font-weight: 300;
} }
@font-face { @font-face {
font-family: "Jetbrains Mono"; font-family: "Jetbrains Mono";
src: url("/JetBrainsMono-Regular.woff2"); src: url("/fonts/JetBrainsMono-Regular.woff2");
} }
@font-face { @font-face {
font-family: "Jetbrains Mono"; font-family: "Jetbrains Mono";
src: url("/JetBrainsMono-Italic.woff2"); src: url("/fonts/JetBrainsMono-Italic.woff2");
font-style: italic; font-style: italic;
} }
@font-face { @font-face {
font-family: "Monaspace Argon"; font-family: "Monaspace Argon";
src: url("/Monaspace-Argon.woff2"); src: url("/fonts/Monaspace-Argon.woff2");
font-weight: 250;
} }
@font-face { @font-face {
font-family: "Monaspace Neon"; font-family: "Monaspace Neon";
src: url("/Monaspace-Neon.woff2"); src: url("/fonts/Monaspace-Neon.woff2");
} font-weight: 250;
@font-face {
font-family: "Monaspace Xenon";
src: url("/Monaspace-Xenon.woff2");
} }
*, *,

View File

@ -18,7 +18,7 @@
} }
.dark { .dark {
--theme: #202032; --theme: #163c4f;
--entry: rgb(46, 46, 51); --entry: rgb(46, 46, 51);
--primary: rgb(218, 218, 219); --primary: rgb(218, 218, 219);
--secondary: rgb(155, 156, 157); --secondary: rgb(155, 156, 157);

View File

@ -71,16 +71,16 @@
{{- if .Draft }}<sup><span class="entry-isdraft">&nbsp;&nbsp;[draft]</span></sup>{{- end }} {{- if .Draft }}<sup><span class="entry-isdraft">&nbsp;&nbsp;[draft]</span></sup>{{- end }}
</h2> </h2>
</header> </header>
{{- if (ne (.Param "hideSummary") true) }}
<div class="entry-content">
<p>{{ .Summary | plainify | htmlUnescape }}{{ if .Truncated }}...{{ end }}</p>
</div>
{{- end }}
{{- if not (.Param "hideMeta") }} {{- if not (.Param "hideMeta") }}
<footer class="entry-footer"> <footer class="entry-footer">
{{- partial "post_meta.html" . -}} {{- partial "post_meta.html" . -}}
</footer> </footer>
{{- end }} {{- end }}
{{- if (ne (.Param "hideSummary") true) }}
<div class="entry-content">
<p>{{ .Summary | plainify | htmlUnescape }}{{ if .Truncated }}...{{ end }}</p>
</div>
{{- end }}
<a class="entry-link" aria-label="post link to {{ .Title | plainify }}" href="{{ .Permalink }}"></a> <a class="entry-link" aria-label="post link to {{ .Title | plainify }}" href="{{ .Permalink }}"></a>
</article> </article>
{{- end }} {{- end }}