diff --git a/CHANGELOG.md b/CHANGELOG.md index 610b66467..08ecddb05 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,12 @@ # CHANGELOG +*2.3.1* (2019-12-13) + - 🛠Fixes & other + - Update markup according to WordPress standards (#429) + +*2.3.0* (2019-12-10) + - ✨ New implementations + - Blog pages design (#425) + *2.2.1* (2019-11-13) - 🛠Fixes & other - Fix multiple select image (#401) diff --git a/VERSION b/VERSION index c043eea77..2bf1c1ccf 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.2.1 +2.3.1 diff --git a/assets/components/base.scss b/assets/components/base.scss index 61a99fe7c..6e978ddb6 100644 --- a/assets/components/base.scss +++ b/assets/components/base.scss @@ -125,3 +125,4 @@ // // pages: @import 'pages/people-detail/people-detail'; +@import 'pages/blog-single/blog-single'; diff --git a/assets/components/molecules/card-deck/card-deck.scss b/assets/components/molecules/card-deck/card-deck.scss index 753caf9ce..e9258c0be 100644 --- a/assets/components/molecules/card-deck/card-deck.scss +++ b/assets/components/molecules/card-deck/card-deck.scss @@ -5,6 +5,26 @@ margin-left: $spacer * -0.5; margin-right: $spacer * -0.5; flex-wrap: wrap; + + @include media-breakpoint-up(sm) { + + > .card { + + // only one card is present + &:first-child:last-child { + flex: 0 0 60%; + margin-left: auto; + margin-right: auto; + } + + // two or more cards are present + &:nth-last-child(n + 2), + &:nth-last-child(n + 2) ~ * { + flex: 1 1 47%; + margin: $spacer * 0.5; + } + } + } @include media-breakpoint-up(lg) { > .card { @@ -14,8 +34,6 @@ // only one card is present &:first-child:last-child { flex: 0 0 33%; - margin-left: auto; - margin-right: auto; } // two cards are present diff --git a/assets/components/molecules/card-deck/card-deck.twig b/assets/components/molecules/card-deck/card-deck.twig index 70efaa8db..f8b683e26 100644 --- a/assets/components/molecules/card-deck/card-deck.twig +++ b/assets/components/molecules/card-deck/card-deck.twig @@ -2,4 +2,7 @@ {% include '@molecules/card/card-link.twig' %} {% include '@molecules/card/card-link.twig' %} {% include '@molecules/card/card-link.twig' %} + {% include '@molecules/card/card-link.twig' %} + {% include '@molecules/card/card-link.twig' %} + {% include '@molecules/card/card-link.twig' %} diff --git a/assets/components/molecules/card/card.scss b/assets/components/molecules/card/card.scss index cbc75e9b3..c86437dd0 100644 --- a/assets/components/molecules/card/card.scss +++ b/assets/components/molecules/card/card.scss @@ -45,6 +45,10 @@ a.card-gray:hover .card-body { background: $white; } + .card-footer { padding-top: 0; } + + .card-info + p { + margin-top: .5em; + } p:last-of-type { margin-bottom: 0; diff --git a/assets/components/molecules/filters/filters-blog.twig b/assets/components/molecules/filters/filters-blog.twig new file mode 100644 index 000000000..39e0d6b9e --- /dev/null +++ b/assets/components/molecules/filters/filters-blog.twig @@ -0,0 +1,48 @@ + diff --git a/assets/components/molecules/filters/filters.yml b/assets/components/molecules/filters/filters.yml index 444b3e001..f0b47725a 100644 --- a/assets/components/molecules/filters/filters.yml +++ b/assets/components/molecules/filters/filters.yml @@ -2,3 +2,8 @@ name: filters title: Filters notes: | The filters are displayed (in a sidebar) on desktop but have to be collapsed in on mobile. + variants: + - name: blog + title: Blog content filters + notes: | + diff --git a/assets/components/molecules/form-group/form-group.scss b/assets/components/molecules/form-group/form-group.scss index de2826549..bf281c5a0 100644 --- a/assets/components/molecules/form-group/form-group.scss +++ b/assets/components/molecules/form-group/form-group.scss @@ -2,9 +2,13 @@ .form-group { label { - font-size: $font-size-sm; + font-size: 1em; color: $gray-600; } + + .custom-control label { + font-size: $font-size-sm; + } } .invalid-label, diff --git a/assets/components/molecules/tables/tables.scss b/assets/components/molecules/tables/tables.scss index f304cc334..f59af057d 100644 --- a/assets/components/molecules/tables/tables.scss +++ b/assets/components/molecules/tables/tables.scss @@ -6,7 +6,7 @@ thead { th { border-bottom: 3px solid $gray-200; - padding: 0.3rem 0; + padding: 0.3rem 0.45rem; } } @@ -15,7 +15,7 @@ color: $black; td { - padding: 0.3rem 0; + padding: 0.3rem 0.45rem; border-bottom: 1px solid $gray-200; @include media-breakpoint-down(sm) { @@ -50,8 +50,6 @@ thead th, tbody td, tfoot td { - padding-left: 0.45rem; - padding-right: 0.45rem; border-right: 1px solid $gray-200; @include media-breakpoint-down(sm) { diff --git a/assets/components/organisms/fullwidth-teaser/fullwidth-teaser-horizontal.twig b/assets/components/organisms/fullwidth-teaser/fullwidth-teaser-horizontal.twig index 08d78e591..a9016a6a1 100644 --- a/assets/components/organisms/fullwidth-teaser/fullwidth-teaser-horizontal.twig +++ b/assets/components/organisms/fullwidth-teaser/fullwidth-teaser-horizontal.twig @@ -1,4 +1,6 @@ -