From caa2570c5177246cb59808de4a225d6fee19c524 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Fri, 17 Jun 2022 10:59:19 +0200 Subject: Update --- assets/css/_declare-vars.scss | 8 --- assets/css/components/_hnav.scss | 5 +- assets/css/layouts/_card-list.scss | 4 +- templates/layouts/categorized_list.html | 104 +++++++++++++++++--------------- templates/layouts/list.html | 46 +++++++------- templates/layouts/page.html | 12 +++- yarn.lock | 2 +- 7 files changed, 94 insertions(+), 87 deletions(-) diff --git a/assets/css/_declare-vars.scss b/assets/css/_declare-vars.scss index 1adec10..3422588 100644 --- a/assets/css/_declare-vars.scss +++ b/assets/css/_declare-vars.scss @@ -19,14 +19,6 @@ --1000: iro.fn-px-to-rem(60px), --1100: iro.fn-px-to-rem(70px), ), - - --paragraph: ( - --margin-top: fn.dim(--size --400, null), - ), - - --heading: ( - --margin-top: fn.dim(--size --700, null), - ), ) ), 'dims'); diff --git a/assets/css/components/_hnav.scss b/assets/css/components/_hnav.scss index 1b57cc0..4023c82 100644 --- a/assets/css/components/_hnav.scss +++ b/assets/css/components/_hnav.scss @@ -11,7 +11,8 @@ @include iro.props-store(( --dims: ( - --gap: 1.5em, + --gap-x: fn.global-dim(--size --300), + --gap-y: fn.global-dim(--size --150), --font-size: .9em, --margin-top: fn.global-dim(--paragraph --margin-top), --margin-bottom: fn.global-dim(--size --1000), @@ -22,7 +23,7 @@ @include iro.bem-component(iro.props-namespace()) { display: flex; flex-wrap: wrap; - gap: calc(.5 * fn.dim(--gap)) fn.dim(--gap); + gap: fn.dim(--gap-y) fn.dim(--gap-x); align-items: baseline; margin: fn.dim(--margin-top) 0 fn.dim(--margin-bottom); padding-top: fn.dim(--pad-top); diff --git a/assets/css/layouts/_card-list.scss b/assets/css/layouts/_card-list.scss index d983f8d..2d9d58f 100644 --- a/assets/css/layouts/_card-list.scss +++ b/assets/css/layouts/_card-list.scss @@ -13,7 +13,7 @@ ), --grid-3: ( --gap: fn.global-dim(--size --75), - --col-width: fn.global-dim(--size --2300), + --col-width: fn.global-dim(--size --2400), ), --gallery-2: ( --gap: fn.global-dim(--size --200), @@ -21,7 +21,7 @@ ), --gallery-3: ( --gap: fn.global-dim(--size --200), - --col-width: fn.global-dim(--size --2300), + --col-width: fn.global-dim(--size --2400), ), ) ), 'dims'); diff --git a/templates/layouts/categorized_list.html b/templates/layouts/categorized_list.html index 101f759..206c566 100644 --- a/templates/layouts/categorized_list.html +++ b/templates/layouts/categorized_list.html @@ -1,59 +1,63 @@ -
-
- - $if(notoc)$$else$ - - $endif$ - -
+ $if(notoc)$$else$ + + $endif$ + +
+ $for(list)$ +
+
+
- $if(it.omitted)$ - + + $if(it.description)$ + + $endif$ + +
+ $if(it.layout.is_grid-2)$ + $it.items:partials/grid_card()$ + $elseif(it.layout.is_grid-3)$ + $it.items:partials/grid_card()$ + $elseif(it.layout.is_gallery-2)$ + $it.items:partials/gallery_card()$ + $elseif(it.layout.is_gallery-3)$ + $it.items:partials/gallery_card()$ + $else$ + $it.items:partials/list_card()$ $endif$ - - $endfor$ -
+
+ $if(it.omitted)$ + + $endif$ + + $endfor$
diff --git a/templates/layouts/list.html b/templates/layouts/list.html index 105c7f5..66a08fd 100644 --- a/templates/layouts/list.html +++ b/templates/layouts/list.html @@ -1,27 +1,31 @@ -
-
- -
-
- $if(list_layout.is_grid-2)$ - $list:partials/grid_card()$ - $elseif(list_layout.is_grid-3)$ - $list:partials/grid_card()$ - $elseif(list_layout.is_gallery-2)$ - $list:partials/gallery_card()$ - $elseif(list_layout.is_gallery-3)$ - $list:partials/gallery_card()$ - $else$ - $list:partials/list_card()$ - $endif$ -
+
+
+ $if(list_layout.is_grid-2)$ + $list:partials/grid_card()$ + $elseif(list_layout.is_grid-3)$ + $list:partials/grid_card()$ + $elseif(list_layout.is_gallery-2)$ + $list:partials/gallery_card()$ + $elseif(list_layout.is_gallery-3)$ + $list:partials/gallery_card()$ + $else$ + $list:partials/list_card()$ + $endif$
diff --git a/templates/layouts/page.html b/templates/layouts/page.html index 554ba45..a91d6ad 100644 --- a/templates/layouts/page.html +++ b/templates/layouts/page.html @@ -1,5 +1,11 @@ -
-
+
+
$if(date)$
$date.long$ @@ -10,7 +16,7 @@ $title$ -