MDL-49329 admin: Improve plugins overview page rendering
[moodle.git] / theme / bootstrapbase / less / moodle / admin.less
CommitLineData
8903b17b
BB
1/* admin.less */
2.formtable tbody th {
3 font-weight: normal;
4 text-align: right;
5}
6
7.path-admin #assignrole {
8 width: 60%;
9 margin-left: auto;
10 margin-right: auto;
11}
12
13.path-admin .admintable .leftalign {
14 text-align: left;
15}
16
1d66182d
BB
17.dir-rtl.path-admin .admintable .leftalign {
18 text-align: right;
19}
20
8903b17b
BB
21.environmenttable {
22 p.warn {
23 background-color : @warningBackground;
24 color: @warningText;
25 }
26 .error,
27 span.warn,
28 .ok {
29 .label;
30 }
31 .error {
32 background-color : @errorText;
33 }
34 span.warn {
35 background-color : @orange;
36 }
37 .ok {
38 background-color: @successText;
39 }
40}
41
42.path-admin .admintable.environmenttable .name,
43.path-admin .admintable.environmenttable .info,
44.path-admin #assignrole .admintable .role,
45.path-admin #assignrole .admintable .userrole,
46.path-admin #assignrole .admintable .roleholder {
47 white-space: nowrap;
48}
49
50.path-admin .incompatibleblockstable td.c0 {
51 font-weight: bold;
52}
53
54#page-admin-course-category .addcategory {
55 padding: 10px;
56}
57
58#page-admin-course-index .editcourse {
59 margin: 20px auto;
60}
61
62#page-admin-course-index .editcourse th,
63#page-admin-course-index .editcourse td {
64 padding-left: 10px;
65 padding-right: 10px;
66}
67
8903b17b
BB
68.timewarninghidden {
69 display: none;
70}
71.statusok,
72.statuswarning,
73.statusserious,
74.statuscritical {
75 .label;
76}
77.statusok {
78 background-color: @successText;
79}
80.statuswarning {
81 background-color: @warningText;
82}
83.statusserious {
84 background-color: @orange;
85}
86.statuscritical {
87 background-color: @errorText;
88}
89
90#page-admin-report-capability-index #capabilitysearch {
91 width: 30em;
92}
93
94#page-admin-report-backups-index .backup-error,
95#page-admin-report-backups-index .backup-unfinished {
96 color: @errorText;
97}
98
99#page-admin-report-backups-index .backup-skipped,
70f210c0
MN
100#page-admin-report-backups-index .backup-ok,
101#page-admin-report-backups-index .backup-notyetrun {
8903b17b
BB
102 color: @successText;
103}
104
105#page-admin-report-backups-index .backup-warning {
106 color: @warningText;
107}
108
109#page-admin-qtypes .disabled,
110#page-admin-qbehaviours .disabled {
111 .muted;
112}
113
114#page-admin-qtypes #qtypes div,
115#page-admin-qtypes #qtypes form,
116#page-admin-qbehaviours #qbehaviours div,
117#page-admin-qbehaviours #qbehaviours form {
118 display: inline;
119}
120
121#page-admin-qtypes #qtypes img.spacer,
122#page-admin-qbehaviours #qbehaviours img.spacer {
123 width: 16px;
124}
125
d9df063e 126// Make them more finger friendly.
8903b17b
BB
127img.iconsmall {
128 margin: 0;
129 padding: 0.3em;
130}
131
132
133#page-admin-qbehaviours .cell.c3,
134#page-admin-qtypes .cell.c3 {
135 font-size: @fontSizeMini;
136}
137
138#page-admin-lang .generalbox,
139#page-admin-course-index .singlebutton,
140#page-admin-course-index .addcategory,
141#page-course-index .buttons,
69bbd2a7 142#page-course-index-category .buttons,
8903b17b
BB
143#page-admin-course-category .addcategory,
144#page-admin-stickyblocks .generalbox,
145#page-admin-maintenance .buttons,
146#page-admin-course-index .buttons,
147#page-admin-course-category .buttons,
148#page-admin-index .copyright,
149#page-admin-index .copyrightnotice,
8903b17b
BB
150#page-admin-index .adminerror .singlebutton,
151#page-admin-index .adminwarning .singlebutton,
152#page-admin-index #layout-table .singlebutton {
153 text-align: center;
154 margin-bottom: 1em;
155}
156
157.path-admin-roles .capabilitysearchui {
158 text-align: left;
159 margin-left: auto;
160 margin-right: auto;
161}
162
163#page-admin-roles-define .topfields {
164 margin: 1em 0 2em;
165}
166
167#page-admin-roles-define .capdefault {
e514c722
FM
168 background-color: @tableBackgroundHover;
169 border: 1px solid @tableBorder;
8903b17b
BB
170}
171
172#page-filter-manage .backlink,
173.path-admin-roles .backlink {
174 margin-top: 1em;
175}
176
177#page-admin-roles-explain #chooseuser h3,
178#page-admin-roles-usersroles .contextname {
179 margin-top: 0;
180}
181
182#page-admin-roles-explain #chooseusersubmit {
183 margin-top: 0;
184 text-align: center;
185}
186
187#page-admin-roles-usersroles p {
188 margin: 0;
189}
190
191#page-admin-roles-override .cell.c1,
192#page-admin-roles-assign .cell.c3,
193#page-admin-roles-assign .cell.c1 {
194 padding-top: 0.75em;
195}
196
197#page-admin-roles-override .overridenotice,
198#page-admin-roles-define .definenotice {
199 margin: 1em 10% 2em 10%;
200 text-align: left;
201}
202
203#notice {
d9df063e
DW
204 // Would like the use the alert stuff below for this,
205 // but the way buttons are used makes it tricky.
8903b17b
BB
206 width: 60%;
207 min-width: 220px;
208 margin: auto;
209}
210
211#page-admin-index .releasenoteslink,
212#page-admin-index .adminwarning,
7f52dbd8 213#page-admin-index .adminerror {
03525f7e 214 margin: auto;
8903b17b
BB
215 .alert;
216 width: 60%;
217 min-width: 220px;
8903b17b 218}
7f52dbd8 219#page-admin-index .adminerror {
8903b17b
BB
220 .alert-error;
221}
222
8903b17b
BB
223#page-admin-index .releasenoteslink {
224 .alert-info;
225}
226
227#page-admin-index .adminwarning.availableupdatesinfo .moodleupdateinfo span {
228 display: block;
229}
230
44371554 231#page-admin-index .updateplugin div {
8903b17b
BB
232 margin-bottom: 0.5em;
233}
234
44371554 235#page-admin-index .updateplugin .updatepluginconfirmexternal {
8903b17b
BB
236 padding: 1em;
237 background-color: @errorBackground;
238 border: 1px solid @errorBorder;
239}
240
241#page-admin-user-user_bulk #users .fgroup {
242 white-space: nowrap;
243}
244
245#page-admin-report-stats-index .graph {
246 text-align: center;
247 margin-bottom: 1em;
248}
249
250#page-admin-report-courseoverview-index .graph {
251 text-align: center;
252 margin-bottom: 1em;
253}
254
255#page-admin-lang .translator {
256 border-width: 1px;
257 border-style: solid;
258}
259
d9df063e 260// This is the CSS for the role assignment control.
8903b17b
BB
261.path-admin .roleassigntable {
262 width: 100%;
263}
264
265.path-admin .roleassigntable td {
266 vertical-align: top;
267 padding: 0.2em 0.3em
268}
269
270.path-admin .roleassigntable p {
271 text-align: left;
272 margin: 0.2em 0;
273}
274
275.path-admin .roleassigntable #existingcell,
276.path-admin .roleassigntable #potentialcell {
277 width: 42%;
278}
279
d9df063e 280// Targetting the label at the top.
8903b17b
BB
281.path-admin .roleassigntable #existingcell p > label:first-child,
282.path-admin .roleassigntable #potentialcell p > label:first-child {
283 font-weight: bold;
284}
285
286.path-admin .roleassigntable #buttonscell {
287 width: 16%;
288}
289
290.path-admin .roleassigntable #buttonscell #assignoptions {
291 font-size: @fontSizeMini;
292}
293
294.path-admin .roleassigntable #removeselect_wrapper,
295.path-admin .roleassigntable #addselect_wrapper {
296 width: 100%;
297}
298
299.path-admin table.rolecap tr.rolecap th {
300 text-align: left;
301 font-weight: normal;
302}
303
304.path-admin.dir-rtl table.rolecap tr.rolecap th {
305 text-align: right;
306}
307
308.path-admin .rolecap .hiddenrow {
309 display: none;
310}
311
312.path-admin #defineroletable {
313 .rolecap {
314 .inherit,
315 .allow,
316 .prevent,
317 .prohibit {
318 text-align: center;
319 padding: 0;
320 min-width: 3.5em;
321 }
322 }
323}
324
325.path-admin .rolecap .cap-name,
326.path-admin .rolecap .note {
327 display: block;
328 font-size: @fontSizeMini;
329 white-space: nowrap;
330 font-weight: normal;
331}
332
333.path-admin .rolecap label {
334 display: block;
335 text-align: center;
336 padding: 0.5em;
337 margin: 0;
338}
339
340.plugincheckwrapper {
341 width: 100%;
342}
343
344.environmentbox {
345 margin-top: 1em;
346}
347
348#mnetconfig table {
349 margin-left: auto;
350 margin-right: auto;
351}
352
353.environmenttable .cell {
354 padding: .15em .5em;
355}
356
357.environmenttable img.iconhelp {
358 padding-right: .3em;
359}
360
361.dir-rtl .environmenttable img.iconhelp {
362 padding-left: .3em;
363 padding-right: 0
364}
365
366#trustedhosts .generaltable {
367 margin-left: auto;
368 margin-right: auto;
369 width: 500px;
370}
371
372#trustedhosts .standard {
373 width: auto;
374}
375
376// This usage of legend is a bit weird,
377// seems to be using them as error text
378// that's only sometimes visible. Should
d9df063e 379// look into sorting it.
8903b17b
BB
380#adminsettings legend {
381 display: none;
382}
383
384#adminsettings fieldset.error {
385 margin: .2em 0 .5em 0;
386}
387
388#adminsettings fieldset.error legend {
389 display: block;
390}
391
392.dir-rtl #admin-spelllanguagelist textarea,
393#page-admin-setting-editorsettingstinymce.dir-rtl .form-textarea textarea {
394 text-align: left;
395 direction: ltr;
396}
397
459e3c88
DW
398/* Styles for flags on admin settings */
399.adminsettingsflags {
400 float: right;
401}
402
403.dir-rtl .adminsettingsflags {
404 float: left;
405}
406
407.adminsettingsflags label {
408 margin-right: 7px;
409}
410
411.dir-rtl .adminsettingsflags label {
412 margin-left: 7px;
413}
414
415.form-description {
416 clear: right;
417}
418
419.dir-rtl .form-description {
420 clear: left;
421}
422
8903b17b
BB
423.form-item .form-setting .form-htmlarea {
424 width: 640px;
425 display: inline;
426}
427
428.form-item .form-setting .form-htmlarea .htmlarea {
429 width: 640px;
430 display: block;
431}
432
433.form-item .form-setting .form-multicheckbox ul {
434 list-style: none;
435 padding: 0;
436 margin: 7px 0 0 0;
437}
438
439.form-item .form-setting .defaultsnext {
440 margin-right: 0.5em;
441 display: inline;
442}
8d223d71
NK
443.dir-rtl .form-item .form-setting .defaultsnext {
444 margin-left: 0.5em;
445 margin-right: 0;
446}
8903b17b
BB
447.form-item .form-setting .locked-checkbox {
448 margin-right: 0.2em;
449 margin-left: 0.5em;
450 display: inline;
451}
452
453.dir-rtl .form-item .form-setting .locked-checkbox {
454 margin-right: 0.5em;
455 margin-left: 0.2em;
456 display: inline;
457}
458
459.form-item .form-setting .form-password .unmask,
460.form-item .form-setting .form-defaultinfo {
461 display: inline-block;
462}
463
464.form-item .pathok,
465.form-item .patherror {
466 margin-left: 0.5em;
467}
468
8903b17b
BB
469#admin-emoticons td input {
470 width: 8em;
471}
472
473#admin-emoticons td.c0 input {
474 width: 4em;
475}
476
477#adminthemeselector .selectedtheme td.c0 {
e514c722 478 border: 1px solid @black;
8903b17b
BB
479 border-right-width: 0;
480}
481
482#adminthemeselector .selectedtheme td.c1 {
e514c722 483 border: 1px solid @black;
8903b17b
BB
484 border-left-width: 0;
485}
486
487.admin_colourpicker,
488.admin_colourpicker_preview {
489 display: none;
490}
491
492.jsenabled .admin_colourpicker_preview {
493 display: inline;
494}
495
496.jsenabled .admin_colourpicker {
497 display: block;
498 height: 102px;
499 width: 410px;
500 margin-bottom: 10px;
501}
502
503.admin_colourpicker .loadingicon {
504 vertical-align: middle;
505 margin-left: auto;
506}
507
508.admin_colourpicker .colourdialogue {
509 float: left;
e514c722 510 border: 1px solid @black;
8903b17b
BB
511}
512
513.admin_colourpicker .previewcolour {
e514c722 514 border: 1px solid @black;
8903b17b
BB
515 margin-left: 301px;
516}
517
518.admin_colourpicker .currentcolour {
e514c722 519 border: 1px solid @black;
8903b17b
BB
520 margin-left: 301px;
521 border-top-width: 0;
522}
523
524/** Overide for RTL layout **/
525.dir-rtl .form-item .form-setting,
526.dir-rtl .form-item .form-label,
527.dir-rtl .form-item .form-description,
528.dir-rtl.path-admin .roleassigntable p {
529 text-align: right
530}
531
2f29cf6e 532// Plugins overview control panel.
8903b17b
BB
533#page-admin-index #notice .checkforupdates {
534 text-align: center;
535}
536
fd17898c 537#page-admin-index .adminwarning.availableupdatesinfo .moodleupdateinfo.maturity200 .info.release {
8903b17b
BB
538 background-color: @infoBackground;
539}
540
8903b17b 541#page-admin-index .adminwarning.availableupdatesinfo .moodleupdateinfo.maturity100 .info.release,
44371554 542#page-admin-index .adminwarning.availableupdatesinfo .moodleupdateinfo.maturity150 .info.release {
8903b17b
BB
543 background-color: @warningBackground;
544}
545
44371554 546#page-admin-index .adminwarning.availableupdatesinfo .moodleupdateinfo.maturity50 .info.release {
8903b17b
BB
547 background-color: @errorBackground;
548}
549
44371554
DM
550// Plugins overview page at admin/plugins.php
551#page-admin-plugins {
9074e478 552
44371554
DM
553 #plugins-overview-panel {
554 .info {
555 display: inline-block;
556 margin-right: 1em;
557 }
558 }
9074e478 559
44371554
DM
560 .checkforupdates {
561 margin: 10px 0;
562 .singlebutton {
563 margin: 5px 0;
564 padding: 0;
565 div, input {
566 margin: 0 3px 0 0;
567 }
568 }
569 }
9074e478 570
44371554
DM
571 #plugins-control-panel {
572 .status-missing td {
573 background-color: @errorBackground;
574 }
575 .pluginname {
576 .displayname img.icon {
577 padding-top: 0;
578 padding-bottom: 0;
579 }
580 .componentname {
581 font-size: @fontSizeSmall;
582 .muted;
583 margin-left: 22px;
584 }
585 }
586 .version {
587 .versionnumber {
588 font-size: @fontSizeSmall;
589 .muted;
590 }
591 .release {
592 }
593 }
594 .availability {
595 }
596 .settings {
597 }
598 .uninstall {
599 a {
600 color: @errorText;
601 }
602 }
603 .notes {
604 .label {
605 margin-right: 3px;
606 }
607 .requiredby {
608 font-size: @fontSizeSmall;
609 .muted;
610 }
611 }
612 }
9074e478
DM
613}
614
8903b17b 615
2f29cf6e
DM
616// Plugins check page displayed during upgrade.
617#plugins-check-page {
8903b17b 618
2f29cf6e 619 .page-description {
44371554 620 .muted;
fd17898c 621 }
2f29cf6e
DM
622
623 // Check for updates.
624 .checkforupdates {
625 .singlebutton {
626 margin: 5px 0;
627 padding: 0;
44371554
DM
628 div, input {
629 margin: 0 3px 0 0;
2f29cf6e
DM
630 }
631 }
fd17898c 632 }
fd17898c 633
2f29cf6e
DM
634 // Section before the plugins check table.
635 #plugins-check-info {
636 .actions {
0ec7d101 637 > div {
2f29cf6e 638 display: inline-block;
0ec7d101
DM
639 margin-right: 1em;
640 }
641 .singlebutton {
2f29cf6e
DM
642 margin: 5px;
643 padding: 0;
44371554
DM
644 div, input {
645 margin: 0 3px 0 0;
2f29cf6e
DM
646 }
647 }
648 }
649 }
8903b17b 650
2f29cf6e
DM
651 // Plugins check table.
652 #plugins-check {
653 .requires-ok {
44371554 654 .muted;
2f29cf6e 655 }
8903b17b 656
f65d3370 657 .status-missing, .status-downgrade {
44371554
DM
658 td {
659 background-color: @errorBackground;
660 }
f65d3370
DM
661 }
662
2f29cf6e
DM
663 .displayname {
664 .pluginicon {
665 margin-right: 5px;
666 width: 16px;
667 }
668 .plugindir {
669 .muted;
670 font-size: @fontSizeSmall;
671 }
672 }
673
674 .requires ul {
675 margin-left: 13px; // To undo the default 25px, does not look that great inside a table cell;
676 }
677
678 .status {
679 .actionbutton {
680 margin: 5px 0px;
681 padding: 0;
682 input {
683 margin: 0;
684 }
685 }
2f29cf6e
DM
686 }
687 }
688
9137a89a
DM
689 .plugins-check-dependencies-actions {
690 > div {
691 display: inline-block;
692 margin-right: 1em;
693 }
694 .singlebutton {
695 margin: 5px 0;
696 padding: 0;
44371554
DM
697 div, input {
698 margin: 0 3px 0 0;
9137a89a
DM
699 }
700 }
701 }
702
703 // List of available dependencies on the plugins check page.
2f29cf6e
DM
704 #plugins-check-available-dependencies {
705 .displayname .component {
706 font-size: @fontSizeSmall;
44371554 707 .muted;
2f29cf6e 708 }
9137a89a
DM
709 .info .actions {
710 > div {
711 display: inline-block;
712 margin-right: 1em;
713 }
36977a6d 714 .dependencyinstall {
9137a89a
DM
715 display: block;
716 margin: 5px 0;
717 padding: 0;
718 input {
719 margin: 0;
720 }
721 }
722 }
5a92cd0b
DM
723 }
724}
725
44371554 726// Available plugin update notification.
8903b17b 727
44371554
DM
728#plugins-check-page, #plugins-control-panel {
729 .pluginupdateinfo {
730 background-color: @infoBackground;
731 &.maturity50 {
732 background-color: @errorBackground;
733 }
734 &.maturity100, &.maturity150 {
735 background-color: @warningBackground;
736 }
737 padding: 5px;
738 margin: 10px 0;
739 .border-radius(5px);
740 .info {
741 display: inline-block;
742 }
743 .separator:after {
744 content: " | ";
745 }
746 .singlebutton {
747 margin: 5px 0;
748 padding: 0;
749 div, input {
750 margin: 0 3px 0 0;
751 }
752 }
753 }
8903b17b
BB
754}
755
44371554 756#page-admin-index .upgradepluginsinfo {
8903b17b
BB
757 text-align: center;
758}
759
44371554
DM
760#page-admin-index .adminwarning.availableupdatesinfo .moodleupdateinfo .separator:after {
761 content: " | ";
8903b17b
BB
762}
763
764.dir-rtl {
765 #plugins-check .pluginupdateinfo {
766 text-align: center;
767 direction: ltr;
768 }
769
8903b17b
BB
770 #plugins-check .requires-ok {
771 text-align: left;
772 direction: ltr;
773 }
774}
775
776/** MNet networking */
777#page-admin-mnet-peers .box.deletedhosts {
778 margin-bottom: 1em;
779 font-size: @fontSizeSmall;
780}
781
8903b17b
BB
782#page-admin-mnet-peers .mform .deletedhostinfo {
783 background-color: @errorBackground;
784 border: 2px solid @errorBorder;
785 padding: 4px;
786 margin-bottom: 5px;
787}
788
789#core-cache-plugin-summaries table,
790#core-cache-store-summaries table {
791 width: 100%;
792}
793
794#core-cache-lock-summary table,
795#core-cache-definition-summaries table,
796#core-cache-mode-mappings table {
797 margin: 0 auto;
798}
799
800#core-cache-store-summaries .default-store td {
8903b17b
BB
801 font-style: italic;
802}
803
804#core-cache-rescan-definitions,
acf49f4b
SH
805#core-cache-mode-mappings .edit-link,
806#core-cache-lock-summary .new-instance {
8903b17b
BB
807 margin-top: 0.5em;
808 text-align: center;
809}
810
811.tinymcesubplugins img.icon {
812 padding-top: 0;
813 padding-bottom: 0;
814}
815
f487a8f8
RT
816.maintenancewarning {
817 padding: 3px 1em;
818 text-align: center;
819 position: fixed;
820 bottom: 0;
821 right: 0;
822 overflow: hidden;
823 z-index: 1;
824 &.error {
825 color: @errorText;
826 background-color: @errorBackground;
827 border: 2px solid @errorBorder;
828 font-weight: bold;
829 }
830 &.warning {
831 color: @warningText;
832 background-color: @warningBackground;
833 border: 2px solid @warningBorder;
834 }
835}
2c47e500
FM
836
837#adminsettings .form-overridden {
838 color: @infoText;
839 background-color: @infoBackground;
840}