Commit graph

586 commits

Author SHA1 Message Date
Fredrik Jonsson
be68250151 Use em to set header margins for better text rythm. 2023-06-01 19:30:24 +02:00
Fredrik Jonsson
93728f1e9e Make use of aria-current as selector and remove use of active class. 2023-05-30 08:57:59 +02:00
Fredrik Jonsson
9bdec6ca76 Whitespace in templates. 2023-05-28 19:36:58 +02:00
Fredrik Jonsson
a7bfa92312 Use .Site.LanguageCode. 2023-05-28 11:12:21 +02:00
Fredrik Jonsson
3c61f58e3d .Language.Params is deprecated and will be removed in a future release. 2023-05-18 20:03:47 +02:00
Fredrik Jonsson
e7db4553d4 Updated min_version to 0.93.0 to support .Page.Store feature. 2023-05-18 13:21:43 +02:00
Fredrik Jonsson
012c465927 Add %button--shadow to zen styles. 2023-05-08 19:21:19 +02:00
Fredrik Jonsson
06479083fb Fix some bugs with mobile toggle and reuse button and link classes for mobile menu. 2023-05-08 15:49:49 +02:00
Fredrik Jonsson
79ad438b19 Do not set colour for code with syntax highlighting. 2023-05-07 15:44:11 +02:00
Fredrik Jonsson
0459743880 Message highlight. 2023-04-26 14:24:53 +02:00
Fredrik Jonsson
205f7e7834 Make sure headings etc. also gets inverted in boxes. Add classes or extend handlers to some components missing them. 2023-04-26 13:09:04 +02:00
Fredrik Jonsson
73f1114123 Add stylelint quiet-deprecation-warnings. 2023-04-25 09:24:01 +02:00
Fredrik Jonsson
9017bdebf5 Add a editorconfig file. 2023-04-25 09:15:17 +02:00
dependabot[bot]
7ba670ba69
Bump yaml, stylelint, stylelint-config-standard-scss and stylelint-scss (#89)
Removes [yaml](https://github.com/eemeli/yaml). It's no longer used after updating ancestor dependencies [yaml](https://github.com/eemeli/yaml), [stylelint](https://github.com/stylelint/stylelint), [stylelint-config-standard-scss](https://github.com/stylelint-scss/stylelint-config-standard-scss) and [stylelint-scss](https://github.com/stylelint-scss/stylelint-scss). These dependencies need to be updated together.


Removes `yaml`

Updates `stylelint` from 14.14.1 to 15.6.0
- [Release notes](https://github.com/stylelint/stylelint/releases)
- [Changelog](https://github.com/stylelint/stylelint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/stylelint/stylelint/compare/14.14.1...15.6.0)

Updates `stylelint-config-standard-scss` from 6.1.0 to 9.0.0
- [Release notes](https://github.com/stylelint-scss/stylelint-config-standard-scss/releases)
- [Changelog](https://github.com/stylelint-scss/stylelint-config-standard-scss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/stylelint-scss/stylelint-config-standard-scss/compare/v6.1.0...v9.0.0)

Updates `stylelint-scss` from 4.3.0 to 4.6.0
- [Release notes](https://github.com/stylelint-scss/stylelint-scss/releases)
- [Changelog](https://github.com/stylelint-scss/stylelint-scss/blob/master/CHANGELOG.md)
- [Commits](https://github.com/stylelint-scss/stylelint-scss/compare/v4.3.0...v4.6.0)

---
updated-dependencies:
- dependency-name: yaml
  dependency-type: indirect
- dependency-name: stylelint
  dependency-type: direct:development
- dependency-name: stylelint-config-standard-scss
  dependency-type: direct:development
- dependency-name: stylelint-scss
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-25 08:26:17 +02:00
Fredrik Jonsson
33c9642116 Remove use of :has() from js as well. 2023-04-24 14:25:36 +02:00
Fredrik Jonsson
25e792dd22 Adjust padding and gap in the tables componets styles. 2023-04-24 09:33:26 +02:00
Fredrik Jonsson
a54b27a9a7 Code style and code comments fixes. 2023-04-24 09:20:48 +02:00
Fredrik Jonsson
3bf7c9ad3a Rework the tables componets styles to work for all browsers, :has() support is limited. 2023-04-24 09:20:25 +02:00
Fredrik Jonsson
86d7c8d001 Minor codestyle fixes to meta_breadcrumb. Moving safeJS to the partial output. 2023-04-23 20:59:21 +02:00
Fredrik Jonsson
a4b9df99b1 Add header tag to title in list layouts so the title to not fall of the page. Minor other layout fixes. 2023-04-23 20:56:27 +02:00
Daniel F. Dickinson
eb27a1e023
Add schema.org BreadcrumbList to JSON+LD (#87)
* Add schema.org BreadcrumbList to JSON+LD

This implementation  depends on .Page.Ancestors, which requires Hugo
version v0.109.0.

Signed-off-by: Daniel F. Dickinson <dfdpublic@wildtechgarden.ca>

* Fix extraneous comma in schema

For blog posts we ended up with an extraneous comma due to it being
outside the condition for the breadcrumb
JSON+LD.

Signed-off-by: Daniel F. Dickinson <dfdpublic@wildtechgarden.ca>

* Pretty print breadcrumb JSON+LD for schema

Signed-off-by: Daniel F. Dickinson <dfdpublic@wildtechgarden.ca>

* Make breadcrumbs opt-in on non-blogSections

Sections except blogSections (which is a configurable set which is
defaulted to sections 'blog' and 'post'), may be part of
`breadcrumbSections`. For the breadcrumb Sections, the section and any
pages under it will have the `breadcrumb` attribute (of type
`BreadcrumbList`) added to the JSON+LD for their schema.org structured
data.

Update documentation of `params` for example `config.yaml` in README.

Signed-off-by: Daniel F. Dickinson <dfdpublic@wildtechgarden.ca>

---------

Signed-off-by: Daniel F. Dickinson <dfdpublic@wildtechgarden.ca>
2023-04-23 20:17:52 +02:00
Fredrik Jonsson
52fd600814 More use of start/end for paddings and margins. 2023-04-23 18:24:51 +02:00
Fredrik Jonsson
a5e759d988 Add style components for zebra-tables and responsive-tables. 2023-04-23 16:47:57 +02:00
Fredrik Jonsson
8ca27a65c3 Use start/end for text-align and padding to handle rtl etc. better. 2023-04-23 16:47:14 +02:00
Fredrik Jonsson
3012cad52e Add colours for odd/even rows and row headers. 2023-04-23 16:44:15 +02:00
Fredrik Jonsson
c482552746 Math partial can not be cached. 2023-04-18 15:18:31 +02:00
Fredrik Jonsson
936892fe7b Add math render codeblock and math shortcode. 2023-04-13 16:09:09 +02:00
Fredrik Jonsson
91c01f30a0 Add support for pre and post in menu items. 2023-04-11 11:26:39 +02:00
Fredrik Jonsson
9e025a2b53 Adjust how max line width is set on lists and headings. 2023-04-03 14:51:12 +02:00
Fredrik Jonsson
2a24277c90 Fix spelling, it is Matomo and not Matamo. Thanks @bwc69151. 2023-04-03 12:01:37 +02:00
Fredrik Jonsson
bc3dc4a071 Update README with KaTeX support etc. 2023-04-02 11:45:22 +02:00
Fredrik Jonsson
4ec8920b90 Style adjustments for forms. 2023-03-27 11:36:05 +02:00
Fredrik Jonsson
a5a71c126f Improve comments for variables. 2023-03-27 11:35:46 +02:00
Fredrik Jonsson
516dff348e Rename assets/vendor to assets/libs to make it work with go modules. 2023-03-26 14:21:12 +02:00
Fredrik Jonsson
be55ea6bdd Added newly added 3.x features to the README. 2023-03-26 11:41:06 +02:00
Fredrik Jonsson
d7fe991e4c Added margin-block classes as e.g. mtb--m. 2023-03-26 11:40:50 +02:00
Fredrik Jonsson
d4c120d04c Add all example render hooks to the README. 2023-03-26 10:43:44 +02:00
bwc69151
fb382bda2a
Swahili translation sw.toml (#84) 2023-03-26 10:25:30 +02:00
Fredrik Jonsson
c1b813206e Add links to nice forms in the README, part 2. 2023-03-26 10:23:06 +02:00
Fredrik Jonsson
0ba4ea9b18 Add links to nice forms in the README. 2023-03-25 21:03:20 +01:00
Fredrik Jonsson
37b0a700af Fix linting issue. 2023-03-25 20:59:21 +01:00
Fredrik Jonsson
e40112df72 Box shadow on button active. 2023-03-25 16:04:48 +01:00
Fredrik Jonsson
2034707d32 Box shadow on button hover. 2023-03-25 15:03:39 +01:00
Fredrik Jonsson
ce9d9ff8cc Fix bug with unit in spacing mixin. 2023-03-24 14:45:02 +01:00
Fredrik Jonsson
17d3ac7f81 Fix: debug should be false by default. 2023-03-24 14:13:05 +01:00
Fredrik Jonsson
f8f7981f4b Make use of css variables in responsive-video component. 2023-03-23 19:11:04 +01:00
Fredrik Jonsson
fce6597ea1 Add missing tags component. 2023-03-18 07:30:06 +01:00
Fredrik Jonsson
c9526d5de0 Remove button from base/forms. 2023-03-17 20:30:38 +01:00
Fredrik Jonsson
5cffb74b65 Do not set max line with on h1. 2023-03-17 20:26:42 +01:00
Fredrik Jonsson
9a8fc75e1f Make use of partialCached for cookiconsent and math. 2023-03-17 20:07:13 +01:00