cloudflare/Cloudflare-WordPress

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
13783d08028c0f691bb0362c59edb59ecf601a04

Branches

Tags

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

Clone

HTTPS

Download ZIP

stylesheets/hacks.css

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