annotate 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
rev   line source
Daniel@0 1 @import "../../config.less";
Daniel@0 2
Daniel@0 3 .vic-api-debug {
Daniel@0 4 padding-top: 5px;
Daniel@0 5
Daniel@0 6 @alignment-offset: 6px;
Daniel@0 7 @background-color: #fff;
Daniel@0 8 //@background-color_query-uri: #f8f8f8;
Daniel@0 9 @background-color_query-uri: #fff;
Daniel@0 10 @border: 1px solid @config-grid--color_panel-background;
Daniel@0 11 @request-uri-hight: 20px;
Daniel@0 12
Daniel@0 13 @color_errors: #f00;
Daniel@0 14
Daniel@0 15 @input-padding_h: 3px;
Daniel@0 16 @input-padding_v: 3px;
Daniel@0 17
Daniel@0 18 // ----------------------------------
Daniel@0 19
Daniel@0 20 // ==================================
Daniel@0 21 &__query-box {
Daniel@0 22 .position_absolute_everywhere();
Daniel@0 23 .border-bottom-left-radius(@--border-radius);
Daniel@0 24 .border-bottom-right-radius(@--border-radius);
Daniel@0 25 display: none;
Daniel@0 26 border: @border;
Daniel@0 27 border-top: none;
Daniel@0 28 background: @background-color;
Daniel@0 29 }
Daniel@0 30
Daniel@0 31 // ----------------------------------
Daniel@0 32 &__query-box_alignment_everywhere {
Daniel@0 33 display: block;
Daniel@0 34 }
Daniel@0 35
Daniel@0 36 &__query-box_alignment_left {
Daniel@0 37 display: block;
Daniel@0 38 right: 50%;
Daniel@0 39 margin-right: @alignment-offset / 2;
Daniel@0 40 }
Daniel@0 41
Daniel@0 42 &__query-box_alignment_right {
Daniel@0 43 display: block;
Daniel@0 44 left: 50%;
Daniel@0 45 margin-left: @alignment-offset / 2;
Daniel@0 46 }
Daniel@0 47
Daniel@0 48 &__query-box_alignment_top {
Daniel@0 49 display: block;
Daniel@0 50 bottom: 50%;
Daniel@0 51 margin-bottom: @alignment-offset / 2;
Daniel@0 52 }
Daniel@0 53
Daniel@0 54 &__query-box_alignment_bottom {
Daniel@0 55 .border-radius(@--border-radius);
Daniel@0 56 border-top: @border;
Daniel@0 57 display: block;
Daniel@0 58 top: 50%;
Daniel@0 59 margin-top: @alignment-offset / 2;
Daniel@0 60 }
Daniel@0 61
Daniel@0 62
Daniel@0 63 &__query-uri-wrapper {
Daniel@0 64 .position_absolute_everywhere();
Daniel@0 65 bottom: auto;
Daniel@0 66 height: @request-uri-hight - @input-padding_v * 2;
Daniel@0 67 border-top: @input-padding_v solid @background-color_query-uri;
Daniel@0 68 border-right: @input-padding_h solid @background-color_query-uri;
Daniel@0 69 border-bottom: @input-padding_v solid @background-color_query-uri;
Daniel@0 70 border-left: @input-padding_h solid @background-color_query-uri;
Daniel@0 71 .border-radius(@--border-radius);
Daniel@0 72 }
Daniel@0 73 &__query-uri {
Daniel@0 74 .font_small();
Daniel@0 75 .font_monospace();
Daniel@0 76 font-weight: bold;
Daniel@0 77 position: relative;
Daniel@0 78 width: 100%;
Daniel@0 79 height: 100%;
Daniel@0 80 margin: 0;
Daniel@0 81 border: 0;
Daniel@0 82 padding: @input-padding_v @input-padding_h;
Daniel@0 83 top: -@input-padding_v;
Daniel@0 84 left: -@input-padding_h;
Daniel@0 85 background: @background-color_query-uri;
Daniel@0 86 .border-radius(@--border-radius);
Daniel@0 87 }
Daniel@0 88
Daniel@0 89 &__query-response-wrapper {
Daniel@0 90 .position_absolute_everywhere();
Daniel@0 91 top: @request-uri-hight;
Daniel@0 92 border-top: @input-padding_v solid @background-color;
Daniel@0 93 border-right: @input-padding_h solid @background-color;
Daniel@0 94 border-bottom: @input-padding_v solid @background-color;
Daniel@0 95 border-left: @input-padding_h solid @background-color;
Daniel@0 96 .border-radius(@--border-radius);
Daniel@0 97 }
Daniel@0 98
Daniel@0 99
Daniel@0 100 &__query-response {
Daniel@0 101 .font_small();
Daniel@0 102 .font_monospace();
Daniel@0 103 position: relative;
Daniel@0 104 width: 100%;
Daniel@0 105 height: 100%;
Daniel@0 106 margin: 0;
Daniel@0 107 border: 0;
Daniel@0 108 background: none;
Daniel@0 109 resize: none;
Daniel@0 110 top: -@input-padding_v;
Daniel@0 111 left: -@input-padding_h;
Daniel@0 112 padding: @input-padding_v @input-padding_h;
Daniel@0 113 .border-radius(@--border-radius);
Daniel@0 114 }
Daniel@0 115 // ----------------------------------
Daniel@0 116 &__query-box_status_has-errors &__query-response {
Daniel@0 117 color: @color_errors;
Daniel@0 118 }
Daniel@0 119
Daniel@0 120 }