redoc/lib/components/Method/method.scss

106 lines
1.5 KiB
SCSS
Raw Normal View History

2016-05-06 00:48:41 +03:00
@import '../../shared/styles/variables';
2016-01-20 19:02:13 +03:00
:host {
padding-bottom: 100px;
display: block;
2016-03-01 01:18:00 +03:00
border-bottom: 1px solid rgba(127, 127, 127, 0.25);
margin-top: 1em;
2016-11-23 02:23:32 +03:00
transform: translateZ(0);
z-index: 2;
2016-01-20 19:02:13 +03:00
}
2016-11-23 02:23:32 +03:00
// :host:last-of-type {
// border-bottom: 0;
// }
2016-07-10 15:43:17 +03:00
.method-header {
2016-11-23 02:23:32 +03:00
margin-bottom: calc(1em - 6px);
2015-10-10 15:34:46 +03:00
}
2015-10-30 12:43:51 +03:00
.method-tags {
2015-11-17 02:43:05 +03:00
margin-top: 20px;
2015-10-30 12:43:51 +03:00
> a {
font-size: 16px;
color: #999;
display: inline-block;
padding: 0 0.5em;
text-decoration: none;
&:before {
content: '#';
margin-right: -0.4em;
}
&:first-of-type {
padding: 0;
}
}
2015-10-30 12:43:51 +03:00
}
.method-content, .method-samples {
2015-10-21 14:07:22 +03:00
display: block;
box-sizing: border-box;
float: left;
}
.method-content {
width: 100% - $samples-panel-width;
padding: $section-spacing;
2015-10-21 14:46:15 +03:00
}
.method-samples {
color: $sample-panel-color;
2015-10-21 14:46:15 +03:00
width: 40%;
padding: $section-spacing;
2016-01-20 19:02:13 +03:00
background: $samples-panel-bg-color;
2015-10-21 14:46:15 +03:00
}
2015-10-21 14:07:22 +03:00
2016-03-08 23:03:05 +03:00
.method-samples header,
.method-samples > h5 {
color: $sample-panel-headers-color;
text-transform: uppercase;
2015-10-25 14:26:38 +03:00
}
2016-03-08 23:03:05 +03:00
.method-samples > h5 {
margin-bottom: 8px;
}
.method-samples schema-sample {
2015-10-25 14:26:38 +03:00
display: block;
2015-10-21 17:24:04 +03:00
}
2015-10-21 14:07:22 +03:00
.method:after {
content: "";
display: table;
clear:both;
}
2015-10-18 20:16:40 +03:00
.method-description {
2016-03-08 23:03:05 +03:00
padding: 6px 0 10px 0;
2016-01-23 15:53:10 +03:00
margin: 0;
2015-10-18 20:16:40 +03:00
}
2016-07-17 18:07:51 +03:00
[select-on-click] {
cursor: pointer;
}
2016-08-10 15:29:49 +03:00
@media (max-width: $right-panel-squash-breakpoint) {
2016-01-20 19:02:13 +03:00
.methods:before {
display: none;
}
.method-samples, .method-content {
width: 100%;
}
.method-samples {
margin-top: 2em;
}
:host {
padding-bottom: 0;
}
}