Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
/* Styles for the initial layout of the question. */
2
 
3
/* Ensure container covers the draggable items. */
4
.que.ordering div.answer.ordering {
5
    overflow: auto;
6
}
7
 
8
.que.ordering .sortablelist {
9
    float: left;
10
    list-style-type: none;
11
    margin: 0 0 0 8px;
12
}
13
.que.ordering .sortablelist.active {
14
    border: 1px dotted #333;
15
    border-radius: 4px;
16
}
17
 
18
.que.ordering .sortablelist li {
19
    background-color: #fff;
20
    border: 1px solid #000;
21
    border-radius: 4px;
22
    list-style-type: none;
23
    margin: 4px;
24
}
25
 
26
.que.ordering .sortablelist li .grip {
27
    opacity: 0.45;
28
}
29
 
30
.que.ordering .sortablelist li.sortableitem {
31
    position: relative;
32
    cursor: move;
33
    margin-left: 26px; /* The margin is needed for the list-style-type in numberingxxx classes */
34
}
35
 
36
.que.ordering .sortablelist li.sortableitem:first-of-type [data-action="move-backward"],
37
.que.ordering .sortablelist li.sortableitem:last-of-type [data-action="move-forward"] {
38
    visibility: hidden;
39
}
40
 
41
.que.ordering .sortableitem .btn.btn-icon {
42
    height: 32px;
43
    width: 32px;
44
    border-radius: 0.5rem;
45
}
46
 
47
.que.ordering .sortablelist.numbering123 li,
48
.que.ordering .sortablelist.numberingabc li,
49
.que.ordering .sortablelist.numberingABCD li,
50
.que.ordering .sortablelist.numberingiii li,
51
.que.ordering .sortablelist.numberingIIII li {
52
    margin-left: 26px; /* The margin is needed for the list-style-type in numberingxxx classes */
53
}
54
 
55
.que.ordering .sortablelist.numberingnone li {
56
    list-style-type: none;
57
    margin-left: 0;
58
}
59
.que.ordering .sortablelist.numbering123 li {
60
    list-style-type: decimal;
61
}
62
.que.ordering .sortablelist.numberingabc li {
63
    list-style-type: lower-alpha;
64
}
65
.que.ordering .sortablelist.numberingABCD li {
66
    list-style-type: upper-alpha;
67
}
68
.que.ordering .sortablelist.numberingiii li {
69
    list-style-type: lower-roman;
70
}
71
.que.ordering .sortablelist.numberingIIII li {
72
    list-style-type: upper-roman;
73
}
74
 
75
.que.ordering .sortablelist.horizontal {
76
    display: flex;
77
    flex-wrap: wrap;
78
}
79
 
80
/* Better define 'row' of item for horizontal list. */
81
.que.ordering .sortablelist.horizontal {
82
    display: flex;
83
    flex-wrap: wrap;
84
    align-items: flex-start;
85
}
86
 
87
.que.ordering .sortablelist.vertical li {
88
    min-height: 18px;
89
}
90
 
91
/* Styles for when things are being dragged. */
92
.que.ordering.dragproxy {
93
    margin: 0;
94
    padding: 0;
95
    border: 0 none;
96
}
97
.que.ordering.dragproxy .sortablelist {
98
    margin: 0;
99
    padding: 0;
100
    float: none;
101
}
102
.que.ordering.dragproxy .sortablelist li {
103
    margin: 0;
104
    padding: 6px 0 6px 12px;
105
    width: 100%;
106
}
107
.que.ordering.dragproxy .sortablelist li.horizontal {
108
    float: none;
109
}
110
.item-moving {
111
    box-shadow: 3px 3px 4px #000;
112
}
113
.current-drop {
114
    visibility: hidden;
115
}
116
 
117
 
118
/* Styles for feedback. */
119
.que.ordering .sortablelist.notactive li.correct {
120
    background-color: #dff4d8; /* light green */
121
    border-color: #9f6; /* gentle green */
122
}
123
.que.ordering .sortablelist.notactive li.partial66 {
124
    background-color: #dff4d8; /* light green */
125
    border-color: #f90; /* dark  orange */
126
}
127
.que.ordering .sortablelist.notactive li.partial33 {
128
    background-color: #ffebcc; /* light orange */
129
    border-color: #f90; /* dark orange */
130
}
131
.que.ordering .sortablelist.notactive li.partial00 {
132
    background-color: #fdd; /* light red */
133
    border-color: #f90; /* dark orange */
134
}
135
.que.ordering .sortablelist.notactive li.incorrect {
136
    background-color: #fdd; /* light red */
137
    border-color: #ff7373; /* gentle red */
138
}
139
/*
140
    Force containing DIV to cover the floating LI elements
141
    Note: if you add "overflow:auto;  to "ol.correctorder"
142
    then the numbers for the <LI> elements disappear !!
143
*/
144
.que.ordering div.rightanswer {
145
    overflow: auto;
146
}
147
.que.ordering div.rightanswer ol.correctorder {
148
    padding-inline-start: 16px;
149
}
150
.que.ordering div.rightanswer ol.correctorder.horizontal {
151
    display: flex;
152
    flex-wrap: wrap;
153
    align-items: baseline;
154
}
155
.que.ordering div.rightanswer ol.correctorder li.horizontal {
156
    margin-left: 24px;
157
    margin-right: 24px;
158
}
159
.que.ordering div.rightanswer ol.correctorder li.vertical {
160
    margin-left: 24px;
161
}
162
 
163
/* the width restriction can be limited to editors for draggable items
164
   by inserting "fieldset:nth-child(n+4)" before "div.feditor" */
165
#page-question-type-ordering form.mform fieldset:nth-child(n+4) div.feditor {
166
    max-width: 480px;
167
}