@import '../../common/styles/variables'; $lines-width: 1px; $bullet-size: 1px; $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; /* .param-schema { padding-left: $sub-schema-offset - $lines-width; border-left: $line-border; } .param-wrap { position: relative; }*/ .param-name { font-size: 0.929em; padding: $cell-padding 0 $cell-padding 0; font-weight: $regular; box-sizing: border-box; line-height: $param-name-height; border-left: $line-border; white-space: nowrap; position: relative; vertical-align: top; } .param-name-content { padding-right: $cell-spacing; display: inline-block; } .param-info { padding: $cell-padding 0; box-sizing: border-box; border-bottom: 1px solid #ccc; width: 75%; } .param-description { font-size: 13px; } .param-required { color: red; font-weight: bold; font-size: 12px; line-height: $param-name-height; vertical-align: middle; } .param-type { color: $black; font-size: 0.929em; line-height: $param-name-height; vertical-align: middle; font-weight: normal; } .param-type.array:before { content: "Array of "; color: $black; font-weight: $base-font-weight; } .param-type { color: rgba($black, 0.4); } .param-type.with-hint { display: inline-block; margin-bottom: 0.4em; border-bottom: 1px dotted rgba(38,50,56,0.4); padding: 0; cursor: help; } .param-type-trivial { margin: 10px 10px 0; display: inline-block; } /* tree */ // Bullet .param-name > span:before { content: ""; display: inline-block; width: $bullet-size; height: $bullet-size + 6; background-color: $primary-color; 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; } .param:first-of-type > .param-name:before { content: ""; display: block; position: absolute; left: -$lines-width; top: 0; border-left: $line-border-erase; height: ($param-name-height/2) + $cell-padding; } .param:last-of-type > .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; 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; } .param-enum { color: $text-color; font-size: 13px; &:before { content: "Values: {" } &:after { content: "}" } > .enum-value { &:after { content: ", "; } &:last-of-type:after { content: none; } } }