| 1 |
/** |
| 2 |
* Styling for the jQuery UI dialog used by Post Snippets |
| 3 |
* |
| 4 |
* @version 2.0 |
| 5 |
* @since Post Snippets 1.7.1 |
| 6 |
*/ |
| 7 |
|
| 8 |
|
| 9 |
button.link_style_button{ |
| 10 |
color: #2271b1; |
| 11 |
background: none!important; |
| 12 |
border: none; |
| 13 |
padding: 0!important; |
| 14 |
/*optional*/ |
| 15 |
/* font-family: arial, sans-serif; */ |
| 16 |
/*input has OS specific font-family*/ |
| 17 |
/* color: #069; */ |
| 18 |
/* text-decoration: underline; */ |
| 19 |
cursor: pointer; |
| 20 |
} |
| 21 |
|
| 22 |
button.link_style_button.red{ |
| 23 |
color: #b32d2e; |
| 24 |
} |
| 25 |
|
| 26 |
|
| 27 |
h4.all_snippets_heading{ |
| 28 |
|
| 29 |
display: inline-block; |
| 30 |
margin-right: 5px; |
| 31 |
font-size: 23px; |
| 32 |
font-weight: 400; |
| 33 |
margin: 0; |
| 34 |
padding: 9px 0 4px 0; |
| 35 |
line-height: 1.3; |
| 36 |
|
| 37 |
} |
| 38 |
|
| 39 |
/* input#pspro_edit_shotcode_text[type=text]{ |
| 40 |
margin-bottom: 1rem; |
| 41 |
} */ |
| 42 |
input#pspro_edit_shotcode_text{ |
| 43 |
margin-bottom: 1rem; |
| 44 |
} |
| 45 |
|
| 46 |
div#pspro_edit_shortcode_copied{ |
| 47 |
display: none; |
| 48 |
background-color: #dbdbdb; |
| 49 |
width: 100%; |
| 50 |
height: 3rem; |
| 51 |
text-align: center; |
| 52 |
position: absolute; |
| 53 |
top: 6rem; |
| 54 |
right: 0; |
| 55 |
left: 0; |
| 56 |
border-radius: 0.5rem; |
| 57 |
|
| 58 |
} |
| 59 |
div span#pspro_edit_shortcode_copied_text{ |
| 60 |
color: black; |
| 61 |
position: relative; |
| 62 |
top: 25%; |
| 63 |
font-weight: 600; |
| 64 |
font-size: medium; |
| 65 |
|
| 66 |
|
| 67 |
} |
| 68 |
|
| 69 |
|
| 70 |
.CodeMirror-sizer.post-snippets-edit:before { |
| 71 |
color: #bbb; |
| 72 |
content: "<?php"; |
| 73 |
display: block; |
| 74 |
padding-bottom: 6px; |
| 75 |
} |
| 76 |
.CodeMirror-sizer.post-snippets-edit.php-not-selected:before { |
| 77 |
display: none; |
| 78 |
} |
| 79 |
.CodeMirror-sizer.post-snippets-edit-js:before { |
| 80 |
color: #bbb; |
| 81 |
content: "<script type=\"text/javascript\">"; |
| 82 |
display: block; |
| 83 |
padding-bottom: 6px; |
| 84 |
} |
| 85 |
.CodeMirror-sizer.post-snippets-edit-js:after { |
| 86 |
color: #bbb; |
| 87 |
content: "</script>"; |
| 88 |
display: block; |
| 89 |
} |
| 90 |
.CodeMirror-sizer.post-snippets-edit-css:before { |
| 91 |
color: #bbb; |
| 92 |
content: "<style type=\"text/css\">"; |
| 93 |
display: block; |
| 94 |
padding-bottom: 6px; |
| 95 |
} |
| 96 |
.CodeMirror-sizer.post-snippets-edit-css:after { |
| 97 |
color: #bbb; |
| 98 |
content: "</style>"; |
| 99 |
display: block; |
| 100 |
} |
| 101 |
|
| 102 |
|
| 103 |
/* a.ps_all_snippets_add{ |
| 104 |
margin-left: 4px; |
| 105 |
padding: 4px 8px; |
| 106 |
position: relative; |
| 107 |
top: -3px; |
| 108 |
text-decoration: none; |
| 109 |
border: 1px solid #2271b1; |
| 110 |
border-radius: 2px; |
| 111 |
text-shadow: none; |
| 112 |
font-weight: 600; |
| 113 |
font-size: 13px; |
| 114 |
line-height: normal; |
| 115 |
color: #2271b1; |
| 116 |
background: #f6f7f7; |
| 117 |
cursor: pointer; |
| 118 |
} */ |
| 119 |
|
| 120 |
|
| 121 |
#post-snippets-tabs { |
| 122 |
/* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */ |
| 123 |
position: relative; |
| 124 |
padding: .2em; |
| 125 |
zoom: 1; |
| 126 |
} |
| 127 |
#post-snippets-tabs .ui-tabs-nav { |
| 128 |
margin: 0; |
| 129 |
padding: .2em .2em 0; |
| 130 |
|
| 131 |
/* Overrides */ |
| 132 |
background-color: #f9f9f9; |
| 133 |
border-bottom: 1px solid #dfdfdf; |
| 134 |
padding-bottom: 1px; |
| 135 |
} |
| 136 |
|
| 137 |
#post-snippets-tabs .ui-tabs-nav li { |
| 138 |
list-style: none; |
| 139 |
float: left; |
| 140 |
position: relative; |
| 141 |
top: 1px; |
| 142 |
margin: 0 .2em 1px 0; |
| 143 |
border-bottom: 0 !important; |
| 144 |
padding: 0; |
| 145 |
white-space: nowrap; |
| 146 |
} |
| 147 |
#post-snippets-tabs .ui-tabs-nav li a { |
| 148 |
float: left; |
| 149 |
padding: .5em 1em; |
| 150 |
text-decoration: none; |
| 151 |
|
| 152 |
/* Overrides */ |
| 153 |
border: 1px solid #dfdfdf; |
| 154 |
-webkit-border-radius: 3px; |
| 155 |
border-radius: 3px; |
| 156 |
} |
| 157 |
#post-snippets-tabs .ui-tabs-nav li.ui-tabs-selected { |
| 158 |
margin-bottom: 0; |
| 159 |
padding-bottom: 1px; |
| 160 |
|
| 161 |
/* Overrides */ |
| 162 |
background-color: #fff; |
| 163 |
padding-bottom: 0; |
| 164 |
} |
| 165 |
#post-snippets-tabs .ui-tabs-nav li.ui-tabs-selected a, |
| 166 |
#post-snippets-tabs .ui-tabs-nav li.ui-state-disabled a, |
| 167 |
#post-snippets-tabs .ui-tabs-nav li.ui-state-processing a { |
| 168 |
cursor: text; |
| 169 |
} |
| 170 |
#post-snippets-tabs .ui-tabs-nav li a, |
| 171 |
#post-snippets-tabs.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-selected a { |
| 172 |
/* first selector in group seems obsolete, but required to overcome bug in Opera applying cursor: text overall if defined elsewhere... */ |
| 173 |
cursor: pointer; |
| 174 |
} |
| 175 |
#post-snippets-tabs .ui-tabs-panel { |
| 176 |
display: block; |
| 177 |
border-width: 0; |
| 178 |
padding: 1em 1.4em; |
| 179 |
background: none; |
| 180 |
} |
| 181 |
#post-snippets-tabs .ui-tabs-hide { |
| 182 |
display: none !important; |
| 183 |
} |
| 184 |
|
| 185 |
|
| 186 |
/** Fix for when editors (TinyMCE Advanced) stack above the PS dialog **/ |
| 187 |
.ui-dialog { z-index: 10000000 !important ;} |
| 188 |
|
| 189 |
#post-snippets-dialog label { |
| 190 |
width: 60px; |
| 191 |
/* display: inline-block; */ |
| 192 |
} |
| 193 |
|
| 194 |
.post-snippets-invalid { |
| 195 |
background-color: #ffaaaa !important; |
| 196 |
border: 1px solid #ff0000 !important; |
| 197 |
} |
| 198 |
|
| 199 |
.post-snippets-documentation-note { |
| 200 |
width: 98%; |
| 201 |
text-align: right; |
| 202 |
} |
| 203 |
.post-snippets-table .check-column{ |
| 204 |
padding: 8px 10px !important; |
| 205 |
} |
| 206 |
.post-snippets{ |
| 207 |
margin-bottom: 20px; |
| 208 |
margin-top: 10px; |
| 209 |
} |
| 210 |
.post-snippets-table a:focus, |
| 211 |
.post-snippets a:focus{ |
| 212 |
box-shadow: none !important; |
| 213 |
border:none !important; |
| 214 |
} |
| 215 |
|
| 216 |
.post-snippets-list-empty p { |
| 217 |
background: #efefef; |
| 218 |
border: 1px solid #d8d6d6; |
| 219 |
text-align: center; |
| 220 |
font-size: 25px; |
| 221 |
padding: 35px 150px; |
| 222 |
margin: 10px; |
| 223 |
} |
| 224 |
|
| 225 |
.post-snippets-item { |
| 226 |
background: #efefef; |
| 227 |
margin-bottom: 10px; |
| 228 |
border: 1px solid #d8d6d6; |
| 229 |
} |
| 230 |
.post-snippets-item .dashicons-arrow-up{ |
| 231 |
display: none; |
| 232 |
} |
| 233 |
.post-snippets-item .text-left input[type="checkbox"]{ |
| 234 |
margin-left: 8px; |
| 235 |
/*margin-right: 50px;*/ |
| 236 |
} |
| 237 |
.post-snippets-item.open .dashicons-arrow-up{ |
| 238 |
display: inline-block; |
| 239 |
} |
| 240 |
.post-snippets-item.open .dashicons-arrow-down{ |
| 241 |
display: none; |
| 242 |
} |
| 243 |
.post-snippets-item.open .post-snippets-data{ |
| 244 |
display: block; |
| 245 |
} |
| 246 |
.post-snippets-item input.post-snippet-title{ |
| 247 |
display: none; |
| 248 |
} |
| 249 |
.post-snippets-item .save-title{ |
| 250 |
display: none; |
| 251 |
} |
| 252 |
.post-snippets-item.edit input.post-snippet-title{ |
| 253 |
display: inline-block; |
| 254 |
} |
| 255 |
.post-snippets-item.edit .save-title{ |
| 256 |
display: inline-block; |
| 257 |
} |
| 258 |
.post-snippets-item.edit span.post-snippet-title{ |
| 259 |
display: none; |
| 260 |
} |
| 261 |
.post-snippets-item.edit .edit-title{ |
| 262 |
display: none; |
| 263 |
} |
| 264 |
.post-snippets-data{ |
| 265 |
width: 100%; |
| 266 |
background: #fff; |
| 267 |
/*padding: 10px 10px;*/ |
| 268 |
} |
| 269 |
.post-snippets-data-cell{ |
| 270 |
display: inline-block; |
| 271 |
vertical-align: top; |
| 272 |
padding: 10px; |
| 273 |
text-align: left; |
| 274 |
} |
| 275 |
.post-snippets-toolbar{ |
| 276 |
padding: 8px 10px; |
| 277 |
overflow: hidden; |
| 278 |
} |
| 279 |
.post-snippets-toolbar .edit-title, |
| 280 |
.post-snippets-toolbar .save-title{ |
| 281 |
text-decoration: none; |
| 282 |
color: inherit; |
| 283 |
} |
| 284 |
.post-snippets-data{ |
| 285 |
display: none; |
| 286 |
} |
| 287 |
.post-snippets-toolbar div{ |
| 288 |
display: inline-block; |
| 289 |
text-align: left; |
| 290 |
font-weight: bold; |
| 291 |
float: left; |
| 292 |
width: 70%; |
| 293 |
} |
| 294 |
|
| 295 |
.post-snippets-toolbar div:last-child{ |
| 296 |
text-align: right; |
| 297 |
width: 24%; |
| 298 |
float: right; |
| 299 |
} |
| 300 |
.post-snippets-toolbar div:last-child a{ |
| 301 |
color: inherit; |
| 302 |
text-decoration: none; |
| 303 |
} |
| 304 |
.post-snippets-data .post-snippets-data-cell{ |
| 305 |
width: 180px; |
| 306 |
} |
| 307 |
.post-snippets-data .post-snippets-data-cell:first-child{ |
| 308 |
width: calc(100% - 250px); |
| 309 |
} |
| 310 |
.post-snippets-data .post-snippets-data-cell:last-child{ |
| 311 |
width: 180px; |
| 312 |
} |
| 313 |
.handle{ |
| 314 |
cursor: move; |
| 315 |
} |
| 316 |
.mt-20{ |
| 317 |
margin-top: 20px !important; |
| 318 |
} |
| 319 |
.mb-20{ |
| 320 |
margin-bottom: 20px !important; |
| 321 |
} |
| 322 |
.text-right{ |
| 323 |
text-align: right !important; |
| 324 |
} |
| 325 |
.post-snippets-wrap input[type="checkbox"]{ |
| 326 |
margin: 0 20px 0 0 !important; |
| 327 |
} |
| 328 |
.expand-collapse .collapse-all{ |
| 329 |
display: none; |
| 330 |
} |
| 331 |
.expand-collapse.expanded .collapse-all{ |
| 332 |
display: inline-block; |
| 333 |
} |
| 334 |
.expand-collapse.expanded .expand-all{ |
| 335 |
display: none; |
| 336 |
} |
| 337 |
.dashed-placeholder { |
| 338 |
border: 1px dashed #999; |
| 339 |
width: 100%; |
| 340 |
height: 38px; |
| 341 |
margin: 10px 0; |
| 342 |
} |
| 343 |
.post-snippets-toolbar-right a { |
| 344 |
border: 1px solid #ddd; |
| 345 |
border-radius: 4px; |
| 346 |
font-size: 14px; |
| 347 |
width: 24px; |
| 348 |
height: 24px; |
| 349 |
line-height: 27px; |
| 350 |
background: #fafafa; |
| 351 |
text-align: center; |
| 352 |
display: inline-block; |
| 353 |
margin-left: 2px; |
| 354 |
} |
| 355 |
.ps-description { |
| 356 |
font-weight: normal; |
| 357 |
font-size:12px; |
| 358 |
} |
| 359 |
.post-snippets-toolbar .edit-title { |
| 360 |
display: none; |
| 361 |
} |
| 362 |
.post-snippets-toolbar:hover .edit-title { |
| 363 |
display: inline-block; |
| 364 |
} |
| 365 |
.ql-snow .ql-formats { |
| 366 |
margin-right: 8px; |
| 367 |
border-right: 1px solid #ccc; |
| 368 |
padding-right: 9px; |
| 369 |
} |
| 370 |
|
| 371 |
#sync-update-confirm b { |
| 372 |
|
| 373 |
} |
| 374 |
#sync-update-confirm textarea { |
| 375 |
width: 100%; |
| 376 |
display: block; |
| 377 |
height: 80px; |
| 378 |
} |
| 379 |
#sp-loading { |
| 380 |
position: fixed; |
| 381 |
top: 0; |
| 382 |
left: 0; |
| 383 |
right: 0; |
| 384 |
bottom: 0; |
| 385 |
background: rgba(0, 0, 0, .8); |
| 386 |
z-index: 999; |
| 387 |
} |
| 388 |
#sp-loading span { |
| 389 |
position: fixed; |
| 390 |
top: 50%; |
| 391 |
left: 50%; |
| 392 |
margin:-30px 0 0 -30px; |
| 393 |
background: url('img/loading.svg'); |
| 394 |
background-size: cover; |
| 395 |
width: 60px; |
| 396 |
height: 60px; |
| 397 |
} |
| 398 |
#sync-down-list .ps-icon-col { |
| 399 |
width: 20px; |
| 400 |
} |
| 401 |
#sync-down-list textarea { |
| 402 |
min-width: 300px; |
| 403 |
height: 60px; |
| 404 |
font-family: monospace, courier; |
| 405 |
width: 100%; |
| 406 |
} |
| 407 |
#adminmenu .toplevel_page_post-snippets img { |
| 408 |
padding-top: 10px; |
| 409 |
} |
| 410 |
|
| 411 |
.no-select{ |
| 412 |
color: #bbb !important; |
| 413 |
} |
| 414 |
|
| 415 |
input.pspro_edit_js_radio { |
| 416 |
margin-bottom: 0.5rem; |
| 417 |
margin-right: 0; |
| 418 |
} |
| 419 |
|
| 420 |
label.pspro_edit_js_label { |
| 421 |
display: inline-block; |
| 422 |
margin-top: -0.7rem; |
| 423 |
} |
| 424 |
|
| 425 |
div.pspro_edit_display_flex { |
| 426 |
display: flex; |
| 427 |
flex-wrap: wrap; |
| 428 |
} |
| 429 |
|
| 430 |
input#pspro_edit_preview_text { |
| 431 |
flex-grow: 1; |
| 432 |
margin-right: 1rem; |
| 433 |
} |
| 434 |
|
| 435 |
button#pspro_edit_preview_button { |
| 436 |
padding-right: 1rem; |
| 437 |
padding-left: 1rem; |
| 438 |
} |
| 439 |
|
| 440 |
select#pspro_edit_location_select { |
| 441 |
margin-right: 5px; |
| 442 |
} |
| 443 |
|
| 444 |
select#pspro_edit_page_select { |
| 445 |
flex-grow: 0.6; |
| 446 |
margin-right: 5px; |
| 447 |
} |
| 448 |
|
| 449 |
/* .CodeMirror-sizer:before { |
| 450 |
color: #bbb; |
| 451 |
content: "<?php"; |
| 452 |
display: block; |
| 453 |
padding-bottom: 6px; |
| 454 |
} */ |