cloudflare/Cloudflare-WordPress

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
eb017394dbaaa9165624f11da8810a09eed890f0

Branches

Tags

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

Clone

HTTPS

Download ZIP

stylesheets/hacks.css

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