view src/DML/MainVisBundle/Resources/assets/bem-blocks/vis-instance-content/vic-api-debug.less @ 0:493bcb69166c

added public content
author Daniel Wolff
date Tue, 09 Feb 2016 20:54:02 +0100
parents
children
line wrap: on
line source
@import "../../config.less";

.vic-api-debug {
    padding-top: 5px;
    
    @alignment-offset: 6px;
    @background-color: #fff;
    //@background-color_query-uri: #f8f8f8;
    @background-color_query-uri: #fff;
    @border: 1px solid @config-grid--color_panel-background;
    @request-uri-hight: 20px;
    
    @color_errors: #f00;

    @input-padding_h: 3px;
    @input-padding_v: 3px;
    
    // ----------------------------------
    
    // ==================================
    &__query-box {
        .position_absolute_everywhere();
        .border-bottom-left-radius(@--border-radius);
        .border-bottom-right-radius(@--border-radius);
        display: none;
        border: @border;
        border-top: none;
        background: @background-color;
    }

    // ----------------------------------
    &__query-box_alignment_everywhere {
        display: block;
    }
    
    &__query-box_alignment_left {
        display: block;
        right: 50%;
        margin-right: @alignment-offset / 2;
    }

    &__query-box_alignment_right {
        display: block;
        left: 50%;
        margin-left: @alignment-offset / 2;
    }

    &__query-box_alignment_top {
        display: block;
        bottom: 50%;
        margin-bottom: @alignment-offset / 2;
    }

    &__query-box_alignment_bottom {
        .border-radius(@--border-radius);
        border-top: @border;
        display: block;
        top: 50%;
        margin-top: @alignment-offset / 2;
    }


    &__query-uri-wrapper {
        .position_absolute_everywhere();
        bottom: auto;
        height: @request-uri-hight - @input-padding_v * 2;
        border-top:    @input-padding_v solid @background-color_query-uri;
        border-right:  @input-padding_h solid @background-color_query-uri;
        border-bottom: @input-padding_v solid @background-color_query-uri;
        border-left:   @input-padding_h solid @background-color_query-uri;
        .border-radius(@--border-radius);
    }
    &__query-uri {
        .font_small();
        .font_monospace();
        font-weight: bold;
        position: relative;
        width: 100%;
        height: 100%;
        margin: 0;
        border: 0;
        padding: @input-padding_v @input-padding_h;
        top: -@input-padding_v;
        left: -@input-padding_h;
        background: @background-color_query-uri;
        .border-radius(@--border-radius);
    }

    &__query-response-wrapper {
        .position_absolute_everywhere();
        top: @request-uri-hight;
        border-top:    @input-padding_v solid @background-color;
        border-right:  @input-padding_h solid @background-color;
        border-bottom: @input-padding_v solid @background-color;
        border-left:   @input-padding_h solid @background-color;
        .border-radius(@--border-radius);
    }
    
    
    &__query-response {
        .font_small();
        .font_monospace();
        position: relative;
        width: 100%;
        height: 100%;
        margin: 0;
        border: 0;
        background: none;
        resize: none;
        top: -@input-padding_v;
        left: -@input-padding_h;
        padding: @input-padding_v @input-padding_h;
        .border-radius(@--border-radius);
    }
    // ----------------------------------
    &__query-box_status_has-errors &__query-response {
        color: @color_errors;
    }

}