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