redoc/lib/components/JsonSchema/json-schema.scss
2016-02-03 18:50:02 +02:00

88 lines
1.6 KiB
SCSS

@import 'json-schema-common';
/* styles for array-schema for array */
$array-marker-font-sz: 12px;
$array-marker-line-height: 1.5;
.params-wrap.params-array:before, .params-wrap.params-array:after {
display: block;
font-weight: bold;
color: #999;
font-size: $array-marker-font-sz;
line-height: $array-marker-line-height;
}
.params-wrap.params-array:after {
content: "]";
}
.params-wrap.params-array:before {
content: "Array [";
padding-top: 1em;
}
.params-wrap.params-array {
padding-left: $bullet-margin;
}
.param-schema.param-array:before {
bottom: ($array-marker-font-sz * $array-marker-line-height) / 2;
width: $bullet-margin;
border-left-style: dashed;
border-bottom: $lines-width dashed $tree-lines-color;
}
.params-wrap.params-array > .param-wrap:first-of-type > .param > .param-name:after {
content: "";
display: block;
position: absolute;
left: -$lines-width;
top: 0;
border-left: $line-border-erase;
height: ($param-name-height/2) + $cell-padding;
}
.params-wrap > .param > .param-schema.param-array {
border-left-color: transparent;
}
.param.discriminator {
> div {
padding-bottom: 0;
border-bottom: 0;
}
}
.discriminator-info {
font-weight: bold;
}
:host tabs {
display: block;
border-left: 1px solid $tree-lines-color;
}
:host tabs li {
margin: 0.2em 0.5em 0.2em 0;
font-size: 14px;
border: 0;
color: white;
padding: 0 15px;
border-radius: 10px;
background-color: #8A9094;
&:last-of-type {
margin: 0;
}
&.active {
background-color: $headers-color;
}
}
tabs .params-wrap > .param-wrap:first-of-type .param-name {
border-left: 0;
&:before {
display: none;
}
}