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