cloudflare/Cloudflare-WordPress
Publicmirrored fromhttps://github.com/cloudflare/Cloudflare-WordPress
stylesheets/hacks.css
460lines · modecode
9 years ago
| 1 | /* |
| 2 | * Currently we're using two style sheets while WWW restyles from Backbone > React. |
| 3 | * Eventually all the styles will live in components.css but until that day we'll hack |
| 4 | * everything here. |
| 5 | */ |
| 6 | |
| 7 | /* fix WordPress AdminPanel Settings */ |
| 8 | #adminmenu .wp-submenu { |
| 9 | margin-left: 0em; /* new */ |
| 10 | } |
| 11 | |
| 12 | /* fix WordPress notification z-index being lower than |
| 13 | * WordPress Admin Panel z-index level. |
| 14 | */ |
| 15 | .cf-notifications__global_container { |
| 16 | z-index: 9999; /* new */ |
| 17 | } |
| 18 | |
| 19 | /* fix Cpanel Plugin title */ |
| 20 | span#pageHeading { |
| 21 | display: block; |
| 22 | } |
| 23 | |
| 24 | /* fix the wrapper to stick to top */ |
| 25 | .wrapper { |
| 26 | margin-top: 20px; /* new */ |
| 27 | } |
| 28 | |
| 29 | /* center the dot in radio button */ |
| 30 | input[type="radio"]:checked:before { |
| 31 | margin-top: 3px; /* new */ |
| 32 | margin-left: 4px; /* new */ |
| 33 | height: 6px; /* 7px */ |
| 34 | left: 0px; /* 3px */ |
| 35 | top: 0px; /* 7px */ |
| 36 | width: 6px; /* 7px */ |
| 37 | } |
| 38 | |
| 39 | /* change bg of body, wrapper */ |
| 40 | body, .cloudflare-partners .wrapper { |
| 41 | background-color: #ebebeb; /* new */ |
| 42 | } |
| 43 | |
| 44 | /* hide checkbox on cf-component-toggle */ |
| 45 | .cloudflare-partners .cf-toggle input[type=checkbox] { |
| 46 | display: none; /* block */ |
| 47 | } |
| 48 | |
| 49 | /* center and change bg color of app nav */ |
| 50 | .cloudflare-partners .apps-nav-container { |
| 51 | background-color: #ebebeb; /* new */ |
| 52 | padding: 0.66667rem 0; |
| 53 | position: relative; |
| 54 | } |
| 55 | .cloudflare-partners .slider-nav-container { |
| 56 | display: table; |
| 57 | list-style: none; |
| 58 | margin: 0; |
| 59 | padding: 0; |
| 60 | table-layout: fixed; |
| 61 | width: auto; /* 100% */ |
| 62 | margin: 0 auto; /* new */ |
| 63 | } |
| 64 | |
| 65 | /* app nav performance text is hidden */ |
| 66 | .cloudflare-partners .icon-item a { |
| 67 | color: #333333; |
| 68 | display: block; |
| 69 | font-size: 0.8rem; |
| 70 | line-height: 1.2; |
| 71 | margin: 0 auto; |
| 72 | overflow: visible; /* hidden */ |
| 73 | -ms-text-overflow: ellipsis; |
| 74 | -o-text-overflow: ellipsis; |
| 75 | text-overflow: ellipsis; |
| 76 | padding-bottom: 0.26667em; |
| 77 | position: relative; |
| 78 | } |
| 79 | |
| 80 | /* center cf-component-toggle in cards */ |
| 81 | label.cf-toggle { |
| 82 | margin: 0 auto; |
| 83 | } |
| 84 | |
| 85 | /* align checkbox/radios */ |
| 86 | .cloudflare-partners .cf-radio__group, .cloudflare-partners .cf-checkbox__group { |
| 87 | text-align: left; /* new */ |
| 88 | } |
| 89 | |
| 90 | /* White bg for analytics */ |
| 91 | .cloudflare-partners section.cf-tabs { |
| 92 | background-color: #FFF; |
| 93 | } |
| 94 | |
| 95 | /* Fix Analytics Tabs overflow */ |
| 96 | .cloudflare-partners .cf-tabs__group { |
| 97 | margin-left: 0; |
| 98 | } |
| 99 | |
| 100 | /* More space between radio/checkbox and text */ |
| 101 | |
| 102 | .cloudflare-partners input[type="radio"], .cloudflare-partners input[type="checkbox"] { |
| 103 | height: 15px; |
| 104 | line-height: normal; |
| 105 | margin: 0px 5px 0; |
| 106 | padding: 5px; |
| 107 | position: relative; |
| 108 | width: 15px; |
| 109 | -moz-appearance: none; |
| 110 | -webkit-appearance: none; |
| 111 | } |
| 112 | |
| 113 | /* fix modal */ |
| 114 | .cf-modal__actions { |
| 115 | float: none; /* right */ |
| 116 | } |
| 117 | |
| 118 | /* hide input on <CloudToggle/> */ |
| 119 | label.proxy input { |
| 120 | display: none; |
| 121 | } |
| 122 | |
| 123 | /* cf-component-select */ |
| 124 | /** |
| 125 | * React Select |
| 126 | * ============ |
| 127 | * Created by Jed Watson and Joss Mackison for KeystoneJS, http://www.keystonejs.com/ |
| 128 | * https://twitter.com/jedwatson https://twitter.com/jossmackison https://twitter.com/keystonejs |
| 129 | * MIT License: https://github.com/keystonejs/react-select |
| 130 | */ |
| 131 | .Select { |
| 132 | position: relative; |
| 133 | } |
| 134 | .Select, |
| 135 | .Select div, |
| 136 | .Select input, |
| 137 | .Select span { |
| 138 | -webkit-box-sizing: border-box; |
| 139 | -moz-box-sizing: border-box; |
| 140 | box-sizing: border-box; |
| 141 | } |
| 142 | .Select.is-disabled > .Select-control { |
| 143 | background-color: #f9f9f9; |
| 144 | } |
| 145 | .Select.is-disabled > .Select-control:hover { |
| 146 | box-shadow: none; |
| 147 | } |
| 148 | .Select.is-disabled .Select-arrow-zone { |
| 149 | cursor: default; |
| 150 | pointer-events: none; |
| 151 | } |
| 152 | .Select-control { |
| 153 | background-color: #fff; |
| 154 | border-color: #d9d9d9 #ccc #b3b3b3; |
| 155 | border-radius: 4px; |
| 156 | border: 1px solid #ccc; |
| 157 | color: #333; |
| 158 | cursor: default; |
| 159 | display: table; |
| 160 | height: 36px; |
| 161 | outline: none; |
| 162 | overflow: hidden; |
| 163 | position: relative; |
| 164 | width: 100%; |
| 165 | } |
| 166 | .Select-control:hover { |
| 167 | box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06); |
| 168 | } |
| 169 | .is-searchable.is-open > .Select-control { |
| 170 | cursor: text; |
| 171 | } |
| 172 | .is-open > .Select-control { |
| 173 | border-bottom-right-radius: 0; |
| 174 | border-bottom-left-radius: 0; |
| 175 | background: #fff; |
| 176 | border-color: #b3b3b3 #ccc #d9d9d9; |
| 177 | } |
| 178 | .is-open > .Select-control > .Select-arrow { |
| 179 | border-color: transparent transparent #999; |
| 180 | border-width: 0 5px 5px; |
| 181 | } |
| 182 | .is-searchable.is-focused:not(.is-open) > .Select-control { |
| 183 | cursor: text; |
| 184 | } |
| 185 | .is-focused:not(.is-open) > .Select-control { |
| 186 | border-color: #007eff; |
| 187 | box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 0 3px rgba(0, 126, 255, 0.1); |
| 188 | } |
| 189 | .Select-placeholder, |
| 190 | :not(.Select--multi) > .Select-control .Select-value { |
| 191 | bottom: 0; |
| 192 | color: #000; |
| 193 | left: 0; |
| 194 | line-height: 34px; |
| 195 | padding-left: 10px; |
| 196 | padding-right: 10px; |
| 197 | position: absolute; |
| 198 | right: 0; |
| 199 | top: 0; |
| 200 | max-width: 100%; |
| 201 | overflow: hidden; |
| 202 | text-overflow: ellipsis; |
| 203 | white-space: nowrap; |
| 204 | } |
| 205 | .has-value:not(.Select--multi) > .Select-control > .Select-value .Select-value-label, |
| 206 | .has-value.is-pseudo-focused:not(.Select--multi) > .Select-control > .Select-value .Select-value-label { |
| 207 | color: #333; |
| 208 | } |
| 209 | .has-value:not(.Select--multi) > .Select-control > .Select-value a.Select-value-label, |
| 210 | .has-value.is-pseudo-focused:not(.Select--multi) > .Select-control > .Select-value a.Select-value-label { |
| 211 | cursor: pointer; |
| 212 | text-decoration: none; |
| 213 | } |
| 214 | .has-value:not(.Select--multi) > .Select-control > .Select-value a.Select-value-label:hover, |
| 215 | .has-value.is-pseudo-focused:not(.Select--multi) > .Select-control > .Select-value a.Select-value-label:hover, |
| 216 | .has-value:not(.Select--multi) > .Select-control > .Select-value a.Select-value-label:focus, |
| 217 | .has-value.is-pseudo-focused:not(.Select--multi) > .Select-control > .Select-value a.Select-value-label:focus { |
| 218 | color: #007eff; |
| 219 | outline: none; |
| 220 | text-decoration: underline; |
| 221 | } |
| 222 | .Select-input { |
| 223 | height: 34px; |
| 224 | padding-left: 10px; |
| 225 | padding-right: 10px; |
| 226 | vertical-align: middle; |
| 227 | } |
| 228 | .Select-input > input { |
| 229 | background: none transparent; |
| 230 | border: 0 none; |
| 231 | box-shadow: none; |
| 232 | cursor: default; |
| 233 | display: inline-block; |
| 234 | font-family: inherit; |
| 235 | font-size: inherit; |
| 236 | height: 34px; |
| 237 | margin: 0; |
| 238 | outline: none; |
| 239 | padding: 0; |
| 240 | -webkit-appearance: none; |
| 241 | } |
| 242 | .is-focused .Select-input > input { |
| 243 | cursor: text; |
| 244 | } |
| 245 | .has-value.is-pseudo-focused .Select-input { |
| 246 | opacity: 0; |
| 247 | } |
| 248 | .Select-control:not(.is-searchable) > .Select-input { |
| 249 | outline: none; |
| 250 | } |
| 251 | .Select-loading-zone { |
| 252 | cursor: pointer; |
| 253 | display: table-cell; |
| 254 | position: relative; |
| 255 | text-align: center; |
| 256 | vertical-align: middle; |
| 257 | width: 16px; |
| 258 | } |
| 259 | .Select-loading { |
| 260 | -webkit-animation: Select-animation-spin 400ms infinite linear; |
| 261 | -o-animation: Select-animation-spin 400ms infinite linear; |
| 262 | animation: Select-animation-spin 400ms infinite linear; |
| 263 | width: 16px; |
| 264 | height: 16px; |
| 265 | box-sizing: border-box; |
| 266 | border-radius: 50%; |
| 267 | border: 2px solid #ccc; |
| 268 | border-right-color: #333; |
| 269 | display: inline-block; |
| 270 | position: relative; |
| 271 | vertical-align: middle; |
| 272 | } |
| 273 | .Select-clear-zone { |
| 274 | -webkit-animation: Select-animation-fadeIn 200ms; |
| 275 | -o-animation: Select-animation-fadeIn 200ms; |
| 276 | animation: Select-animation-fadeIn 200ms; |
| 277 | color: #999; |
| 278 | cursor: pointer; |
| 279 | display: table-cell; |
| 280 | position: relative; |
| 281 | text-align: center; |
| 282 | vertical-align: middle; |
| 283 | width: 17px; |
| 284 | } |
| 285 | .Select-clear-zone:hover { |
| 286 | color: #D0021B; |
| 287 | } |
| 288 | .Select-clear { |
| 289 | display: inline-block; |
| 290 | font-size: 18px; |
| 291 | line-height: 1; |
| 292 | } |
| 293 | .Select--multi .Select-clear-zone { |
| 294 | width: 17px; |
| 295 | } |
| 296 | .Select-arrow-zone { |
| 297 | cursor: pointer; |
| 298 | display: table-cell; |
| 299 | position: relative; |
| 300 | text-align: center; |
| 301 | vertical-align: middle; |
| 302 | width: 25px; |
| 303 | padding-right: 5px; |
| 304 | } |
| 305 | .Select-arrow { |
| 306 | border-color: #999 transparent transparent; |
| 307 | border-style: solid; |
| 308 | border-width: 5px 5px 2.5px; |
| 309 | display: inline-block; |
| 310 | height: 0; |
| 311 | width: 0; |
| 312 | } |
| 313 | .is-open .Select-arrow, |
| 314 | .Select-arrow-zone:hover > .Select-arrow { |
| 315 | border-top-color: #666; |
| 316 | } |
| 317 | @-webkit-keyframes Select-animation-fadeIn { |
| 318 | from { |
| 319 | opacity: 0; |
| 320 | } |
| 321 | to { |
| 322 | opacity: 1; |
| 323 | } |
| 324 | } |
| 325 | @keyframes Select-animation-fadeIn { |
| 326 | from { |
| 327 | opacity: 0; |
| 328 | } |
| 329 | to { |
| 330 | opacity: 1; |
| 331 | } |
| 332 | } |
| 333 | .Select-menu-outer { |
| 334 | border-bottom-right-radius: 4px; |
| 335 | border-bottom-left-radius: 4px; |
| 336 | background-color: #fff; |
| 337 | border: 1px solid #ccc; |
| 338 | border-top-color: #e6e6e6; |
| 339 | box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06); |
| 340 | box-sizing: border-box; |
| 341 | margin-top: -1px; |
| 342 | max-height: 200px; |
| 343 | position: absolute; |
| 344 | top: 100%; |
| 345 | width: 100%; |
| 346 | z-index: 10; |
| 347 | -webkit-overflow-scrolling: touch; |
| 348 | } |
| 349 | .Select-menu { |
| 350 | max-height: 198px; |
| 351 | overflow-y: auto; |
| 352 | } |
| 353 | .Select-option { |
| 354 | box-sizing: border-box; |
| 355 | background-color: #fff; |
| 356 | color: #666666; |
| 357 | cursor: pointer; |
| 358 | display: block; |
| 359 | padding: 8px 10px; |
| 360 | } |
| 361 | .Select-option:last-child { |
| 362 | border-bottom-right-radius: 4px; |
| 363 | border-bottom-left-radius: 4px; |
| 364 | } |
| 365 | .Select-option.is-focused { |
| 366 | background-color: rgba(0, 126, 255, 0.08); |
| 367 | color: #333; |
| 368 | } |
| 369 | .Select-option.is-disabled { |
| 370 | color: #cccccc; |
| 371 | cursor: default; |
| 372 | } |
| 373 | .Select-noresults { |
| 374 | box-sizing: border-box; |
| 375 | color: #999999; |
| 376 | cursor: default; |
| 377 | display: block; |
| 378 | padding: 8px 10px; |
| 379 | } |
| 380 | .Select--multi .Select-input { |
| 381 | vertical-align: middle; |
| 382 | margin-left: 10px; |
| 383 | padding: 0; |
| 384 | } |
| 385 | .Select--multi.has-value .Select-input { |
| 386 | margin-left: 5px; |
| 387 | } |
| 388 | .Select--multi .Select-value { |
| 389 | background-color: rgba(0, 126, 255, 0.08); |
| 390 | border-radius: 2px; |
| 391 | border: 1px solid rgba(0, 126, 255, 0.24); |
| 392 | color: #007eff; |
| 393 | display: inline-block; |
| 394 | font-size: 0.9em; |
| 395 | line-height: 1.4; |
| 396 | margin-left: 5px; |
| 397 | margin-top: 5px; |
| 398 | vertical-align: top; |
| 399 | } |
| 400 | .Select--multi .Select-value-icon, |
| 401 | .Select--multi .Select-value-label { |
| 402 | display: inline-block; |
| 403 | vertical-align: middle; |
| 404 | } |
| 405 | .Select--multi .Select-value-label { |
| 406 | border-bottom-right-radius: 2px; |
| 407 | border-top-right-radius: 2px; |
| 408 | cursor: default; |
| 409 | padding: 2px 5px; |
| 410 | } |
| 411 | .Select--multi a.Select-value-label { |
| 412 | color: #007eff; |
| 413 | cursor: pointer; |
| 414 | text-decoration: none; |
| 415 | } |
| 416 | .Select--multi a.Select-value-label:hover { |
| 417 | text-decoration: underline; |
| 418 | } |
| 419 | .Select--multi .Select-value-icon { |
| 420 | cursor: pointer; |
| 421 | border-bottom-left-radius: 2px; |
| 422 | border-top-left-radius: 2px; |
| 423 | border-right: 1px solid rgba(0, 126, 255, 0.24); |
| 424 | padding: 1px 5px 3px; |
| 425 | } |
| 426 | .Select--multi .Select-value-icon:hover, |
| 427 | .Select--multi .Select-value-icon:focus { |
| 428 | background-color: rgba(0, 113, 230, 0.08); |
| 429 | color: #0071e6; |
| 430 | } |
| 431 | .Select--multi .Select-value-icon:active { |
| 432 | background-color: rgba(0, 126, 255, 0.24); |
| 433 | } |
| 434 | .Select--multi.is-disabled .Select-value { |
| 435 | background-color: #fcfcfc; |
| 436 | border: 1px solid #e3e3e3; |
| 437 | color: #333; |
| 438 | } |
| 439 | .Select--multi.is-disabled .Select-value-icon { |
| 440 | cursor: not-allowed; |
| 441 | border-right: 1px solid #e3e3e3; |
| 442 | } |
| 443 | .Select--multi.is-disabled .Select-value-icon:hover, |
| 444 | .Select--multi.is-disabled .Select-value-icon:focus, |
| 445 | .Select--multi.is-disabled .Select-value-icon:active { |
| 446 | background-color: #fcfcfc; |
| 447 | } |
| 448 | @keyframes Select-animation-spin { |
| 449 | to { |
| 450 | transform: rotate(1turn); |
| 451 | } |
| 452 | } |
| 453 | @-webkit-keyframes Select-animation-spin { |
| 454 | to { |
| 455 | -webkit-transform: rotate(1turn); |
| 456 | } |
| 457 | } |
| 458 | |
| 459 | /* end cf-component-select */ |