Mercurial > hg > dml-open-vis
view src/DML/MainVisBundle/Resources/assets/bem-blocks/config-grid-panel.less @ 1:f38015048f48 tip
Added GPL
author | Daniel Wolff |
---|---|
date | Sat, 13 Feb 2016 20:43:38 +0100 |
parents | 493bcb69166c |
children |
line wrap: on
line source
@import "../config.less"; .config-grid-panel { position: absolute; z-index: @z-index_main-region + 20; // ---------------------------------- // ---------------------------------- &_dimension_entity { top: 0; right: 0; left: @config-grid_collection--panel_entity--left; height: @config-grid_collection--panel_entity--height; } .config-grid_type_collection &_dimension_entity { } .config-grid_type_recording &_dimension_entity { left: @config-grid_recording--panel_entity--left; height: @config-grid_recording--panel_entity--height; } // ---------------------------------- &_dimension_view { bottom: 0; top: @config-grid_collection--panel_view--top; width: @config-grid_collection--panel_view--width; } .config-grid_type_collection &_dimension_view { } .config-grid_type_recording &_dimension_view { top: @config-grid_recording--panel_view--top; width: @config-grid_recording--panel_view--width; } // ================================== &__background { .position_absolute_everywhere; background: @config-grid--color_panel-background; } .config-grid_type_collection &__background { background: @config-grid_collection--color_panel-background; } .config-grid_type_recording &__background { background: @config-grid_recording--color_panel-background; } &_dimension_entity &__background { border-bottom-left-radius: @--border-radius; } &_dimension_view &__background { border-top-right-radius: @--border-radius; } // ================================== &__main-area-wrapper { position: absolute; overflow: hidden; } &_dimension_entity &__main-area-wrapper { position: absolute; top: 0; white-space: nowrap; left: 2.7 * @config-grid-panel--command-size + 10px; right: 0; bottom: 0; overflow: hidden; //overflow-x: scroll; } &_dimension_view &__main-area-wrapper { position: absolute; top: @config-grid-panel--command-size + 10px; left: 0; right: 0; bottom: 0; overflow: hidden; //overflow-y: scroll; } // ================================== &__main-area { } // ================================== &__commands { text-align: center; line-height: @config-grid-panel--command-size; } &_dimension_entity &__commands { padding-top: 10px; position: relative; margin-left: 12px; float: left; //border-right: 1px solid mix(@config-grid--color_collection, #fff, 5%); } &_dimension_entity &__commands { width: 2.7 * @config-grid-panel--command-size; } .config-grid_type_recording &_dimension_entity &__commands { width: 2.5 * @config-grid-panel--command-size; text-align: left; } .config-grid_type_recording &_dimension_entity&_master-kind_pair &__commands { width: 5.7 * @config-grid-panel--command-size; } &_dimension_view &__commands { padding-top: 10px; height: @config-grid-panel--command-size; //border-top: 1px solid mix(@config-grid--color_collection, #fff, 10%); } // ================================== &_dimension_entity &__command-group { display: block; position: absolute; width: @config-grid-panel--command-size; height: 2 * @config-grid-panel--command-size; } &_dimension_view &__command-group, .config-grid_type_recording &_dimension_entity &__command-group { display: inline-block; width: 2 * @config-grid-panel--command-size + @config-grid-panel--command-margin-h_views; height: @config-grid-panel--command-size; } &_dimension_entity &__command-group_type_clone-delete { padding-bottom: 10px; } &_dimension_entity &__command-group_type_discard-apply { left: 1.45 * @config-grid-panel--command-size; } &_dimension_view &__command-group_type_clone-delete { //border-left: 1px solid mix(@config-grid--color_collection, #fff, 5%); //border-right: 1px solid #fff; //border-right: 1px solid mix(@config-grid--color_collection, #fff, 5%); padding-right: 10px; margin-right: 10px; } .config-grid_type_recording &_dimension_entity &__command-group_type_clone-delete { //border-left: 1px solid mix(@config-grid--color_collection, #fff, 5%); //border-right: 1px solid #fff; //border-right: 1px solid mix(@config-grid--color_collection, #fff, 5%); padding-right: 10px; margin-right: 0px; } // ================================== &__command { .cursor_std(); overflow: visible; position: relative; display: inline-block; width: @config-grid-panel--command-size; height: @config-grid-panel--command-size; opactity: 0.5; //background: mix(@config-grid--color_collection, #fff, 20%); border-radius: 5px; } &_dimension_entity &__command { display: block; } .config-grid_type_recording &_dimension_entity &__command { display: inline-block; } &__command i { display: block; position: absolute; width: @config-grid-panel--command-size; height: @config-grid-panel--command-size; background-repeat: no-repeat; background-position: center center; opacity: 0.05; } &__command_state_enabled { .cursor_action(); } &__command_state_enabled i { opacity: 0.35; } &__command_state_enabled:hover i { opacity: 1; } &__command_flashing i, &__command_state_enabled:active i { //background: mix(@config-grid--color_collection, #fff, 20%); top: 1px; } &__command_action_apply { //background-image: data-uri('image/svg+xml;charset=UTF-8', "./config-grid-panel/command/apply.svg"); } &_dimension_entity &__command_action_previous i { background-image: url("@{bem-path}/config-grid-panel/command/arrow_left.svg"); } &_dimension_view &__command_action_previous i { background-image: url("@{bem-path}/config-grid-panel/command/arrow_up.svg"); } &_dimension_entity &__command_action_next i { background-image: url("@{bem-path}/config-grid-panel/command/arrow_down.svg"); } &_dimension_view &__command_action_next i { background-image: url("@{bem-path}/config-grid-panel/command/arrow_right.svg"); } &__command_action_clone i { background-image: url("@{bem-path}/config-grid-panel/command/clone_filled.svg"); } &__command_action_delete i { background-image: url("@{bem-path}/config-grid-panel/command/delete_filled.svg"); } &__command_action_discard i { background-image: url("@{bem-path}/config-grid-panel/command/discard_r.svg"); } &__command_action_apply i { background-image: url("@{bem-path}/config-grid-panel/command/apply_r.svg"); } &_dimension_view &__command_action_clone, .config-grid_type_recording &_dimension_entity &__command_action_clone { margin-right: @config-grid-panel--command-margin-h_views; } &_dimension_view &__command_action_discard, .config-grid_type_recording &_dimension_entity &__command_action_discard { margin-right: @config-grid-panel--command-margin-h_views; } .config-grid_type_recording &_dimension_entity &__command_action_clone { } .config-grid_type_recording &_dimension_entity &__command_action_apply { } .config-grid_type_recording &_dimension_entity &__command_action_discard { } .config-grid_type_recording &_dimension_entity &__command-group_type_discard-apply { left: 2.7 * @config-grid-panel--command-size; } .config-grid_type_recording &_dimension_entity &__main-area-wrapper { left: 1.5 * @config-grid-panel--command-size; } .config-grid_type_recording &_dimension_entity &__command-group_type_discard-apply { display: none; } .config-grid_type_recording &_dimension_entity&_master-kind_pair &__command-group_type_discard-apply { display: inline-block; } .config-grid_type_recording &_dimension_entity &__main-area-wrapper { left: 2.7 * @config-grid-panel--command-size; } .config-grid_type_recording &_dimension_entity&_master-kind_pair &__main-area-wrapper { left: 5.5 * @config-grid-panel--command-size; } //background-image: url("data:image/svg+xml;utf8, <svg ... />"); //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>"); // ================================== &__border-radius-fixer-container { position: absolute; height: @--border-radius; width: @--border-radius; } &_dimension_entity &__border-radius-fixer-container { bottom: 0; left: 0; } &_dimension_view &__border-radius-fixer-container { top: 0; right: 0; } // ================================== &__border-radius-fixer { position: absolute; top: 0; left: 0; height: @--border-radius; width: @--border-radius; } .config-grid_type_collection &__border-radius-fixer { background: @config-grid_collection--color_panel-background; } .config-grid_type_recording &__border-radius-fixer { background: @config-grid_recording--color_panel-background; } // ================================== &__suggestions { } &__suggestion { padding-left: 8px; padding-bottom: 3px; } &__pseudo-link { color: @config-grid--color_panel-label; .cursor_action; border-bottom: 1px dotted; display: inline; } &__pseudo-link:hover { color: @config-grid--color_panel-label-hovered; } }