diff --git a/CHANGES.rst b/CHANGES.rst index bdf91940f..72eb58ea2 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -6,6 +6,9 @@ There's a frood who really knows where his towel is. 1.7b3 (unreleased) ^^^^^^^^^^^^^^^^^^ +- Review multiple class selection when there are many classes (closes `#785 `_). + [rodfersou] + - Small code refactor to increase future Python 3 compatibility. [hvelarde] diff --git a/src/collective/cover/browser/templates/layoutedit.pt b/src/collective/cover/browser/templates/layoutedit.pt index 87a203ed7..d08152d05 100644 --- a/src/collective/cover/browser/templates/layoutedit.pt +++ b/src/collective/cover/browser/templates/layoutedit.pt @@ -26,7 +26,7 @@ + tal:attributes="href string:${navroot}/++resource++collective.cover/css/layout_edit_201806251610.css" /> diff --git a/src/collective/cover/static/css/layout_edit_201804251456.css b/src/collective/cover/static/css/layout_edit_201806251610.css similarity index 97% rename from src/collective/cover/static/css/layout_edit_201804251456.css rename to src/collective/cover/static/css/layout_edit_201806251610.css index dbb561892..2fdf65b57 100644 --- a/src/collective/cover/static/css/layout_edit_201804251456.css +++ b/src/collective/cover/static/css/layout_edit_201806251610.css @@ -735,20 +735,33 @@ body .cssclasswidget { cursor: pointer; } +/* https://stackoverflow.com/a/10100209 */ +body .cssclasswidget-classlist::-webkit-scrollbar { + -webkit-appearance: none; + width: 7px; +} +body .cssclasswidget-classlist::-webkit-scrollbar-thumb { + border-radius: 4px; + background-color: rgba(0,0,0,.5); + -webkit-box-shadow: 0 0 1px rgba(255,255,255,.5); +} body .cssclasswidget-classlist { position: absolute; z-index: 1001; display: flex; + overflow-y: scroll; flex-direction: column; + max-height: 4rem; padding: .4rem; list-style-type: none !important; border: 1px solid #A9A9A9; background: #FFF; + } body .cssclasswidget-classlist li {