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
docs/releases
wagtail/wagtailadmin/static_src/wagtailadmin/scss/layouts
|
@ -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).
|
||||
* New translations for Hungarian, Swedish (Sweden) and Turkish
|
||||
* 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: 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
|
||||
|
|
|
@ -110,6 +110,7 @@ Contributors
|
|||
* Thomas Winter
|
||||
* Gareth Price
|
||||
* Liam Brenner
|
||||
* Nicolas Kuttler
|
||||
|
||||
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
|
||||
* New translations for Hungarian, Swedish (Sweden) and Turkish
|
||||
* 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
|
||||
|
|
|
@ -33,7 +33,6 @@ header {
|
|||
background-color: $color-grey-5;
|
||||
margin-bottom: 2em;
|
||||
padding-top: 2em;
|
||||
padding-bottom: 2em;
|
||||
|
||||
ul.stats {
|
||||
@include clearfix();
|
||||
|
@ -42,6 +41,7 @@ header {
|
|||
|
||||
li {
|
||||
@include column(4);
|
||||
margin-bottom: 2em;
|
||||
|
||||
&:before {
|
||||
opacity: 0.2;
|
||||
|
|
Ładowanie…
Reference in New Issue