annotate src/DML/MainVisBundle/Resources/assets/bem-blocks/cgpma.less @ 0:493bcb69166c

added public content
author Daniel Wolff
date Tue, 09 Feb 2016 20:54:02 +0100
parents
children
rev   line source
Daniel@0 1 // cgpma stands for config grid panel main area
Daniel@0 2
Daniel@0 3 @import "../config.less";
Daniel@0 4
Daniel@0 5 .cgpma {
Daniel@0 6
Daniel@0 7 @input-padding_h: @config-grid-panel--input-padding_left;
Daniel@0 8 @input-padding_v: 3px;
Daniel@0 9 @input-height: 26px;
Daniel@0 10
Daniel@0 11 .cursor_std();
Daniel@0 12
Daniel@0 13 .config-grid_type_collection .config-grid-panel_dimension_entity & {
Daniel@0 14 padding: @config-grid_collection--panel_entity--main-area-margin-top 0 0 @config-grid_collection--panel_entity--main-area-margin-left;
Daniel@0 15 }
Daniel@0 16 .config-grid_type_recording .config-grid-panel_dimension_entity & {
Daniel@0 17 padding: @config-grid_recording--panel_entity--main-area-margin-top 0 0 @config-grid_recording--panel_entity--main-area-margin-left;
Daniel@0 18 }
Daniel@0 19
Daniel@0 20 .config-grid-panel_dimension_view & {
Daniel@0 21 padding: 10px @config-grid-panel_view--main-area-margin-right 10px @config-grid-panel_view--main-area-margin-left;
Daniel@0 22 }
Daniel@0 23
Daniel@0 24
Daniel@0 25 // ==================================
Daniel@0 26 &__explanation {
Daniel@0 27 padding-left: @config-grid-panel--input-padding_left;
Daniel@0 28 padding-right: @config-grid-panel--input-padding_left;
Daniel@0 29 padding-bottom: 8px;
Daniel@0 30 }
Daniel@0 31 .config-grid_type_collection &__explanation {
Daniel@0 32 color: @config-grid_collection--color_panel-label;
Daniel@0 33 }
Daniel@0 34 .config-grid_type_recording &__explanation {
Daniel@0 35 color: @config-grid_recording--color_panel-label;
Daniel@0 36 }
Daniel@0 37 .config-grid-panel_dimension_entity &__explanation {
Daniel@0 38 display: inline-block;
Daniel@0 39 }
Daniel@0 40 .config-grid_type_recording .config-grid-panel_dimension_entity &__explanation {
Daniel@0 41 padding-top: 3px;
Daniel@0 42 }
Daniel@0 43
Daniel@0 44 // ----------------------------------
Daniel@0 45 &__explanation_for-previous-input {
Daniel@0 46 .font_small();
Daniel@0 47 margin-top: -6px;
Daniel@0 48 }
Daniel@0 49 &__explanation_for-previous-tickbox {
Daniel@0 50 .font_small();
Daniel@0 51 }
Daniel@0 52
Daniel@0 53 // ----------------------------------
Daniel@0 54 &__explanation_sticked-to-left {
Daniel@0 55 padding-left: 0px;
Daniel@0 56 }
Daniel@0 57
Daniel@0 58 // ----------------------------------
Daniel@0 59 &__explanation_second-row {
Daniel@0 60 padding-top: 25px;
Daniel@0 61 }
Daniel@0 62
Daniel@0 63
Daniel@0 64 // ==================================
Daniel@0 65 &__pseudo-link {
Daniel@0 66 color: @config-grid--color_panel-label;
Daniel@0 67 .cursor_action;
Daniel@0 68 border-bottom: 1px dotted;
Daniel@0 69 display: inline;
Daniel@0 70 }
Daniel@0 71 &__pseudo-link:hover {
Daniel@0 72 color: @config-grid--color_panel-label-hovered;
Daniel@0 73 }
Daniel@0 74
Daniel@0 75
Daniel@0 76 // ==================================
Daniel@0 77 &__input-block {
Daniel@0 78 }
Daniel@0 79
Daniel@0 80 .config-grid-panel_dimension_entity &__input-block {
Daniel@0 81 display: inline-block;
Daniel@0 82 padding: 0 15px 0 0;
Daniel@0 83 min-width: 150px;
Daniel@0 84 vertical-align: top;
Daniel@0 85 }
Daniel@0 86
Daniel@0 87 .config-grid-panel_dimension_view &__input-block {
Daniel@0 88 margin-bottom: 10px;
Daniel@0 89 }
Daniel@0 90
Daniel@0 91 &__input-block_location_first-in-group {
Daniel@0 92 margin-top: 20px;
Daniel@0 93 }
Daniel@0 94
Daniel@0 95
Daniel@0 96 // ==================================
Daniel@0 97 &__label {
Daniel@0 98 padding: 0 @input-padding_h 1px;
Daniel@0 99 color: @config-grid--color_panel-label;
Daniel@0 100 }
Daniel@0 101 .config-grid_type_collection &__label {
Daniel@0 102 color: @config-grid_collection--color_panel-label;
Daniel@0 103 }
Daniel@0 104 .config-grid_type_recording &__label {
Daniel@0 105 color: @config-grid_recording--color_panel-label;
Daniel@0 106 }
Daniel@0 107 &__label a {
Daniel@0 108 color: @config-grid--color_panel-label;
Daniel@0 109 text-decoration: none;
Daniel@0 110 border-bottom: 1px solid rgba(0, 0, 0, 0.1);
Daniel@0 111 }
Daniel@0 112
Daniel@0 113 .config-grid_type_collection &__label a {
Daniel@0 114 color: @config-grid_collection--color_panel-label;
Daniel@0 115 }
Daniel@0 116 .config-grid_type_recording &__label a {
Daniel@0 117 color: @config-grid_recording--color_panel-label;
Daniel@0 118 }
Daniel@0 119
Daniel@0 120
Daniel@0 121 &__label a:hover {
Daniel@0 122 color: @config-grid--color_panel-label-hovered !important;
Daniel@0 123 border-bottom: 1px solid rgba(0, 0, 0, 0.4);
Daniel@0 124 }
Daniel@0 125
Daniel@0 126 // ----------------------------------
Daniel@0 127 &__label_without-left-padding {
Daniel@0 128 padding-left: 0;
Daniel@0 129 }
Daniel@0 130
Daniel@0 131 // ==================================
Daniel@0 132 &__textfield {
Daniel@0 133 border-radius: 5px;
Daniel@0 134 height: @input-height - 2 * @input-padding_v;
Daniel@0 135 position: relative;
Daniel@0 136 border-top: @input-padding_v solid;
Daniel@0 137 border-right: @input-padding_h solid;
Daniel@0 138 border-bottom: @input-padding_v solid;
Daniel@0 139 border-left: @input-padding_h solid;
Daniel@0 140 }
Daniel@0 141 .config-grid-panel_dimension_entity &__textfield {
Daniel@0 142 width: 150px;
Daniel@0 143 }
Daniel@0 144
Daniel@0 145 &__textfield-input {
Daniel@0 146 outline: none !important;
Daniel@0 147 .font_standard();
Daniel@0 148 background: none;
Daniel@0 149 position: relative;
Daniel@0 150 width: 100%;
Daniel@0 151 height: 100%;
Daniel@0 152 margin: 0;
Daniel@0 153 border: 0;
Daniel@0 154 padding: @input-padding_v @input-padding_h;
Daniel@0 155 top: -@input-padding_v;
Daniel@0 156 left: -@input-padding_h;
Daniel@0 157 .border-radius(@--border-radius);
Daniel@0 158 }
Daniel@0 159
Daniel@0 160 .cgpma__textfield_autocomplete-is-open {
Daniel@0 161 .border-bottom-left-radius(0px);
Daniel@0 162 .border-bottom-right-radius(0px);
Daniel@0 163 }
Daniel@0 164
Daniel@0 165 // ==================================
Daniel@0 166 &__textfield .ui-autocomplete {
Daniel@0 167 .font_standard();
Daniel@0 168 }
Daniel@0 169
Daniel@0 170 // ==================================
Daniel@0 171 &__tickbox {
Daniel@0 172 margin-right: 15px;
Daniel@0 173 padding-left: 20px;
Daniel@0 174 display: inline-block;
Daniel@0 175 min-height: @input-height - 4px;
Daniel@0 176 padding-top: 3px;
Daniel@0 177 position: relative;
Daniel@0 178 }
Daniel@0 179 &__tickbox_one-per-line {
Daniel@0 180 display: block;
Daniel@0 181 }
Daniel@0 182 &__tickbox_state_enabled {
Daniel@0 183 .cursor_action();
Daniel@0 184 }
Daniel@0 185
Daniel@0 186 .config-grid-panel_dimension_view &__tickbox_location_first-in-group {
Daniel@0 187 margin-top: 5px;
Daniel@0 188 }
Daniel@0 189
Daniel@0 190 &__tickbox_location_last-in-group {
Daniel@0 191 margin-right: 0px;
Daniel@0 192 }
Daniel@0 193
Daniel@0 194 &__tickbox-tick {
Daniel@0 195 position: absolute;
Daniel@0 196 border-radius: 5px;
Daniel@0 197 height: 15px;
Daniel@0 198 width: 15px;
Daniel@0 199 left: 0px;
Daniel@0 200 top: 5px;
Daniel@0 201 }
Daniel@0 202
Daniel@0 203 &__tickbox_ticked &__tickbox-tick {
Daniel@0 204 background-repeat: no-repeat;
Daniel@0 205 background-position: 2px 4px;
Daniel@0 206 background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAHCAYAAAAxrNxjAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAGlJREFUeNpi/P//PwMuwMjIKA2k1gHxFwaQQmwYCECK7gExiHMMJDABiJcCMQ+SIjkkRVeBWIIBSeAwSDEWRaIw56kD8XMkxQ+h7PMwRWCFUNUgxU+gCjAUwRVCFatArdoLxELongMIMAANx1tBwGkjIgAAAABJRU5ErkJggg==');
Daniel@0 207 }
Daniel@0 208 &__tickbox_type_radio &__tickbox-tick {
Daniel@0 209 border-radius: 10px;
Daniel@0 210 }
Daniel@0 211 &__tickbox_type_radio&__tickbox_ticked &__tickbox-tick {
Daniel@0 212 // 2.5
Daniel@0 213 background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgaGVpZ2h0PSI1IiB3aWR0aD0iNSI+ICA8Y2lyY2xlIGN4PSIyLjUiIGN5PSIyLjUiIHI9IjIuNSIgZmlsbD0iYmxhY2siIC8+PC9zdmc+');
Daniel@0 214 // 3.5
Daniel@0 215 //background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgaGVpZ2h0PSI3IiB3aWR0aD0iNyI+ICA8Y2lyY2xlIGN4PSIzLjUiIGN5PSIzLjUiIHI9IjMuNSIgZmlsbD0iYmxhY2siIC8+PC9zdmc+');
Daniel@0 216 // 3
Daniel@0 217 //background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgaGVpZ2h0PSI2IiB3aWR0aD0iNiI+ICA8Y2lyY2xlIGN4PSIzIiBjeT0iMyIgcj0iMyIgZmlsbD0iYmxhY2siIC8+PC9zdmc+');
Daniel@0 218 background-position: center center;
Daniel@0 219 }
Daniel@0 220
Daniel@0 221 // ==================================
Daniel@0 222 // background colors of all input types
Daniel@0 223 .config-grid_type_collection &__textfield,
Daniel@0 224 .config-grid_type_collection &__tickbox-tick {
Daniel@0 225 background-color: @config-grid_collection--color_panel-input;
Daniel@0 226 border-color: @config-grid_collection--color_panel-input;
Daniel@0 227 }
Daniel@0 228
Daniel@0 229 .config-grid_type_recording &__textfield,
Daniel@0 230 .config-grid_type_recording &__tickbox-tick {
Daniel@0 231 background-color: @config-grid_recording--color_panel-input;
Daniel@0 232 border-color: @config-grid_recording--color_panel-input;
Daniel@0 233 }
Daniel@0 234
Daniel@0 235 .config-grid_type_collection &__textfield_status_modified,
Daniel@0 236 .config-grid_type_collection &__tickbox_status_modified &__tickbox-tick {
Daniel@0 237 background-color: @config-grid_collection--color_panel-input_modified;
Daniel@0 238 border-color: @config-grid_collection--color_panel-input_modified;
Daniel@0 239 }
Daniel@0 240
Daniel@0 241 .config-grid_type_recording &__textfield_status_modified,
Daniel@0 242 .config-grid_type_recording &__tickbox_status_modified &__tickbox-tick {
Daniel@0 243 background-color: @config-grid_recording--color_panel-input_modified;
Daniel@0 244 border-color: @config-grid_recording--color_panel-input_modified;
Daniel@0 245 }
Daniel@0 246
Daniel@0 247 .config-grid_type_collection &__textfield_status_error {
Daniel@0 248 background-color: @config-grid_collection--color_panel-input_error;
Daniel@0 249 border-color: @config-grid_collection--color_panel-input_error;
Daniel@0 250 }
Daniel@0 251
Daniel@0 252 .config-grid_type_recording &__textfield_status_error {
Daniel@0 253 background-color: @config-grid_recording--color_panel-input_error;
Daniel@0 254 border-color: @config-grid_recording--color_panel-input_error;
Daniel@0 255 }
Daniel@0 256 }