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

118 lines
1.8 KiB
SCSS
Raw Normal View History

2015-11-19 00:23:18 +03:00
h2 {
border-bottom: 1px solid #999;
font-size: 18px;
padding: 0.2em 0;
margin: 0.5em 0;
color: #253137;
}
.param-schema {
padding-left: 13px;
padding-top: 5px;
2015-11-19 00:31:36 +03:00
border-left: 1px solid #7D97CE;
2015-11-19 00:23:18 +03:00
}
.param-wrap {
position: relative;
}
.param-schema:before {
content: "";
position: absolute;
2015-11-19 00:31:36 +03:00
left: 14px;
2015-11-19 00:23:18 +03:00
top: 10px;
bottom: 0;
2015-11-19 00:31:36 +03:00
border-left: 1px solid #7D97CE;
2015-11-19 00:23:18 +03:00
}
.param-name {
/*display: table-cell;*/
padding: 0 5px;
font-weight: bold;
box-sizing: border-box;
}
.param-info {
/*display: table-cell;*/
width: 100%;
padding: 0 5px;
box-sizing: border-box;
}
.param {
display: flex;
}
.param-required {
color: red;
font-weight: bold;
font-size: 12px;
}
.param-description {
padding: 0.5em 0;
border-bottom: 1px solid #999;
}
.param-type {
text-transform: capitalize;
color: #999;
font-size: 12px;
line-height: 2;
}
.param-name {
2015-11-19 00:31:36 +03:00
border-left: 1px solid #7D97CE;
2015-11-19 00:23:18 +03:00
white-space: nowrap;
position: relative;
}
/* tree */
.param-name > span:before {
content: "";
display: inline-block;
width: 8px;
height: 8px;
background-color: #7D97CE;
margin: 0 5px;
top: -1px;
position: relative;
}
.param-name > span:after {
content: "";
position: absolute;
2015-11-19 00:31:36 +03:00
border-top: 1px solid #7D97CE;
2015-11-19 00:23:18 +03:00
width: 10px;
left: 0;
top: 10px;
}
.param-wrap:first-of-type .param-name:before {
content: "";
display: block;
position: absolute;
2015-11-19 00:31:36 +03:00
left: -1px;
width: 1px;
2015-11-19 00:23:18 +03:00
background-color: white;
height: 10px;
}
2015-11-20 00:49:17 +03:00
.param-wrap:last-of-type > .param > .param-name:after {
2015-11-19 00:23:18 +03:00
content: "";
display: block;
position: absolute;
2015-11-19 00:31:36 +03:00
left: -1px;
width: 1px;
top: 11px;
2015-11-19 00:23:18 +03:00
background-color: white;
bottom: 0;
}
2015-11-20 00:49:17 +03:00
.param-wrap:last-of-type > .param-schema {
border-left-color: transparent;
}
2015-11-19 00:23:18 +03:00
.param-schema .param-wrap:first-of-type .param-name:before {
display: none !important;
}