comparison src/DML/MainVisBundle/Resources/assets/bem-blocks/config-grid-panel.less @ 0:493bcb69166c

added public content
author Daniel Wolff
date Tue, 09 Feb 2016 20:54:02 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:493bcb69166c
1 @import "../config.less";
2
3 .config-grid-panel {
4 position: absolute;
5 z-index: @z-index_main-region + 20;
6
7 // ----------------------------------
8
9 // ----------------------------------
10 &_dimension_entity {
11 top: 0;
12 right: 0;
13 left: @config-grid_collection--panel_entity--left;
14 height: @config-grid_collection--panel_entity--height;
15 }
16 .config-grid_type_collection &_dimension_entity {
17 }
18 .config-grid_type_recording &_dimension_entity {
19 left: @config-grid_recording--panel_entity--left;
20 height: @config-grid_recording--panel_entity--height;
21 }
22
23 // ----------------------------------
24 &_dimension_view {
25 bottom: 0;
26 top: @config-grid_collection--panel_view--top;
27 width: @config-grid_collection--panel_view--width;
28 }
29 .config-grid_type_collection &_dimension_view {
30 }
31 .config-grid_type_recording &_dimension_view {
32 top: @config-grid_recording--panel_view--top;
33 width: @config-grid_recording--panel_view--width;
34 }
35
36 // ==================================
37 &__background {
38 .position_absolute_everywhere;
39 background: @config-grid--color_panel-background;
40 }
41 .config-grid_type_collection &__background {
42 background: @config-grid_collection--color_panel-background;
43 }
44 .config-grid_type_recording &__background {
45 background: @config-grid_recording--color_panel-background;
46 }
47 &_dimension_entity &__background {
48 border-bottom-left-radius: @--border-radius;
49 }
50 &_dimension_view &__background {
51 border-top-right-radius: @--border-radius;
52 }
53
54 // ==================================
55 &__main-area-wrapper {
56 position: absolute;
57 overflow: hidden;
58 }
59
60 &_dimension_entity &__main-area-wrapper {
61 position: absolute;
62 top: 0;
63 white-space: nowrap;
64 left: 2.7 * @config-grid-panel--command-size + 10px;
65 right: 0;
66 bottom: 0;
67 overflow: hidden;
68 //overflow-x: scroll;
69 }
70
71 &_dimension_view &__main-area-wrapper {
72 position: absolute;
73 top: @config-grid-panel--command-size + 10px;
74 left: 0;
75 right: 0;
76 bottom: 0;
77 overflow: hidden;
78 //overflow-y: scroll;
79 }
80
81 // ==================================
82 &__main-area {
83 }
84
85 // ==================================
86 &__commands {
87 text-align: center;
88 line-height: @config-grid-panel--command-size;
89 }
90
91 &_dimension_entity &__commands {
92 padding-top: 10px;
93 position: relative;
94 margin-left: 12px;
95 float: left;
96 //border-right: 1px solid mix(@config-grid--color_collection, #fff, 5%);
97 }
98 &_dimension_entity &__commands {
99 width: 2.7 * @config-grid-panel--command-size;
100 }
101 .config-grid_type_recording &_dimension_entity &__commands {
102 width: 2.5 * @config-grid-panel--command-size;
103 text-align: left;
104 }
105 .config-grid_type_recording &_dimension_entity&_master-kind_pair &__commands {
106 width: 5.7 * @config-grid-panel--command-size;
107 }
108
109 &_dimension_view &__commands {
110 padding-top: 10px;
111 height: @config-grid-panel--command-size;
112 //border-top: 1px solid mix(@config-grid--color_collection, #fff, 10%);
113 }
114
115 // ==================================
116 &_dimension_entity &__command-group {
117 display: block;
118 position: absolute;
119 width: @config-grid-panel--command-size;
120 height: 2 * @config-grid-panel--command-size;
121 }
122
123 &_dimension_view &__command-group,
124 .config-grid_type_recording &_dimension_entity &__command-group {
125 display: inline-block;
126 width: 2 * @config-grid-panel--command-size + @config-grid-panel--command-margin-h_views;
127 height: @config-grid-panel--command-size;
128 }
129
130 &_dimension_entity &__command-group_type_clone-delete {
131 padding-bottom: 10px;
132 }
133 &_dimension_entity &__command-group_type_discard-apply {
134 left: 1.45 * @config-grid-panel--command-size;
135 }
136
137 &_dimension_view &__command-group_type_clone-delete {
138 //border-left: 1px solid mix(@config-grid--color_collection, #fff, 5%);
139 //border-right: 1px solid #fff;
140 //border-right: 1px solid mix(@config-grid--color_collection, #fff, 5%);
141 padding-right: 10px;
142 margin-right: 10px;
143 }
144 .config-grid_type_recording &_dimension_entity &__command-group_type_clone-delete {
145 //border-left: 1px solid mix(@config-grid--color_collection, #fff, 5%);
146 //border-right: 1px solid #fff;
147 //border-right: 1px solid mix(@config-grid--color_collection, #fff, 5%);
148 padding-right: 10px;
149 margin-right: 0px;
150 }
151
152 // ==================================
153 &__command {
154 .cursor_std();
155 overflow: visible;
156 position: relative;
157 display: inline-block;
158 width: @config-grid-panel--command-size;
159 height: @config-grid-panel--command-size;
160 opactity: 0.5;
161 //background: mix(@config-grid--color_collection, #fff, 20%);
162 border-radius: 5px;
163 }
164
165 &_dimension_entity &__command {
166 display: block;
167 }
168 .config-grid_type_recording &_dimension_entity &__command {
169 display: inline-block;
170 }
171
172 &__command i {
173 display: block;
174 position: absolute;
175 width: @config-grid-panel--command-size;
176 height: @config-grid-panel--command-size;
177 background-repeat: no-repeat;
178 background-position: center center;
179 opacity: 0.05;
180 }
181 &__command_state_enabled {
182 .cursor_action();
183 }
184 &__command_state_enabled i {
185 opacity: 0.35;
186 }
187
188 &__command_state_enabled:hover i {
189 opacity: 1;
190 }
191 &__command_flashing i,
192 &__command_state_enabled:active i {
193 //background: mix(@config-grid--color_collection, #fff, 20%);
194 top: 1px;
195 }
196
197 &__command_action_apply {
198 //background-image: data-uri('image/svg+xml;charset=UTF-8', "./config-grid-panel/command/apply.svg");
199 }
200
201 &_dimension_entity &__command_action_previous i {
202 background-image: url("@{bem-path}/config-grid-panel/command/arrow_left.svg");
203 }
204 &_dimension_view &__command_action_previous i {
205 background-image: url("@{bem-path}/config-grid-panel/command/arrow_up.svg");
206 }
207 &_dimension_entity &__command_action_next i {
208 background-image: url("@{bem-path}/config-grid-panel/command/arrow_down.svg");
209 }
210 &_dimension_view &__command_action_next i {
211 background-image: url("@{bem-path}/config-grid-panel/command/arrow_right.svg");
212 }
213 &__command_action_clone i {
214 background-image: url("@{bem-path}/config-grid-panel/command/clone_filled.svg");
215 }
216 &__command_action_delete i {
217 background-image: url("@{bem-path}/config-grid-panel/command/delete_filled.svg");
218 }
219 &__command_action_discard i {
220 background-image: url("@{bem-path}/config-grid-panel/command/discard_r.svg");
221 }
222 &__command_action_apply i {
223 background-image: url("@{bem-path}/config-grid-panel/command/apply_r.svg");
224 }
225
226 &_dimension_view &__command_action_clone,
227 .config-grid_type_recording &_dimension_entity &__command_action_clone {
228 margin-right: @config-grid-panel--command-margin-h_views;
229 }
230 &_dimension_view &__command_action_discard,
231 .config-grid_type_recording &_dimension_entity &__command_action_discard {
232 margin-right: @config-grid-panel--command-margin-h_views;
233 }
234
235 .config-grid_type_recording &_dimension_entity &__command_action_clone {
236 }
237 .config-grid_type_recording &_dimension_entity &__command_action_apply {
238 }
239 .config-grid_type_recording &_dimension_entity &__command_action_discard {
240 }
241 .config-grid_type_recording &_dimension_entity &__command-group_type_discard-apply {
242 left: 2.7 * @config-grid-panel--command-size;
243 }
244 .config-grid_type_recording &_dimension_entity &__main-area-wrapper {
245 left: 1.5 * @config-grid-panel--command-size;
246 }
247
248 .config-grid_type_recording &_dimension_entity &__command-group_type_discard-apply {
249 display: none;
250 }
251 .config-grid_type_recording &_dimension_entity&_master-kind_pair &__command-group_type_discard-apply {
252 display: inline-block;
253 }
254 .config-grid_type_recording &_dimension_entity &__main-area-wrapper {
255 left: 2.7 * @config-grid-panel--command-size;
256 }
257 .config-grid_type_recording &_dimension_entity&_master-kind_pair &__main-area-wrapper {
258 left: 5.5 * @config-grid-panel--command-size;
259 }
260
261
262 //background-image: url("data:image/svg+xml;utf8, <svg ... />");
263 //background-image: url("data:image/svg+xml;utf8,<svg height='18px' version='1.1' viewBox='0 0 14 18' width='14px' xmlns='http://www.w3.org/2000/svg' xmlns:sketch='http://www.bohemiancoding.com/sketch/ns' xmlns:xlink='http://www.w3.org/1999/xlink'><title/><desc/><defs/><g fill='none' fill-rule='evenodd' id='Page-1' stroke='none' stroke-width='1'><g fill='@{a}' id='Core' transform='translate(-299.000000, -129.000000)'><g id='delete' transform='translate(299.000000, 129.000000)'><path d='M1,16 C1,17.1 1.9,18 3,18 L11,18 C12.1,18 13,17.1 13,16 L13,4 L1,4 L1,16 L1,16 Z M14,1 L10.5,1 L9.5,0 L4.5,0 L3.5,1 L0,1 L0,3 L14,3 L14,1 L14,1 Z' id='Shape'/></g></g></g></svg>");
264
265 // ==================================
266 &__border-radius-fixer-container {
267 position: absolute;
268 height: @--border-radius;
269 width: @--border-radius;
270 }
271 &_dimension_entity &__border-radius-fixer-container {
272 bottom: 0;
273 left: 0;
274 }
275 &_dimension_view &__border-radius-fixer-container {
276 top: 0;
277 right: 0;
278 }
279
280 // ==================================
281 &__border-radius-fixer {
282 position: absolute;
283 top: 0;
284 left: 0;
285 height: @--border-radius;
286 width: @--border-radius;
287 }
288 .config-grid_type_collection &__border-radius-fixer {
289 background: @config-grid_collection--color_panel-background;
290 }
291 .config-grid_type_recording &__border-radius-fixer {
292 background: @config-grid_recording--color_panel-background;
293 }
294
295 // ==================================
296
297 &__suggestions {
298
299 }
300
301 &__suggestion {
302 padding-left: 8px;
303 padding-bottom: 3px;
304 }
305
306 &__pseudo-link {
307 color: @config-grid--color_panel-label;
308 .cursor_action;
309 border-bottom: 1px dotted;
310 display: inline;
311 }
312 &__pseudo-link:hover {
313 color: @config-grid--color_panel-label-hovered;
314 }
315
316 }