cloudflare/Cloudflare-WordPress

Public

mirrored fromhttps://github.com/cloudflare/Cloudflare-WordPress

CodeCommitsIssuesPull requestsActionsInsightsSecurity
v3.8.10

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

stylesheets/hacks.css

530lines · modecode

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