theme: improve spacings

- Improves spacings by using the pico theme variables.
- Restores a space after separator in post informations component.
- Updates the screenshot of the README.
- Closes #38.

Co-Authored-by: iGor milhit <igor@milhit.ch>
main
iGor milhit 2024-10-20 20:30:11 +02:00
parent 2f094a431d
commit 93934b2502
Signed by: igor
GPG Key ID: 692D97C3D0228A99
7 changed files with 20 additions and 26 deletions

View File

@ -7,17 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
## [Unreleased](https://git.milhit.ch/igor/portfoligor/compare/v0.3.0...HEAD) ## [Unreleased](https://git.milhit.ch/igor/portfoligor/compare/v0.2.0...HEAD)
### Fixed ### Fixed
- theme: improve spacings [`#38`](https://git.milhit.ch/igor/portfoligor/issues/38)
- picocss: implement the pico css framework [`#29`](https://git.milhit.ch/igor/portfoligor/issues/29) [`#15`](https://git.milhit.ch/igor/portfoligor/issues/15) [`#16`](https://git.milhit.ch/igor/portfoligor/issues/16) - picocss: implement the pico css framework [`#29`](https://git.milhit.ch/igor/portfoligor/issues/29) [`#15`](https://git.milhit.ch/igor/portfoligor/issues/15) [`#16`](https://git.milhit.ch/igor/portfoligor/issues/16)
## [v0.3.0](https://git.milhit.ch/igor/portfoligor/compare/v0.2.0...v0.3.0) - 2024-10-19
### Fixed
- picocss: implement the pico css framework [`#29`](https://git.milhit.ch/igor/portfoligor/issues/29)
- i18n: extract, translate strings to be translated [`#18`](https://git.milhit.ch/igor/portfoligor/issues/18) - i18n: extract, translate strings to be translated [`#18`](https://git.milhit.ch/igor/portfoligor/issues/18)
- style: add a stylesheet for printing [`#28`](https://git.milhit.ch/igor/portfoligor/issues/28) - style: add a stylesheet for printing [`#28`](https://git.milhit.ch/igor/portfoligor/issues/28)

View File

@ -142,7 +142,7 @@ yarn auto-changelog
[4]: https://gohugo.io/getting-started/quick-start/#step-3-add-a-theme [4]: https://gohugo.io/getting-started/quick-start/#step-3-add-a-theme
[5]: #social-media-metadata [5]: #social-media-metadata
[6]: https://git.milhit.ch/igor/portfoligor/src/branch/dev/LICENSE [6]: https://git.milhit.ch/igor/portfoligor/src/branch/dev/LICENSE
[7]: screenshots/theme-example.png "Screenshot of my own site using this theme" [7]: screenshots/theme-example-v030.png "Screenshot of my own site using this theme"
[8]: ./CHANGELOG.md [8]: ./CHANGELOG.md
[9]: https://github.com/CookPete/auto-changelog [9]: https://github.com/CookPete/auto-changelog
[10]: ./.auto-changelog [10]: ./.auto-changelog

View File

@ -18,7 +18,7 @@
figcaption p { figcaption p {
font-size: smaller; font-size: smaller;
padding-left: .5rem; padding-left: .5em;
text-align: left; text-align: left;
} }
} }
@ -31,7 +31,7 @@
flex-direction: row; flex-direction: row;
img { img {
width: 8rem; width: 8em;
} }
div { div {
@ -58,8 +58,8 @@
figure { figure {
border-radius: var(--pico-border-radius); border-radius: var(--pico-border-radius);
margin: 1em auto; margin: var(--pico-spacing) auto;
padding: .4rem; padding: .4em;
border: $purple-200 solid var(--pico-border-width); border: $purple-200 solid var(--pico-border-width);
width: 80%; width: 80%;
@ -71,7 +71,7 @@ figure {
font-size: smaller; font-size: smaller;
p { p {
margin: .2rem 0; margin: .2em 0;
text-align: center; text-align: center;
} }
} }
@ -84,7 +84,6 @@ figure {
@media (min-width: 768px) { @media (min-width: 768px) {
max-width: 97%; max-width: 97%;
margin: auto;
padding-right: 0; padding-right: 0;
} }
} }

View File

@ -9,7 +9,7 @@
.verse { .verse {
line-height: var(--line-height-verse); line-height: var(--line-height-verse);
@media (min-width: 768px) { @media (min-width: 768px) {
margin-left: 3rem; margin-left: 3em;
} }
p:not(:last-child) { p:not(:last-child) {
@ -20,7 +20,7 @@
} }
br { br {
margin-bottom: .5rem; margin-bottom: calc(var(--pico-spacing)/2);
} }
} }
@ -35,12 +35,12 @@ mark {
blockquote { blockquote {
margin: 0; margin: 0;
margin-left: .5rem; margin-left: calc(var(--pico-spacing)/2);
padding: 0 0 0 .5rem; padding: 0 0 0 calc(var(--pico-spacing)/2);
p { p {
text-align: left; text-align: left;
margin: .4rem 0; margin: .4em 0;
} }
em { em {
@ -49,7 +49,7 @@ mark {
figcaption { figcaption {
text-align: right; text-align: right;
margin-top: 1rem; margin-top: var(--pico-spacing);
} }
} }
} }

View File

@ -7,8 +7,8 @@
--pico-font-family: "mylilex", serif, var(--pico-font-family-emoji); --pico-font-family: "mylilex", serif, var(--pico-font-family-emoji);
--pico-font-weight: 400; --pico-font-weight: 400;
--line-height-verse: 1.4; --line-height-verse: 1.4;
--verse-p-bottom-space: 2rem; --verse-p-bottom-space: 2em;
--verse-p-bottom-space-larger: 3rem; --verse-p-bottom-space-larger: 3em;
} }
h1, h1,
@ -28,15 +28,15 @@ tfoot td {
[data-theme=light], [data-theme=light],
:root:not([data-theme=dark]) { :root:not([data-theme=dark]) {
--logo-color: #000000; --logo-color: var(--pico-color);
} }
@media only screen and (prefers-color-scheme: dark) { @media only screen and (prefers-color-scheme: dark) {
:root:not([data-theme]) { :root:not([data-theme]) {
--logo-color: #ffffff; --logo-color: var(--pico-color);
} }
} }
[data-theme=dark] { [data-theme=dark] {
--logo-color: #ffffff; --logo-color: var(--pico-color);
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 92 KiB