Fixes in JSONSchema treem and descriminator

This commit is contained in:
Cesar 2016-03-17 10:27:45 -04:00
parent 13286558d0
commit a87ba13806
3 changed files with 20 additions and 12 deletions

View File

@ -49,6 +49,12 @@ $sub-schema-offset: ($bullet-size/2) + $bullet-margin;
.param-range { .param-range {
color: rgba($primary-color, .7); color: rgba($primary-color, .7);
position: relative;
top: 1px;
padding: 0 4px;
border-radius: $border-radius;
background-color: rgba($primary-color, .1);
margin-left: 6px;
} }
.param-description { .param-description {
@ -114,7 +120,7 @@ $sub-schema-offset: ($bullet-size/2) + $bullet-margin;
border-top: $line-border; border-top: $line-border;
width: $bullet-margin; width: $bullet-margin;
left: 0; left: 0;
top: ($param-name-height/2) + $cell-padding + 1px; top: ($param-name-height/2) + $cell-padding + 1;
} }
.param:first-of-type > .param-name:before { .param:first-of-type > .param-name:before {
@ -124,7 +130,7 @@ $sub-schema-offset: ($bullet-size/2) + $bullet-margin;
left: -$lines-width; left: -$lines-width;
top: 0; top: 0;
border-left: $line-border-erase; border-left: $line-border-erase;
height: ($param-name-height/2) + $cell-padding; height: ($param-name-height/2) + $cell-padding + 1;
} }
.param:last-of-type > .param-name { .param:last-of-type > .param-name {
@ -136,7 +142,7 @@ $sub-schema-offset: ($bullet-size/2) + $bullet-margin;
position: absolute; position: absolute;
left: -$lines-width - 1px; left: -$lines-width - 1px;
border-left: $line-border-erase; border-left: $line-border-erase;
top: ($param-name-height/2) + $cell-padding + $lines-width; top: ($param-name-height/2) + $cell-padding + $lines-width + 1;
background-color: white; background-color: white;
bottom: 0; bottom: 0;
} }

View File

@ -106,7 +106,7 @@ json-schema.nested-schema {
} }
.discriminator-info { .discriminator-info {
font-weight: bold; font-weight: $regular;
} }
.discriminator-wrap > td { .discriminator-wrap > td {
@ -123,19 +123,21 @@ json-schema.nested-schema {
} }
:host tabs li { :host tabs li {
margin: 0.2em 0.5em 0.2em 0; margin: 0.2em 0.3em 0.2em 0;
font-size: 14px; font-family: $headers-font, $headers-font-family;
font-size: .929em;
line-height: .929em;
border: 0; border: 0;
color: white; color: white;
padding: 0 15px; padding: 2px 8px 4px 8px;
border-radius: 10px; border-radius: $border-radius;
background-color: #8A9094; background-color: rgba($black, 0.3);
&:last-of-type { &:last-of-type {
margin: 0; margin-right: 0;
} }
&.active { &.active {
background-color: $headers-color; background-color: $primary-color;
} }
} }

View File

@ -19,7 +19,7 @@ header {
line-height: 1.25; line-height: 1.25;
color: $sample-panel-headers-color; color: $sample-panel-headers-color;
&.hover { &:hover {
background-color: rgba(white, .1); background-color: rgba(white, .1);
color: #ffffff; color: #ffffff;
} }