From 6146ba4eb1fa3650a43c789a98026d7af4b5e317 Mon Sep 17 00:00:00 2001 From: Ryan Cramer Date: Tue, 9 Mar 2021 11:39:08 -0500 Subject: [PATCH] Remove ProcessPageEdit CSS rules that no longer appear to be applicable --- .../ProcessPageEdit/ProcessPageEdit.css | 1 + .../ProcessPageEdit/ProcessPageEdit.scss | 128 ++++++++---------- 2 files changed, 57 insertions(+), 72 deletions(-) create mode 100644 wire/modules/Process/ProcessPageEdit/ProcessPageEdit.css diff --git a/wire/modules/Process/ProcessPageEdit/ProcessPageEdit.css b/wire/modules/Process/ProcessPageEdit/ProcessPageEdit.css new file mode 100644 index 00000000..a605f468 --- /dev/null +++ b/wire/modules/Process/ProcessPageEdit/ProcessPageEdit.css @@ -0,0 +1 @@ +#ProcessPageEditContent+ul.Inputfields{clear:both}.ProcessPageEditDelete .pw-button-dropdown-toggle,.ProcessPageEditDelete #submit_publish,.ProcessPageEditDelete #submit_save_unpublished,.ProcessPageEditDelete #submit_save,.ProcessPageEditDelete #submit_save_top{display:none}#PageIDIndicator{display:none}#_ProcessPageEditView{padding-right:0 !important}#_ProcessPageEditViewDropdownToggle{cursor:pointer;padding-left:8px;padding-right:8px;text-decoration:none} diff --git a/wire/modules/Process/ProcessPageEdit/ProcessPageEdit.scss b/wire/modules/Process/ProcessPageEdit/ProcessPageEdit.scss index 7606c932..5a8a6c8f 100644 --- a/wire/modules/Process/ProcessPageEdit/ProcessPageEdit.scss +++ b/wire/modules/Process/ProcessPageEdit/ProcessPageEdit.scss @@ -1,95 +1,31 @@ -#status li { - display: inline; - margin-right: 0.5em; -} - -#PageEditTabs { - margin: 0 0 1em 0; -} - -/** - * Hide the edit/view/move actions for first (current) page since they aren't applicable in this context - * - */ -#ProcessPageEditChildren .PageListRoot > .PageList > .PageListItemOpen .PageListActionEdit, -#ProcessPageEditChildren .PageListRoot > .PageList > .PageListItemOpen .PageListActionView, -#ProcessPageEditChildren .PageListRoot > .PageList > .PageListItemOpen .PageListActionMove { - display: none !important; -} - -#wrap_AddPageBtn, -#wrap_AddPageBtn .InputfieldContent { - float: none; -} - -/** - * Provide an obvious left margin for the parent page selector list - * - */ -.InputfieldPageListSelect .PageListRoot > .PageList { - margin-left: 2em; -} - - -/** - * Position the submit buttons horizontal to each other by making them inline - * - */ - -.Inputfields .InputfieldSubmit, -.Inputfields .InputfieldSubmit .ui-widget-content { - display: inline; -} - -/** - * Alternative to the above, float teh publish button left for side-by-side buttons - * - */ -#submit_publish { - float: left; -} - /** * Ensures submit button doesn't end up floated (related to GitHub issue #95) * */ - #ProcessPageEditContent + ul.Inputfields { clear: both; } - /** * Don't show the save buttons when on the delete tab * * This works because WireTabs adds class names equal to the ID of the selected tab to the tab target container * */ -.ProcessPageEditDelete .pw-button-dropdown-toggle, -.ProcessPageEditDelete #submit_publish, -.ProcessPageEditDelete #submit_save_unpublished, -.ProcessPageEditDelete #submit_save, -.ProcessPageEditDelete #submit_save_top { - display: none; +.ProcessPageEditDelete { + .pw-button-dropdown-toggle, + #submit_publish, + #submit_save_unpublished, + #submit_save, + #submit_save_top { + display: none; + } } #PageIDIndicator { - position: absolute; - right: 0; - top: 0; - margin: 0; - padding: 2px 4px; - color: #999; display: none; } -#submit_save_top { - position: absolute; - right: 0; - margin: 0; - top: 0; -} - #_ProcessPageEditView { padding-right: 0 !important; } @@ -101,3 +37,51 @@ text-decoration: none; } +/* +Styles that no longer appear to be applicable, but kept in comments temporarily just in case + +#PageEditTabs { + margin: 0 0 1em 0; +} + +#wrap_AddPageBtn, +#wrap_AddPageBtn .InputfieldContent { + float: none; +} + +// Provide an obvious left margin for the parent page selector list +.InputfieldPageListSelect .PageListRoot > .PageList { + margin-left: 2em; +} + +// Position the submit buttons horizontal to each other by making them inline +.Inputfields .InputfieldSubmit, +.Inputfields .InputfieldSubmit .ui-widget-content { + display: inline; +} + +// Alternative to the above, float the publish button left for side-by-side buttons +#submit_publish { + float: left; +} + + // Hide the edit/view/move actions for first (current) page since they aren't applicable in this context +#ProcessPageEditChildren .PageListRoot > .PageList > .PageListItemOpen { + .PageListActionEdit, + .PageListActionView, + .PageListActionMove { + display: none !important; + } +} +#status li { + display: inline; + margin-right: 0.5em; +} +#submit_save_top { + position: absolute; + right: 0; + margin: 0; + top: 0; +} +*/ +