1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-13 18:24:57 +02:00

Remove ProcessPageEdit CSS rules that no longer appear to be applicable

This commit is contained in:
Ryan Cramer
2021-03-09 11:39:08 -05:00
parent 30dac48646
commit 6146ba4eb1
2 changed files with 57 additions and 72 deletions

View File

@@ -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}

View File

@@ -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;
}
*/