From d91aceb41ef04c7287e5f89333b74e35357d12e2 Mon Sep 17 00:00:00 2001 From: Matthias Mees Date: Wed, 31 Dec 2014 15:37:52 +0100 Subject: [PATCH] Add style for compact category view overlay. References #254 --- templates/2k11/admin/entries.tpl | 2 +- templates/2k11/admin/style.css | 30 +++++++++++++++++++++--------- 2 files changed, 22 insertions(+), 10 deletions(-) diff --git a/templates/2k11/admin/entries.tpl b/templates/2k11/admin/entries.tpl index d6d5c278..67628ece 100644 --- a/templates/2k11/admin/entries.tpl +++ b/templates/2k11/admin/entries.tpl @@ -130,7 +130,7 @@ {foreach from=$entry_vars.category_options item="entry_cat"}
- {$entry_cat.depth_pad} + {$entry_cat.depth_pad} diff --git a/templates/2k11/admin/style.css b/templates/2k11/admin/style.css index e0cc7703..62c1c680 100644 --- a/templates/2k11/admin/style.css +++ b/templates/2k11/admin/style.css @@ -1668,8 +1668,7 @@ form > .button_link:first-of-type, max-width: 34em; } -/* category-option */ -/*.mfp-content #edit_entry_category,*/ +.compact_categories #edit_entry_category, .mfp-content #edit_entry_freetags { max-width: 60em; } @@ -1682,9 +1681,19 @@ form > .button_link:first-of-type, -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; - /*float: left; + float: none; margin: 0 0 .5em; - width: 50%;*/ + width: 100%; +} + +.compact_categories #edit_entry_category .form_check { + float: left; + width: 50%; +} + +.compact_categories .cat_view_pad { + display: none !important; + visibility: hidden; } .mfp-content #edit_entry_category .form_check label { @@ -1694,12 +1703,15 @@ form > .button_link:first-of-type, border: 1px solid #fcfcfc; border-radius: 2px; cursor: pointer; - /*display: block !important;*/ overflow: hidden; padding: .25em; width: 95%; } +.compact_categories #edit_entry_category .form_check label { + display: block !important; +} + .mfp-content #edit_entry_category .form_check input[type="checkbox"] { display: none !important; visibility: hidden; @@ -2919,9 +2931,9 @@ img.mfp-img { margin: 0 0 0 .4em; } - /*.mfp-content #edit_entry_category .form_check { + .compact_categories #edit_entry_category .form_check { width: 25%; - }*/ + } #meta_data > div, #template_options fieldset legend, @@ -3273,9 +3285,9 @@ img.mfp-img { width: 73%; } - /*.mfp-content #edit_entry_category .form_check { + .compact_categories #edit_entry_category .form_check { width: 20%; - }*/ + } .installer #content { float: none;