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

100 lines
1.8 KiB
SCSS
Raw Normal View History

2016-05-06 00:48:41 +03:00
@import '../../shared/styles/variables';
$hint-color: #999999;
2016-11-23 02:23:32 +03:00
:host {
display: block;
}
.param-list-header {
2016-03-02 22:48:55 +03:00
border-bottom: 1px solid rgba($text-color, .3);
2016-11-23 02:23:32 +03:00
// padding: 0.2em 0;
margin: 3em 0 1em 0;
2016-03-02 22:48:55 +03:00
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 {
2016-11-30 19:25:52 +03:00
margin: 25px 0 5px 0;
text-transform: capitalize;
}
2015-11-22 21:04:18 +03:00
2016-11-28 17:15:09 +03:00
.param-array-format {
color: black;
font-weight: 300;
}
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: 75%;
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);
}
}