mirror of
https://github.com/gravitational/teleport
synced 2024-10-21 17:53:28 +00:00
(docs) fix code wrapping
This commit is contained in:
parent
8e9f8abf3e
commit
7edb2a7fda
49
docs/theme/css/teleport-bundle.css
vendored
49
docs/theme/css/teleport-bundle.css
vendored
|
@ -4689,7 +4689,7 @@ pre {
|
|||
pre code {
|
||||
font-size: inherit;
|
||||
color: inherit;
|
||||
white-space: pre-wrap;
|
||||
white-space: pre;
|
||||
background: #f1f1f1;
|
||||
border-radius: 4px;
|
||||
overflow-x: auto;
|
||||
|
@ -4780,24 +4780,6 @@ kbd {
|
|||
.--mobile-nav-open .grv-content-body {
|
||||
display: none; }
|
||||
|
||||
.grv-content-nav {
|
||||
position: absolute;
|
||||
height: calc(100% - 92px);
|
||||
overflow-y: auto;
|
||||
overflow-x: auto;
|
||||
background-color: #fcfcfc;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
left: calc((100% - 1100px)/2 + 20px); }
|
||||
.grv-content-nav .grv-content-nav-body {
|
||||
overflow: auto;
|
||||
width: 300px; }
|
||||
|
||||
.--fixed-left-nav .grv-content-nav {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
height: calc(100% - 0px); }
|
||||
|
||||
.grv-ver-selector {
|
||||
font-size: 90%;
|
||||
text-align: end;
|
||||
|
@ -10299,7 +10281,7 @@ img[src$="grv-image-center-lg"] {
|
|||
display: block;
|
||||
font-size: 13px;
|
||||
margin-bottom: 0 !important;
|
||||
max-width: 740px;
|
||||
max-width: 750px;
|
||||
flex-wrap: wrap; }
|
||||
.grv-footer .footer-item {
|
||||
padding: 15px 15px 10px 15px;
|
||||
|
@ -10333,7 +10315,8 @@ h4 {
|
|||
font-weight: bold;
|
||||
letter-spacing: 1px;
|
||||
margin-bottom: 10px;
|
||||
text-transform: uppercase; }
|
||||
text-transform: uppercase;
|
||||
margin-top: 20px; }
|
||||
|
||||
h1, h2, h3 {
|
||||
font-weight: normal; }
|
||||
|
@ -10377,7 +10360,7 @@ body {
|
|||
|
||||
.grv-content-body {
|
||||
background: #fcfcfc;
|
||||
padding-left: calc((100% - 1100px)/2 + 330px ); }
|
||||
padding-left: calc((100% - 1100px)/2 + 320px ); }
|
||||
.grv-content-body .wy-nav-top a:visited {
|
||||
color: #fff; }
|
||||
|
||||
|
@ -10386,11 +10369,29 @@ body {
|
|||
height: 100%;
|
||||
max-width: 800px;
|
||||
margin: auto;
|
||||
max-width: 740px;
|
||||
max-width: 750px;
|
||||
padding: 10px 20px 20px 20px;
|
||||
margin: 0 !important;
|
||||
background-color: #fff !important; }
|
||||
|
||||
.grv-content-nav {
|
||||
position: absolute;
|
||||
height: calc(100% - 92px);
|
||||
overflow-y: auto;
|
||||
overflow-x: auto;
|
||||
background-color: #fcfcfc;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
left: calc((100% - 1100px)/2 + 20px); }
|
||||
.grv-content-nav .grv-content-nav-body {
|
||||
overflow: auto;
|
||||
width: 280px; }
|
||||
|
||||
.--fixed-left-nav .grv-content-nav {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
height: calc(100% - 0px); }
|
||||
|
||||
#rtd-search-form input, #content_search input {
|
||||
outline: none;
|
||||
border: 1px solid #ccc;
|
||||
|
@ -10417,7 +10418,7 @@ body {
|
|||
left: 20px; }
|
||||
|
||||
.grv-content-body {
|
||||
padding-left: 330px; } }
|
||||
padding-left: 320px; } }
|
||||
@media screen and (max-width: 768px) {
|
||||
.grv-content-nav {
|
||||
display: none; }
|
||||
|
|
2
docs/theme/src/_defaults.scss
vendored
2
docs/theme/src/_defaults.scss
vendored
|
@ -61,7 +61,7 @@ $color-admonition-warning-header-bkg: #EF7C5C;
|
|||
$color-admonition-danger-bkg: #FAE1E4;
|
||||
$color-admonition-danger-title-bkg: #E05869;
|
||||
|
||||
$document-max-width: 740px;
|
||||
$document-max-width: 750px;
|
||||
|
||||
/*
|
||||
* Z Indexes
|
||||
|
|
27
docs/theme/src/index.scss
vendored
27
docs/theme/src/index.scss
vendored
|
@ -10,6 +10,8 @@
|
|||
@import "utils";
|
||||
@import "footer";
|
||||
|
||||
$content-padding-left: 320px;
|
||||
|
||||
p {
|
||||
line-height: 24px;
|
||||
}
|
||||
|
@ -20,6 +22,7 @@ h4 {
|
|||
letter-spacing: 1px;
|
||||
margin-bottom: 10px;
|
||||
text-transform: uppercase;
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
h1,h2,h3 {
|
||||
|
@ -91,6 +94,30 @@ body {
|
|||
background-color: $color-bkg-5 !important;
|
||||
}
|
||||
|
||||
.grv-content-nav {
|
||||
position: absolute;
|
||||
height: calc(100% - #{$top-menu-height});
|
||||
overflow-y: auto;
|
||||
overflow-x: auto;
|
||||
background-color: $color-bkg-10;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
left: calc((100% - #{$max-width})/2 + 20px);
|
||||
|
||||
.grv-content-nav-body{
|
||||
overflow: auto;
|
||||
width: 280px;
|
||||
}
|
||||
}
|
||||
|
||||
.--fixed-left-nav {
|
||||
.grv-content-nav {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
height: calc(100% - 0px);
|
||||
}
|
||||
}
|
||||
|
||||
#rtd-search-form, #content_search {
|
||||
input {
|
||||
outline: none;
|
||||
|
|
2
docs/theme/src/md/md-code.scss
vendored
2
docs/theme/src/md/md-code.scss
vendored
|
@ -40,7 +40,7 @@ pre {
|
|||
code {
|
||||
font-size: inherit;
|
||||
color: inherit;
|
||||
white-space: pre-wrap;
|
||||
white-space: pre;
|
||||
background: $color-bkg-15;
|
||||
border-radius: 4px;
|
||||
overflow-x: auto;
|
||||
|
|
25
docs/theme/src/nav.scss
vendored
25
docs/theme/src/nav.scss
vendored
|
@ -1,7 +1,6 @@
|
|||
|
||||
$top-menu-height: 92px;
|
||||
$max-width: 1100px;
|
||||
$content-padding-left: 330px;
|
||||
|
||||
#grv-docs-top-menu{
|
||||
height: $top-menu-height;
|
||||
|
@ -40,27 +39,3 @@ $content-padding-left: 330px;
|
|||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.grv-content-nav {
|
||||
position: absolute;
|
||||
height: calc(100% - #{$top-menu-height});
|
||||
overflow-y: auto;
|
||||
overflow-x: auto;
|
||||
background-color: $color-bkg-10;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
left: calc((100% - #{$max-width})/2 + 20px);
|
||||
|
||||
.grv-content-nav-body{
|
||||
overflow: auto;
|
||||
width: 300px;
|
||||
}
|
||||
}
|
||||
|
||||
.--fixed-left-nav {
|
||||
.grv-content-nav {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
height: calc(100% - 0px);
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue