MDL-18229 gradebook: missing 'use' in singleview
[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
73eb9f43
JC
20// Rubrics
21#page-grade-grading-manage {
22 #activemethodselector {
23 label {
24 display: inline-block;
25 }
26 .helptooltip {
27 margin-right: 0.5em;
28 }
29 }
30 .actions {
31 display: block;
32 text-align: center;
33 margin-bottom: 1em;
34 .action {
35 .btn();
36 .btn-large();
37 display: inline-block;
38 position: relative;
cecd602d 39 vertical-align: top;
73eb9f43
JC
40 width: 150px;
41 text-align: center;
42 overflow: hidden;
43 margin: 0.5em;
44 padding: 1em;
45 border: 1px solid #aaa;
46 .action-icon {
47 display: inline-block;
48 position: relative;
49 height: 64px;
50 width: 64px;
51 }
52 .action-text {
53 position: relative;
54 top: 0.4em;
cecd602d 55 font-size: 14px;
73eb9f43
JC
56 }
57 }
58 }
59}
60
61#page-grade-grading-form-rubric-edit {
62 .gradingform_rubric_editform .status {
63 font-size: 70%;
64 }
65}
66
fe778267
JC
67.gradingform_rubric.editor {
68 .addlevel, .addcriterion {
69 input {
70 // Fallback for IE8: we use Bootstrap 2's button styles normally, but
71 // IE8 ignores background-image: linear-gradient rules.
72 background: #fff none no-repeat top left;
73 }
74 }
75}
76
77.dir-rtl {
78 #rubric-rubric.gradingform_rubric {
79 #rubric-criteria .criterion {
80 .level {
81 .score {
82 text-align: right;
83 float: right;
84 margin-left: 28px;
85 margin-right: 0px;
86 }
87 .delete {
88 float: left;
fe778267
JC
89 input {
90 left: 0;
91 right: auto;
92 }
93 }
94 }
95 }
cecd602d
JC
96 .addcriterion {
97 margin-right: 5px;
98 margin-left: 0px;
99
100 input {
101 padding-right: 26px;
102 padding-left: 10px;
103 background-position: right 8px top 8px;
104 }
105 }
106 .options {
107 .option {
108 .value {
109 margin-left: 0px;
110 margin-right: 5px;
111 }
112 input {
113 // margins flipped for RTL.
114 margin-left: 12px;
115 margin-right: 5px;
116 }
117 }
118 }
fe778267
JC
119 }
120}
121
73eb9f43
JC
122#rubric-rubric {
123 &.gradingform_rubric {
124 #rubric-criteria {
125 margin-bottom: 1em;
126 @rubricPadding: 6px;
127 .criterion {
128 .description {
129 vertical-align: top;
130 padding: @rubricPadding;
131 textarea {
132 margin-bottom: 0px;
133 height: 115px;
134 }
135 }
136 .definition {
137 textarea {
138 width: 80%;
139 margin-bottom: 0px;
140 }
141 }
142 .score {
143 position: relative;
144 float: left;
145 margin-right: 28px;
146 input {
147 margin-bottom: 0px;
148 }
149 }
150 .level {
151 vertical-align: top;
152 padding: @rubricPadding;
153 .delete {
154 position: relative;
155 width: 32px;
cecd602d
JC
156 height: 32px;
157 margin-top: -32px;
158 clear: both;
73eb9f43
JC
159 float: right;
160 input {
161 display: block;
162 position: absolute;
163 right: 0;
164 bottom: 0;
165 height: 24px;
166 width: 24px;
fe778267 167 margin: 0px;
73eb9f43
JC
168 &:hover {
169 background-color: #ddd;
170 }
171 }
172 }
173 }
174 .scorevalue {
175 input {
fe778267 176 // Should handle at least three chars with room to spare.
cecd602d 177 float: none;
fe778267
JC
178 width: 2em;
179 &.hiddenelement,&.pseudotablink {
180 // Zero out the width if it's still in the block flow for some reason
181 // when hidden
182 width: 0;
183 }
73eb9f43
JC
184 }
185 }
186 .addlevel {
187 vertical-align: middle;
188 input {
189 .btn();
190 background-position: 0px 0px;
191 height: 30px;
192 margin-right: 5px;
193 }
194 }
195 }
196 }
197 .addcriterion {
198 margin-left: 5px;
199 .btn();
200 padding: 0;
201 input {
202 margin: 0;
203 color: inherit;
204 text-shadow: inherit;
205 border: 0px none;
206 line-height: inherit;
207 background: transparent url([[pix:t/add]]) no-repeat 7px 8px;
208 padding-left: 26px;
209 }
210 margin-bottom:1em;
211 }
212 .options {
213 clear: both;
214 .option {
215 label {
216 margin: 0;
217 padding: 0;
218 font-size: inherit;
219 font-weight: normal;
220 line-height: 2em;
221 color: inherit;
222 text-shadow: none;
223 background-color: transparent;
224 }
225 input {
226 margin-left: 5px;
227 margin-right: 12px;
228 }
229 }
230 }
231 }
232}
6723bc66 233
d75a2367 234.path-grade-edit-tree table.setup-grades .column-select {
6723bc66
MG
235 text-align: center;
236}
e4620932 237
2be0d5c3
MG
238.path-grade-edit-tree table.setup-grades .column-weight {
239 white-space: nowrap;
240}
241
242.path-grade-edit-tree table.setup-grades .gradeitemdescription {
243 font-weight: normal;
244 font-style: italic;
245}
66689366 246
62e11d37
FM
247/**
248 * Grader report.
249 */
250.path-grade-report {
251 .gradeparent {
906de1b6 252 tr .cell {
62e11d37 253 .border-radius(@baseBorderRadius);
906de1b6 254 background-color: @paginationBackground;
62e11d37
FM
255 }
256 table,
257 .cell {
258 border-color: @tableBorder;
259 }
260 tr:nth-of-type(even) .cell,
bc782f1f
AN
261 .floater .cell,
262 .avg {
62e11d37
FM
263 background-color: @tableBackgroundAccent;
264 }
265 }
66689366 266 }