mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-11 03:16:48 +03:00
82 lines
1.4 KiB
SCSS
82 lines
1.4 KiB
SCSS
@import '../../shared/styles/variables';
|
|
|
|
:host {
|
|
overflow: hidden;
|
|
display: block;
|
|
}
|
|
|
|
.action-buttons {
|
|
opacity: 0;
|
|
transition: opacity 0.3s ease;
|
|
transform: translateY(100%);
|
|
z-index: 3;
|
|
position: relative;
|
|
height: 2em;
|
|
line-height: 2em;
|
|
padding-right: 10px;
|
|
text-align: right;
|
|
margin-top: -1em;
|
|
|
|
> span > a {
|
|
padding: 2px 10px;
|
|
color: #ffffff;
|
|
cursor: pointer;
|
|
|
|
&:hover {
|
|
background-color: lighten($black, 15%);
|
|
}
|
|
}
|
|
}
|
|
|
|
.code-sample:hover > .action-buttons {
|
|
opacity: 1;
|
|
}
|
|
|
|
header {
|
|
font-family: $headers-font;
|
|
font-size: $h5;
|
|
text-transform: uppercase;
|
|
margin: 0;
|
|
color: $sample-panel-headers-color;
|
|
text-transform: uppercase;
|
|
font-weight: normal;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
:host /deep/ > tabs > ul li {
|
|
font-family: $headers-font;
|
|
font-size: .9em;
|
|
border-radius: $border-radius;
|
|
margin: 2px 0;
|
|
padding: 3px 10px 2px 10px;
|
|
line-height: 16px;
|
|
color: $sample-panel-headers-color;
|
|
|
|
&:hover {
|
|
background-color: rgba(white, .1);
|
|
color: #ffffff;
|
|
}
|
|
|
|
&.active {
|
|
background-color: #ffffff;
|
|
color: $text-color;
|
|
}
|
|
}
|
|
|
|
:host /deep/ tabs ul {
|
|
padding-top: 10px;
|
|
}
|
|
|
|
.code-sample pre {
|
|
overflow-x: auto;
|
|
word-break: break-all;
|
|
word-wrap: break-word;
|
|
white-space: pre-wrap;
|
|
margin-top: 0;
|
|
overflow-x: auto;
|
|
padding: 20px;
|
|
border-radius: 4px;
|
|
background-color: #222d32;
|
|
margin-bottom: 36px;
|
|
}
|