admin.css
1407 lines
| 1 | :root { |
| 2 | --advads-ci-lightblue: #0474a2; |
| 3 | --advads-ci-darkblue: #1B183A; |
| 4 | } |
| 5 | /** |
| 6 | * DASHBOARD WIDGET |
| 7 | */ |
| 8 | #advads_dashboard_widget h4 { |
| 9 | margin-top: .5em; |
| 10 | } |
| 11 | #advads_dashboard_widget a.rsswidget { |
| 12 | font-weight: 400; |
| 13 | } |
| 14 | #advads_dashboard_widget .rss-widget ul li { |
| 15 | margin-bottom: 6px; |
| 16 | } |
| 17 | |
| 18 | /** |
| 19 | * OVERVIEW PAGE |
| 20 | */ |
| 21 | .toplevel_page_advanced-ads #dashboard-widgets .postbox-container { width: 100% !important; } |
| 22 | .toplevel_page_advanced-ads #dashboard-widgets .postbox-container .postbox { float: left; width: 23%; min-width: 310px; margin-right: 1%; } |
| 23 | /* .toplevel_page_advanced-ads #dashboard-widgets .postbox-container .postbox + .postbox { margin-left: 1%; } */ |
| 24 | .toplevel_page_advanced-ads #dashboard-widgets .postbox-container .postbox ul.list { list-style: inside; } |
| 25 | .toplevel_page_advanced-ads .metabox-holder .postbox-container .empty-container { display: none; } |
| 26 | #advads-overview { max-width: 1000px; } |
| 27 | #advads-overview .postbox.position-left { width: 49%; float: left } |
| 28 | #advads-overview .postbox.position-right { width: 49%; float: right } |
| 29 | #advads-overview .postbox.position-full { clear: both; float: none; } |
| 30 | #advads-overview #advads_overview_addons ul, #advads-overview #advads_overview_addons ul li { list-style: disc inside; } |
| 31 | #advads-overview #advads_overview_addons table th { vertical-align: top; font-weight: bold; max-width: 300px; position: relative; top: 0; } |
| 32 | #advads-overview #advads_overview_addons table tr.recommended th:before { position:absolute; top: 2px; left: 10px; font-size: .9em; content: 'Recommended'; color: green; font-weight: normal; } |
| 33 | #advads-overview #advads_overview_addons table tr.free th:before { position:absolute; top: 2px; left: 10px; font-size: .9em; content: 'Free'; color: green; } |
| 34 | #advads-overview #advads_overview_addons table tr.recommended th, |
| 35 | #advads-overview #advads_overview_addons table tr.free th { padding-top: 20px; } |
| 36 | #advads_overview_news .button-primary { margin-left: 0; } |
| 37 | #advads_overview_notices .main { position: relative; top: 0; left: 0; } |
| 38 | #advads_overview_notices .advads-loader { position: absolute; top: 0; left: 0; right: 0; bottom: 0; height: 100%; width: 100%; margin: 0 auto; opacity: 0.5; background-color: #fff; background-position: center; } |
| 39 | #advads_overview_notices #advads-support-callout p { clear: both; margin-bottom: 0; } |
| 40 | |
| 41 | /** |
| 42 | * AD LIST PAGE |
| 43 | */ |
| 44 | .ad_icon { max-width: 80px; width: 80px; } |
| 45 | .advads-ad-list-tooltip-content { display: none; } |
| 46 | .advads-ad-size { white-space: nowrap; } |
| 47 | .advads-bulk-edit-fields td { vertical-align: middle; } |
| 48 | |
| 49 | /** |
| 50 | * AD EDIT PAGE |
| 51 | */ |
| 52 | h2.hndle .advads-hndlelinks, #advads_overview_adsense_stats .advads-hndlelinks { display: inline-block; margin-left: 1em; } |
| 53 | h2.hndle .advads-hndlelinks a, #advads_overview_adsense_stats .advads-hndlelinks a { text-decoration: none; } |
| 54 | h2.hndle .advads-hndlelinks a + a, #advads_overview_adsense_stats .advads-hndlelinks a + a { margin-left: 1em; } |
| 55 | .advads-video-link-container { text-align: center; } |
| 56 | .advads-ad-metabox { position: relative; top: 0; left: 0; padding: 2em; background: #fff; } |
| 57 | .advads-ad-metabox h2 { font-weight: bold; color: #0074a2; font-size: 1.6em; margin: 0 0 1em; } |
| 58 | |
| 59 | #advads-ad-injection-box hr { clear: both; } |
| 60 | #advads-ad-injection-box div pre input { width: 30em; } |
| 61 | #advads-ad-injection-box .ui-accordion .ui-accordion-header { margin-top: 0; border-radius: 0; } |
| 62 | #advads-ad-injection-box .ui-accordion .ui-accordion-content { border-radius: 0; } |
| 63 | #advads-ad-injection-box .advads-ad-injection-box-button-wrap { width: 100px; float: left; margin-right: 10px; margin-bottom: 10px; padding: 1px; text-align: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } |
| 64 | #advads-ad-injection-box .advads-ad-injection-box-button-wrap .button-primary { display: block; margin-bottom: 10px; padding: 0px; width: 100%; height: 75px; background-size: 100px 75px; font-size: 1.5em; text-indent: -9999px; border: solid 1px #0085ba; } |
| 65 | #advads-ad-injection-box .advads-ad-injection-box-button-wrap .button-primary { position: relative; box-shadow: 0px 0px 2px #0085ba; } |
| 66 | #advads-ad-injection-box .advads-ad-injection-box-button-wrap button:hover { background: #0085ba !important; color: #fff; text-indent: 0; white-space: normal; cursor: pointer; } |
| 67 | #advads-ad-injection-box input[type="number"] { width: 4.5em; } |
| 68 | |
| 69 | .advads-ad-injection-shortcode { width: 100%; border: none; background: #ededed; } |
| 70 | #advads-ad-injection-message-placement-created > p:first-child { font-size: 1.5em; } |
| 71 | .advads-pro-link { opacity: 0.5; } |
| 72 | .advads-pro-link:before { content: 'ADD-ON'; position: absolute; bottom: -4px; right: 2px; text-indent: 0; color: #000; text-shadow: none; font-weight: bold; font-size: .8em; } |
| 73 | .advads-pro-link:hover:before { text-indent: -9999px; } |
| 74 | .advads-ad-url { min-width: 300px; } |
| 75 | |
| 76 | .advads-metabox-notices { } |
| 77 | .advads-metabox-notices li { border: solid 1px #eee; margin: -1px 0 0; padding: 5px; } |
| 78 | .advads-metabox-notices a { color: inherit; } |
| 79 | .advads-metabox-notices .error { color: #dc3232; } |
| 80 | .advads-metabox-notices .warning, .advads-message-warning { color: #de8400; } |
| 81 | |
| 82 | .post-type-advanced_ads .misc-pub-visibility { |
| 83 | display: none; |
| 84 | } |
| 85 | |
| 86 | .post-type-advanced_ads #poststuff .meta-box-sortables .inside { |
| 87 | margin: 0; |
| 88 | padding: 0; |
| 89 | } |
| 90 | .post-type-advanced_ads .meta-box-sortables .inside > * { |
| 91 | margin: 20px 10px; |
| 92 | } |
| 93 | .post-type-advanced_ads .meta-box-sortables .inside h4 { |
| 94 | background: linear-gradient(to top, #ECECEC, #F9F9F9) repeat scroll 0 0 #F1F1F1; |
| 95 | font-size: 15px; |
| 96 | font-weight: 400; |
| 97 | line-height: 1; |
| 98 | margin: 0; |
| 99 | padding: 10px 10px 5px; |
| 100 | } |
| 101 | .post-type-advanced_ads #advads-ad-notes { float: none; overflow: hidden; } |
| 102 | .post-type-advanced_ads #advads-ad-notes p { cursor: pointer; margin-top: 0; font-style: italic; } |
| 103 | .post-type-advanced_ads #advads-ad-notes textarea { display: none; width: 100%; height: 10em; } |
| 104 | #advanced-ad-type .description { |
| 105 | display: block; |
| 106 | margin-left: 24px; |
| 107 | } |
| 108 | .post-type-advanced_ads #advanced_ad_content_others textarea { |
| 109 | width: 100%; |
| 110 | height: 20em; |
| 111 | } |
| 112 | |
| 113 | #advanced-ad-conditions { |
| 114 | text-align: left; |
| 115 | } |
| 116 | .post-type-advanced_ads h5 { font-size: 1.2em; margin: 1em 0 .5em; } |
| 117 | .advads-conditions-table label { margin-right: 1em; } |
| 118 | .advads-conditions-table td, .advads-conditions-table th { padding: 10px 0 10px 10px; } |
| 119 | .advads-conditions-table .advanced-ads-display-condition-set label { float: left; margin-right: -1px; } |
| 120 | .advads-conditions-table .advads-button { font-size: inherit; } |
| 121 | #advads-visitor-conditions-new select, |
| 122 | .advads-conditions-new select:first-letter { text-transform: uppercase; } |
| 123 | .advads-conditions-new select + .advads-loader { display: inline-block; vertical-align: middle; } |
| 124 | .advads-display-conditions-remove + h5 { display: inline-block; margin-top: 0; margin-left: 1em; } |
| 125 | |
| 126 | .advads-conditions-table { border-collapse: collapse; width: 100%; } |
| 127 | .advads-conditions-table > tbody > tr { background: #eee; } |
| 128 | .advads-conditions-table > tbody > tr > td:last-child { padding-right: 10px; } |
| 129 | .advads-conditions-table tr:first-child.advads-conditions-connector { display: none; } |
| 130 | .advads-conditions-table .advads-conditions-connector td { text-align: center; } |
| 131 | .advads-conditions-table > tbody > .advads-conditions-connector-and { background: none; } |
| 132 | .advads-conditions-connector label { |
| 133 | text-transform: uppercase; |
| 134 | background: #fff; |
| 135 | border: 1px solid #aaa; |
| 136 | color: #555; |
| 137 | margin-top: 10px; |
| 138 | margin-bottom: 10px; |
| 139 | } |
| 140 | .advads-conditions-type:first-letter { text-transform: uppercase; } |
| 141 | .advads-conditions-table .advads-conditions-connector .advads-error-message { display: none; } |
| 142 | |
| 143 | .post-type-advanced_ads #advads-ad-content-plain { width: 100%; } |
| 144 | .advads-conditions-single th { vertical-align: top; } |
| 145 | .advads-conditions-single { margin: 0; padding: 0 10px 0 0; line-height: 1em; } |
| 146 | select + .advads-conditions-single { display: inline-flex; flex-wrap: wrap; align-items: center; } |
| 147 | #advads-ad-display-conditions select { |
| 148 | margin-right: 10px; |
| 149 | } |
| 150 | #advads-ad-display-conditions .advads-condition-line-wrap select { |
| 151 | margin-right: 20px; |
| 152 | } |
| 153 | |
| 154 | .advads-conditions-new select { |
| 155 | text-transform: capitalize; |
| 156 | } |
| 157 | |
| 158 | .advads-conditions-single.disabled { display: none; opacity: .5; } |
| 159 | .advads-conditions-table .advads-conditions-single.advads-buttonset label { |
| 160 | margin: 0.5em 0.5em 0.5em 0; |
| 161 | padding-right: 0; |
| 162 | padding-left: 0.5em; |
| 163 | background: #f7f7f7; |
| 164 | height: 28px; |
| 165 | line-height: 26px; |
| 166 | color: #555; |
| 167 | font-family: inherit; |
| 168 | box-shadow: none; |
| 169 | border: 1px solid #ccc; |
| 170 | } |
| 171 | .advads-conditions-table .advads-conditions-single.advads-buttonset .advads-ui-state-active { border-color: #0074a2 !important; } |
| 172 | .advads-conditions-single.advads-buttonset label span { |
| 173 | margin: 0; |
| 174 | padding: 0; |
| 175 | line-height: inherit; |
| 176 | padding-left: 0.5em; |
| 177 | display: flex; |
| 178 | align-items: center; |
| 179 | } |
| 180 | .advads-conditions-single.advads-buttonset label span:after { |
| 181 | font-family: "dashicons"; |
| 182 | padding: 0; |
| 183 | width: 28px; |
| 184 | display: inline-block; |
| 185 | border-left: 1px solid #ccc; |
| 186 | margin-left: 1em; |
| 187 | height: 28px; |
| 188 | line-height: 30px; |
| 189 | text-align: center; |
| 190 | color: #ccc; |
| 191 | } |
| 192 | .advads-conditions-single.advads-buttonset label:not(.advads-ui-state-active) span:after { content: "\f159"; } |
| 193 | .advads-conditions-single.advads-buttonset label.advads-ui-state-active span:after { |
| 194 | content: "\f12a"; |
| 195 | color: white; |
| 196 | border-color: #0074a2; |
| 197 | } |
| 198 | .advads-conditions-not-selected.advads-notice-inline { |
| 199 | margin: 0; |
| 200 | } |
| 201 | .advads-conditions-single.advads-buttonset label.advads-ui-state-active:hover span:after { content: "\f153"; } |
| 202 | .advads-conditions-postids-show-search { margin-left: .5em !important; } |
| 203 | .advads-conditions-postids-list li { background: #F1F1F1; padding: 3px; } |
| 204 | .advads-conditions-postids-list .remove { margin-right: 1em; font-size: .9em; } |
| 205 | .advads-conditions-postids-autocomplete-suggestions li span.left { float: left; } |
| 206 | .advads-conditions-postids-autocomplete-suggestions li span.right { float: right; color: #aaa; font-size: .8em; } |
| 207 | |
| 208 | .advads-conditions-table td:nth-of-type(2) { |
| 209 | display: flex; |
| 210 | flex-wrap: wrap; |
| 211 | align-items: center; |
| 212 | gap: 10px; |
| 213 | } |
| 214 | |
| 215 | .advads-conditions-table td:nth-of-type(2) p.description { |
| 216 | flex-basis: 100%; |
| 217 | } |
| 218 | |
| 219 | .advads-conditions-table td:first-of-type { |
| 220 | text-transform: capitalize; |
| 221 | } |
| 222 | |
| 223 | .advads-conditions-table .advads-conditions-table-width-100 { |
| 224 | width: 100%; |
| 225 | } |
| 226 | |
| 227 | #ad-targeting-box h3, #ad-targeting-box table { margin-bottom: 10px; font-size: 1.1em; } |
| 228 | #ad-targeting-box legend { margin-bottom: 5px; font-weight: 500; } |
| 229 | #ad-targeting-box hr { margin-top: 25px; } |
| 230 | #advads-display-conditions, #advads-visitor-conditions { margin-top: 0; } |
| 231 | #ad-targeting-box .advads-conditions-terms-show-search { height: 22px; line-height: 22px; font-weight: bold; font-size: 1.5em; } |
| 232 | .advads-conditions-terms-search, .advads-conditions-authors-search { display: none; } |
| 233 | #advads-ad-usage .advads-usage input { width: 300px; } |
| 234 | .post-type-advanced_ads #ad-parameters-box .advads-ad-parameters-spinner { display: block; float: none; } |
| 235 | .post-type-advanced_ads #advanced-ads-ad-parameters-size label + label { margin-left: 1em; } |
| 236 | .post-type-advanced_ads #advanced-ads-ad-parameters-size input[type="number"] { width: 4.5em; margin-left: .5em; } |
| 237 | .post-type-advanced_ads #advanced-ad-output-position label + label { margin-left: 1em; } |
| 238 | .post-type-advanced_ads #advanced-ad-output-position img { border: 1px solid #ddd; padding: 2px; } |
| 239 | .post-type-advanced_ads #advanced-ad-output-margin input[type="number"] { width: 4.5em; } |
| 240 | .post-type-advanced_ads #advanced-ad-output-margin label + label { margin-left: 1em; } |
| 241 | #advanced-ads-ad-parameters { overflow: visible; } |
| 242 | |
| 243 | @media screen and (max-width: 782px) { |
| 244 | .advads-conditions-table .advads-conditions-single.advads-buttonset label { |
| 245 | height: 40px; |
| 246 | line-height: 36px; |
| 247 | } |
| 248 | |
| 249 | .advads-conditions-single.advads-buttonset label span:after { |
| 250 | height: 39px; |
| 251 | line-height: 40px; |
| 252 | } |
| 253 | } |
| 254 | |
| 255 | /* option lists */ |
| 256 | .advads-option-list { overflow: hidden; } |
| 257 | .advads-option-list > .label { display: block; padding: 10px; font-weight: bold; color: #444; text-align: left; font-size: 100%; } |
| 258 | .advads-option-list > .label:first-letter { text-transform: uppercase; } |
| 259 | .advads-option-list > .label + div { display: block; padding: 10px; } |
| 260 | .advads-option-list > .label + div.hidden { display: none; } |
| 261 | .advads-option-list > hr { clear: both; float: none; display: block; } |
| 262 | .advads-option-list div[style*="display: none"] + hr { display: none; } |
| 263 | |
| 264 | .advads-option { clear: both; float: none; display: block; overflow: hidden; } |
| 265 | .advads-option > span { display: block; float: left; width: 10em; padding: 10px; font-weight: bold; } |
| 266 | .advads-option > span:first-letter { text-transform: uppercase; } |
| 267 | .advads-option > span + div { padding: 10px; overflow: hidden; margin-left: 10em; } |
| 268 | .advads-option > span + div > label + input[type="radio"] { margin-left: 1em; } |
| 269 | .advads-option > span + div label + label { margin-left: 1em; } |
| 270 | .advads-option > span + div ul { margin: 0; } |
| 271 | .advads-option > span + div select { vertical-align: top; } |
| 272 | .advads-option > div > .description { max-width: 80%; } |
| 273 | .advads-option + .advads-option { margin-top: 20px; } |
| 274 | |
| 275 | .advads-placements-table .advads-option > span { padding: 0; } |
| 276 | .advads-placements-table .advads-option > span + div { padding: 0; } |
| 277 | |
| 278 | .advads-debug-output legend { text-decoration: underline; cursor: pointer; } |
| 279 | |
| 280 | .advads-timestamp { padding-top: 5px; line-height: 1.76923076; white-space: nowrap; } |
| 281 | .advads-timestamp p { margin: 8px 0 6px; } |
| 282 | .advads-timestamp input { text-align: center; } |
| 283 | .advads-timestamp select { font-size: 12px; } |
| 284 | .advads-timestamp .advads-jj, .advads-timestamp .advads-hh, .advads-timestamp .advads-mn { width: 2em; } |
| 285 | .advads-timestamp .advads-aa, .advads-timestamp .advads-jj, .advads-timestamp .advads-hh, .advads-timestamp .advads-mn { padding: 6px 1px; font-size: 12px; line-height: 1.16666666; } |
| 286 | .advads-timestamp .advads-aa { width: 3.4em; } |
| 287 | |
| 288 | #advads-url, |
| 289 | #advads-image-url, |
| 290 | #advads-image-title, |
| 291 | #advads-image-alt { width: 80%; } |
| 292 | .advads_image_upload { font-weight: normal; } |
| 293 | #advads-image-edit-link { text-decoration: none; vertical-align: top; } |
| 294 | #advads-image-preview { display: inline-block; max-width: calc(100% - 2em) } |
| 295 | #advads-image-preview img { max-width: 100%; height: auto; } |
| 296 | |
| 297 | /* Wizard adjustments */ |
| 298 | .advads-hide { display: none; } |
| 299 | #advads-wizard-controls button { text-transform: capitalize; } |
| 300 | #advads-wizard-controls button span { line-height: 32px; } |
| 301 | #advads-start-wizard.dashicons-before:before, |
| 302 | #advads-stop-wizard.dashicons-before:before { height: 15px; line-height: 0.9em; } |
| 303 | |
| 304 | /* Ad list (AdSense, DFP, etc)*/ |
| 305 | .aa-select-list { border: 1px solid #ddd; padding: .5rem; position: relative; display:none; overflow: hidden; } |
| 306 | .aa-select-list .label { font-weight:bold; display:block; margin:.75em auto .25rem; } |
| 307 | .aa-select-list { padding-top: 46px; } |
| 308 | .aa-select-list table, .aa-select-list table tbody { width: 100%; } |
| 309 | .aa-select-list table { margin-bottom: 10px; } |
| 310 | .aa-select-list tbody .dashicons { font-size: 1.2em; cursor: pointer; } |
| 311 | .aa-select-list thead th { font-weight: 700; } |
| 312 | .aa-select-list tbody .dashicons.disabled { color: #939393; } |
| 313 | .aa-select-list .aa-select-list-update { font-size: 20px; padding: 13px; position: absolute; top: 0; right: 47px; } |
| 314 | body.rtl .aa-select-list .aa-select-list-update { left: 47px; right: auto;} |
| 315 | .aa-select-list .aa-select-list-header { font-weight: 700; display: inline-block; font-size: 13px; line-height: 1.5em; } |
| 316 | .aa-select-list .aa-select-list-header span { display: inline-block; padding: 8px 9px; } |
| 317 | .aa-select-list-table-wrap { position: relative; } |
| 318 | .aa-select-list-table-wrap tr.selected { background-color: #dcdcfb; } |
| 319 | .aa-select-list-table-wrap tr.selected td { color: #0073aa; font-weight: bold; } |
| 320 | .aa-select-list-table-wrap { margin-left: -.5rem; margin-right: -.5rem; } |
| 321 | .aa-select-list-loading-overlay { position:absolute; background-color:rgba(255,255,255,.75); top:0; right:0; bottom:0; left:0; text-align:center; z-index: 1; display:none; } |
| 322 | @media( min-width: 783px ) { .aa-select-list { padding-top: 38px; } .aa-select-list .aa-select-list-update { padding: 9px; right: 39px; } } |
| 323 | |
| 324 | #advads-support-callout a { text-decoration: none; color: inherit; } |
| 325 | |
| 326 | /* Ad option tables */ |
| 327 | .advads-ad-parameters-option-list-min-width input { width: 5em; border: none; text-align: right; } |
| 328 | /* hide the delete button of the first row */ |
| 329 | .advads-ad-parameters-option-list tr:first-of-type .advads-tr-remove { display: none; } |
| 330 | /* todo: create a general rule */ |
| 331 | .advads-option-buttons .dashicons { cursor: pointer; opacity: .5; } |
| 332 | .advads-option-buttons .dashicons:hover { opacity: 1; } |
| 333 | .advads-tr-remove:hover { color: #a00; } |
| 334 | |
| 335 | /** |
| 336 | * AD GROUP LIST |
| 337 | */ |
| 338 | .advanced-ads_page_advanced-ads-groups #wpbody-content > .wrap { margin-top: 20px; } |
| 339 | .advanced-ads_page_advanced-ads-groups .tablenav.top { margin: 0px; padding-top: 0px; } |
| 340 | #advads-ad-group-list ul, #advads-ad-group-list ol { margin: 0; list-style-position: inside; } |
| 341 | #advads-ad-group-list .advads-group-ads tr:nth-child(odd) { background: #f9f9f9; } |
| 342 | .advads-table .advads-group-ads tbody tr td:first-child { |
| 343 | width: auto; |
| 344 | } |
| 345 | #advads-ad-group-list .column-type { width: 50px; } |
| 346 | #advads-ad-group-list .column-type img { width: 50px; height: 50px; } |
| 347 | .advads-ad-group-list-ads > div { margin: 0; padding: 3px 0; } |
| 348 | .advads-ad-group-list-ads > div:hover { background: #eee; } |
| 349 | .advads-ad-group-list-ads-weight { text-align: right; } |
| 350 | .advads-group-row .row-actions a, .advads-group-row a.edit { cursor: pointer; } |
| 351 | .advads-group-row .advads-usage { margin-top: 1em; } |
| 352 | .advads-usage code { padding: 0; background: none; } |
| 353 | .advads-group-row code { background: none; } |
| 354 | .advads-ad-group-form .advads-option { margin-top: 0; } |
| 355 | .advads-ad-group-form > td { border-bottom: 1px solid; } |
| 356 | .advads-ad-group-form label { display: inline-block; margin-bottom: 1em; } |
| 357 | .advads-ad-group-form strong { float: left; width: 180px; } |
| 358 | .advads-ad-group-form ul { float: left; } |
| 359 | fieldset.advads-group-add-ad { margin-top: 1em; } |
| 360 | .advanced-ads_page_advanced-ads-groups .advads-form .advads-form-type .advads-button-text { height: 80px; border: none; box-shadow: none; } |
| 361 | .advads-table .advads-group-row:not(:first-child) .create-first-ad { display: none; } |
| 362 | .advads-group-ads th.group-sort { cursor: pointer; } |
| 363 | .advads-group-ads th.asc::after { font-family: dashicons, sans-serif; content: '\f142'; margin-left: 3px; } |
| 364 | .advads-group-ads th.desc::after { font-family: dashicons, sans-serif; content: '\f140'; margin-left: 3px; } |
| 365 | .advanced-ads_page_advanced-ads-groups #screen-options-link-wrap { display: none; } |
| 366 | |
| 367 | /** |
| 368 | AD PLACEMENTS |
| 369 | */ |
| 370 | .advanced-ads_page_advanced-ads-placements #wpbody-content > .wrap { margin-top: 20px; } |
| 371 | .advanced-ads_page_advanced-ads-placements .tablenav.top { margin-top: 0px; padding-top: 0px; } |
| 372 | .advads-placements-table { margin-top: 20px; } |
| 373 | .advads-placements-table-options { text-align: right; } |
| 374 | .advads-placements-table-options input[type="number"] { width: 4.5em; } |
| 375 | .advads-placements-table ol { margin: 0.5em 0; list-style-position: inside; } |
| 376 | th.advads-placement-sortable { cursor: pointer; } |
| 377 | th.advads-placement-sortable a { display: block; overflow: hidden; } |
| 378 | .advads-placement-sorting-indicator { display: inline-block; visibility: hidden; width: 8px; height: 4px; } |
| 379 | .advads-placement-sorting-indicator:before { content: "\f142"; font: normal 20px/1 dashicons; speak: none; display: inline-block; padding: 0; top: 0; left: -7px; color: #444; position: relative; vertical-align: middle; text-decoration: none !important; color: #444; } |
| 380 | :is(a.advads-placement-sorted, th a:hover, th a:focus) .advads-placement-sorting-indicator { |
| 381 | visibility: visible; |
| 382 | } |
| 383 | a.advads-placement-sorted { |
| 384 | cursor: default; |
| 385 | pointer-events: none; |
| 386 | text-decoration: none; |
| 387 | color: grey; |
| 388 | } |
| 389 | .advads_search_placement_name { |
| 390 | vertical-align: middle; |
| 391 | } |
| 392 | .advads-placement-conditions h4 { |
| 393 | margin-top: 0; |
| 394 | margin-bottom: 5px; |
| 395 | } |
| 396 | .advads-placement-conditions h4+ul { |
| 397 | margin-top: 0; |
| 398 | margin-bottom: 18px; |
| 399 | } |
| 400 | |
| 401 | /** |
| 402 | GENERAL ELEMENTS |
| 403 | */ |
| 404 | .advads-toggle-link { display: block; cursor: pointer; margin: 10px 0 0 0; } |
| 405 | .advads-toggle-link + div { margin-top: 10px; } |
| 406 | .advads-content-half { float: left; margin-right: 5%; width: 45%; min-width: 300px; } |
| 407 | .advads-box { margin-bottom: 20px; padding: 10px; background: #fff; border: solid 1px; } |
| 408 | .on-hover { display: none; } |
| 409 | tr:hover .on-hover { display: block; } |
| 410 | .advads-admin-notice { overflow: hidden; } |
| 411 | .advads-admin-notice.inline { display: block; } |
| 412 | .advads-admin-notice .button-primary { margin-left: 1em; } |
| 413 | .advads-review-image { margin-right: 10px; margin-bottom: 10px; float: left; } |
| 414 | .advads-spinner { float: none; visibility: visible; } |
| 415 | .advads-wide-input { width: 30em; } |
| 416 | .row-actions span a { |
| 417 | white-space: nowrap; |
| 418 | display: inline-block; |
| 419 | } |
| 420 | .row-actions span a:first-letter, .advads-placement-conditions li:first-letter { |
| 421 | text-transform: uppercase; |
| 422 | } |
| 423 | |
| 424 | /** |
| 425 | * Branded Page Header |
| 426 | */ |
| 427 | /* Hide some h1 headlines and buttons created by WordPress on our pages since we show our custom header */ |
| 428 | .post-type-advanced_ads .wrap .wp-heading-inline, |
| 429 | .post-type-advanced_ads_plcmnt .wrap .wp-heading-inline, |
| 430 | .advanced-ads_page_advanced-ads-groups .wrap .wp-heading-inline, |
| 431 | .post-type-advanced_ads .wrap .page-title-action, |
| 432 | .post-type-advanced_ads_plcmnt .wrap .page-title-action |
| 433 | { |
| 434 | display: none; |
| 435 | } |
| 436 | |
| 437 | .post-type-advanced_ads #screen-options-link-wrap, |
| 438 | .post-type-advanced_ads_plcmnt #screen-options-link-wrap { |
| 439 | display: none; |
| 440 | } |
| 441 | |
| 442 | .advads-page #screen-meta { |
| 443 | position: absolute; |
| 444 | z-index: 1000; |
| 445 | border-color: #000; |
| 446 | } |
| 447 | |
| 448 | #advads-header { |
| 449 | border-bottom: 1px solid #c3c4c7; |
| 450 | padding: 22px 0px; |
| 451 | margin-left: -20px; |
| 452 | background: #fff; |
| 453 | } |
| 454 | |
| 455 | #advads-header-wrapper { |
| 456 | display: grid; |
| 457 | width: calc(100% - 20px); |
| 458 | grid-template-columns: max-content 1fr auto; |
| 459 | justify-content: start; |
| 460 | justify-items: start; |
| 461 | align-content: center; |
| 462 | align-items: start; |
| 463 | padding-left: 20px; |
| 464 | gap: 10px 10px; |
| 465 | } |
| 466 | |
| 467 | #advads-header .advads-help:before { |
| 468 | margin-top: 3px; |
| 469 | font-size: 24px; |
| 470 | line-height: 24px; |
| 471 | height: 24px; |
| 472 | } |
| 473 | |
| 474 | #advads-header svg { |
| 475 | display: inline; |
| 476 | margin: 0 0 -4px 0; |
| 477 | width: 32px; |
| 478 | } |
| 479 | |
| 480 | #advads-header h1 { |
| 481 | display: inline; |
| 482 | font-weight: 300; |
| 483 | margin: 0 10px; |
| 484 | line-height: 30px; |
| 485 | vertical-align: top; |
| 486 | } |
| 487 | |
| 488 | #advads-header .header-action { |
| 489 | margin-right: 10px; |
| 490 | font-weight: 400; |
| 491 | } |
| 492 | |
| 493 | #advads-header #advads-header-links { |
| 494 | margin-right: 20px; |
| 495 | } |
| 496 | |
| 497 | #advads-header-links .disabled { |
| 498 | background-color: #c3c4c7; |
| 499 | cursor: default; |
| 500 | } |
| 501 | |
| 502 | #advads-header #advads-links a { |
| 503 | color: #1B183A; |
| 504 | } |
| 505 | |
| 506 | @media (max-width: 782px) { |
| 507 | #advads-header-wrapper { |
| 508 | grid-template-columns: 1fr; |
| 509 | } |
| 510 | #advads-header .header-action .dashicons { |
| 511 | line-height: 40px; |
| 512 | } |
| 513 | #advads-header #advads-header-links { |
| 514 | grid-column-end: auto; |
| 515 | } |
| 516 | } |
| 517 | |
| 518 | /** |
| 519 | * Forms to add a new ad, group, or placement |
| 520 | */ |
| 521 | .advads-form-description { display: none; } |
| 522 | .advads-form .advads-form-type { position: relative; top: 0; left: 0; float: left; width: 80px; margin: 15px 0 0 15px; } |
| 523 | .advads-form .advads-form-type .advads-button { background: none; border-radius: 0; height: auto; } |
| 524 | .advads-form .advads-form-type .advads-button-text { padding: 0; width: 80px; height: 60px; border: solid 1px #0085ba; border-radius: 3px; box-shadow: 0 0 2px #0085ba; overflow: hidden; box-sizing: border-box; user-select: none; } |
| 525 | .advads-form .advads-form-type .advads-button-text img { max-width: 100%; pointer-events: none; } |
| 526 | .advads-form .advads-form-type label { display: inline-block; width: 80px; text-align: center; border: 0; padding: 0; } |
| 527 | .advads-form .advads-buttonset .advads-button.advads-ui-state-active { outline: 5px solid #2ea2cc; border: 0; } |
| 528 | .advads-form .advads-form-type label .description { padding: 10px; } |
| 529 | .advads-form .advads-notice-inline.advads-error { display: none; } |
| 530 | |
| 531 | /** |
| 532 | * Custom Boxes, similar to WP Metaboxes |
| 533 | */ |
| 534 | .advads-box { |
| 535 | margin-bottom: 20px; |
| 536 | padding: 0px; |
| 537 | } |
| 538 | .advads-box h2 { |
| 539 | border-bottom: 1px solid #eee; |
| 540 | font-size: 14px; |
| 541 | padding: 8px 12px; |
| 542 | margin: 0; |
| 543 | line-height: 1.4; |
| 544 | } |
| 545 | .advads-box-wrapper { |
| 546 | display: flex; |
| 547 | justify-content: space-between; |
| 548 | flex-wrap: wrap; |
| 549 | column-gap: 20px; |
| 550 | } |
| 551 | .advads-box-half { |
| 552 | flex: 1 0 calc(50% - 20px); |
| 553 | } |
| 554 | .advads-box-third { |
| 555 | flex: 1 0 calc(33% - 20px); |
| 556 | } |
| 557 | |
| 558 | /** |
| 559 | WELCOME PANEL |
| 560 | */ |
| 561 | .advads-admin-notice[data-notice="nl_intro"] { border: 4px solid #0073aa; } |
| 562 | .advads-admin-notice .notice-dismiss { text-decoration: none; } |
| 563 | #aa-welcome-panel h2 { margin: 0; font-size: 21px; font-weight: 400; line-height: 1.2; } |
| 564 | #aa-welcome-panel h3 { margin: 1.33em 0; font-size: 16px; } |
| 565 | #aa-welcome-panel li { font-size: 14px; } |
| 566 | #aa-welcome-panel a { text-decoration: none; } |
| 567 | .aa-welcome-panel-content { margin-left: 13px; max-width: 1500px; } |
| 568 | #aa-welcome-panel .aa-welcome-panel-column-container { clear: both; position: relative; } |
| 569 | #aa-welcome-panel .aa-welcome-panel-column { width: 32%; min-width: 200px; float: left; } |
| 570 | #aa-welcome-panel .aa-welcome-panel-column:first-child { width: 36%; } |
| 571 | #aa-welcome-panel .aa-welcome-panel-column ul { margin: 0.8em 1em 1em 0; } |
| 572 | #aa-welcome-panel .aa-welcome-panel-column li { line-height: 1.14; list-style-type: none; padding: 0 0 8px; } |
| 573 | #aa-welcome-panel .aa-welcome-panel-starter-setup p { max-width: 300px; } |
| 574 | .aa-welcome-panel-column p { margin-top: 7px; color: #444; } |
| 575 | .aa-welcome-panel-column .button { margin-left: 0; } |
| 576 | |
| 577 | /** |
| 578 | - GOOGLE ADSENSE MODULE |
| 579 | -*/ |
| 580 | #adsense-ad-param-error { color: #dc3232; font-weight: bold; } |
| 581 | .advads-adsense-content { width: 100%; } |
| 582 | .mapi-insert-code a, .mapi-open-selector a, .mapi-close-selector-link a { padding: 0 10px; color: inherit; } |
| 583 | #mapi-quota-message{ color: #ef8e00; font-style: italic; font-weight: bold; } |
| 584 | .aa-select-list tbody [data-mapiaction="getCode"] { color: #46b450; } |
| 585 | .aa-select-list tbody .disabled[data-mapiaction="getCode"] { color: #a7a7a7; cursor: default; } |
| 586 | .aa-select-list tbody [data-mapiaction="updateCode"] { color: #0085ba; } |
| 587 | #mapi-archived-ads { font-size: 20px; padding: 9px; position: absolute; top: 0; right: 78px; color: #72777c; cursor: pointer; } |
| 588 | body.rtl #mapi-archived-ads { left: 78px; right:auto; } |
| 589 | #remote-ad-unsupported-ad-type { background-color: #f0f0f0; padding: 8px; border: 1px solid #d6d6d6; } |
| 590 | #remote-ad-unsupported-ad-type ul { list-style-type: disc; padding-left: 20px } |
| 591 | #remote-ad-unsupported-ad-type[style*="display: block"] + p { display: none; } |
| 592 | .mapi-insert-code[style*="display: none"] + .mapi-open-selector .mapi-optional-or { display: none; } |
| 593 | #mapi-table-wrap table { border-left:none; border-right: none; } |
| 594 | #mapi-table-wrap tr { vertical-align: middle; } |
| 595 | #mapi-table-wrap td { vertical-align: inherit; } |
| 596 | #mapi-table-wrap.overflow { height: 22.2em; overflow-y: auto; } |
| 597 | #mapi-table-wrap.overflow table { position: absolute; } |
| 598 | #mapi-table-wrap .error {background-color: #e77373; position: relative;} |
| 599 | #mapi-table-wrap .error td {color: #23282d; } |
| 600 | #mapi-table-wrap .error td:first-of-type::before { content: ""; width: 5px; height: 100%; background-color: #dc3232; position: absolute; left: 0; top: 0; } |
| 601 | #mapi-table-wrap .error .unittype button { display: none; } |
| 602 | .advanced-ads-adsense-support { background-color: #fbfbfb; border: 1px solid #eee; padding: 1em; } |
| 603 | .advanced-ads-adsense-support-text { font-size: 1.4em; font-weight: 400; } |
| 604 | .advanced-ads-adsense-support .dashicons { color: #ffb900; } |
| 605 | .advads-adsense-layout-key { display: none; } |
| 606 | .mapiaction.icon-button { |
| 607 | display: block; |
| 608 | margin: 12px auto; |
| 609 | cursor: pointer; |
| 610 | } |
| 611 | |
| 612 | #mapi-account-alerts > div:not(:last-of-type) { |
| 613 | margin-bottom: 10px; |
| 614 | } |
| 615 | |
| 616 | @media screen and (min-width: 1368px) { |
| 617 | #mapi-account-alerts { |
| 618 | float: right; |
| 619 | } |
| 620 | |
| 621 | #mapi-account-alerts .card { |
| 622 | margin-top: 0; |
| 623 | } |
| 624 | } |
| 625 | |
| 626 | /** |
| 627 | * Connect to Google AdSense modal |
| 628 | */ |
| 629 | |
| 630 | .gadsense-modal-error { |
| 631 | background-color: #fff; |
| 632 | border: 1px solid #dc3232; |
| 633 | border-left-width: 4px; |
| 634 | padding: .75em; |
| 635 | margin: 1em 0; |
| 636 | display: none; |
| 637 | } |
| 638 | |
| 639 | /** |
| 640 | - TABS + SETTINGS |
| 641 | -*/ |
| 642 | #advads-tabs .nav-tab-active { background: #fff; border-bottom: 0; margin-top: 1px; } |
| 643 | .advads-tab { display: none; padding: 5px 15px; overflow: hidden; background-color: #fff; border: 1px solid #ccc; border-top: none; } |
| 644 | .advads-tab input[type="checkbox"] { margin-right: 8px; } |
| 645 | .advads-tab .form-table th, .advads-tab, .advads-tab .form-table td { padding-top: 15px; padding-bottom: 30px; vertical-align: top; } |
| 646 | .advads-tab.active { display: block; } |
| 647 | .advads-license-activate-error a { color: inherit; } |
| 648 | .advads-tab-sub-menu ul { overflow: hidden; } |
| 649 | .advads-tab-sub-menu ul li { float: left; padding-right: 0.5em; } |
| 650 | .advads-tab-sub-menu ul li a { cursor: pointer; } |
| 651 | .advads-tab-sub-menu ul li + li:before { content: '|'; } |
| 652 | .advads-tab-sub-menu ul li + li a { padding-left: 0.5em; } |
| 653 | #advads-settings-hide-by-user-role { -webkit-columns: 200px 5; /* Chrome, Safari, Opera */ -moz-columns: 200px 5; /* Firefox */ columns: 200px 5; column-gap: 10px; } |
| 654 | #advads-settings-hide-by-user-role label { display: block; } |
| 655 | .advads-settings-tab-main-form textarea { resize: both; } |
| 656 | .advads-settings-tab-main-form .description + label { display: block; margin-top: 12px; } |
| 657 | |
| 658 | /* AdBlocker Settings */ |
| 659 | #advads-adblocker-wrapper h3 { |
| 660 | margin-bottom: 0; |
| 661 | } |
| 662 | #advanced-ads-rebuild-assets-form td, #advanced-ads-rebuild-assets-form th { |
| 663 | padding-bottom: 0; |
| 664 | } |
| 665 | #advanced-ads-rebuild-assets-form button { |
| 666 | margin-top: 15px; |
| 667 | } |
| 668 | |
| 669 | /** |
| 670 | - MODAL |
| 671 | */ |
| 672 | .advads-modal { |
| 673 | display: none; |
| 674 | position: fixed; |
| 675 | z-index: -1; |
| 676 | left: 0; |
| 677 | top: 0; |
| 678 | width: 100%; |
| 679 | height: 100%; |
| 680 | overflow: auto; |
| 681 | background-color: rgba(0, 0, 0, 0.4); |
| 682 | opacity: 0; |
| 683 | pointer-events: none; |
| 684 | -webkit-transition: opacity 400ms ease-in; |
| 685 | -moz-transition: opacity 400ms ease-in; |
| 686 | transition: opacity 400ms ease-in; |
| 687 | } |
| 688 | .advads-modal:target, |
| 689 | .advads-modal[open] { |
| 690 | display: table; |
| 691 | opacity: 1; |
| 692 | pointer-events: auto; |
| 693 | z-index: 9999; |
| 694 | } |
| 695 | |
| 696 | dialog.advads-modal { |
| 697 | padding: 0; |
| 698 | border: 0; |
| 699 | margin: 0; |
| 700 | max-width: 100vw; |
| 701 | max-height: 100vh; |
| 702 | } |
| 703 | |
| 704 | .advads-modal-content { |
| 705 | background-color: #fefefe; |
| 706 | border: 1px solid #888; |
| 707 | box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); |
| 708 | box-sizing: border-box; |
| 709 | margin: calc(5vh + var(--wp-admin--admin-bar--height, 0px)) auto 5vh; |
| 710 | max-width: 66em; |
| 711 | max-height: calc(90vh - var(--wp-admin--admin-bar--height, 0px)); |
| 712 | height: auto; |
| 713 | animation-name: advads-modal-animatetop; |
| 714 | animation-duration: 0.4s; |
| 715 | position: relative; |
| 716 | padding: 1em; |
| 717 | padding-bottom: 0; |
| 718 | overflow-y: scroll; |
| 719 | -webkit-overflow-scrolling: touch; |
| 720 | } |
| 721 | .advads-modal-header { |
| 722 | padding: 2px 16px; |
| 723 | border-bottom: 1px solid #e2e2e2; |
| 724 | color: white; |
| 725 | } |
| 726 | .advads-modal-body { |
| 727 | padding: 16px 16px; |
| 728 | } |
| 729 | .advads-modal-footer { |
| 730 | padding: 2px 16px; |
| 731 | padding-bottom: 1em; |
| 732 | border-top: 1px solid #e2e2e2; |
| 733 | color: white; |
| 734 | background-color: white; |
| 735 | position: sticky; |
| 736 | bottom: 0; |
| 737 | } |
| 738 | |
| 739 | .advads-modal-footer .tablenav { |
| 740 | display: flex; |
| 741 | justify-content: space-between; |
| 742 | } |
| 743 | |
| 744 | .advads-modal h2, .advads-modal h3 { |
| 745 | font-size: 1.3em; |
| 746 | margin: 1em 0; |
| 747 | } |
| 748 | |
| 749 | @keyframes advads-modal-animatetop { |
| 750 | from { |
| 751 | top: -300px; |
| 752 | opacity: 0 |
| 753 | } |
| 754 | to { |
| 755 | top: 0; |
| 756 | opacity: 1 |
| 757 | } |
| 758 | } |
| 759 | .advads-modal-close { |
| 760 | color: #aaa; |
| 761 | font-size: 28px; |
| 762 | font-weight: bold; |
| 763 | line-height: 50px; |
| 764 | text-decoration: none; |
| 765 | } |
| 766 | .advads-modal-header .advads-modal-close { |
| 767 | float: right; |
| 768 | } |
| 769 | .advads-modal-close:hover, |
| 770 | .advads-modal-close:focus { |
| 771 | color: black; |
| 772 | text-decoration: none; |
| 773 | cursor: pointer; |
| 774 | } |
| 775 | a.advads-modal-close-background { |
| 776 | width: 100%; |
| 777 | height: 100%; |
| 778 | position: absolute; |
| 779 | text-indent: -9999em; |
| 780 | cursor: default; |
| 781 | } |
| 782 | |
| 783 | .advads-ui-autocomplete.ui-front { |
| 784 | z-index: 10000; |
| 785 | } |
| 786 | |
| 787 | /** |
| 788 | - SUPPORT PAGE |
| 789 | -*/ |
| 790 | .advads-support-form input { width: 300px; height: 1.5em; line-height: 1; font-size: 1.5em; border: 1px solid #0085ba; border-radius: 5px; } |
| 791 | .advads-support-form input.button { width: 100px; height: 1.5em; line-height: 1; font-size: 1.5em; border: 1px solid #0085ba; border-radius: 5px; } |
| 792 | |
| 793 | /** |
| 794 | - PLUGIN LIST |
| 795 | -*/ |
| 796 | #advanced-ads-feedback-overlay { |
| 797 | /* Height & width depends on how you want to reveal the overlay (see JS below) */ |
| 798 | height: 100%; |
| 799 | width: 100%; |
| 800 | position: fixed; /* Stay in place */ |
| 801 | z-index: 10000; /* Sit on top */ |
| 802 | left: 0; |
| 803 | top: 0; |
| 804 | background-color: rgb(120,120,120); /* Black fallback color */ |
| 805 | background-color: rgba(0,0,0, 0.5); /* Black w/opacity */ |
| 806 | } |
| 807 | #advanced-ads-feedback-content { |
| 808 | position: relative; |
| 809 | top: 25%; /* 25% from the top */ |
| 810 | width: 500px; |
| 811 | max-width: 100%; |
| 812 | margin: auto; |
| 813 | margin-top: 30px; /* 30px top margin to avoid conflict with the close button on smaller screens */ |
| 814 | max-height: 50%; |
| 815 | padding: 20px; |
| 816 | background-color: #fff; |
| 817 | overflow-y: scroll; |
| 818 | } |
| 819 | #advanced-ads-feedback-overlay-close-button { position: absolute; top: 10px; right: 10px; cursor: pointer; } |
| 820 | #advanced-ads-feedback-content textarea:not(.advanced_ads_disable_help_text), |
| 821 | #advanced-ads-feedback-content input[type="text"] { display:none; } |
| 822 | #advanced-ads-feedback-content textarea, |
| 823 | #advanced-ads-feedback-content input[type="text"] { width: 100%; } |
| 824 | #advanced-ads-feedback-content .advanced_ads_disable_reply { display:none; } |
| 825 | .advanced-ads-feedback-only-deactivate { display: block; text-align: right; } |
| 826 | .advanced-ads-feedback-review { background-color: #fbfbfb; border: 1px solid #eee; padding: 0.5em; } |
| 827 | .advanced-ads-feedback-review-text { font-size: 1.2em; font-weight: 400; } |
| 828 | .advanced-ads-feedback-review .dashicons { color: #ffb900; } |
| 829 | .row-actions .aa-get-pro { font-weight: bold; color: #0474a2; } |
| 830 | |
| 831 | /** |
| 832 | - GENERAL |
| 833 | -*/ |
| 834 | .advads-success-message { color: green !important; } |
| 835 | .advads-hidden { display: none; } |
| 836 | .advads-loader { display: block; width: 43px; height: 11px; background: url(../img/loader.gif) no-repeat; } |
| 837 | .advads-loader.hidden { display: none; } |
| 838 | |
| 839 | /* Tooltips for help */ |
| 840 | .advads-help { |
| 841 | position: relative; |
| 842 | color: #dcdcde; |
| 843 | font-weight: normal; |
| 844 | } |
| 845 | .advads-help:before { |
| 846 | content: "\f223"; |
| 847 | font-family: dashicons; |
| 848 | display: inline-block; |
| 849 | line-height: 1; |
| 850 | text-decoration: inherit; |
| 851 | -webkit-font-smoothing: antialiased; |
| 852 | -moz-osx-font-smoothing: grayscale; |
| 853 | width: 20px; |
| 854 | height: 20px; |
| 855 | font-size: 20px; |
| 856 | vertical-align: top; |
| 857 | text-align: center; |
| 858 | transition: color 0.1s ease-in; |
| 859 | } |
| 860 | |
| 861 | .advads-help.v-middle:before { |
| 862 | vertical-align: middle; |
| 863 | } |
| 864 | |
| 865 | .advads-help.advads-help-no-icon:before { |
| 866 | content: none; |
| 867 | } |
| 868 | div:hover > .advads-help:before, |
| 869 | p:hover > .advads-help:before, |
| 870 | td:hover > .advads-help:before, /* for settings page */ |
| 871 | li:hover > .advads-help:before, |
| 872 | h3:hover > .advads-help:before, |
| 873 | .advads-help:hover::before { |
| 874 | color: #0474a2; |
| 875 | } |
| 876 | .advads-help .advads-tooltip { |
| 877 | display: none; |
| 878 | width: 300px; |
| 879 | } |
| 880 | .advads-help:hover .advads-tooltip { |
| 881 | display: block; |
| 882 | left: 20px; |
| 883 | } |
| 884 | |
| 885 | /* Advanced Ads Icon */ |
| 886 | .advads-icon { |
| 887 | display: inline-block; |
| 888 | width: 20px; |
| 889 | height: 20px; |
| 890 | background: url(../img/logo.svg); |
| 891 | } |
| 892 | |
| 893 | /* WP Admin notifications branded for Advanced Ads */ |
| 894 | .advads-notice, |
| 895 | .advanced-ads-post-type-list .notice, |
| 896 | .advanced-ads_page_advanced-ads-groups .notice, |
| 897 | .advanced-ads_page_advanced-ads-groups #message { |
| 898 | border-left-color: #1B183A; |
| 899 | } |
| 900 | .wp-core-ui .notice.advads-notice .button, .wp-core-ui .notice.advads-notice p button { |
| 901 | background-color: #0474a2; |
| 902 | border-color: #0474a2; |
| 903 | color: #FFF; |
| 904 | } |
| 905 | .advads-notice.inline, |
| 906 | .advanced-ads-post-type-list .notice.inline { |
| 907 | display: block; |
| 908 | } |
| 909 | .advads-notice.inline.hidden, |
| 910 | .advanced-ads-post-type-list .notice.inline.hidden { |
| 911 | display: none; |
| 912 | } |
| 913 | .advads-notice .notice-dismiss:before, |
| 914 | .post-type-advanced_ads .notice-dismiss:before { |
| 915 | color: #1B183A; |
| 916 | } |
| 917 | .notice .advads-icon, .advads-notice .advads-icon { |
| 918 | position: relative; |
| 919 | top: 4px; |
| 920 | margin-right: 5px; |
| 921 | } |
| 922 | .advads-notice.notice-promo { |
| 923 | border: 0; |
| 924 | text-align: center; |
| 925 | color: #fff; |
| 926 | overflow: visible; |
| 927 | padding: 1px 60px; |
| 928 | background: url('../img/promo-background.svg' ); |
| 929 | } |
| 930 | .advads-notice.notice-promo > p { |
| 931 | position: relative; |
| 932 | margin: .5em auto; |
| 933 | width: fit-content; |
| 934 | } |
| 935 | .advads-notice.notice-promo > p:before { |
| 936 | content: ""; |
| 937 | position: absolute; |
| 938 | display: block; |
| 939 | width: 70px; |
| 940 | height: 70px; |
| 941 | top: calc(-.5em - 10px); |
| 942 | left: -65px; |
| 943 | background: url('../img/aa-promo-icon.svg') center left/contain no-repeat; |
| 944 | } |
| 945 | .advads-notice.notice.notice-promo .button{ |
| 946 | background-color: transparent; |
| 947 | border-color: #fff; |
| 948 | } |
| 949 | .advads-notice.notice.notice-promo .button:focus { |
| 950 | box-shadow: none; |
| 951 | } |
| 952 | .advads-notice.notice-promo .notice-dismiss:before { |
| 953 | color: #fff; |
| 954 | } |
| 955 | |
| 956 | /* Notification blocks */ |
| 957 | .advads-notice-block { |
| 958 | padding-left: 4em; |
| 959 | } |
| 960 | .advads-notice-block:before { |
| 961 | font-family: dashicons; |
| 962 | color: #0474a2; |
| 963 | position: absolute; |
| 964 | top: 25px; left: 16px; |
| 965 | margin-right: 5px; |
| 966 | display: inline-block; |
| 967 | line-height: 1; |
| 968 | font-size: 20px; |
| 969 | vertical-align: top; |
| 970 | } |
| 971 | .advads-notice-block:after { |
| 972 | content: ""; |
| 973 | clear: both; |
| 974 | display: block; |
| 975 | } |
| 976 | |
| 977 | /* Inline Notifications */ |
| 978 | span.advads-notice-inline { |
| 979 | display: inline-block; |
| 980 | } |
| 981 | .advads-notice-inline:before { |
| 982 | font-family: dashicons; |
| 983 | color: #0474a2; |
| 984 | float: left; |
| 985 | margin-right: 5px; |
| 986 | line-height: 1; |
| 987 | font-size: 20px; |
| 988 | vertical-align: top; |
| 989 | } |
| 990 | .advads-error:before { |
| 991 | content: "\f534"; |
| 992 | color: #dc3232; |
| 993 | } |
| 994 | .advads-idea:before { |
| 995 | content: "\f339"; |
| 996 | } |
| 997 | .advads-check:before { |
| 998 | content: "\f15e"; |
| 999 | color: #1e610f; |
| 1000 | font-size: 24px; |
| 1001 | line-height: 20px; |
| 1002 | } |
| 1003 | .advads-manual:before { |
| 1004 | content: "\f118"; |
| 1005 | } |
| 1006 | |
| 1007 | /* Image Ad */ |
| 1008 | #advads_type_image_wp_media .media-sidebar .setting:not([data-setting="title"]):not([data-setting="alt"]), |
| 1009 | /* fields added via the `attachment_fields_to_edit` filter */ |
| 1010 | #advads_type_image_wp_media .media-sidebar .compat-item { display: none; } |
| 1011 | |
| 1012 | /* TinyMCE shortcode creator */ |
| 1013 | #advads-shortcode-modal-container-body .spinner { background: url(../../../../../../wp-admin/images/spinner.gif) no-repeat; -webkit-background-size: 20px 20px; background-size: 20px 20px; vertical-align: middle; width: 20px; height: 20px; } |
| 1014 | #advads-select-for-shortcode { box-sizing: border-box; } |
| 1015 | #advads-select-for-shortcode optgroup { font-weight: 700; font-family: Tahoma, sans-serif; } |
| 1016 | #advads-select-for-shortcode optgroup option { padding-left: 20px; } |
| 1017 | |
| 1018 | /* Filter dropdowns on the ad list table */ |
| 1019 | .advads-ad-list-even { background-color: #f9f9f9 !important; } |
| 1020 | .advads-ad-list-odd { background-color: #fff !important; } |
| 1021 | .advanced-ads-post-type-list #filter-by-date, .advanced-ads-post-type-list label[for=filter-by-date]{ |
| 1022 | display: none; |
| 1023 | } |
| 1024 | |
| 1025 | /* Hide 'New Ad' in menu */ |
| 1026 | .wp-submenu li a[href="post-new.php?post_type=advanced_ads"] { display:none !important; } |
| 1027 | |
| 1028 | /* Filesystem */ |
| 1029 | #advanced-ads-rfc-dialog .cancel-button { display: inline; } |
| 1030 | |
| 1031 | /* ads.txt */ |
| 1032 | .advads-ads-txt-updated { border-left: 4px solid green; padding-left: 4px; } |
| 1033 | .advads-error-message.advads-ads-txt-updated { border-color: #dc3232; } |
| 1034 | #advads-ads-txt-notices li { padding-top: 1em; } |
| 1035 | #advads-ads-txt-notices li:nth-child(even) { background-color: #f9f9f9; } |
| 1036 | |
| 1037 | /* Fix Safari autofill: https://stackoverflow.com/questions/38663578/how-to-hide-autofill-safari-icon-in-input-field */ |
| 1038 | .post-type-advanced_ads input::-webkit-contacts-auto-fill-button { |
| 1039 | visibility: hidden; |
| 1040 | display: none !important; |
| 1041 | pointer-events: none; |
| 1042 | height: 0; |
| 1043 | width: 0; |
| 1044 | margin: 0; |
| 1045 | } |
| 1046 | |
| 1047 | /* Pro Pitch List */ |
| 1048 | .advads-pro-pitch { max-width: 500px; float: left; padding: 1em; margin-right: 1em; line-height: 2; font-size: 14px; text-transform: capitalize; } |
| 1049 | .advads-pro-pitch .dashicons { line-height: 1.4; } |
| 1050 | #advads-tracking-pitch .advads-pro-pitch { float: none; } |
| 1051 | |
| 1052 | /* external links */ |
| 1053 | a.advads-manual-icon, .advads-manual-link, .advads-external-link { text-decoration: none; } |
| 1054 | .advads-ad-notice-image-name-change a.advads-manual-link { color: #2271b1;} |
| 1055 | |
| 1056 | .advads-manual-link:after, .advads-external-link:after { |
| 1057 | font-family: dashicons; |
| 1058 | margin-left: .3em; |
| 1059 | } |
| 1060 | .advads-manual-link:after { |
| 1061 | content: "\f118"; |
| 1062 | } |
| 1063 | |
| 1064 | .advads-external-link:after { |
| 1065 | content: "\f504"; |
| 1066 | } |
| 1067 | |
| 1068 | div.advads-flex{ |
| 1069 | display: flex; |
| 1070 | align-items: top; |
| 1071 | justify-content: top; |
| 1072 | flex-direction: row; |
| 1073 | flex-wrap: wrap; |
| 1074 | flex-flow: row wrap; |
| 1075 | align-content: flex-end; |
| 1076 | } |
| 1077 | .advads-flex1{ |
| 1078 | flex: 1; |
| 1079 | } |
| 1080 | .advads-flex2{ |
| 1081 | flex: 2; |
| 1082 | } |
| 1083 | .advads-flex3{ |
| 1084 | flex: 3; |
| 1085 | } |
| 1086 | div.advads-stats-box{ |
| 1087 | margin:4pt; |
| 1088 | padding:4pt; |
| 1089 | } |
| 1090 | div.advads-stats-box .advads-stats-age { |
| 1091 | clear: right; |
| 1092 | float: right; |
| 1093 | text-align: right; |
| 1094 | color: #bbbbbb; |
| 1095 | margin-top: 5px; |
| 1096 | } |
| 1097 | body.rtl div.advads-stats-box .advads-stats-age { |
| 1098 | clear: left; |
| 1099 | float: left; |
| 1100 | text-align: left; |
| 1101 | } |
| 1102 | div.advads-stats-box div.advads-stats-box-main{ |
| 1103 | font-weight: bold; |
| 1104 | font-size: 18px; |
| 1105 | } |
| 1106 | div.advads-stats-dd-container { |
| 1107 | position:relative; |
| 1108 | float:right; |
| 1109 | text-align:right; |
| 1110 | } |
| 1111 | body.rtl div.advads-stats-dd-container { |
| 1112 | float:left; |
| 1113 | text-align:left; |
| 1114 | } |
| 1115 | div.advads-stats-dd-button{ |
| 1116 | font-weight:bold; |
| 1117 | font-size: 14px; |
| 1118 | cursor:pointer; |
| 1119 | } |
| 1120 | div.advads-stats-dd-items{ |
| 1121 | background-color: #ffffff; |
| 1122 | border: 1px solid #cccccc; |
| 1123 | padding: 5px; |
| 1124 | position:absolute; |
| 1125 | overflow-y: auto; |
| 1126 | overflow-x: hidden; |
| 1127 | max-height:210px; |
| 1128 | z-index: 1; |
| 1129 | } |
| 1130 | div.advads-stats-dd-item{ |
| 1131 | background-color: #ffffff; |
| 1132 | padding: 5px; |
| 1133 | cursor: pointer; |
| 1134 | text-align:right; |
| 1135 | min-width: 280px; |
| 1136 | } |
| 1137 | body.rtl div.advads-stats-dd-item{ |
| 1138 | text-align:left; |
| 1139 | } |
| 1140 | div.advads-stats-select{ |
| 1141 | border: none; |
| 1142 | } |
| 1143 | div.advads-stats-dd-item-selected{ |
| 1144 | background-color: #0073aa; |
| 1145 | color: #ffffff; |
| 1146 | font-weight: bold; |
| 1147 | } |
| 1148 | |
| 1149 | #advads_overview_adsense_stats .advads-stats-dd-button .advads-stats-dd-items { |
| 1150 | display: none; |
| 1151 | right: 0px; |
| 1152 | width: 300px; |
| 1153 | position: absolute; |
| 1154 | font-weight: normal; |
| 1155 | } |
| 1156 | body.rtl #advads_overview_adsense_stats .advads-stats-dd-button .advads-stats-dd-items { |
| 1157 | left: 0px; |
| 1158 | right: auto; |
| 1159 | } |
| 1160 | #advads_overview_adsense_stats .advads-stats-dd-button .advads-stats-dd-items .current-filter { |
| 1161 | font-weight: 700; |
| 1162 | background-color: #0073aa; |
| 1163 | color: #ffffff; |
| 1164 | font-weight: bold; |
| 1165 | } |
| 1166 | |
| 1167 | tr.advads-clickable-row:hover{ |
| 1168 | cursor: pointer; |
| 1169 | } |
| 1170 | |
| 1171 | /* Set max-width for wide select elements */ |
| 1172 | .advads-conditions-select-wrap { display: inline-block; max-width: 100%; } |
| 1173 | .advads-conditions-select-wrap select { width: 100%; } |
| 1174 | |
| 1175 | /* table layout, mobile by default */ |
| 1176 | .advads-option-table { width:100%; } |
| 1177 | .advads-option-table thead { display: none; } |
| 1178 | .advads-option-table tbody td, .advads-option-table tfoot th { display: block; } |
| 1179 | .advads-option-table tbody td:before, .advads-option-table tfoot th:before { /* display a label that is in the "data-th" attribute of the td tag */ |
| 1180 | content: attr( data-th ); |
| 1181 | display: inline-block; |
| 1182 | width: 32%; |
| 1183 | } |
| 1184 | |
| 1185 | /** |
| 1186 | * Tables |
| 1187 | */ |
| 1188 | .advads-table { min-width: 80%; border-collapse: collapse; background: #fff; } |
| 1189 | .advads-table tbody tr:nth-child(odd) { background-color: #f9f9f9; } |
| 1190 | .advads-table tbody tr td:first-child { width: 200px; } |
| 1191 | .advads-table .advads-table-name { font-size: 1.2em; } |
| 1192 | .advads-table tbody tr td:last-child { width: 70px; } |
| 1193 | .advads-table th { margin: 0; text-align: left; vertical-align: top; } |
| 1194 | .advads-table.widefat tbody th { font-weight: bold; } |
| 1195 | .advads-table th span { font-weight: normal; } |
| 1196 | .advads-table td { margin: 0; padding: 10px 8px; text-align: left; vertical-align: top; } |
| 1197 | .advads-table .usage-modal-link { cursor: pointer; } |
| 1198 | .advads-table .advads-usage { margin-bottom: 20px; } |
| 1199 | .advads-table .advads-usage input { width: 100%; } |
| 1200 | |
| 1201 | .advads-table img { |
| 1202 | height: 70px; |
| 1203 | margin-bottom: 5px; |
| 1204 | } |
| 1205 | |
| 1206 | .post-type-advanced_ads_plcmnt .column-type { |
| 1207 | width: 90px; |
| 1208 | } |
| 1209 | |
| 1210 | .post-type-advanced_ads_plcmnt .column-type img { |
| 1211 | width: auto; |
| 1212 | height: 50px; |
| 1213 | } |
| 1214 | |
| 1215 | /** |
| 1216 | * Tables with flexbox |
| 1217 | */ |
| 1218 | .advads-table-flex { |
| 1219 | display: flex; |
| 1220 | flex-direction: column; |
| 1221 | } |
| 1222 | |
| 1223 | .advads-table-flex > div { |
| 1224 | display: flex; |
| 1225 | flex-direction: row; |
| 1226 | } |
| 1227 | |
| 1228 | .advads-table-flex > div > div { |
| 1229 | flex: 1; |
| 1230 | } |
| 1231 | |
| 1232 | /** |
| 1233 | * RESPONSIVE BEHAVIOR |
| 1234 | * mobile is default |
| 1235 | * we actually define behavior for larger screens here |
| 1236 | */ |
| 1237 | @media screen and (min-width: 600px) { |
| 1238 | /* show ad options below the label instead of next to them */ |
| 1239 | .advads-option-list > .label { float: left; width: 10em; } |
| 1240 | .advads-option-list > .label + div { float: left; max-width: calc(100% - (10em + 40px)); } |
| 1241 | |
| 1242 | /* tables */ |
| 1243 | .advads-option-table { width:100%; } |
| 1244 | .advads-option-table thead { display: table-header-group; } |
| 1245 | .advads-option-table tbody td, .advads-option-table tfoot th { display: table-cell; } |
| 1246 | .advads-option-table tbody td:before, .advads-option-table tfoot th:before { display: none; } |
| 1247 | .advads-option-table .advads-hide-above-medium-screen { |
| 1248 | display: none; |
| 1249 | } |
| 1250 | |
| 1251 | } |
| 1252 | @media screen and (min-width: 1150px) { |
| 1253 | /* tables */ |
| 1254 | .advads-option-table-responsive { width:100%; } |
| 1255 | .advads-option-table-responsive thead { display: table-header-group; } |
| 1256 | .advads-option-table-responsive tbody td, .advads-option-table-responsive tfoot th { display: table-cell; } |
| 1257 | .advads-option-table-responsive tbody td:before, .advads-option-table-responsive tfoot th:before { display: none; } |
| 1258 | } |
| 1259 | @media (min-width: 1200px) { |
| 1260 | .advads-table .advads-table-name { |
| 1261 | font-size: 1.2em; |
| 1262 | width: calc(97% - 70px); |
| 1263 | display: inline-block; |
| 1264 | vertical-align: top; |
| 1265 | } |
| 1266 | .advads-table img { |
| 1267 | height: auto; |
| 1268 | width: 65px; |
| 1269 | margin-right: 3%; |
| 1270 | display: inline-block; |
| 1271 | } |
| 1272 | } |
| 1273 | @media (min-width: 60em) { |
| 1274 | .advads-modal-content { |
| 1275 | height: 75%; |
| 1276 | margin: 5% auto; |
| 1277 | max-width: 66em; |
| 1278 | width: 85%; |
| 1279 | } |
| 1280 | } |
| 1281 | @media screen and (max-width: 500px) { |
| 1282 | .advads-placements-table .advads-option > span { |
| 1283 | float: none; |
| 1284 | width: 100%; |
| 1285 | margin-bottom: 15px; |
| 1286 | } |
| 1287 | .advads-placements-table .advads-option > span + div { |
| 1288 | margin-left: 0; |
| 1289 | } |
| 1290 | } |
| 1291 | |
| 1292 | @media screen and (max-width: 782px) { |
| 1293 | .advads-placements-table.wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-primary~td:not(.check-column) { |
| 1294 | padding-left: 10px; |
| 1295 | } |
| 1296 | .advads-placements-show-options { |
| 1297 | text-align: center; |
| 1298 | } |
| 1299 | .advads-mobile-hidden { |
| 1300 | display: none !important; |
| 1301 | } |
| 1302 | .advads-option > span + div select { |
| 1303 | margin-bottom: 15px; |
| 1304 | } |
| 1305 | .advads-modal-content .advads-option > div label { |
| 1306 | display: block; |
| 1307 | margin-left: 0; |
| 1308 | margin-bottom: 5px; |
| 1309 | padding-top: 5px; |
| 1310 | } |
| 1311 | } |
| 1312 | |
| 1313 | /** |
| 1314 | * Buttons |
| 1315 | */ |
| 1316 | .button.advads-button-primary, .post-type-advanced_ads .button.button-primary { |
| 1317 | background-color: #0474a2; |
| 1318 | color: #fff; |
| 1319 | border: 1px solid #0474a2; |
| 1320 | } |
| 1321 | |
| 1322 | .button.advads-button-primary a { |
| 1323 | color: #fff; |
| 1324 | } |
| 1325 | |
| 1326 | .button.advads-button-secondary { |
| 1327 | border-color: #0474a2; |
| 1328 | color: #0474a2; |
| 1329 | background-color: #fff; |
| 1330 | } |
| 1331 | |
| 1332 | .button.advads-button-secondary a { |
| 1333 | color: #0474a2; |
| 1334 | color: #0474a2; |
| 1335 | } |
| 1336 | |
| 1337 | .button.advads-button-primary:hover, .post-type-advanced_ads .button.button-primary:hover { |
| 1338 | background-color: #1B183A; |
| 1339 | border-color: #1B183A; |
| 1340 | color: #fff; |
| 1341 | } |
| 1342 | |
| 1343 | .button.advads-button-secondary:hover { |
| 1344 | background-color: #fff; |
| 1345 | border-color: #1B183A; |
| 1346 | color: #1B183A; |
| 1347 | } |
| 1348 | |
| 1349 | .button.advads-button-primary:hover a { |
| 1350 | color: #fff; |
| 1351 | } |
| 1352 | |
| 1353 | .button.advads-button-secondary:hover a { |
| 1354 | color: #1B183A; |
| 1355 | } |
| 1356 | |
| 1357 | /* Actionable buttons have icons on the left */ |
| 1358 | .advads-button-primary .dashicons, |
| 1359 | .advads-button-secondary .dashicons { |
| 1360 | line-height: 30px; |
| 1361 | margin-left: -5px; |
| 1362 | padding-right: 5px; |
| 1363 | } |
| 1364 | |
| 1365 | /* Decorative icons are on the right */ |
| 1366 | .advads-button-icon-right .dashicons { |
| 1367 | line-height: 30px; |
| 1368 | margin-left: 0; |
| 1369 | padding-right: 0; |
| 1370 | margin-right: -5px; |
| 1371 | padding-left: 5px; |
| 1372 | } |
| 1373 | |
| 1374 | .button .dashicons.dashicons-star-filled { |
| 1375 | margin-top: -2px; |
| 1376 | } |
| 1377 | |
| 1378 | /** |
| 1379 | MODULE ACTIVATION |
| 1380 | */ |
| 1381 | .advads-sub-settings { |
| 1382 | display: none; |
| 1383 | } |
| 1384 | |
| 1385 | input.advads-has-sub-settings:checked ~ .advads-sub-settings { |
| 1386 | display: block; |
| 1387 | } |
| 1388 | |
| 1389 | /** |
| 1390 | Gutenberg block |
| 1391 | */ |
| 1392 | .advads-block-hint { |
| 1393 | margin-top: 1em; |
| 1394 | } |
| 1395 | |
| 1396 | /** |
| 1397 | * DEPRECATED |
| 1398 | */ |
| 1399 | /* use "advads-notice-inline advads-error" classes instead */ |
| 1400 | .advads-error-message { |
| 1401 | color: #dc3232 !important; |
| 1402 | } |
| 1403 | .advads-error-message a { |
| 1404 | color: #dc3232; |
| 1405 | text-decoration: underline; |
| 1406 | } |
| 1407 |