MDL-70153 qtype_essay: Add behat test for attachments max size
[moodle.git] / question / type / ddimageortext / styles.css
CommitLineData
31077627 1.que.ddimageortext .qtext {
a2bb148a
TH
2 margin-bottom: 0.5em;
3 display: block;
4}
5
ebf91776
TH
6.que.ddimageortext div.ddarea,
7form.mform fieldset#id_previewareaheader div.ddarea {
8 text-align: center;
9}
10
11.que.ddimageortext div.droparea,
12form.mform fieldset#id_previewareaheader div.ddarea {
13 position: relative;
14}
15
a05ef130
HN
16.que.ddimageortext div.droparea {
17 display: inline-block;
18}
19
20.que.ddimageortext div.droparea .draghome {
21 position: absolute;
22 cursor: move;
23 white-space: nowrap;
24}
25
26.que.ddimageortext div.droparea .dropzones {
27 position: absolute;
28 top: 0;
67dfb55d 29 /*rtl:ignore*/
a05ef130
HN
30 left: 0;
31}
32
ebf91776
TH
33.que.ddimageortext .dropbackground,
34form.mform fieldset#id_previewareaheader .dropbackground {
aea8eaec 35 border: 1px solid #000;
ebf91776
TH
36 margin: 0 auto;
37}
38
a05ef130
HN
39form.mform fieldset#id_previewareaheader .dropbackground {
40 max-width: none;
41}
42
ebf91776 43.que.ddimageortext .dropzone {
a05ef130 44 display: none;
ebf91776
TH
45 position: absolute;
46 opacity: 0.5;
47 border: 1px solid black;
a05ef130
HN
48}
49
50.que.ddimageortext .dropzone.active {
51 display: block;
ebf91776
TH
52}
53
54.que.ddimageortext .dropzone:focus,
a05ef130
HN
55.que.ddimageortext .droparea .draghome:focus,
56.que.ddimageortext .dropzone.valid-drag-over-drop,
57.que.ddimageortext .draghome.placed.valid-drag-over-drop {
ebf91776
TH
58 border-color: #0a0;
59 box-shadow: 0 0 5px 5px rgba(255, 255, 150, 1);
60 outline: 0;
a2bb148a 61}
a2bb148a 62
bc33e9bd 63.que.ddimageortext .draghome,
ebf91776
TH
64.que.ddimageortext .drag,
65form.mform fieldset#id_previewareaheader .droppreview {
66 border: 1px solid black;
67 display: inline-block;
68 font: 13px/1.231 arial, helvetica, clean, sans-serif;
69}
70
a05ef130 71.que.ddimageortext .draghomes .draghome {
50000b74 72 vertical-align: top;
b5990048 73 margin: 5px;
ebf91776
TH
74 height: auto;
75 width: auto;
a05ef130
HN
76 cursor: move;
77}
78
79.que.ddimageortext .draghomes.readonly .draghome,
80.que.ddimageortext .droparea.readonly .draghome {
81 cursor: auto;
82}
83
84.que.ddimageortext .draghomes .draghome.dragplaceholder {
85 display: none;
86}
87
88.que.ddimageortext .draghomes .draghome.dragplaceholder.active {
89 visibility: hidden;
90 display: inline-block;
a2bb148a 91}
50000b74 92
ebf91776
TH
93.que.ddimageortext .dragitems,
94form.mform fieldset#id_previewareaheader .dragitems {
95 height: 0;
96}
97
98.que.ddimageortext .drag,
99form.mform fieldset#id_previewareaheader .droppreview {
100 position: absolute;
50000b74 101 cursor: move;
ebf91776
TH
102}
103
104.que.ddimageortext .dragitems.readonly .drag {
105 cursor: auto;
106}
107
108form.mform fieldset#id_previewareaheader .drag.beingdragged,
a05ef130
HN
109.que.ddimageortext .drag.beingdragged,
110.que.ddimageortext .draghomes .draghome.beingdragged,
111.que.ddimageortext .droparea .draghome.beingdragged {
ebf91776 112 box-shadow: 3px 3px 4px #000;
a2bb148a
TH
113}
114
a05ef130
HN
115.que.ddimageortext .draghomes .draghome.beingdragged,
116.que.ddimageortext .droparea .draghome.beingdragged {
117 position: absolute;
118}
119
bc33e9bd
DP
120.que.ddimageortext .group1,
121form.mform fieldset#id_previewareaheader .group1 {
aea8eaec 122 background-color: #fff;
a2bb148a 123}
bc33e9bd
DP
124
125.que.ddimageortext .group2,
126form.mform fieldset#id_previewareaheader .group2 {
127 background-color: #b0c4de;
1d89daf3 128 border-radius: 10px 0 0 0;
a2bb148a 129}
bc33e9bd
DP
130
131.que.ddimageortext .group3,
132form.mform fieldset#id_previewareaheader .group3 {
133 background-color: #dcdcdc;
1d89daf3 134 border-radius: 0 10px 0 0;
a2bb148a 135}
bc33e9bd
DP
136
137.que.ddimageortext .group4,
138form.mform fieldset#id_previewareaheader .group4 {
139 background-color: #d8bfd8;
1d89daf3 140 border-radius: 0 0 10px 0;
a2bb148a 141}
bc33e9bd
DP
142
143.que.ddimageortext .group5,
144form.mform fieldset#id_previewareaheader .group5 {
145 background-color: #87cefa;
1d89daf3 146 border-radius: 0 0 0 10px;
a2bb148a 147}
bc33e9bd
DP
148
149.que.ddimageortext .group6,
150form.mform fieldset#id_previewareaheader .group6 {
151 background-color: #daa520;
1d89daf3 152 border-radius: 0 10px 10px 0;
a2bb148a 153}
bc33e9bd
DP
154
155.que.ddimageortext .group7,
156form.mform fieldset#id_previewareaheader .group7 {
157 background-color: #ffd700;
1d89daf3 158 border-radius: 10px 0 0 10px;
a2bb148a 159}
bc33e9bd
DP
160
161.que.ddimageortext .group8,
162form.mform fieldset#id_previewareaheader .group8 {
163 background-color: #f0e68c;
1d89daf3 164 border-radius: 10px 10px 10px 10px;
a2bb148a 165}
bc33e9bd 166
4139151f
CC
167/* Editing form. Style repeated elements*/
168/*Top*/
169body#page-question-type-ddimageortext div[id^=fgroup_id_][id*=drags_] {
bc33e9bd 170 background: #eee;
4139151f
CC
171 margin-top: 0;
172 margin-bottom: 0;
173 padding-bottom: 5px;
174 padding-top: 5px;
bc33e9bd 175 border: 1px solid #bbb;
4139151f
CC
176 border-bottom: 0;
177}
bc33e9bd 178
4139151f
CC
179body#page-question-type-ddimageortext div[id^=fgroup_id_][id*=drags_] .fgrouplabel label {
180 font-weight: bold;
181}
182/* Middle */
183body#page-question-type-ddimageortext div[id^=fitem_id_][id*=dragitem_] {
bc33e9bd 184 background: #eee;
4139151f
CC
185 margin-bottom: 0;
186 margin-top: 0;
187 padding-bottom: 5px;
188 padding-top: 5px;
bc33e9bd 189 border: 1px solid #bbb;
4139151f
CC
190 border-top: 0;
191 border-bottom: 0;
192}
193/* Bottom */
194body#page-question-type-ddimageortext div[id^=fitem_id_][id*=draglabel_] {
bc33e9bd 195 background: #eee;
4139151f
CC
196 margin-bottom: 2em;
197 margin-top: 0;
198 padding-bottom: 5px;
199 padding-top: 5px;
bc33e9bd 200 border: 1px solid #bbb;
4139151f
CC
201 border-top: 0;
202}