MDL-45338 editor_atto: Correct gesturemoveend listening
[moodle.git] / theme / bootstrapbase / less / moodle / grade.less
CommitLineData
138eb087
FM
1// The class gradetreebox matches the pages displaying the gradebook
2// "Categories and items" > "Simple view" and "Full view".
3.gradetreebox {
4 h4 {
5 // Force back the base font-size to minimise width.
6 font-size: @baseFontSize;
7 }
8 th.cell,
9 input[type=text] {
10 // Fallback on the minimum width.
11 width: auto;
12 }
13 input[type=text],
14 select {
15 // Remove the bottom margin to gain height.
16 margin-bottom: 0;
17 }
19213efb
AO
18}
19
20#page-grade-report-grader-index {
21 .topscrollcontent {
22 height: 1px;
23 }
24
25 #user-grades {
26 margin-top: 4px;
27 }
28}
73eb9f43
JC
29
30// Rubrics
31#page-grade-grading-manage {
32 #activemethodselector {
33 label {
34 display: inline-block;
35 }
36 .helptooltip {
37 margin-right: 0.5em;
38 }
39 }
40 .actions {
41 display: block;
42 text-align: center;
43 margin-bottom: 1em;
44 .action {
45 .btn();
46 .btn-large();
47 display: inline-block;
48 position: relative;
49 width: 150px;
50 text-align: center;
51 overflow: hidden;
52 margin: 0.5em;
53 padding: 1em;
54 border: 1px solid #aaa;
55 .action-icon {
56 display: inline-block;
57 position: relative;
58 height: 64px;
59 width: 64px;
60 }
61 .action-text {
62 position: relative;
63 top: 0.4em;
64 font-size: 16px;
65 }
66 }
67 }
68}
69
70#page-grade-grading-form-rubric-edit {
71 .gradingform_rubric_editform .status {
72 font-size: 70%;
73 }
74}
75
fe778267
JC
76.gradingform_rubric.editor {
77 .addlevel, .addcriterion {
78 input {
79 // Fallback for IE8: we use Bootstrap 2's button styles normally, but
80 // IE8 ignores background-image: linear-gradient rules.
81 background: #fff none no-repeat top left;
82 }
83 }
84}
85
86.dir-rtl {
87 #rubric-rubric.gradingform_rubric {
88 #rubric-criteria .criterion {
89 .level {
90 .score {
91 text-align: right;
92 float: right;
93 margin-left: 28px;
94 margin-right: 0px;
95 }
96 .delete {
97 float: left;
98 clear: right;
99 input {
100 left: 0;
101 right: auto;
102 }
103 }
104 }
105 }
106 }
107}
108
73eb9f43
JC
109#rubric-rubric {
110 &.gradingform_rubric {
fe778267
JC
111 // Override max-width rule from core; rubrics with multiple levels can hit
112 // the previously-defined threshold easily.
113 max-width: none;
73eb9f43
JC
114 #rubric-criteria {
115 margin-bottom: 1em;
116 @rubricPadding: 6px;
117 .criterion {
118 .description {
119 vertical-align: top;
120 padding: @rubricPadding;
121 textarea {
122 margin-bottom: 0px;
123 height: 115px;
124 }
125 }
126 .definition {
127 textarea {
128 width: 80%;
129 margin-bottom: 0px;
130 }
131 }
132 .score {
133 position: relative;
134 float: left;
135 margin-right: 28px;
136 input {
137 margin-bottom: 0px;
138 }
139 }
140 .level {
141 vertical-align: top;
142 padding: @rubricPadding;
143 .delete {
144 position: relative;
145 width: 32px;
146 float: right;
147 input {
148 display: block;
149 position: absolute;
150 right: 0;
151 bottom: 0;
152 height: 24px;
153 width: 24px;
fe778267 154 margin: 0px;
73eb9f43
JC
155 &:hover {
156 background-color: #ddd;
157 }
158 }
159 }
160 }
161 .scorevalue {
162 input {
fe778267
JC
163 // Should handle at least three chars with room to spare.
164 width: 2em;
165 &.hiddenelement,&.pseudotablink {
166 // Zero out the width if it's still in the block flow for some reason
167 // when hidden
168 width: 0;
169 }
73eb9f43
JC
170 }
171 }
172 .addlevel {
173 vertical-align: middle;
174 input {
175 .btn();
176 background-position: 0px 0px;
177 height: 30px;
178 margin-right: 5px;
179 }
180 }
181 }
182 }
183 .addcriterion {
184 margin-left: 5px;
185 .btn();
186 padding: 0;
187 input {
188 margin: 0;
189 color: inherit;
190 text-shadow: inherit;
191 border: 0px none;
192 line-height: inherit;
193 background: transparent url([[pix:t/add]]) no-repeat 7px 8px;
194 padding-left: 26px;
195 }
196 margin-bottom:1em;
197 }
198 .options {
199 clear: both;
200 .option {
201 label {
202 margin: 0;
203 padding: 0;
204 font-size: inherit;
205 font-weight: normal;
206 line-height: 2em;
207 color: inherit;
208 text-shadow: none;
209 background-color: transparent;
210 }
211 input {
212 margin-left: 5px;
213 margin-right: 12px;
214 }
215 }
216 }
217 }
218}