kopia lustrzana https://github.com/wagtail/wagtail
Update home stats summary CSS
The construct_homepage_summary_items hook allows to add items, but if you use exactly the same markup as wagtail you end up with a bad layout because the items form rows with no whitespace between them. This commit changes the padding-bottom of the section into a margin-bottom of it's <li> items, meaning that they form rows with enough whitespace in between them, and the whitespace at the bottom is preserved.pull/2253/merge
rodzic
98f02ed29b
commit
7d90344dd6
|
@ -23,6 +23,7 @@ Changelog
|
||||||
* The `edit bird` on the frontend has been redesigned, and no longer depends on an iframe (Thomas Winter, Gareth Price).
|
* The `edit bird` on the frontend has been redesigned, and no longer depends on an iframe (Thomas Winter, Gareth Price).
|
||||||
* New translations for Hungarian, Swedish (Sweden) and Turkish
|
* New translations for Hungarian, Swedish (Sweden) and Turkish
|
||||||
* Upgraded jQuery to 2.2.1 (Charlie Choiniere)
|
* Upgraded jQuery to 2.2.1 (Charlie Choiniere)
|
||||||
|
* Multiple homepage summary items (`construct_homepage_summary_items` hook) now better vertically spaced (Nicolas Kuttler)
|
||||||
* Fix: Custom page managers no longer raise an error when used on an abstract model
|
* Fix: Custom page managers no longer raise an error when used on an abstract model
|
||||||
* Fix: Wagtail's migrations are now all reversible (benjaoming)
|
* Fix: Wagtail's migrations are now all reversible (benjaoming)
|
||||||
* Fix: Deleting a page content type now preserves existing pages as basic Page instances, to prevent tree corruption
|
* Fix: Deleting a page content type now preserves existing pages as basic Page instances, to prevent tree corruption
|
||||||
|
|
|
@ -110,6 +110,7 @@ Contributors
|
||||||
* Thomas Winter
|
* Thomas Winter
|
||||||
* Gareth Price
|
* Gareth Price
|
||||||
* Liam Brenner
|
* Liam Brenner
|
||||||
|
* Nicolas Kuttler
|
||||||
|
|
||||||
Translators
|
Translators
|
||||||
===========
|
===========
|
||||||
|
|
|
@ -61,6 +61,7 @@ Minor features
|
||||||
* The ``Page`` model now has two new methods ``get_site()`` and ``get_url_parts()`` to aid with customising the page URL generation logic
|
* The ``Page`` model now has two new methods ``get_site()`` and ``get_url_parts()`` to aid with customising the page URL generation logic
|
||||||
* New translations for Hungarian, Swedish (Sweden) and Turkish
|
* New translations for Hungarian, Swedish (Sweden) and Turkish
|
||||||
* Upgraded jQuery to 2.2.1 (Charlie Choiniere)
|
* Upgraded jQuery to 2.2.1 (Charlie Choiniere)
|
||||||
|
* Multiple homepage summary items (`construct_homepage_summary_items` hook) now better vertically spaced (Nicolas Kuttler)
|
||||||
|
|
||||||
|
|
||||||
Bug fixes
|
Bug fixes
|
||||||
|
|
|
@ -33,7 +33,6 @@ header {
|
||||||
background-color: $color-grey-5;
|
background-color: $color-grey-5;
|
||||||
margin-bottom: 2em;
|
margin-bottom: 2em;
|
||||||
padding-top: 2em;
|
padding-top: 2em;
|
||||||
padding-bottom: 2em;
|
|
||||||
|
|
||||||
ul.stats {
|
ul.stats {
|
||||||
@include clearfix();
|
@include clearfix();
|
||||||
|
@ -42,6 +41,7 @@ header {
|
||||||
|
|
||||||
li {
|
li {
|
||||||
@include column(4);
|
@include column(4);
|
||||||
|
margin-bottom: 2em;
|
||||||
|
|
||||||
&:before {
|
&:before {
|
||||||
opacity: 0.2;
|
opacity: 0.2;
|
||||||
|
|
Ładowanie…
Reference in New Issue