diff --git a/public/style.css b/public/style.css index 233ef547..ea0db8d8 100644 --- a/public/style.css +++ b/public/style.css @@ -7231,6 +7231,7 @@ body { font-family: "Inter", sans-serif; min-height: 100vh; box-sizing: border-box; + line-height: 1.2; } a, .link { @@ -7274,7 +7275,7 @@ hr { border: none; border-bottom: 1px solid var(--border-color); } -.m--center { +.m-center { margin-left: auto; margin-right: auto; } @@ -7625,7 +7626,6 @@ hr { align-items: center; border-style: dashed; border-width: 0 0 1px; - border-color: var(--bg-3); } @media screen and (min-width: 35em) { .optionbar { @@ -7693,7 +7693,7 @@ hr { transition: all 100ms ease-in-out; } .carousel-container .carousel-button:hover { - background-color: var(--bg-3); + background-color: var(--c3); } .carousel-container .carousel-button.active { border-color: var(--theme-color); @@ -7778,7 +7778,7 @@ hr { border: 1px solid var(--border-color); } .post-content code { - background-color: var(--bg-3); + background-color: var(--c1); padding: .2em 0; white-space: nowrap; } @@ -7790,12 +7790,11 @@ hr { } .post-content pre > code, .post-content pre.hmn-code { - background-color: var(--bg-3); + background-color: var(--c1); padding: 0.7em; overflow-x: auto; } .post-content blockquote { - border-color: var(--bg-3); margin-left: var(--spacing-2); padding-left: var(--spacing-2); margin-right: 0; @@ -7938,7 +7937,6 @@ hr { height: var(--height); border-width: 0 0 1px 1px; border-style: solid; - border-color: var(--bg-3); left: -1.5rem; top: calc(1rem - var(--height)); border-bottom-left-radius: 0.5rem; @@ -8694,7 +8692,7 @@ code .ss, .avatar { object-fit: cover; overflow: hidden; - background-color: var(--bg-3); + background-color: var(--c4); flex-shrink: 0; border: none; width: var(--avatar-size-normal); diff --git a/src/hmnurl/hmnurl_test.go b/src/hmnurl/hmnurl_test.go index dc3fd4a0..f9f6e82f 100644 --- a/src/hmnurl/hmnurl_test.go +++ b/src/hmnurl/hmnurl_test.go @@ -324,10 +324,6 @@ func TestAssetUpload(t *testing.T) { AssertSubdomain(t, hero.BuildAssetUpload(), "hero") } -func TestProjectCSS(t *testing.T) { - AssertRegexMatch(t, BuildProjectCSS("000000"), RegexProjectCSS, nil) -} - func TestMarkdownWorkerJS(t *testing.T) { AssertRegexMatch(t, BuildMarkdownWorkerJS(), RegexMarkdownWorkerJS, nil) } diff --git a/src/hmnurl/urls.go b/src/hmnurl/urls.go index 67492ea1..880da51e 100644 --- a/src/hmnurl/urls.go +++ b/src/hmnurl/urls.go @@ -963,13 +963,6 @@ func (c *UrlContext) BuildAssetUpload() string { * Assets */ -var RegexProjectCSS = regexp.MustCompile("^/assets/project.css$") - -func BuildProjectCSS(color string) string { - defer CatchPanic() - return Url("/assets/project.css", []Q{{"color", color}}) -} - var RegexMarkdownWorkerJS = regexp.MustCompile("^/assets/markdown_worker.js$") func BuildMarkdownWorkerJS() string { diff --git a/src/rawdata/scss/carousel.css b/src/rawdata/scss/carousel.css index 24410fa9..f5fed0cf 100644 --- a/src/rawdata/scss/carousel.css +++ b/src/rawdata/scss/carousel.css @@ -20,7 +20,7 @@ transition: all 100ms ease-in-out; &:hover { - background-color: var(--bg-3); + background-color: var(--c3); } &.active { diff --git a/src/rawdata/scss/content.css b/src/rawdata/scss/content.css index c72b6cb7..78f8b9ab 100644 --- a/src/rawdata/scss/content.css +++ b/src/rawdata/scss/content.css @@ -91,7 +91,7 @@ } code { - background-color: var(--bg-3); + background-color: var(--c1); padding: .2em 0; white-space: nowrap; @@ -106,14 +106,13 @@ pre>code, pre.hmn-code { - background-color: var(--bg-3); + background-color: var(--c1); padding: 0.7em; overflow-x: auto; } blockquote { - border-color: var(--bg-3); margin-left: var(--spacing-2); padding-left: var(--spacing-2); margin-right: 0; diff --git a/src/rawdata/scss/core.css b/src/rawdata/scss/core.css index 2fbd5777..913a905d 100644 --- a/src/rawdata/scss/core.css +++ b/src/rawdata/scss/core.css @@ -10,6 +10,7 @@ body { font-family: "Inter", sans-serif; min-height: 100vh; box-sizing: border-box; + line-height: 1.2; } a, @@ -65,7 +66,7 @@ hr { /* Utility */ -.m--center { +.m-center { margin-left: auto; margin-right: auto; } @@ -529,7 +530,6 @@ on our SVGs to ensure that they naturally render at the right size.) align-items: center; border-style: dashed; border-width: 0 0 1px; - border-color: var(--bg-3); @media screen and (min-width: 35em) { flex-direction: row; diff --git a/src/rawdata/scss/education.css b/src/rawdata/scss/education.css index b107f887..a3a7e65b 100644 --- a/src/rawdata/scss/education.css +++ b/src/rawdata/scss/education.css @@ -18,7 +18,6 @@ height: var(--height); border-width: 0 0 1px 1px; border-style: solid; - border-color: var(--bg-3); left: -1.5rem; top: calc(1rem - var(--height)); border-bottom-left-radius: 0.5rem; diff --git a/src/rawdata/scss/timeline.css b/src/rawdata/scss/timeline.css index 3527842e..930c5788 100644 --- a/src/rawdata/scss/timeline.css +++ b/src/rawdata/scss/timeline.css @@ -1,7 +1,7 @@ .avatar { object-fit: cover; overflow: hidden; - background-color: var(--bg-3); + background-color: var(--c4); flex-shrink: 0; border: none; diff --git a/src/templates/src/auth_login.html b/src/templates/src/auth_login.html index bf075bf0..0684e400 100644 --- a/src/templates/src/auth_login.html +++ b/src/templates/src/auth_login.html @@ -1,40 +1,46 @@ {{ template "base-2024.html" . }} {{ define "content" }} -