Skip to content

Commit bbf86b3

Browse files
committed
common issue which botherme for long time
1 parent 325f0b2 commit bbf86b3

10 files changed

Lines changed: 10 additions & 10 deletions

File tree

assets/css/tailwind-input.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
body.home-page {
1212
-webkit-font-smoothing: antialiased;
1313
-moz-osx-font-smoothing: grayscale;
14-
background-color: #f4f6fa !important;
15-
color: #1e293b !important;
14+
background-color: #0f172a !important;
15+
color: #e2e8f0 !important;
1616
}
1717

1818
[data-theme="light"] body.home-page {

assets/css/theme-tokens.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
* Loaded on every page alongside Tailwind + theme override sheets.
44
*/
55

6-
/* Light (default) */
7-
:root,
6+
/* Light */
87
[data-theme="light"] {
98
color-scheme: light;
109
--bg-primary: #f4f6fa;
@@ -64,7 +63,8 @@
6463
--text-on-accent: #ffffff;
6564
}
6665

67-
/* Dark */
66+
/* Dark (default) */
67+
:root,
6868
[data-theme="dark"] {
6969
color-scheme: dark;
7070
--bg-primary: #0f172a;
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

layouts/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!DOCTYPE html>
2-
<html lang="{{ .Site.Language.Lang | default "en" }}">
2+
<html lang="{{ .Site.Language.Lang | default "en" }}" data-theme="dark">
33
<head>
44
{{ partial "header.html" . }}
55
{{ partial "home/head.html" . }}
@@ -28,9 +28,9 @@
2828
{{- end -}}
2929
{{ partial "home/testimonials.html" . }}
3030
{{ partial "home/cta-coffee.html" . }}
31-
{{ partial "home/marquee.html" . }}
3231
{{ partial "home/why.html" . }}
3332
{{ partial "home/faq.html" . }}
33+
{{ partial "home/marquee.html" . }}
3434
</main>
3535

3636
{{ partial "home/footer.html" . }}

layouts/partials/home/category-section.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{{- $cat := .category -}}
22
{{- $slug := $cat.slug | default ($cat.name | anchorize) -}}
33
{{- $subtitle := $cat.subtitle | default $cat.name -}}
4-
{{- $seeAll := $cat.seeAllUrl | default (printf "/#%s" $slug) -}}
4+
{{- $seeAll := $cat.seeAllUrl | default (printf "/browse/%s/" $slug) | relLangURL -}}
55
{{- $previewCount := $cat.previewCount | default 12 -}}
66
{{- $defaultIcon := $cat.phosphorIcon | default "app-window" -}}
77
{{- $visible := where $cat.items "hidden" "!=" true -}}

layouts/partials/home/modern-page-start.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
{{- with $navActive -}}{{- $page.Scratch.Set "navActive" . -}}{{- end -}}
88

99
<!DOCTYPE html>
10-
<html lang="{{ $page.Site.Language.Lang | default "en" }}">
10+
<html lang="{{ $page.Site.Language.Lang | default "en" }}" data-theme="dark">
1111
<head>
1212
{{ partial "header.html" $page }}
1313
{{ partial "home/head.html" $page }}

static/css/accessibility.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
/* Focus ring tokens (complement theme-tokens.css) */
2-
:root,
32
[data-theme="light"] body.home-page {
43
--link-color: #2563eb;
54
--focus-ring: #2563eb;
@@ -10,6 +9,7 @@
109
--focus-ring: #0284c7;
1110
}
1211

12+
:root body.home-page,
1313
[data-theme="dark"] body.home-page {
1414
--link-color: #38bdf8;
1515
--focus-ring: #38bdf8;

0 commit comments

Comments
 (0)