MDL-55452 stylelint: prevent use of !important
[moodle.git] / theme / bootstrapbase / less / moodle / expendable.less
1 /* stylelint-disable declaration-no-important */
2 table#explaincaps,
3 table#defineroletable,
4 table.grading-report,
5 table#listdirectories,
6 table.rolecaps,
7 table.userenrolment,
8 table#form,
9 form#movecourses table,
10 #page-admin-course-index .editcourse,
11 .forumheaderlist,
12 table.flexible,
13 .generaltable {
14     .table-striped;
15 }
16 table {
17     caption {
18         font-size: 24px;
19         font-weight: bold;
20         line-height: 42px;
21         text-align: left;
22     }
23 }
25 .dir-rtl {
26     table#explaincaps,
27     table#defineroletable,
28     table.grading-report,
29     table#listdirectories,
30     table.rolecaps,
31     table.userenrolment,
32     table#form,
33     form#movecourses table,
34     .forumheaderlist,
35     table.flexible,
36     .generaltable,
37     .generaltable thead:first-child tr:first-child {
38         td,
39         th {
40             text-align: right;
41         }
42     }
43     table {
44         caption {
45             text-align: right;
46         }
47     }
48 }
50 #page-admin-course-index.dir-rtl .editcourse {
51     td,
52     th {
53         text-align: right;
54     }
55 }
57 #page-report-loglive-index .generaltable,
58 #page-admin-report-log-index .generaltable,
59 #page-report-log-user .generaltable,
60 #page-admin-user table,
61 .environmenttable,
62 .category_subcategories,
63 .rcs-results,
64 table#listdirectories {
65     .table-condensed
66 }
67 .user-enroller-panel .uep-search-results .users,
68 .user-enroller-panel .uep-search-results .cohorts,
69 table.grading-report,
70 .forumheaderlist,
71 .generaltable,
72 table.flexible,
73 .category_subcategories,
74 table#modules,
75 table#permissions {
76     .table-hover
77 }
78 // language editing progress bar
79 // copied in because the styles are set on the HTML
80 div[id^="bar_pbar_"] {
81     overflow: hidden !important;
82     height: @baseLineHeight !important;
83     margin-bottom: @baseLineHeight !important;
84     #gradient > .vertical(#f5f5f5, #f9f9f9) !important;
85     .box-shadow(inset 0 1px 2px rgba(0,0,0,.1)) !important;
86     .border-radius(@baseBorderRadius) !important;
87     border: none !important;
88 }
89 div[id^="progress_pbar_"] {
90     height: 100% !important;
91     color: @white !important;
92     float: left !important;
93     font-size: 12px !important;
94     text-align: center !important;
95     text-shadow: 0 -1px 0 rgba(0, 0, 0, .25) !important;
96     #gradient > .vertical(#149bdf, #0480be) !important;
97     .box-shadow(inset 0 -1px 0 rgba(0,0,0,.15)) !important;
98     .box-sizing(border-box) !important;
99     .transition(width .6s ease) !important;
100     padding-top: 0 !important;
101     border: none !important;
103 // colored buttons
104 input.form-submit,
105 input#id_submitbutton,
106 input#id_submitbutton2,
107 .path-admin .buttons input[type="submit"],
108 td.submit input {
109     .btn-primary
111 // override .btn-primary
112 #notice .singlebutton + .singlebutton input,
113 .submit.buttons input[name="cancel"] {
114     .btn
116 #notice .singlebutton + .singlebutton input,
117 .submit.buttons input[name="cancel"] {
118     .btn-lineup
120 input[id$="_clearbutton"],
121 input[type="reset"] {
122     .btn-warning