PluginProbe
Authorizer / 3.0.5
Authorizer v3.0.5
3.15.3 3.15.2 3.15.1 3.15.0 3.14.3 3.14.4 3.14.2 3.14.1 2.8.1 2.8.2 2.8.3 2.8.4 2.8.5 2.8.6 2.8.7 2.8.8 2.9.0 2.9.1 2.9.10 2.9.11 2.9.12 2.9.13 2.9.2 2.9.3 2.9.6 All 126 releases
authorizer / css / authorizer.scss

authorizer.scss in Authorizer 3.0.5, at css/authorizer.scss

566 lines 12.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 // Authorizer Settings (wp-admin) styles.
2 // Compiles to: authorizer.css via `lessc authorizer.scss authorizer.css`.
3
4
5 // Target just the Dashboard > Authorizer, and Network Dashboard > Authorizer.
6 .toplevel_page_authorizer,
7 .settings_page_authorizer {
8 // Banner image (bottom corner; fade if not scrolled to the bottom).
9 #wpwrap::before {
10 background: url('../images/authorizer-banner-400x300.png') no-repeat right bottom;
11 background-attachment: fixed;
12 content: "";
13 position: absolute;
14 top: 0;
15 left: 0;
16 width: 100%;
17 height: 100%;
18 opacity: 0.2;
19 z-index: -1;
20 transition: opacity 1s ease;
21 }
22 @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
23 #wpwrap::before {
24 background: url('../images/authorizer-banner-800x600.png') no-repeat right bottom;
25 background-size: 400px 300px;
26 }
27 }
28 #wpwrap.not-faded::before {
29 opacity: 1;
30 }
31
32 // No bottom margins on user lists.
33 #list_auth_settings_access_users_pending,
34 #list_auth_settings_access_users_approved,
35 #list_auth_settings_access_users_blocked {
36 margin-bottom: 0;
37 }
38
39 // Fade multisite users (not editable).
40 .auth-multisite-username,
41 .auth-multisite-email,
42 .auth-multisite-role,
43 .auth-multisite-usermeta,
44 .auth-multisite-date-added {
45 opacity: 0.5;
46 }
47
48 // Demo CAS login button sizing.
49 .button.button-external {
50 padding: 3px 16px;
51 height: 40px;
52 }
53 .button-external .dashicons {
54 margin: 4px 4px 0 0;
55 font-size: 24px;
56 }
57 .button-external input[type=text]=text] {
58 width: 100px;
59 }
60 @media screen and (max-width: 782px) {
61 .button-external {
62 width: 280px;
63 height: 50px;
64 font-size: 16px;
65 }
66 .button-external .dashicons {
67 margin: 4px 16px 0 0;
68 font-size: 30px;
69 }
70 .button-external input[type=text]=text] {
71 width: 120px;
72 display: inline;
73 }
74 }
75
76 // Mobile screen sizing.
77 @media screen and (max-width: 782px) {
78 .animated_wrapper {
79 width: 100% !important;
80 }
81 th {
82 padding: 8px 0 0;
83 }
84 td {
85 padding: 8px 0px;
86 }
87 #auth_settings_google_clientid {
88 width: 100%;
89 }
90
91 // Make pager fit on one line.
92 .tablenav {
93 .tablenav-pages {
94 text-align: left;
95 }
96
97 .current-page {
98 width: auto;
99 display: inline;
100 }
101 }
102
103 // Make "Limit invalid login attempts" inputs inline so they read like a
104 // sentence.
105 #auth_settings_advanced_lockouts_attempts_1,
106 #auth_settings_advanced_lockouts_duration_1,
107 #auth_settings_advanced_lockouts_attempts_2,
108 #auth_settings_advanced_lockouts_duration_2,
109 #auth_settings_advanced_lockouts_reset_duration {
110 display: inline;
111 }
112
113 // Textarea heights should match text/select heights on mobile.
114 textarea {
115 padding: 3px 10px;
116 line-height: 2;
117 min-height: 40px;
118 }
119
120 // Make Bootstrap button group label vertically centered.
121 @media screen and (max-width: 782px) {
122 .button-add-user {
123 line-height: 37px;
124 }
125 }
126 }
127
128 // Expand/collapse option sections.
129 .form-table {
130 th,
131 td {
132 &.hide-animate {
133 padding: 0;
134 transition: padding 0.25s ease;
135 }
136
137 &.hide-no-animate {
138 padding: 0;
139 }
140 }
141 }
142
143 // Remove 14px padding above pending user list (alignment with left label).
144 #list_auth_settings_access_users_pending {
145 margin: 6px 0;
146 }
147
148 // Remove 14px padding above blocked user list (alignment with left label).
149 #list_auth_settings_access_users_blocked {
150 margin: 0;
151 }
152
153 // Fix background and sizing of public pages (toggle lists).
154 .ms-container {
155 .ms-selectable,
156 .ms-selection {
157 background: none;
158 }
159 .ms-list {
160 background: white;
161
162 }
163 }
164
165
166 // Flex layout for user lists (pending, approved, blocked).
167 #list_auth_settings_access_users_pending li,
168 #new_auth_settings_access_users_pending,
169 #list_auth_settings_access_users_approved li,
170 #new_auth_settings_access_users_approved,
171 #list_auth_settings_access_users_blocked li,
172 #new_auth_settings_access_users_blocked {
173 // Spacing between elements.
174 & > :not(:last-child) { margin-right: 4px; }
175
176 // Let email and role grow the most.
177 & > :nth-child(1) { flex-grow: 4; }
178 & > :nth-child(2) { flex-grow: 2; }
179 }
180 }
181
182
183 // Target just the Dashboard widget.
184 #auth_dashboard_widget {
185 // Disable fixed height in table nav (widget usually too narrow so search
186 // wraps to second line).
187 .tablenav {
188 height: auto;
189
190 .tablenav-pages {
191 float: none;
192 }
193
194 #user-search-input {
195 max-width: 80px;
196 }
197 }
198
199 // Tighter flex layout for user lists (pending, approved, blocked).
200 #list_auth_settings_access_users_pending li,
201 #new_auth_settings_access_users_pending,
202 #list_auth_settings_access_users_approved li,
203 #new_auth_settings_access_users_approved,
204 #list_auth_settings_access_users_blocked li,
205 #new_auth_settings_access_users_blocked {
206 flex-wrap: wrap;
207 margin-bottom: 12px;
208
209 // Spacing between elements.
210 & > :not(:last-child) {
211 margin-right: 2px;
212 }
213
214 // Let email and role grow the most.
215 & > :nth-child(1) { flex-grow: 1; }
216
217 // Shrink role dropdown.
218 .auth-role { max-width: 80px; }
219
220 // Specifically shrink fields when near media breakpoints to prevent
221 // wrapping to a second line when it's "really close."
222 // Breakpoints:
223 // 1 column: < 800px
224 @media only screen and (max-width: 550px) and (min-width:0px) {
225 .auth-email { max-width: 140px; }
226 }
227 // 2 column: 800px - 1499px
228 @media only screen and (max-width: 900px) and (min-width:800px) {
229 .auth-email { max-width: 200px; }
230 .auth-role { max-width: 140px; }
231 }
232 // 3 column: 1500px - 1800px
233 @media only screen and (max-width: 1550px) and (min-width:1500px) {
234 .auth-email { max-width: 200px; }
235 .auth-role { max-width: 140px; }
236 }
237 // 4 column: > 1800px
238 @media only screen and (max-width: 1800px) and (min-width:1500px) {
239 }
240 }
241
242 // Use flexbox to keep everything on one line in approved list.
243 #list_auth_settings_access_users_approved li {
244 flex-wrap: nowrap;
245 & > * { flex: 0 0 auto; }
246 & > :nth-child(1) { flex-shrink: 1; }
247 & > :nth-child(2) { flex-shrink: 1; }
248 & > :nth-child(3) { flex-shrink: 2; }
249 & > :nth-child(4) { flex-shrink: 2; }
250 & > :nth-child(5) { flex-shrink: 1; }
251 input, select { min-width: 0; }
252 }
253 }
254
255
256 // Target Dashboard > Authorizer, Network Dashboard > Authorizer, and Dashboard
257 // widget.
258 .toplevel_page_authorizer,
259 .settings_page_authorizer,
260 #auth_dashboard_widget {
261 // Dashicons in buttons.
262 .button.dashicons-before:before {
263 vertical-align: middle;
264 padding-right: 2px;
265 font-size: 16px;
266 }
267
268 // Room at the bottom for logo.
269 #wpbody-content {
270 padding-bottom: 240px;
271 }
272
273 // Flex layout for user lists (pending, approved, blocked).
274 #list_auth_settings_access_users_pending li,
275 #new_auth_settings_access_users_pending,
276 #list_auth_settings_access_users_approved li,
277 #new_auth_settings_access_users_approved,
278 #list_auth_settings_access_users_blocked li,
279 #new_auth_settings_access_users_blocked {
280 display: flex;
281 justify-content: flex-start;
282 }
283
284 // Hide Role dropdown on Blocked user list.
285 #list_auth_settings_access_users_blocked .auth-role,
286 #new_auth_settings_access_users_blocked .auth-role {
287 display: none;
288 }
289
290 // Colors for user lists.
291 #list_auth_settings_access_users_pending {
292 .auth-email {
293 border-color: #ecf195;
294 background-color: #f5f8c4;
295 }
296 }
297 #list_auth_settings_access_users_approved {
298 .auth-email {
299 background-color: #dcf0be;
300 border-color: #8dc33c;
301 }
302 }
303 #list_auth_settings_access_users_blocked {
304 .auth-email {
305 background-color: #facbc5;
306 border-color: #ea7e70;
307 }
308 }
309
310 // Cap max size of date and meta (no need for them to grow large).
311 .auth-date-added,
312 .auth-usermeta {
313 max-width: 80px;
314 }
315
316 // Hidden element (maintains space).
317 .invisible {
318 visibility: hidden;
319 }
320
321 // Multisite overlays.
322 .auth_multisite_override_overlay {
323 .overlay-note {
324 background: white;
325 border: 1px solid #aaa;
326 cursor: default;
327 margin: 11px 15em;
328 opacity: 0;
329 padding: 8px;
330 position: absolute;
331 -webkit-transition: opacity 0.1s ease-in-out;
332 -moz-transition: opacity 0.1s ease-in-out;
333 transition: opacity 0.1s ease-in-out;
334
335 a {
336 cursor: pointer;
337 }
338 }
339 &:hover .overlay-note { opacity: 1; }
340 }
341
342 // Bootstrap customizations (typically because of conflicts with WordPress styles)
343 .dropdown-menu > li {
344 margin-bottom: 0 !important;
345 }
346 .dropdown-menu > li > a {
347 text-decoration: none !important;
348 white-space: normal !important; // Allow text to wrap to multiple lines.
349 }
350 .dropdown-toggle {
351 border-bottom: 0;
352 }
353 .dropdown-toggle-split {
354 padding-right: .5625rem;
355 padding-left: .5625rem;
356
357 &::after {
358 margin-left: 0;
359 }
360 }
361
362 // Portions below from Bootstrap.
363 // http://getbootstrap.com/getting-started/#download
364 .sr-only {
365 border: 0;
366 clip: rect(0, 0, 0, 0);
367 height: 1px;
368 margin: -1px;
369 overflow: hidden;
370 padding: 0;
371 position: absolute;
372 width: 1px;
373 }
374
375 .caret {
376 border-left: 4px solid transparent;
377 border-right: 4px solid transparent;
378 border-top: 4px solid;
379 display: inline-block;
380 height: 0;
381 margin-left: 2px;
382 vertical-align: middle;
383 width: 0;
384 }
385 .dropdown {
386 position: relative;
387 }
388 .dropdown-toggle:focus {
389 outline: 0;
390 }
391 .dropdown-menu {
392 background-clip: padding-box;
393 background-color: #fff;
394 border: 1px solid #ccc;
395 border: 1px solid rgba(0, 0, 0, .15);
396 border-radius: 4px;
397 -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
398 box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
399 display: none;
400 float: left;
401 font-size: 14px;
402 right: 0;
403 list-style: none;
404 margin: 2px 0 0;
405 min-width: 160px;
406 padding: 5px 0;
407 position: absolute;
408 top: 100%;
409 z-index: 1000;
410 }
411 .dropdown-menu.pull-right {
412 left: auto;
413 right: 0;
414 }
415 .dropdown-menu .divider {
416 background-color: #e5e5e5;
417 height: 1px;
418 margin: 9px 0;
419 overflow: hidden;
420 }
421 .dropdown-menu > li > a {
422 clear: both;
423 color: #333;
424 display: block;
425 font-weight: normal;
426 line-height: 1.42857143;
427 padding: 3px 20px;
428 white-space: nowrap;
429 }
430 .dropdown-menu > li > a:hover,
431 .dropdown-menu > li > a:focus {
432 background-color: #f5f5f5;
433 color: #262626;
434 text-decoration: none;
435 }
436 .dropdown-menu > .active > a,
437 .dropdown-menu > .active > a:hover,
438 .dropdown-menu > .active > a:focus {
439 background-color: #428bca;
440 color: #fff;
441 outline: 0;
442 text-decoration: none;
443 }
444 .dropdown-menu > .disabled > a,
445 .dropdown-menu > .disabled > a:hover,
446 .dropdown-menu > .disabled > a:focus {
447 color: #999;
448 }
449 .dropdown-menu > .disabled > a:hover,
450 .dropdown-menu > .disabled > a:focus {
451 background-color: transparent;
452 background-image: none;
453 cursor: not-allowed;
454 filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
455 text-decoration: none;
456 }
457 .open > .dropdown-menu {
458 display: block;
459 }
460 .open > a {
461 outline: 0;
462 }
463
464 .btn-group,
465 .btn-group-vertical {
466 display: inline-flex;
467 position: relative;
468 vertical-align: middle;
469 }
470 .btn-group > .btn,
471 .btn-group-vertical > .btn {
472 flex: 0 1 auto;
473 position: relative;
474 }
475 .btn-group > .btn:hover,
476 .btn-group-vertical > .btn:hover,
477 .btn-group > .btn:focus,
478 .btn-group-vertical > .btn:focus,
479 .btn-group > .btn:active,
480 .btn-group-vertical > .btn:active,
481 .btn-group > .btn.active,
482 .btn-group-vertical > .btn.active {
483 z-index: 2;
484 }
485 .btn-group > .btn:focus,
486 .btn-group-vertical > .btn:focus {
487 outline: none;
488 }
489 .btn-group .btn + .btn,
490 .btn-group .btn + .btn-group,
491 .btn-group .btn-group + .btn,
492 .btn-group .btn-group + .btn-group {
493 margin-left: -1px;
494 }
495 .btn-toolbar {
496 margin-left: -5px;
497 }
498 .btn-toolbar .btn-group,
499 .btn-toolbar .input-group {
500 float: left;
501 }
502 .btn-toolbar > .btn,
503 .btn-toolbar > .btn-group,
504 .btn-toolbar > .input-group {
505 margin-left: 5px;
506 }
507 .btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) {
508 border-radius: 0;
509 }
510 .btn-group > .btn:first-child {
511 margin-left: 0;
512 }
513 .btn-group > .btn:first-child:not(:last-child):not(.dropdown-toggle) {
514 border-bottom-right-radius: 0;
515 border-top-right-radius: 0;
516 }
517 .btn-group > .btn:last-child:not(:first-child),
518 .btn-group > .dropdown-toggle:not(:first-child) {
519 border-bottom-left-radius: 0;
520 border-top-left-radius: 0;
521 }
522 .btn-group > .btn-group {
523 float: left;
524 }
525 .btn-group > .btn-group:not(:first-child):not(:last-child) > .btn {
526 border-radius: 0;
527 }
528 .btn-group > .btn-group:first-child > .btn:last-child,
529 .btn-group > .btn-group:first-child > .dropdown-toggle {
530 border-bottom-right-radius: 0;
531 border-top-right-radius: 0;
532 }
533 .btn-group > .btn-group:last-child > .btn:first-child {
534 border-bottom-left-radius: 0;
535 border-top-left-radius: 0;
536 }
537 .btn-group .dropdown-toggle:active,
538 .btn-group.open .dropdown-toggle {
539 outline: 0;
540 }
541 .btn-group > .btn + .dropdown-toggle {
542 padding-left: 8px;
543 padding-right: 8px;
544 }
545 .btn-group > .btn-lg + .dropdown-toggle {
546 padding-left: 12px;
547 padding-right: 12px;
548 }
549 .btn-group.open .dropdown-toggle {
550 -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
551 box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
552 }
553 .btn-group.open .dropdown-toggle.btn-link {
554 -webkit-box-shadow: none;
555 box-shadow: none;
556 }
557 .btn .caret {
558 margin-left: 0;
559 }
560 }
561
562 // Busy cursor for ajax calls.
563 html.busy, html.busy * {
564 cursor: wait !important;
565 }
566