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

91 lines
1.7 KiB
SCSS
Raw Normal View History

@import '../../common/styles/variables';
$hint-color: #999999;
.param-list-header {
2016-03-02 22:48:55 +03:00
border-bottom: 1px solid rgba($text-color, .3);
2015-11-17 02:12:42 +03:00
padding: 0.2em 0;
2016-03-02 22:48:55 +03:00
margin: 3.5em 0 .8em 0;
color: rgba($text-color, .5);
font-weight: normal;
text-transform: uppercase;
2015-10-10 16:01:41 +03:00
}
@import '../JsonSchema/json-schema-common';
2015-11-22 21:04:18 +03:00
header.paramType {
margin: 10px 0;
text-transform: capitalize;
}
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;
width: 100%;
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;
width: 100%;
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
}
[data-hint] {
width: 1.2em;
text-align: center;
border-radius: 50%;
vertical-align: middle;
color: $hint-color;
line-height: 1.2;
text-transform: none;
cursor: help;
border: 1px solid $hint-color;
margin-left: 0.5em;
}
@media (max-width: 520px) {
[data-hint] {
float: right;
}
[data-hint]:after {
margin-left: 12px;
transform: translateX(-100%) translateY(-8px);
-moz-transform: translateX(-100%) translateY(-8px);
-webkit-transform: translateX(-100%) translateY(-8px);
}
}