2016-05-06 00:48:41 +03:00
|
|
|
@import '../../shared/styles/variables';
|
2016-01-23 18:49:44 +03:00
|
|
|
$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;
|
2016-11-01 18:00:38 +03:00
|
|
|
$line-border-erase: ($lines-width + 1px) solid $background-color;
|
|
|
|
|
|
|
|
$border-color: lighten($secondary-color, 50%);
|
|
|
|
$nullable-color: #3195a6;
|
|
|
|
$hint-border: 1px dotted rgba(38, 50, 56, 0.4);
|
2016-01-23 18:49:44 +03:00
|
|
|
|
|
|
|
$param-name-height: 20px;
|
|
|
|
|
2016-07-17 18:07:51 +03:00
|
|
|
$sub-schema-offset: ($bullet-size / 2) + $bullet-margin;
|
2016-01-23 18:49:44 +03:00
|
|
|
|
2016-06-29 18:02:19 +03:00
|
|
|
.param-name-wrap {
|
2016-02-06 19:02:10 +03:00
|
|
|
display: inline-block;
|
2016-07-17 18:07:51 +03:00
|
|
|
padding-right: $cell-spacing;
|
2016-03-15 00:15:32 +03:00
|
|
|
font-family: $headers-font, $headers-font-family;
|
2016-02-06 19:02:10 +03:00
|
|
|
}
|
|
|
|
|
2016-01-23 18:49:44 +03:00
|
|
|
.param-info {
|
2016-11-01 18:00:38 +03:00
|
|
|
border-bottom: 1px solid $border-color;
|
2016-07-17 18:07:51 +03:00
|
|
|
padding: $cell-padding 0;
|
2016-03-09 01:27:19 +03:00
|
|
|
width: 75%;
|
2016-07-17 18:07:51 +03:00
|
|
|
|
|
|
|
box-sizing: border-box;
|
2016-01-23 18:49:44 +03:00
|
|
|
}
|
|
|
|
|
2016-03-17 02:27:09 +03:00
|
|
|
.param-range {
|
2016-03-17 17:27:45 +03:00
|
|
|
position: relative;
|
|
|
|
top: 1px;
|
2016-07-17 18:07:51 +03:00
|
|
|
margin-right: 6px;
|
|
|
|
margin-left: 6px;
|
2016-03-17 17:27:45 +03:00
|
|
|
border-radius: $border-radius;
|
2016-11-01 18:00:38 +03:00
|
|
|
background-color: rgba($primary-color, 0.1);
|
2016-07-17 18:07:51 +03:00
|
|
|
padding: 0 4px;
|
|
|
|
color: rgba($primary-color, 0.7);
|
2016-03-17 02:27:09 +03:00
|
|
|
}
|
|
|
|
|
2016-03-14 22:29:27 +03:00
|
|
|
.param-description {
|
2016-07-17 18:07:51 +03:00
|
|
|
font-size: 13px;
|
2016-03-14 22:29:27 +03:00
|
|
|
}
|
|
|
|
|
2016-01-23 18:49:44 +03:00
|
|
|
.param-required {
|
|
|
|
vertical-align: middle;
|
2016-07-17 18:07:51 +03:00
|
|
|
line-height: $param-name-height;
|
2016-11-01 18:00:38 +03:00
|
|
|
color: $red;
|
2016-07-17 18:07:51 +03:00
|
|
|
font-size: 12px;
|
|
|
|
font-weight: bold;
|
2016-01-23 18:49:44 +03:00
|
|
|
}
|
|
|
|
|
2016-08-31 21:35:51 +03:00
|
|
|
.param-nullable {
|
|
|
|
vertical-align: middle;
|
|
|
|
line-height: $param-name-height;
|
2016-11-01 18:00:38 +03:00
|
|
|
color: $nullable-color;
|
2016-08-31 21:35:51 +03:00
|
|
|
font-size: 12px;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
2016-01-23 18:49:44 +03:00
|
|
|
.param-type {
|
2016-07-17 18:07:51 +03:00
|
|
|
vertical-align: middle;
|
|
|
|
line-height: $param-name-height;
|
2016-04-28 20:17:38 +03:00
|
|
|
color: rgba($black, 0.4);
|
2016-03-08 23:03:05 +03:00
|
|
|
font-size: 0.929em;
|
2016-03-02 22:48:55 +03:00
|
|
|
font-weight: normal;
|
2016-01-23 18:49:44 +03:00
|
|
|
|
2016-11-01 18:00:38 +03:00
|
|
|
&.array::before {
|
|
|
|
content: $array-text;
|
|
|
|
color: $black;
|
|
|
|
font-weight: $base-font-weight;
|
|
|
|
}
|
2016-01-24 00:35:44 +03:00
|
|
|
|
2016-11-01 18:00:38 +03:00
|
|
|
&.tuple::before {
|
|
|
|
content: $tuple-text;
|
|
|
|
color: $black;
|
|
|
|
font-weight: $base-font-weight;
|
|
|
|
}
|
2016-08-10 14:44:24 +03:00
|
|
|
|
2016-11-01 18:00:38 +03:00
|
|
|
&.with-hint {
|
|
|
|
display: inline-block;
|
|
|
|
margin-bottom: 0.4em;
|
|
|
|
border-bottom: $hint-border;
|
|
|
|
padding: 0;
|
|
|
|
cursor: help;
|
|
|
|
}
|
2016-01-23 18:49:44 +03:00
|
|
|
|
2016-11-01 18:00:38 +03:00
|
|
|
&-trivial {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
2016-01-23 18:49:44 +03:00
|
|
|
|
2016-11-01 18:00:38 +03:00
|
|
|
&-file {
|
|
|
|
font-weight: bold;
|
|
|
|
text-transform: capitalize;
|
|
|
|
}
|
2016-07-01 18:10:01 +03:00
|
|
|
}
|
|
|
|
|
2016-11-01 18:00:38 +03:00
|
|
|
// tree
|
2016-01-23 18:49:44 +03:00
|
|
|
|
|
|
|
// Bullet
|
2016-03-09 01:27:19 +03:00
|
|
|
|
2016-11-01 18:00:38 +03:00
|
|
|
.param-name {
|
|
|
|
border-left: $line-border;
|
|
|
|
box-sizing: border-box;
|
|
|
|
position: relative;
|
2016-01-23 18:49:44 +03:00
|
|
|
|
2016-11-01 18:00:38 +03:00
|
|
|
padding: $cell-padding 0;
|
|
|
|
vertical-align: top;
|
|
|
|
line-height: $param-name-height;
|
2016-01-23 18:49:44 +03:00
|
|
|
|
2016-11-01 18:00:38 +03:00
|
|
|
white-space: nowrap;
|
|
|
|
font-size: 0.929em;
|
|
|
|
font-weight: $regular;
|
|
|
|
|
|
|
|
> span::before {
|
|
|
|
content: '';
|
|
|
|
display: inline-block;
|
|
|
|
width: $bullet-size;
|
|
|
|
height: $bullet-size + 6;
|
|
|
|
background-color: $primary-color;
|
|
|
|
margin: 0 $bullet-margin;
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
|
|
|
|
> span::after {
|
|
|
|
content: '';
|
|
|
|
position: absolute;
|
|
|
|
border-top: $line-border;
|
|
|
|
width: $bullet-margin;
|
|
|
|
left: 0;
|
|
|
|
top: ($param-name-height / 2) + $cell-padding + 1;
|
|
|
|
}
|
2016-01-23 18:49:44 +03:00
|
|
|
}
|
|
|
|
|
2016-11-01 18:00:38 +03:00
|
|
|
.param:first-of-type {
|
2016-01-23 18:49:44 +03:00
|
|
|
|
2016-11-01 18:00:38 +03:00
|
|
|
> .param-name::before {
|
|
|
|
content: '';
|
2016-01-23 18:49:44 +03:00
|
|
|
display: block;
|
|
|
|
position: absolute;
|
2016-11-01 18:00:38 +03:00
|
|
|
left: -$lines-width;
|
|
|
|
top: 0;
|
2016-01-23 18:49:44 +03:00
|
|
|
border-left: $line-border-erase;
|
2016-11-01 18:00:38 +03:00
|
|
|
height: ($param-name-height / 2) + $cell-padding + 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.param:last-of-type,
|
|
|
|
.param.last {
|
|
|
|
|
|
|
|
> .param-name {
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
content: '';
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
left: -$lines-width - 1px;
|
|
|
|
border-left: $line-border-erase;
|
|
|
|
top: ($param-name-height / 2) + $cell-padding + $lines-width + 1;
|
|
|
|
background-color: $background-color;
|
|
|
|
bottom: 0;
|
|
|
|
}
|
2016-01-23 18:49:44 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.param-wrap:last-of-type > .param-schema {
|
|
|
|
border-left-color: transparent;
|
|
|
|
}
|
|
|
|
|
2016-11-01 18:00:38 +03:00
|
|
|
.param-schema {
|
|
|
|
.param-wrap:first-of-type {
|
|
|
|
.param-name::before {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
2016-01-23 18:49:44 +03:00
|
|
|
}
|
2016-02-06 18:00:31 +03:00
|
|
|
|
2016-11-01 18:00:38 +03:00
|
|
|
.param-schema.last {
|
|
|
|
> td {
|
|
|
|
border-left: 0;
|
|
|
|
}
|
2016-03-27 01:45:28 +03:00
|
|
|
}
|
|
|
|
|
2016-02-06 18:00:31 +03:00
|
|
|
.param-enum {
|
2016-03-14 22:29:27 +03:00
|
|
|
color: $text-color;
|
2016-11-01 18:00:38 +03:00
|
|
|
font-size: 0.95em;
|
2016-02-06 18:00:31 +03:00
|
|
|
|
2016-11-01 18:00:38 +03:00
|
|
|
&::before {
|
|
|
|
content: 'Valid values: ';
|
2016-02-06 18:00:31 +03:00
|
|
|
}
|
2016-11-01 18:00:38 +03:00
|
|
|
}
|
2016-02-06 18:00:31 +03:00
|
|
|
|
2016-11-01 18:21:32 +03:00
|
|
|
.param-pattern {
|
|
|
|
color: $nullable-color;
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
|
|
&::before,
|
|
|
|
&::after {
|
|
|
|
content: '/';
|
|
|
|
margin: 0 3px;
|
|
|
|
font-size: 1.2em;
|
|
|
|
font-weight: bold;
|
|
|
|
vertical-align: bottom;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-11-01 18:00:38 +03:00
|
|
|
.param-default {
|
|
|
|
font-size: 0.95em;
|
2016-02-06 18:00:31 +03:00
|
|
|
|
2016-11-01 18:00:38 +03:00
|
|
|
&::before {
|
|
|
|
content: 'Default: ';
|
2016-02-06 18:00:31 +03:00
|
|
|
}
|
|
|
|
}
|
2016-11-01 18:00:38 +03:00
|
|
|
|
|
|
|
.param-enum-value,
|
|
|
|
.param-default-value {
|
|
|
|
background-color: $background-color;
|
|
|
|
border: 1px solid rgba($secondary-color, 0.2);
|
|
|
|
margin: 2px 3px;
|
|
|
|
padding: 0 5px;
|
|
|
|
border-radius: 2px;
|
|
|
|
color: $secondary-color;
|
|
|
|
display: inline-block;
|
|
|
|
min-width: 20px;
|
|
|
|
text-align: center;
|
|
|
|
}
|