redoc/lib/components/ParamsList/params-list.scss

55 lines
993 B
SCSS
Raw Normal View History

.param-list-header {
2015-11-17 02:12:42 +03:00
border-bottom: 1px solid #999;
font-size: 18px;
padding: 0.2em 0;
margin: 0.5em 0;
color: #253137;
font-weight: normal;
2015-10-10 16:01:41 +03:00
}
@import '../JsonSchema/json-schema-common';
2015-11-22 21:04:18 +03:00
// paramters can't be multilevel so table representation works for it without javascript
2015-11-17 02:12:42 +03:00
.params-wrap {
display: table;
2015-10-18 20:16:40 +03:00
}
2015-11-17 02:12:42 +03:00
.param-name {
display: table-cell;
2015-11-22 21:04:18 +03:00
vertical-align: top;
2015-10-22 21:50:26 +03:00
}
2015-11-17 02:12:42 +03:00
.param-info {
display: table-cell;
2015-10-22 21:50:26 +03:00
}
2015-11-17 02:12:42 +03:00
.param {
display: table-row;
2015-10-18 20:16:40 +03:00
}
2016-02-07 17:52:59 +03:00
.param:last-of-type > .param-name {
border-left: 0;
&:after {
content: "";
display: block;
position: absolute;
left: 0;
border-left: $line-border;
height: ($param-name-height/2) + $cell-padding + $lines-width;
background-color: white;
top: 0;
}
2015-11-17 02:12:42 +03:00
}
2016-02-07 17:52:59 +03:00
.param:first-of-type .param-name:after {
2015-11-17 02:12:42 +03:00
content: "";
display: block;
position: absolute;
2015-11-22 21:04:18 +03:00
left: -$lines-width;
border-left: $line-border-erase;
2016-02-07 17:52:59 +03:00
height: ($param-name-height/2) + $cell-padding;
2015-11-17 02:12:42 +03:00
background-color: white;
2016-02-07 17:52:59 +03:00
top: 0;
2015-10-17 21:12:46 +03:00
}