comparison src/DML/MainVisBundle/Resources/assets/bem-blocks/vis-instance-content/vic-list.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 .vic-list {
4 .font_small();
5 padding-top: 5px;
6
7 @item-height: 15px;
8 @command-size: 15px;
9 @command-top: 0px;
10
11 @action-right_audio: 35px;
12 @action-right_analyze: 50px;
13
14 // ----------------------------------
15
16 // ==================================
17 &__item {
18 position: relative;
19 height: @item-height;
20 line-height: @item-height;
21 // color: @config-grid--color_panel-label;
22 color: @config-grid--color_panel-label-hovered;
23 cursor: pointer;
24 .border-radius(@--border-radius);
25 }
26
27 &__item:hover {
28 //color: @config-grid--color_panel-label-hovered;
29 background: mix(@config-grid--color_panel-background, #fff, 50%);
30 }
31
32 &__item_status_selected {
33 .cursor_std();
34 background: @config-grid--color_panel-background !important;
35 }
36
37
38 // ==================================
39 &__item-label {
40 position: absolute;
41 left: @config-grid--cells--header-padding-left;
42 right: 70px;
43 height: 15px;
44 overflow: hidden;
45 white-space: nowrap;
46 }
47
48 // ==================================
49 &__item-year {
50 position: absolute;
51 top: 0;
52 right: @config-grid--cells--header-padding-left;
53 }
54
55 // ==================================
56 &__item-audio {
57
58 }
59
60 // ==================================
61 &__item-command {
62 pointer-events: none;
63 display: block;
64 position: absolute;
65 height: @command-size;
66 width: @command-size;
67 top: @command-top;
68 }
69 &__item-command i {
70 .position_absolute_everywhere();
71 }
72
73 &__item_status_selected &__item-command {
74 .cursor_action();
75 }
76
77 &__item_status_selected &__item-command:active {
78 top: 1px;
79 }
80
81 // ----------------------------------
82 &__item-command_action_audio {
83 right: @action-right_audio;
84 opacity: .2;
85 }
86 &__item_status_selected &__item-command_action_audio {
87 opacity: .5;
88 pointer-events: all;
89 }
90 &__item_status_selected &__item-command_action_audio:hover {
91 opacity: 1;
92
93 }
94
95 &__item-command_action_audio i {
96 background-size: @command-size;
97 background-position: center center;
98 background-image: url("@{bem-path}/vis-instance-content/vic-list/item-command_action_play_note_2.svg");
99 }
100
101
102 // ----------------------------------
103 &__item-command_action_analyze {
104 right: @action-right_analyze;
105 }
106
107
108 &__item-command_action_analyze {
109 display: none;
110 }
111
112 @circle-size: 7px;
113 @circle-offset: 3px;
114 @smaller-by: 6px;
115 &__item-command_action_analyze i{
116 border: 1px solid @config-grid_recording--color_main;
117 height: @circle-size;
118 width: @circle-size;
119 .border-radius(@circle-size);
120 }
121 //right: @action-right_analyze + @smaller-by / 2 + 1;
122
123 &__item-command_action_analyze&__item-command_status_toggled {
124 display: block;
125 //opacity: 0.5;
126 }
127 &__item-command_action_analyze&__item-command_status_toggled i {
128 background: @config-grid_recording--color_main;
129 border: 1px solid @config-grid_recording--color_main;
130 height: @circle-size - @smaller-by;
131 width: @circle-size - @smaller-by;
132 top: @circle-offset + @smaller-by / 2;
133 left: @circle-offset + @smaller-by / 2;
134 }
135 &__item_status_selected &__item-command_action_analyze {
136 pointer-events: all;
137 display: block;
138 opacity: 1;
139 }
140 &__item_status_selected &__item-command_action_analyze i {
141 border: 1px solid @config-grid_recording--color_main;
142 height: @circle-size;
143 width: @circle-size;
144 top: @circle-offset;
145 left: @circle-offset;
146 }
147
148 &__item-command_action_status_toggled {
149 }
150
151 &__item_status_selected &__item-command_action_analyze:hover i {
152 background: rgba(red(@config-grid_recording--color_main), green(@config-grid_recording--color_main), blue(@config-grid_recording--color_main), 0.3);
153 }
154 &__item_status_selected &__item-command_status_toggled&__item-command_action_analyze:hover i {
155 background: rgba(red(@config-grid_recording--color_main), green(@config-grid_recording--color_main), blue(@config-grid_recording--color_main), 0.7);
156 }
157
158
159 // ==================================
160 &__flying-circle {
161 position: fixed;
162 height: @circle-size;
163 width: @circle-size;
164 border: 1px solid @config-grid_recording--color_main;
165 background: rgba(red(@config-grid_recording--color_main), green(@config-grid_recording--color_main), blue(@config-grid_recording--color_main), 0.5);
166 z-index: @z-index_flying-circle;
167 .border-radius(@circle-size);
168 pointer-events: none;
169 }
170 &__flying-circle_type_adding {}
171 &__flying-circle_type_removing {}
172
173 // ==================================
174 // used in help material
175 &__circle-within-text {
176 display: inline-block;
177 height: @circle-size;
178 width: @circle-size;
179 border: 1px solid @config-grid_recording--color_main;
180 .border-radius(@circle-size);
181 }
182 }