2017-02-26 00:38:19 +03:00
|
|
|
@import '../../shared/styles/variables';
|
|
|
|
|
|
|
|
:host {
|
|
|
|
display: block;
|
|
|
|
position: relative;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
2017-03-30 15:17:08 +03:00
|
|
|
.operation-endpoint {
|
2017-02-26 02:25:53 +03:00
|
|
|
padding: 10px 30px 10px 20px;
|
2017-02-26 00:38:19 +03:00
|
|
|
border-radius: $border-radius*2;
|
|
|
|
background-color: darken($black, 2%);
|
|
|
|
display: block;
|
|
|
|
font-weight: $light;
|
|
|
|
white-space: nowrap;
|
2017-02-26 02:25:53 +03:00
|
|
|
overflow-x: hidden;
|
|
|
|
text-overflow: ellipsis;
|
2017-02-26 00:38:19 +03:00
|
|
|
border: 1px solid transparent;
|
|
|
|
}
|
|
|
|
|
2017-03-30 15:17:08 +03:00
|
|
|
.operation-endpoint > .operation-params-subheader {
|
2017-02-26 00:38:19 +03:00
|
|
|
padding-top: 1px;
|
|
|
|
padding-bottom: 0;
|
|
|
|
margin: 0;
|
|
|
|
font-size: 12/14em;
|
|
|
|
color: $black;
|
|
|
|
vertical-align: middle;
|
|
|
|
display: inline-block;
|
|
|
|
border-radius: $border-radius;
|
|
|
|
}
|
|
|
|
|
2017-03-30 15:17:08 +03:00
|
|
|
.operation-api-url {
|
2017-02-26 00:38:19 +03:00
|
|
|
color: rgba($black, .8);
|
|
|
|
&-path {
|
|
|
|
font-family: $headers-font, $headers-font-family;
|
|
|
|
position: relative;
|
|
|
|
top: 1px;
|
|
|
|
color: #ffffff;
|
|
|
|
margin-left: 10px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.http-verb {
|
|
|
|
color: $black;
|
|
|
|
background: #ffffff;
|
|
|
|
padding: 3px 10px;
|
|
|
|
text-transform: uppercase;
|
|
|
|
display: inline-block;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.servers-overlay {
|
|
|
|
position: absolute;
|
|
|
|
width: 100%;
|
|
|
|
z-index: 100;
|
|
|
|
background: $side-bar-bg-color;
|
|
|
|
color: $black;
|
|
|
|
box-sizing: border-box;
|
|
|
|
box-shadow: 4px 4px 6px rgba(0, 0, 0, 0.33);
|
|
|
|
overflow: hidden;
|
|
|
|
border-bottom-left-radius: $border-radius*2;
|
|
|
|
border-bottom-right-radius: $border-radius*2;
|
|
|
|
}
|
|
|
|
|
|
|
|
.server-item {
|
|
|
|
padding: 10px;
|
|
|
|
//margin-bottom: 10px;
|
|
|
|
|
|
|
|
& > .url {
|
|
|
|
padding: 5px;
|
|
|
|
border: 1px solid $border-color;
|
|
|
|
background: $background-color;
|
|
|
|
word-break: break-all;
|
2017-04-23 15:28:57 +03:00
|
|
|
color: $primary-color;
|
2017-02-26 00:38:19 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.expand-icon {
|
|
|
|
height: 20px;
|
|
|
|
width: 20px;
|
|
|
|
display: inline-block;
|
|
|
|
float: right;
|
|
|
|
background: darken($black, 2%);
|
|
|
|
transform: rotateZ(0);
|
|
|
|
transition: all 0.2s ease;
|
2017-02-26 02:25:53 +03:00
|
|
|
top: 15px;
|
|
|
|
right: 5px;
|
|
|
|
position: absolute;
|
2017-02-26 00:38:19 +03:00
|
|
|
}
|
|
|
|
|
2017-02-27 19:37:38 +03:00
|
|
|
.servers-overlay {
|
|
|
|
transform: translateY(-50%) scaleY(0);
|
|
|
|
transition: all 0.25s ease;
|
|
|
|
}
|
2017-02-26 00:38:19 +03:00
|
|
|
:host.expanded {
|
2017-03-30 15:17:08 +03:00
|
|
|
> .operation-endpoint {
|
2017-02-26 00:38:19 +03:00
|
|
|
border-color: $side-bar-bg-color;
|
|
|
|
border-bottom-left-radius: 0;
|
|
|
|
border-bottom-right-radius: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.expand-icon {
|
|
|
|
transform: rotateZ(180deg);
|
|
|
|
}
|
2017-02-27 19:37:38 +03:00
|
|
|
|
|
|
|
.servers-overlay {
|
|
|
|
transform: translateY(0%) scaleY(1);
|
|
|
|
}
|
2017-02-26 00:38:19 +03:00
|
|
|
}
|
2017-04-18 16:10:34 +03:00
|
|
|
|
|
|
|
.http-verb {
|
|
|
|
color: white;
|
|
|
|
|
|
|
|
&.get {
|
|
|
|
background-color: $get-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.post {
|
|
|
|
background-color: $post-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.put {
|
|
|
|
background-color: $put-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.options {
|
|
|
|
background-color: $options-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.patch {
|
|
|
|
background-color: $patch-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.delete {
|
|
|
|
background-color: $delete-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.basic {
|
|
|
|
background-color: $basic-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.link {
|
|
|
|
background-color: $link-color;
|
|
|
|
}
|
|
|
|
}
|