6 Commits

Author SHA1 Message Date
renovate[bot]
aec6f7dab3 Update dependency postcss-nesting to v12.1.1 2024-04-08 04:41:44 +00:00
Dave Gallant
c2fe588fe8 Adjust theme 2024-04-07 22:30:13 -04:00
Dave Gallant
3bf6014537 Condense post list 2024-04-07 22:25:50 -04:00
Dave Gallant
8d898eb69a Tweak theme 2024-04-07 21:55:42 -04:00
Dave Gallant
2475d2d67e Update theme in gitea post 2024-04-07 18:54:55 -04:00
Dave Gallant
9367f85f5f Tweak contrast of theme a bit 2024-04-07 18:52:07 -04:00
120 changed files with 101 additions and 49 deletions

View File

@@ -72,7 +72,7 @@ markup:
module: module:
imports: imports:
- path: hugo-theme-gruvbox - path: custom-theme
mounts: mounts:
- source: node_modules/simple-icons/icons - source: node_modules/simple-icons/icons
target: assets/simple-icons target: assets/simple-icons

View File

@@ -104,9 +104,9 @@ Something to consider is whether or not you want to use ssh with git. One method
## Theming ## Theming
I discovered some themes for gitea [here](https://git.sainnhe.dev/sainnhe/gitea-themes) and decided to try out gruvbox. I discovered some themes for gitea [here](https://git.sainnhe.dev/sainnhe/gitea-themes).
I added the theme by cloning [theme-gruvbox-auto.css](https://git.sainnhe.dev/sainnhe/gitea-themes/raw/branch/master/dist/theme-gruvbox-auto.css) into `./data/gitea/public/assets/css`. I then added the following to `environment` in `docker-compose.yml`: I added the theme by copying [theme-palenight.css](https://git.sainnhe.dev/sainnhe/gitea-themes/raw/branch/master/dist/theme-palenight.css) into `./data/gitea/public/assets/css`. I then added the following to `environment` in `docker-compose.yml`:
```yaml ```yaml
- GITEA__ui__DEFAULT_THEME=palenight - GITEA__ui__DEFAULT_THEME=palenight

37
package-lock.json generated
View File

@@ -1101,10 +1101,32 @@
"postcss": "^8.4" "postcss": "^8.4"
} }
}, },
"node_modules/@csstools/selector-resolve-nested": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/@csstools/selector-resolve-nested/-/selector-resolve-nested-1.1.0.tgz",
"integrity": "sha512-uWvSaeRcHyeNenKg8tp17EVDRkpflmdyvbE0DHo6D/GdBb6PDnCYYU6gRpXhtICMGMcahQmj2zGxwFM/WC8hCg==",
"dev": true,
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/csstools"
},
{
"type": "opencollective",
"url": "https://opencollective.com/csstools"
}
],
"engines": {
"node": "^14 || ^16 || >=18"
},
"peerDependencies": {
"postcss-selector-parser": "^6.0.13"
}
},
"node_modules/@csstools/selector-specificity": { "node_modules/@csstools/selector-specificity": {
"version": "3.0.1", "version": "3.0.3",
"resolved": "https://registry.npmjs.org/@csstools/selector-specificity/-/selector-specificity-3.0.1.tgz", "resolved": "https://registry.npmjs.org/@csstools/selector-specificity/-/selector-specificity-3.0.3.tgz",
"integrity": "sha512-NPljRHkq4a14YzZ3YD406uaxh7s0g6eAq3L9aLOWywoqe8PkYamAvtsh7KNX6c++ihDrJ0RiU+/z7rGnhlZ5ww==", "integrity": "sha512-KEPNw4+WW5AVEIyzC80rTbWEUatTW2lXpN8+8ILC8PiPeWPjwUzrPZDIOZ2wwqDmeqOYTdSGyL3+vE5GC3FB3Q==",
"dev": true, "dev": true,
"funding": [ "funding": [
{ {
@@ -4816,9 +4838,9 @@
} }
}, },
"node_modules/postcss-nesting": { "node_modules/postcss-nesting": {
"version": "12.0.2", "version": "12.1.1",
"resolved": "https://registry.npmjs.org/postcss-nesting/-/postcss-nesting-12.0.2.tgz", "resolved": "https://registry.npmjs.org/postcss-nesting/-/postcss-nesting-12.1.1.tgz",
"integrity": "sha512-63PpJHSeNs93S3ZUIyi+7kKx4JqOIEJ6QYtG3x+0qA4J03+4n0iwsyA1GAHyWxsHYljQS4/4ZK1o2sMi70b5wQ==", "integrity": "sha512-qc74KvIAQNa5ujZKG1UV286dhaDW6basbUy2i9AzNU/T8C9hpvGu9NZzm1SfePe2yP7sPYgpA8d4sPVopn2Hhw==",
"dev": true, "dev": true,
"funding": [ "funding": [
{ {
@@ -4831,7 +4853,8 @@
} }
], ],
"dependencies": { "dependencies": {
"@csstools/selector-specificity": "^3.0.1", "@csstools/selector-resolve-nested": "^1.1.0",
"@csstools/selector-specificity": "^3.0.3",
"postcss-selector-parser": "^6.0.13" "postcss-selector-parser": "^6.0.13"
}, },
"engines": { "engines": {

View File

@@ -1,4 +0,0 @@
{
"name": "davegallant.github.io",
"version": "0.1.0"
}

View File

@@ -16,10 +16,10 @@
--bg3: #665c54; --bg3: #665c54;
--bg4: #32344a; --bg4: #32344a;
--fg: var(--fg1); --fg: var(--fg1);
--fg0: #ad8ee6; --fg0: #a1a1a1;
--fg1: #dddfeb; --fg1: #dddfeb;
--fg2: #7da6ff; --fg2: #7da6ff;
--fg3: #9ece6a; --fg3: #6a6c67;
--fg4: #32344a; --fg4: #32344a;
--gray1: var(--fg4); --gray1: var(--fg4);
--gray2: #444b6a; --gray2: #444b6a;
@@ -29,8 +29,8 @@
--green2: #b9f27c; --green2: #b9f27c;
--yellow1: #e0af68; --yellow1: #e0af68;
--yellow2: #ff9e64; --yellow2: #ff9e64;
--blue1: #7da6ff; --blue1: #63A8D3;
--blue2: #7aa2f7; --blue2: #63A8D3;
--purple1: #ad8ee6; --purple1: #ad8ee6;
--purple2: #bb9af7; --purple2: #bb9af7;
--aqua1: #449dab; --aqua1: #449dab;
@@ -44,7 +44,6 @@
} }
:root { :root {
{{ $themeColor := .Param "themeColor" | default "blue" }} --primary: var(--blue1);
--primary: var(--{{ $themeColor }}1); --primary-alt: var(--blue2);
--primary-alt: var(--{{ $themeColor }}2);
} }

View File

@@ -65,7 +65,7 @@ header {
} }
&::placeholder { &::placeholder {
color: var(--fg3); color: var(--fg1);
} }
&[type="search"]::-webkit-search-cancel-button { &[type="search"]::-webkit-search-cancel-button {

View File

@@ -1,7 +1,7 @@
.post, .post,
.content-section { .content-section {
border-bottom: 2px dotted var(--bg1); border-bottom: 2px dotted var(--bg1);
padding: 2rem 0; padding: 0rem 0;
} }
.post { .post {

View File

Before

Width:  |  Height:  |  Size: 7.8 KiB

After

Width:  |  Height:  |  Size: 7.8 KiB

View File

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

Before

Width:  |  Height:  |  Size: 861 KiB

After

Width:  |  Height:  |  Size: 861 KiB

View File

Before

Width:  |  Height:  |  Size: 362 KiB

After

Width:  |  Height:  |  Size: 362 KiB

View File

@@ -3,8 +3,8 @@
{{ $critical := sort (resources.Match "css/critical/*.css") "Name" | resources.Concat nil | resources.ExecuteAsTemplate nil . | resources.PostCSS }} {{ $critical := sort (resources.Match "css/critical/*.css") "Name" | resources.Concat nil | resources.ExecuteAsTemplate nil . | resources.PostCSS }}
{{ $nonCritical := sort (resources.Match "css/non-critical/*.css") "Name" | resources.Concat "css/non-critical.css" | resources.ExecuteAsTemplate "css/non-critical.css" . | resources.PostCSS }} {{ $nonCritical := sort (resources.Match "css/non-critical/*.css") "Name" | resources.Concat "css/non-critical.css" | resources.ExecuteAsTemplate "css/non-critical.css" . | resources.PostCSS }}
{{ $prismDark := resources.Get "prism-themes/prism-synthwave84.css" }} {{ $prismDark := resources.Get "prism-themes/prism-coldark-dark.css" }}
{{ $prismLight := resources.Get "prism-themes/prism-synthwave84.css" }} {{ $prismLight := resources.Get "prism-themes/prism-coldark-dark.css" }}
{{ if hugo.IsProduction }} {{ if hugo.IsProduction }}
{{ $critical = $critical | resources.PostProcess }} {{ $critical = $critical | resources.PostProcess }}

View File

@@ -0,0 +1,13 @@
{{ range $pageIndex, $page := .Pages }}
<article class="post">
<div class="post-header">
<div class="post-meta">
{{- with $page.Date -}}
<span>{{ .Format "2006-01-02" }}</span>
{{- end -}}: <a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a>
</div>
</div>
</article>
{{ end }}
{{ partial "pagination.html" . }}

View File

@@ -1102,10 +1102,32 @@
"postcss": "^8.4" "postcss": "^8.4"
} }
}, },
"node_modules/@csstools/selector-resolve-nested": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/@csstools/selector-resolve-nested/-/selector-resolve-nested-1.1.0.tgz",
"integrity": "sha512-uWvSaeRcHyeNenKg8tp17EVDRkpflmdyvbE0DHo6D/GdBb6PDnCYYU6gRpXhtICMGMcahQmj2zGxwFM/WC8hCg==",
"dev": true,
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/csstools"
},
{
"type": "opencollective",
"url": "https://opencollective.com/csstools"
}
],
"engines": {
"node": "^14 || ^16 || >=18"
},
"peerDependencies": {
"postcss-selector-parser": "^6.0.13"
}
},
"node_modules/@csstools/selector-specificity": { "node_modules/@csstools/selector-specificity": {
"version": "3.0.1", "version": "3.0.3",
"resolved": "https://registry.npmjs.org/@csstools/selector-specificity/-/selector-specificity-3.0.1.tgz", "resolved": "https://registry.npmjs.org/@csstools/selector-specificity/-/selector-specificity-3.0.3.tgz",
"integrity": "sha512-NPljRHkq4a14YzZ3YD406uaxh7s0g6eAq3L9aLOWywoqe8PkYamAvtsh7KNX6c++ihDrJ0RiU+/z7rGnhlZ5ww==", "integrity": "sha512-KEPNw4+WW5AVEIyzC80rTbWEUatTW2lXpN8+8ILC8PiPeWPjwUzrPZDIOZ2wwqDmeqOYTdSGyL3+vE5GC3FB3Q==",
"dev": true, "dev": true,
"funding": [ "funding": [
{ {
@@ -5053,9 +5075,9 @@
} }
}, },
"node_modules/postcss-nesting": { "node_modules/postcss-nesting": {
"version": "12.0.2", "version": "12.1.1",
"resolved": "https://registry.npmjs.org/postcss-nesting/-/postcss-nesting-12.0.2.tgz", "resolved": "https://registry.npmjs.org/postcss-nesting/-/postcss-nesting-12.1.1.tgz",
"integrity": "sha512-63PpJHSeNs93S3ZUIyi+7kKx4JqOIEJ6QYtG3x+0qA4J03+4n0iwsyA1GAHyWxsHYljQS4/4ZK1o2sMi70b5wQ==", "integrity": "sha512-qc74KvIAQNa5ujZKG1UV286dhaDW6basbUy2i9AzNU/T8C9hpvGu9NZzm1SfePe2yP7sPYgpA8d4sPVopn2Hhw==",
"dev": true, "dev": true,
"funding": [ "funding": [
{ {
@@ -5068,7 +5090,8 @@
} }
], ],
"dependencies": { "dependencies": {
"@csstools/selector-specificity": "^3.0.1", "@csstools/selector-resolve-nested": "^1.1.0",
"@csstools/selector-specificity": "^3.0.3",
"postcss-selector-parser": "^6.0.13" "postcss-selector-parser": "^6.0.13"
}, },
"engines": { "engines": {
@@ -7398,10 +7421,17 @@
"dev": true, "dev": true,
"requires": {} "requires": {}
}, },
"@csstools/selector-resolve-nested": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/@csstools/selector-resolve-nested/-/selector-resolve-nested-1.1.0.tgz",
"integrity": "sha512-uWvSaeRcHyeNenKg8tp17EVDRkpflmdyvbE0DHo6D/GdBb6PDnCYYU6gRpXhtICMGMcahQmj2zGxwFM/WC8hCg==",
"dev": true,
"requires": {}
},
"@csstools/selector-specificity": { "@csstools/selector-specificity": {
"version": "3.0.1", "version": "3.0.3",
"resolved": "https://registry.npmjs.org/@csstools/selector-specificity/-/selector-specificity-3.0.1.tgz", "resolved": "https://registry.npmjs.org/@csstools/selector-specificity/-/selector-specificity-3.0.3.tgz",
"integrity": "sha512-NPljRHkq4a14YzZ3YD406uaxh7s0g6eAq3L9aLOWywoqe8PkYamAvtsh7KNX6c++ihDrJ0RiU+/z7rGnhlZ5ww==", "integrity": "sha512-KEPNw4+WW5AVEIyzC80rTbWEUatTW2lXpN8+8ILC8PiPeWPjwUzrPZDIOZ2wwqDmeqOYTdSGyL3+vE5GC3FB3Q==",
"dev": true, "dev": true,
"requires": {} "requires": {}
}, },
@@ -9938,12 +9968,13 @@
} }
}, },
"postcss-nesting": { "postcss-nesting": {
"version": "12.0.2", "version": "12.1.1",
"resolved": "https://registry.npmjs.org/postcss-nesting/-/postcss-nesting-12.0.2.tgz", "resolved": "https://registry.npmjs.org/postcss-nesting/-/postcss-nesting-12.1.1.tgz",
"integrity": "sha512-63PpJHSeNs93S3ZUIyi+7kKx4JqOIEJ6QYtG3x+0qA4J03+4n0iwsyA1GAHyWxsHYljQS4/4ZK1o2sMi70b5wQ==", "integrity": "sha512-qc74KvIAQNa5ujZKG1UV286dhaDW6basbUy2i9AzNU/T8C9hpvGu9NZzm1SfePe2yP7sPYgpA8d4sPVopn2Hhw==",
"dev": true, "dev": true,
"requires": { "requires": {
"@csstools/selector-specificity": "^3.0.1", "@csstools/selector-resolve-nested": "^1.1.0",
"@csstools/selector-specificity": "^3.0.3",
"postcss-selector-parser": "^6.0.13" "postcss-selector-parser": "^6.0.13"
} }
}, },

Some files were not shown because too many files have changed in this diff Show More