Compare commits

...

6 Commits

Author SHA1 Message Date
BBaoVanC 3fae019148
Finish support for list page subtitle
Fixes #27 (as long as I didn't miss anything)
2023-01-22 16:43:09 -06:00
BBaoVanC 8ef1e3840a
Change color when hovering over share buttons 2023-01-22 16:31:08 -06:00
BBaoVanC 629b3758b9
Change print button to an <a> to match the rest of the buttons
Also makes it have pointer cursor
2023-01-22 16:28:24 -06:00
BBaoVanC 9412906b4f
Make the left bar of blockquote lined up with rest of text 2023-01-22 16:26:43 -06:00
BBaoVanC f8cfad647f
Fix contrast of code block Copy button 2023-01-22 16:23:03 -06:00
BBaoVanC b200623dca
Fix keyboard accessibility of code block copy button 2023-01-22 16:22:51 -06:00
6 changed files with 24 additions and 7 deletions

View File

@ -46,6 +46,7 @@
--text-gray-1: #919191; /* lch(60, 0, X) */
--link-0: #3a94fb; /* lch(60, 60, 270) */
--link-1: #4ea1ff; /* lch(65, 60, 270) -- out of sRGB */
--figure-border: #1f5593; /* lch(35, 40, 270) */
@ -423,16 +424,15 @@
justify-content: center;
}
.share-buttons button,
.share-buttons a {
background-color: var(--background-2);
color: var(--text-2);
padding: 4px;
border-radius: 8px;
}
.share-buttons button {
border: none;
.share-buttons a:hover {
background-color: var(--background-3);
color: var(--text-3);
}
.share-buttons svg {
@ -631,6 +631,7 @@ a:hover {
blockquote {
border-left: 5px solid var(--background-2);
padding-left: 15px;
margin-left: 0;
}
hr {
@ -705,6 +706,9 @@ table.markdown {
margin: auto 0;
}
/* TODO: make the code copy button prettier */
.code-block > .code-header > .code-copy-button {
color: var(--link-1);
}
.code-block > .code-header > .code-copy-button:hover {
cursor: pointer;
}

View File

@ -5,7 +5,7 @@
<div class="code-block">
<div class="code-header">
<span class="code-type">{{ $type }}</span>
<a class="code-copy-button">
<a href="javascript:void(0)" class="code-copy-button">
{{ i18n "copy_to_clipboard" }}
</a>
</div>

View File

@ -5,6 +5,10 @@
{{ partial "rss-link.html" . }}
</h1>
{{ with .Content }}
{{ . }}
{{ end }}
<div class="list-page-content">
{{ with .Sections }}
<div class="sections">

View File

@ -4,6 +4,10 @@
{{ .Title | markdownify }}
</h1>
{{ with .Content }}
{{ . }}
{{ end }}
<div class="page-list">
{{ with .Paginator.Pages }}
{{ range . }}

View File

@ -54,9 +54,10 @@
*/}}
{{ if .Site.Params.shareButtons.print }}
<button class="print-share"
<a class="print-share"
href="javascript:void(0)"
onclick="window.print(); share_event('Print');">
{{- partial "icon.html" "printer" -}}
</button>
</a>
{{ end }}
</div>

View File

@ -4,6 +4,10 @@
{{ .Title | markdownify }}
</h1>
{{ with .Content }}
{{ . }}
{{ end }}
<div class="series-taxonomy-list">
{{ with .Pages }}
{{ range . }}