forked from kongondo/MenuBuilder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProcessMenuBuilder.css
191 lines (173 loc) · 7.52 KB
/
ProcessMenuBuilder.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
/**
*
* CSS styles for ProcessMenuBuilder.
*
* @author Francis Otieno (Kongondo) <[email protected]>
*
* https://github.com/kongondo/MenuBuilder
* Created March 2015
*
*/
/** html **/
/* Prevent "jump" on shorter pages */
html {overflow-y:scroll;}
/** div **/
/* Drag n Drop menu items */
div#menu_sortable_wrapper {margin-bottom: 3em !important;}
li.mjs-nestedSortable-collapsed.mjs-nestedSortable-hovering div {border-color: #999; background: #FAFAFA;}
/* Menu item drag n drop handle (div) as used by nestedSortable */
div.handle {
background: #F0F0F0 !important;
width: 100%;
border: 1px solid #DFDFDF;/*ligh grey*/
margin-bottom: 3px;
cursor: move !important;
padding: 5px;
}
/* Menu settings div */
div.settings {
/*display: inline-block;*/
display: none;
margin-bottom: 10px;
width:100%;
background: #F9F9F9;/*light grey*/
border: 1px solid #DFDFDF;/*ligh grey*/
position: relative;
padding-bottom: 1em;
}
div.menu_edit_language_selector {height: 25px;}
div.menu_language_wrapper {position: relative; min-height: 135px;}
div.menu_language {position: absolute; top: 0; left: 0; width: 100%; display: none;}
div.menu_language.menu_language_active {display: block;}
/** Add page menu itemscustom inputs + header labels **/
/* div#menu_items_headers_template {display: none;} */
div#menu_items_headers:hover {cursor: auto; background: none !important;}
div#menu_items_headers span {
margin: 1.5em 0 0.5em 0.1em !important;
display: inline-block;
width: 20%!important;
font-weight: bold;
}
div#menu_items_headers span#asm_title, div#menu_items_headers span#ac_title {width: 22% !important;}
div#menu_items_headers span#asm_children, div#menu_items_headers span#ac_children {width: 15.5%!important;}
div#menu_items_headers span#asm_level, div#menu_items_headers span#ac_level {width: 15%!important;}
/** span **/
span.limit-select {float: right;}
span#add_menu_items {display: block; padding: 0.3em 0 1.375em;}
/* only for the Auocomplete field */
li#menu_items_headers span {
margin: 1.5em 0 0.5em 0.1em !important;
display: inline-block;
width: 20%!important;
font-weight: bold;
}
li#menu_items_headers span#asm_title, li#menu_items_headers span#ac_title {width: 22% !important;}
li#menu_items_headers span#asm_children, li#menu_items_headers span#ac_children {width: 15.5%!important;}
li#menu_items_headers span#asm_level, li#menu_items_headers span#ac_level {width: 15%!important;}
span.asmListItemLabel, ol#item_addpages_items span.itemLabel {width: 20%; display: inline-block;}
span.asmMB {cursor: move;}/* defined in jquery.asmselect-mb.js */
span.menu_item_disabled {text-decoration: line-through;}
span.menu_language_selector {
display: inline-block;
margin-top: 5px;
margin-right: 5px;
font-size: 85%;
cursor: pointer;
padding: 0 0.25em;
}
span.menu_language_selector:first-child {margin-left: 1em;}
span.menu_language_active{background-color: #d2dce6;}
div.handle span.item_title_main {margin-left: 0.5em; cursor: pointer; font-size: 0.85em;}
div.handle span.item_type_wrapper {position: absolute; right: 0; top: -1px;}
/* label on draggable div handle showing menu type (Page or Custom */
div.handle span.item_type {font-size: 0.785em; color: #9A9A9A; margin-right: 0.5em;}
div.settings span.include_children {display: block; margin: 0.5em 0 0 1em; font-style: italic;}
span.unpublished, span.locked {color: red;}/* for highlighting some text */
/** form **/
#menu_save, #menu_save_exit {float: left;}
/** input **/
span.asmMB input,
ol#item_addpages_items span.acMB input,
ol#item_addpages_items span.plsMB input {margin: 0 !important; text-align: bottom; padding: 0 0.2em !important;}
ol#item_addpages_items span.acMB input.ac_itemid,
span.asmMB input.asm_itemid,ol#item_addpages_items span.plsMB input.pls_itemid {width: 20% !important;}
ol#item_addpages_items span.acMB input.ac_itemclass,
span.asmMB input.asm_itemclass,ol#item_addpages_items span.plsMB input.pls_itemclass {width: 20% !important;}
ol#item_addpages_items span.acMB select.ac_include_children,
span.asmMB select.asm_include_children,
ol#item_addpages_items span.plsMB select.pls_include_children {
width: 15% !important;
}
ol#item_addpages_items span.acMB input.ac_mb_max_level,
span.asmMB input.asm_mb_max_level,
ol#item_addpages_items span.plsMB input.pls_mb_max_level {
width: 8% !important;
}
span.asmMB input {margin: 1px !important;}/*override above*/
table.menu_add_custom_items_table input.new_custom {padding: 0 0.3em !important;}
div.settings input[type=text].menu_settings {width:90%; margin-left: 1em !important; padding: 0.45em 0 0.45em 0.35em!important;}
div.settings input[type=text].readonly {color: #646464 !important; background:#EBEBEB !important;}
div.settings input[type=checkbox].menu_settings, div.settings input[type=checkbox].menu_disabled{margin-right: 0.3em; vertical-align: middle;}
div.settings select.include_children, div.settings label.include_children input[type='text']{vertical-align: middle; float: left;}
div.settings select.include_children {margin: 0.3em 1em;}
div.settings label.include_children input[type='text'] {width:12%; margin-right: 0.5em; height: 1.7em;}
.hide {display: none !important;}
/** label **/
div#menu_sortable_wrapper label {
margin-left: 1em !important;
padding-top: 0.75em !important;
font-style:italic;
color: #2F4248;
display: block;
font-size: 0.8em;
}
div.settings label.include_children {font-style: normal !important; padding-top: 0 !important; margin-top: -0.3em;}
/** button **/
/**
* 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
*/
.ProcessMenuBuilderDelete #menu_save, .ProcessMenuBuilderDelete #menu_save_exit {display: none;}
/* @note: PW3.x [via JS]*/
#menu_save.hide, #menu_save_exit.hide {display: none;}
a#_ProcessMenuBuilderDelete.pw-active ~ #menu_save_exit {display: none;}
/** list **/
li.asmListItem {cursor: move;}/* defined in jquery.asmselect-mb.js */
.mjs-nestedSortable-error {background: #FBE3E4; border-color: transparent;}
ol#sortable_main, ol#sortable_main ol {margin: 5px !important; list-style-type: none;}
ol#sortable_main li {list-style: none; width:27em;}
.sortable li.mjs-nestedSortable-collapsed > ol {display: none;}
ol#sortable_main li.menu_item {
display: block;
position: relative;
margin: 0 0 0 2em;
padding: 0;
min-height: 20px;
font-size: 1em;
line-height: 20px;
}
/*hide the add menu items wrappers on load*/
li#wrap_item_addpages, li#item_addcustom, li#wrap_item_addselector {display: none;}
/** anchor **/
/* Add custom menu items table */
span#add_menu_items a#add_custom_menu_items, span#add_menu_items a#add_selector_menu_items {margin-left: 30px;}
/* Anchor on click remove all menus */
div#menu_sortable_wrapper a#remove_menus {display: block; margin: 0 0 0.5em;}
/* Anchor for onclick remove the associated menu item */
/* div.handle a.remove_menu {} */
/** i **/
table.menu_add_custom_items_table i.fa-trash{position: relative; top: -5px; right: 3px;}
/* Menu item settings' reveal/hide icon in drag n drop div handle */
div.handle i.fa-caret-down, div.handle i.fa-caret-up {position: relative; float: left;}
div.handle i.fa-trash {
position: relative;
border: none;
padding: 0.6em;
/* margin-right: -2.125em; */
top: 1px;
}
/* nestedSortable styles */
.placeholder {outline: 1px dashed #4183C4;}
.notice {color: #C33;}
/* duplicate input */
#MenuBuilderEdit .Inputfields select#asmSelect0{display: none}