2016-01-23 18:49:44 +03:00
|
|
|
@import '../../common/styles/variables';
|
|
|
|
$lines-width: 1px;
|
2016-03-14 22:29:27 +03:00
|
|
|
$bullet-size: 1px;
|
2016-01-23 18:49:44 +03:00
|
|
|
$cell-spacing: 25px;
|
|
|
|
$cell-padding: 10px;
|
|
|
|
$bullet-margin: 10px;
|
|
|
|
$line-border: $lines-width solid $tree-lines-color;
|
|
|
|
$line-border-erase: ($lines-width + 1px) solid white;
|
|
|
|
|
|
|
|
$param-name-height: 20px;
|
|
|
|
|
|
|
|
$sub-schema-offset: ($bullet-size/2) + $bullet-margin;
|
|
|
|
|
2016-03-09 01:27:19 +03:00
|
|
|
/*
|
2016-01-23 18:49:44 +03:00
|
|
|
.param-schema {
|
|
|
|
padding-left: $sub-schema-offset - $lines-width;
|
|
|
|
border-left: $line-border;
|
|
|
|
}
|
|
|
|
|
|
|
|
.param-wrap {
|
|
|
|
position: relative;
|
2016-03-09 01:27:19 +03:00
|
|
|
}*/
|
2016-01-23 18:49:44 +03:00
|
|
|
|
|
|
|
.param-name {
|
2016-03-09 01:27:19 +03:00
|
|
|
|
2016-03-08 23:03:05 +03:00
|
|
|
font-size: 0.929em;
|
2016-02-06 19:02:10 +03:00
|
|
|
padding: $cell-padding 0 $cell-padding 0;
|
2016-03-02 22:48:55 +03:00
|
|
|
font-weight: $regular;
|
2016-01-23 18:49:44 +03:00
|
|
|
box-sizing: border-box;
|
|
|
|
line-height: $param-name-height;
|
|
|
|
border-left: $line-border;
|
|
|
|
white-space: nowrap;
|
|
|
|
position: relative;
|
2016-03-09 01:27:19 +03:00
|
|
|
vertical-align: top;
|
2016-01-23 18:49:44 +03:00
|
|
|
}
|
|
|
|
|
2016-02-06 19:02:10 +03:00
|
|
|
.param-name-content {
|
|
|
|
padding-right: $cell-spacing;
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
2016-01-23 18:49:44 +03:00
|
|
|
.param-info {
|
|
|
|
padding: $cell-padding 0;
|
|
|
|
box-sizing: border-box;
|
|
|
|
border-bottom: 1px solid #ccc;
|
2016-03-09 01:27:19 +03:00
|
|
|
width: 75%;
|
2016-01-23 18:49:44 +03:00
|
|
|
}
|
|
|
|
|
2016-03-14 22:29:27 +03:00
|
|
|
.param-description {
|
|
|
|
font-size: 13px;
|
|
|
|
}
|
|
|
|
|
2016-01-23 18:49:44 +03:00
|
|
|
.param-required {
|
|
|
|
color: red;
|
|
|
|
font-weight: bold;
|
|
|
|
font-size: 12px;
|
|
|
|
line-height: $param-name-height;
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
|
|
|
|
.param-type {
|
2016-03-08 23:03:05 +03:00
|
|
|
color: $black;
|
|
|
|
font-size: 0.929em;
|
2016-01-23 18:49:44 +03:00
|
|
|
line-height: $param-name-height;
|
|
|
|
vertical-align: middle;
|
2016-03-02 22:48:55 +03:00
|
|
|
font-weight: normal;
|
2016-01-23 18:49:44 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.param-type.array:before {
|
|
|
|
content: "Array of ";
|
2016-03-08 23:03:05 +03:00
|
|
|
color: $black;
|
|
|
|
font-weight: $base-font-weight;
|
2016-01-24 00:35:44 +03:00
|
|
|
}
|
|
|
|
|
2016-03-08 23:03:05 +03:00
|
|
|
.param-type {
|
|
|
|
color: rgba($black, 0.4);
|
2016-01-23 18:49:44 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.param-type.with-hint {
|
2016-03-13 02:56:33 +03:00
|
|
|
display: inline-block;
|
|
|
|
margin-bottom: 0.4em;
|
|
|
|
border-bottom: 1px dotted rgba(38,50,56,0.4);
|
|
|
|
padding: 0;
|
2016-01-23 18:49:44 +03:00
|
|
|
cursor: help;
|
|
|
|
}
|
|
|
|
|
|
|
|
.param-type-trivial {
|
|
|
|
margin: 10px 10px 0;
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* tree */
|
|
|
|
|
|
|
|
// Bullet
|
2016-03-09 01:27:19 +03:00
|
|
|
|
2016-01-23 18:49:44 +03:00
|
|
|
.param-name > span:before {
|
|
|
|
content: "";
|
|
|
|
display: inline-block;
|
|
|
|
width: $bullet-size;
|
2016-03-14 22:29:27 +03:00
|
|
|
height: $bullet-size + 6;
|
|
|
|
background-color: $primary-color;
|
2016-01-23 18:49:44 +03:00
|
|
|
margin: 0 $bullet-margin;
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
|
|
|
|
.param-name > span:after {
|
|
|
|
content: "";
|
|
|
|
position: absolute;
|
|
|
|
border-top: $line-border;
|
|
|
|
width: $bullet-margin;
|
|
|
|
left: 0;
|
|
|
|
top: ($param-name-height/2) + $cell-padding;
|
|
|
|
}
|
|
|
|
|
2016-03-09 01:27:19 +03:00
|
|
|
.param:first-of-type > .param-name:before {
|
2016-01-23 18:49:44 +03:00
|
|
|
content: "";
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
left: -$lines-width;
|
|
|
|
top: 0;
|
|
|
|
border-left: $line-border-erase;
|
|
|
|
height: ($param-name-height/2) + $cell-padding;
|
|
|
|
}
|
|
|
|
|
2016-03-09 01:27:19 +03:00
|
|
|
.param:last-of-type > .param-name {
|
|
|
|
position: relative;
|
2016-01-23 18:49:44 +03:00
|
|
|
|
|
|
|
&:after {
|
|
|
|
content: "";
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
2016-03-09 01:27:19 +03:00
|
|
|
left: -$lines-width - 1px;
|
2016-01-23 18:49:44 +03:00
|
|
|
border-left: $line-border-erase;
|
|
|
|
top: ($param-name-height/2) + $cell-padding + $lines-width;
|
|
|
|
background-color: white;
|
|
|
|
bottom: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.param-wrap:last-of-type > .param-schema {
|
|
|
|
border-left-color: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
.param-schema .param-wrap:first-of-type .param-name:before {
|
|
|
|
display: none !important;
|
|
|
|
}
|
2016-02-06 18:00:31 +03:00
|
|
|
|
|
|
|
.param-enum {
|
2016-03-14 22:29:27 +03:00
|
|
|
color: $text-color;
|
|
|
|
font-size: 13px;
|
2016-02-06 18:00:31 +03:00
|
|
|
|
|
|
|
&:before {
|
|
|
|
content: "Values: {"
|
|
|
|
}
|
|
|
|
|
|
|
|
&:after {
|
|
|
|
content: "}"
|
|
|
|
}
|
|
|
|
|
|
|
|
> .enum-value {
|
|
|
|
&:after {
|
|
|
|
content: ", ";
|
|
|
|
}
|
|
|
|
|
|
|
|
&:last-of-type:after {
|
|
|
|
content: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|