diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index d0c6c0d..d653c2e 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -9,6 +9,9 @@ on: - main workflow_dispatch: repository_dispatch: + issue_comment: + types: + - created permissions: actions: write @@ -19,7 +22,7 @@ env: jobs: build: - if: startsWith(github.event.head_commit.message, 'release:') + if: contains(github.event.comment.body, 'Publish this Release') || startsWith(github.event.head_commit.message, 'release:') runs-on: ubuntu-latest steps: diff --git a/CHANGELOG.md b/CHANGELOG.md index 2df5006..1f1e908 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,26 +1,28 @@ -## 1.3.4 (unreleased) +## 1.4.0 (unreleased) ### Cleanup(s) -- Remove dublicated styles that are now provided by `normalize.css` +- Remove duplicated styles that are now provided by `normalize.css` -- Provide a easier way to make the time blink in the `time` tag (now using bold instead of `span`) +- Provide an easier way to make the time blink in the `time` tag (now using bold instead of `span`) + +- Migrate basic font configuration to the `fonts.scss` file (rather than the `index.scss` file) + +- Migrate all `pixel` values to `rem` values for better accessibility ### Fix(es) -- Allow a changable dark mode background color for code snippets +- Allow a changeable dark mode background color for code snippets -- Made the navigation island have a specific minimum height +- Made the navigation island have a specific minimum height (it could become smaller until now) ### Feature(s) - Provide a `title` for the navigation icons to improve accessibility -- Migrate all `pixel` values to `rem` values for better accessibility - - Add two new types of links (`external` and `internal`) with different icons at the end of the link -- Migrate basic font configuration to the `fonts.scss` file (rather then the `index.scss` file) +- Provide a build-in icon for custom cards ## 1.3.3 (2024-04-27) diff --git a/icons/dangerous.svg b/icons/dangerous.svg new file mode 100644 index 0000000..6f43930 --- /dev/null +++ b/icons/dangerous.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/info.svg b/icons/info.svg new file mode 100644 index 0000000..2545549 --- /dev/null +++ b/icons/info.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/lightbulb.svg b/icons/lightbulb.svg new file mode 100644 index 0000000..dae90ac --- /dev/null +++ b/icons/lightbulb.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/warning.svg b/icons/warning.svg new file mode 100644 index 0000000..9855795 --- /dev/null +++ b/icons/warning.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/package.json b/package.json index 5083f9e..a83fc0b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "aplos", - "version": "1.3.4-6", + "version": "1.4.0-1", "type": "module", "description": "A sleek, contemporary, and purposefully designed VitePress theme", "main": "index.ts", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index eaf46c3..b79b90f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1,158 +1,183 @@ -lockfileVersion: '6.0' +lockfileVersion: '9.0' settings: autoInstallPeers: true excludeLinksFromLockfile: false -dependencies: - '@csstools/normalize.css': - specifier: ^12.1.1 - version: 12.1.1 - inter-ui: - specifier: ^4.0.2 - version: 4.0.2 - non.geist: - specifier: ^1.0.2 - version: 1.0.3 - sass: - specifier: ^1.74.1 - version: 1.76.0 +importers: + + .: + dependencies: + '@csstools/normalize.css': + specifier: ^12.1.1 + version: 12.1.1 + inter-ui: + specifier: ^4.0.2 + version: 4.0.2 + non.geist: + specifier: ^1.0.2 + version: 1.0.3 + sass: + specifier: ^1.74.1 + version: 1.76.0 packages: - /@csstools/normalize.css@12.1.1: + '@csstools/normalize.css@12.1.1': resolution: {integrity: sha512-YAYeJ+Xqh7fUou1d1j9XHl44BmsuThiTr4iNrgCQ3J27IbhXsxXDGZ1cXv8Qvs99d4rBbLiSKy3+WZiet32PcQ==} - dev: false - /anymatch@3.1.3: + anymatch@3.1.3: resolution: {integrity: sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==} engines: {node: '>= 8'} - dependencies: - normalize-path: 3.0.0 - picomatch: 2.3.1 - dev: false - /binary-extensions@2.3.0: + binary-extensions@2.3.0: resolution: {integrity: sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==} engines: {node: '>=8'} - dev: false - /braces@3.0.2: + braces@3.0.2: resolution: {integrity: sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==} engines: {node: '>=8'} - dependencies: - fill-range: 7.0.1 - dev: false - /chokidar@3.6.0: + chokidar@3.6.0: resolution: {integrity: sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==} engines: {node: '>= 8.10.0'} - dependencies: - anymatch: 3.1.3 - braces: 3.0.2 - glob-parent: 5.1.2 - is-binary-path: 2.1.0 - is-glob: 4.0.3 - normalize-path: 3.0.0 - readdirp: 3.6.0 - optionalDependencies: - fsevents: 2.3.3 - dev: false - /fill-range@7.0.1: + fill-range@7.0.1: resolution: {integrity: sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==} engines: {node: '>=8'} - dependencies: - to-regex-range: 5.0.1 - dev: false - /fsevents@2.3.3: + fsevents@2.3.3: resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} os: [darwin] - requiresBuild: true - dev: false - optional: true - /glob-parent@5.1.2: + glob-parent@5.1.2: resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==} engines: {node: '>= 6'} - dependencies: - is-glob: 4.0.3 - dev: false - /immutable@4.3.5: + immutable@4.3.5: resolution: {integrity: sha512-8eabxkth9gZatlwl5TBuJnCsoTADlL6ftEr7A4qgdaTsPyreilDSnUk57SO+jfKcNtxPa22U5KK6DSeAYhpBJw==} - dev: false - /inter-ui@4.0.2: + inter-ui@4.0.2: resolution: {integrity: sha512-YmfzwEtzuVzEenQwSB/tmmqi/A0a2GnFk4mG4ZFULXiO5DNk0fJWiO3o9i1sdVKuMVGx9iiNQnCq8ghWZJVVHw==} engines: {node: '>=16.0.0'} - dev: false - /is-binary-path@2.1.0: + is-binary-path@2.1.0: resolution: {integrity: sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==} engines: {node: '>=8'} - dependencies: - binary-extensions: 2.3.0 - dev: false - /is-extglob@2.1.1: + is-extglob@2.1.1: resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==} engines: {node: '>=0.10.0'} - dev: false - /is-glob@4.0.3: + is-glob@4.0.3: resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==} engines: {node: '>=0.10.0'} - dependencies: - is-extglob: 2.1.1 - dev: false - /is-number@7.0.0: + is-number@7.0.0: resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==} engines: {node: '>=0.12.0'} - dev: false - /non.geist@1.0.3: + non.geist@1.0.3: resolution: {integrity: sha512-KTT38rJKUTijUZtwqZR38OJeHDupfTkl1JoVNVVoQ0vV41Zjax/BMULWFyXtsK5YCd1SU2ofFSJooD8nWClXcA==} - dev: false - /normalize-path@3.0.0: + normalize-path@3.0.0: resolution: {integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==} engines: {node: '>=0.10.0'} - dev: false - /picomatch@2.3.1: + picomatch@2.3.1: resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==} engines: {node: '>=8.6'} - dev: false - /readdirp@3.6.0: + readdirp@3.6.0: resolution: {integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==} engines: {node: '>=8.10.0'} - dependencies: - picomatch: 2.3.1 - dev: false - /sass@1.76.0: + sass@1.76.0: resolution: {integrity: sha512-nc3LeqvF2FNW5xGF1zxZifdW3ffIz5aBb7I7tSvOoNu7z1RQ6pFt9MBuiPtjgaI62YWrM/txjWlOCFiGtf2xpw==} engines: {node: '>=14.0.0'} hasBin: true - dependencies: - chokidar: 3.6.0 - immutable: 4.3.5 - source-map-js: 1.2.0 - dev: false - /source-map-js@1.2.0: + source-map-js@1.2.0: resolution: {integrity: sha512-itJW8lvSA0TXEphiRoawsCksnlf8SyvmFzIhltqAHluXd88pkCd+cXJVHTDwdCr0IzwptSm035IHQktUu1QUMg==} engines: {node: '>=0.10.0'} - dev: false - /to-regex-range@5.0.1: + to-regex-range@5.0.1: resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} engines: {node: '>=8.0'} + +snapshots: + + '@csstools/normalize.css@12.1.1': {} + + anymatch@3.1.3: + dependencies: + normalize-path: 3.0.0 + picomatch: 2.3.1 + + binary-extensions@2.3.0: {} + + braces@3.0.2: + dependencies: + fill-range: 7.0.1 + + chokidar@3.6.0: + dependencies: + anymatch: 3.1.3 + braces: 3.0.2 + glob-parent: 5.1.2 + is-binary-path: 2.1.0 + is-glob: 4.0.3 + normalize-path: 3.0.0 + readdirp: 3.6.0 + optionalDependencies: + fsevents: 2.3.3 + + fill-range@7.0.1: + dependencies: + to-regex-range: 5.0.1 + + fsevents@2.3.3: + optional: true + + glob-parent@5.1.2: + dependencies: + is-glob: 4.0.3 + + immutable@4.3.5: {} + + inter-ui@4.0.2: {} + + is-binary-path@2.1.0: + dependencies: + binary-extensions: 2.3.0 + + is-extglob@2.1.1: {} + + is-glob@4.0.3: + dependencies: + is-extglob: 2.1.1 + + is-number@7.0.0: {} + + non.geist@1.0.3: {} + + normalize-path@3.0.0: {} + + picomatch@2.3.1: {} + + readdirp@3.6.0: + dependencies: + picomatch: 2.3.1 + + sass@1.76.0: + dependencies: + chokidar: 3.6.0 + immutable: 4.3.5 + source-map-js: 1.2.0 + + source-map-js@1.2.0: {} + + to-regex-range@5.0.1: dependencies: is-number: 7.0.0 - dev: false diff --git a/styles/cards.scss b/styles/cards.scss index b90c8db..bece7df 100644 --- a/styles/cards.scss +++ b/styles/cards.scss @@ -21,6 +21,15 @@ margin-bottom: 0.625rem; font-weight: 800; font-size: 1.8rem; + + &::before { + filter: 0; + margin-right: 0.625rem; + + @media (prefers-color-scheme: dark) { + filter: invert(100%); + } + } } } @@ -31,6 +40,10 @@ @media (prefers-color-scheme: dark) { background-color: #39181b; } + + .custom-block-title::before { + content: url("../icons/dangerous.svg"); + } } .warning { @@ -41,6 +54,10 @@ border-left: rgb(255, 217, 0) 0.4rem solid; background-color: #372a1a; } + + .custom-block-title::before { + content: url("../icons/warning.svg"); + } } .tip { @@ -52,11 +69,19 @@ background-color: #1f3f1f; } + .custom-block-title::before { + content: url("../icons/lightbulb.svg"); + } + } .info { border-left: var(--color-accent) 0.4rem solid; background-color: var(--color-background-mute); + + .custom-block-title::before { + content: url("../icons/info.svg"); + } } .details { diff --git a/styles/index.scss b/styles/index.scss index eb64087..77abe94 100644 --- a/styles/index.scss +++ b/styles/index.scss @@ -2,9 +2,9 @@ * Aplos (https://aplos.gxbs.me/) * Copyright 2023-2024 Gabriel Cozma/Gabs * Licensed under MIT (https://github.com/GabsEdits/aplos/src/branch/main/LICENSE) - - * Based on VitePress (https://vitepress.dev) & inspired Duckquill (https://daudix.codeberg.page/duckquill) -*/ + * + * A VitePress theme (https://vitepress.dev) & inspired Duckquill (https://daudix.codeberg.page/duckquill) + */ @import "common.scss"; @import "medias.scss"; @@ -12,7 +12,9 @@ @import "color.scss"; @import "fonts.scss"; -*, ::before, ::after { +*, +::before, +::after { box-sizing: border-box; }