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