redoc/lib/components/JsonSchema/json-schema.scss

92 lines
1.7 KiB
SCSS
Raw Normal View History

@import 'json-schema-common';
2015-11-28 01:44:35 +03:00
/* styles for array-schema for array */
$array-marker-font-sz: 12px;
$array-marker-line-height: 1.5;
2016-02-07 17:11:15 +03:00
:host {
display: block;
}
2015-11-28 01:44:35 +03:00
.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 [";
2016-01-09 23:34:44 +03:00
padding-top: 1em;
2015-11-28 01:44:35 +03:00
}
.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;
}
2016-01-09 23:34:44 +03:00
.params-wrap > .param > .param-schema.param-array {
border-left-color: transparent;
}
2016-01-10 18:29:35 +03:00
.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;
2016-01-09 23:34:44 +03:00
}
:host tabs li {
2016-01-10 18:29:35 +03:00
margin: 0.2em 0.5em 0.2em 0;
2016-01-09 23:34:44 +03:00
font-size: 14px;
2016-01-10 18:29:35 +03:00
border: 0;
color: white;
padding: 0 15px;
border-radius: 10px;
background-color: #8A9094;
2016-01-09 23:34:44 +03:00
&:last-of-type {
margin: 0;
}
&.active {
2016-01-10 18:29:35 +03:00
background-color: $headers-color;
2016-01-09 23:34:44 +03:00
}
}
2016-02-03 19:50:02 +03:00
tabs .params-wrap > .param-wrap:first-of-type .param-name {
border-left: 0;
&:before {
display: none;
}
}