forked from sevenseas-gists/moodle-mod_ratingallocate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
59 lines (53 loc) · 1.77 KB
/
styles.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
.path-mod-ratingallocate ul.horizontal.choices {
margin: 0;
}
.path-mod-ratingallocate .horizontal.choices .option {
padding-right: 20px;
display: inline-block;
white-space: normal;
}
.ratingallocate_ratings_table tr.ratingallocate_summary,
.ratingallocate_ratings_table span.ratingallocate_member {
font-weight: bold;
}
/* Indicate selected choice in non-writeable tables */
.ratingallocate_ratings_table span.ratingallocate_member::before {
content: url('[[pix:i/checked]]');
}
/* Show a tickmark for a selected choice */
.ratingallocate_ratings_table span input[type=radio]:checked ~ label {
/* necessary for containing absolute position values */
position: relative;
}
.ratingallocate_ratings_table span input[type=radio]:checked ~ label::before {
content: url('[[pix:i/checked]]');
position: absolute;
margin-top: -2px;
}
/* Special highlight for values that were checked *initially* */
.ratingallocate_ratings_table span input[type=radio][checked] ~ label > span.ratingallocate_checkbox {
background: url('[[pix:ratingallocate|checkbox-selected]]');
background-size: 13px 13px;
}
.ratingallocate_ratings_table span input[type=radio][checked] ~ label {
font-weight: bold;
}
/* Checkbox/radio replacement */
.ratingallocate_ratings_table span input[type=radio] ~ label > span.ratingallocate_checkbox {
display: inline-flex;
height: 13px;
width: 13px;
margin-right: 5px;
vertical-align: text-top;
background: url('[[pix:ratingallocate|checkbox]]');
background-size: 13px 13px;
}
.ratingallocate_ratings_table span input[type=radio] {
display: none;
}
.ratingallocate_ratings_box {
overflow: auto; /* Scrolling tables */
}
.path-mod-ratingallocate .mod-ratingallocate-choice-maxno {
text-align: right;
}