Compare commits

...

5 Commits

Author SHA1 Message Date
Helen Chong 5f00c4f266 Remove paddings from content accordion control 2024-08-04 20:34:00 +08:00
Helen Chong 4346a1b338 Remove redundant pointer cursor CSS property from table of contents 2024-08-04 20:24:54 +08:00
Helen Chong d8bc0eb035 Change CSS style of content accordion 2024-08-04 20:22:06 +08:00
Helen Chong 653284703b Add Eleventy content category 2024-08-04 19:48:02 +08:00
Helen Chong 6bb5f682f3 Add jpeg files to Cache-Control settting 2024-08-04 17:58:06 +08:00
4 changed files with 10 additions and 5 deletions

View File

@ -4,7 +4,7 @@ eleventyExcludeFromCollections: true
--- ---
ErrorDocument 404 /404.html ErrorDocument 404 /404.html
<FilesMatch "\.(ico|svg|avif|webp|jpg|png|gif|woff2)$"> <FilesMatch "\.(ico|svg|avif|webp|jpg|jpeg|png|gif|woff2)$">
Header set Cache-Control "max-age=31536000, public" Header set Cache-Control "max-age=31536000, public"
</FilesMatch> </FilesMatch>
<FilesMatch "\.(css|js)$"> <FilesMatch "\.(css|js)$">

View File

@ -21,7 +21,6 @@
font-size: 1.3rem; font-size: 1.3rem;
font-weight: 700; font-weight: 700;
color: var(--clr-sub-heading); color: var(--clr-sub-heading);
cursor: pointer;
} }
.toc ol, .toc ol,

View File

@ -107,11 +107,17 @@ a.link-btn[href^="http"]:not([href*="leilukin.com"]) { padding-right: calc(var(-
/* Content Accordion */ /* Content Accordion */
* + .content-accordion { margin-top: var(--sz-paragraph-margin); } * + .content-accordion { margin-top: var(--sz-paragraph-margin); }
.content-accordion { padding: 0.5em 0; }
.content-accordion__summary { font-weight: 700; } .content-accordion__summary { font-weight: 700; }
.content-accordion__content { padding: 0.5em 1em; } .content-accordion__content,
.content-accordion__content p + p { margin-top: 1em; } .content-accordion__content p + p { margin-top: 1em; }
.content-accordion__content {
--bdr-accordion: 0.15em solid var(--clr-title-border);
padding: 1em 0;
border-top: var(--bdr-accordion);
border-bottom: var(--bdr-accordion);
}
/* Content warning accordion */ /* Content warning accordion */
* + .contnet-warning { margin-top: var(--sz-paragraph-margin); } * + .contnet-warning { margin-top: var(--sz-paragraph-margin); }

View File

@ -2,7 +2,7 @@
articleTitle: April 2024 Leilukin's Hub Overhaul with Eleventy articleTitle: April 2024 Leilukin's Hub Overhaul with Eleventy
desc: I rebuilt my website with the static site generator Eleventy in April 2024. desc: I rebuilt my website with the static site generator Eleventy in April 2024.
date: 2024-04-21 date: 2024-04-21
categories: ["site updates"] categories: ["site updates", "eleventy"]
toc: true toc: true
--- ---