mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-11 03:16:48 +03:00
Fixes in JSONSchema treem and descriminator
This commit is contained in:
parent
13286558d0
commit
a87ba13806
|
@ -49,6 +49,12 @@ $sub-schema-offset: ($bullet-size/2) + $bullet-margin;
|
|||
|
||||
.param-range {
|
||||
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 {
|
||||
|
@ -114,7 +120,7 @@ $sub-schema-offset: ($bullet-size/2) + $bullet-margin;
|
|||
border-top: $line-border;
|
||||
width: $bullet-margin;
|
||||
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 {
|
||||
|
@ -124,7 +130,7 @@ $sub-schema-offset: ($bullet-size/2) + $bullet-margin;
|
|||
left: -$lines-width;
|
||||
top: 0;
|
||||
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 {
|
||||
|
@ -136,7 +142,7 @@ $sub-schema-offset: ($bullet-size/2) + $bullet-margin;
|
|||
position: absolute;
|
||||
left: -$lines-width - 1px;
|
||||
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;
|
||||
bottom: 0;
|
||||
}
|
||||
|
|
|
@ -106,7 +106,7 @@ json-schema.nested-schema {
|
|||
}
|
||||
|
||||
.discriminator-info {
|
||||
font-weight: bold;
|
||||
font-weight: $regular;
|
||||
}
|
||||
|
||||
.discriminator-wrap > td {
|
||||
|
@ -123,19 +123,21 @@ json-schema.nested-schema {
|
|||
}
|
||||
|
||||
:host tabs li {
|
||||
margin: 0.2em 0.5em 0.2em 0;
|
||||
font-size: 14px;
|
||||
margin: 0.2em 0.3em 0.2em 0;
|
||||
font-family: $headers-font, $headers-font-family;
|
||||
font-size: .929em;
|
||||
line-height: .929em;
|
||||
border: 0;
|
||||
color: white;
|
||||
padding: 0 15px;
|
||||
border-radius: 10px;
|
||||
background-color: #8A9094;
|
||||
padding: 2px 8px 4px 8px;
|
||||
border-radius: $border-radius;
|
||||
background-color: rgba($black, 0.3);
|
||||
|
||||
&:last-of-type {
|
||||
margin: 0;
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
&.active {
|
||||
background-color: $headers-color;
|
||||
background-color: $primary-color;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -19,7 +19,7 @@ header {
|
|||
line-height: 1.25;
|
||||
color: $sample-panel-headers-color;
|
||||
|
||||
&.hover {
|
||||
&:hover {
|
||||
background-color: rgba(white, .1);
|
||||
color: #ffffff;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user