redoc/lib/components/Operation/operation.scss

135 lines
2.1 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
2017-03-30 15:17:08 +03:00
.operation-header {
2016-11-23 02:23:32 +03:00
margin-bottom: calc(1em - 6px);
2015-10-10 15:34:46 +03:00
}
2017-03-30 15:17:08 +03:00
.operation-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
}
2017-03-30 15:17:08 +03:00
.operation-content, .operation-samples {
2015-10-21 14:07:22 +03:00
display: block;
box-sizing: border-box;
float: left;
}
2017-03-30 15:17:08 +03:00
.operation-content {
width: 100% - $samples-panel-width;
padding: $section-spacing;
2015-10-21 14:46:15 +03:00
}
2017-03-30 15:17:08 +03:00
.operation-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
2017-04-23 15:39:36 +03:00
.operation-samples pre {
color: $sample-panel-color;
}
2017-03-30 15:17:08 +03:00
.operation-samples header,
.operation-samples > h5 {
color: $sample-panel-headers-color;
text-transform: uppercase;
2015-10-25 14:26:38 +03:00
}
2017-03-30 15:17:08 +03:00
.operation-samples > h5 {
2016-03-08 23:03:05 +03:00
margin-bottom: 8px;
}
2017-03-30 15:17:08 +03:00
.operation-samples schema-sample {
2015-10-25 14:26:38 +03:00
display: block;
2015-10-21 17:24:04 +03:00
}
2017-03-30 15:17:08 +03:00
.operation:after {
2015-10-21 14:07:22 +03:00
content: "";
display: table;
clear:both;
}
2017-03-30 15:17:08 +03:00
.operation-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) {
2017-03-30 15:17:08 +03:00
.operations:before {
2016-01-20 19:02:13 +03:00
display: none;
}
2017-03-30 15:17:08 +03:00
.operation-samples, .operation-content {
2016-01-20 19:02:13 +03:00
width: 100%;
}
2017-03-30 15:17:08 +03:00
.operation-samples {
2016-01-20 19:02:13 +03:00
margin-top: 2em;
}
:host {
padding-bottom: 0;
}
}
2017-04-23 15:39:36 +03:00
.operation-content /deep/ endpoint-link {
margin-bottom: 16px;
.operation-endpoint[class] {
padding: 5px 30px 5px 5px;
border: 0;
border-bottom: 1px solid $border-color;
border-radius: 0;
background-color: transparent;
}
.operation-api-url-path {
color: $black;
}
.expand-icon {
top: 8px;
background-color: $border-color;
}
.servers-overlay {
border: 1px solid $border-color;
border-top: 0;
}
}