mirror of https://github.com/istio/istio.io.git
300 lines
5.0 KiB
SCSS
300 lines
5.0 KiB
SCSS
// This is a hack such that when we link to a fragment on a page, the page
|
|
// scrolls correctly in relation to the fixed header. Without this hack, the
|
|
// page scrolls with the fragment at the top of the page, below the header!
|
|
*[id]:before {
|
|
display: block;
|
|
content: ' ';
|
|
margin-top: -3.0em;
|
|
height: 3.0em;
|
|
visibility: hidden;
|
|
}
|
|
|
|
// This is here to undo the effect of the above for table rows. Otherwise,
|
|
// table rows with ids don't render properly
|
|
tr[id]:before {
|
|
content: normal;
|
|
}
|
|
|
|
html {
|
|
overflow-y: scroll;
|
|
position: relative;
|
|
min-height: 100%;
|
|
}
|
|
|
|
body {
|
|
padding-top: $headerHeight-xs;
|
|
margin-bottom: $footerHeight-xs;
|
|
font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
color: $textColor;
|
|
|
|
@media (min-height: $bp-md-v) {
|
|
padding-top: $headerHeight;
|
|
}
|
|
|
|
@media (min-width: $bp-sm) {
|
|
margin-bottom: $footerHeight;
|
|
}
|
|
}
|
|
|
|
a {
|
|
color: $linkColor;
|
|
text-decoration: none;
|
|
font-weight: 500;
|
|
}
|
|
|
|
a:hover, a:focus {
|
|
color: $linkHoverColor;
|
|
text-decoration: none;
|
|
font-weight: 500;
|
|
}
|
|
|
|
a.disabled {
|
|
color: $linkDisabledColor;
|
|
text-decoration: none;
|
|
font-weight: 500;
|
|
}
|
|
|
|
table, th, td, tr {
|
|
padding: .5em;
|
|
}
|
|
|
|
table {
|
|
margin-left: 1em;
|
|
margin-right: 1em;
|
|
}
|
|
|
|
table p:first-of-type {
|
|
margin-top: 0
|
|
}
|
|
|
|
table p:last-of-type {
|
|
margin-bottom: 0
|
|
}
|
|
|
|
th {
|
|
color: $white;
|
|
background-color: $secondBrandColor;
|
|
font-weight: normal;
|
|
}
|
|
|
|
tr.oneof>td {
|
|
border-bottom: 1px dashed $dividerBarColor;
|
|
border-top: 1px dashed $dividerBarColor;
|
|
}
|
|
|
|
table {
|
|
border-collapse: separate;
|
|
border-spacing: 0;
|
|
}
|
|
|
|
th, td {
|
|
border-left: 1px solid $secondBrandColor;
|
|
border-top: 1px solid $secondBrandColor;
|
|
}
|
|
|
|
tr:first-child th:first-child {
|
|
border-radius: 4px 0 0 0;
|
|
}
|
|
|
|
tr:first-child td:first-child {
|
|
border-radius: 4px 0 0 0;
|
|
}
|
|
|
|
tr:first-child th:last-child {
|
|
border-radius: 0 4px 0 0;
|
|
}
|
|
|
|
tr:first-child td:last-child {
|
|
border-radius: 0 4px 0 0;
|
|
}
|
|
|
|
tr:last-child td {
|
|
border-bottom: 1px solid $secondBrandColor;
|
|
}
|
|
|
|
tr:last-child td:first-child {
|
|
border-radius: 0 0 0 4px;
|
|
}
|
|
|
|
tr:last-child td:last-child {
|
|
border-radius: 0 0 4px 0;
|
|
}
|
|
|
|
tr th:last-child {
|
|
border-right: 1px solid $secondBrandColor;
|
|
}
|
|
|
|
tr td:last-child {
|
|
border-right: 1px solid $secondBrandColor;
|
|
}
|
|
|
|
thead+tbody tr:first-child td:first-child {
|
|
border-radius: 0;
|
|
}
|
|
|
|
thead+tbody tr:first-child td:last-child {
|
|
border-radius: 0;
|
|
}
|
|
|
|
pre {
|
|
margin: 1em;
|
|
max-height: 31em;
|
|
border: 1px solid $secondBrandColor;
|
|
border-left: 7px solid $secondBrandColor;
|
|
border-radius: 4px;
|
|
background-image: linear-gradient(transparent 50%, rgba(69,142,209,0.04) 50%);
|
|
background-size: 3em 3em;
|
|
background-origin: content-box;
|
|
background-attachment: local;
|
|
box-shadow: 3px 3px 8px #a7a7a7;
|
|
|
|
code {
|
|
display: block;
|
|
padding-left: 1em;
|
|
}
|
|
|
|
a.copy-button {
|
|
font-size: .8em;
|
|
padding: .2em .5em;
|
|
border-radius: .3em;
|
|
background-color: $secondBrandColor;
|
|
cursor: pointer;
|
|
color: $white;
|
|
margin-right: 1px;
|
|
}
|
|
|
|
div.hide {
|
|
float: right;
|
|
z-index: 2;
|
|
transition: opacity .4s ease-in-out;
|
|
opacity: 0;
|
|
}
|
|
|
|
div.show {
|
|
float: right;
|
|
z-index: 2;
|
|
transition: opacity 1.2s ease-in-out;
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
p {
|
|
font-size: $font-size--xs;
|
|
line-height: 1.5;
|
|
margin: .25em 0;
|
|
|
|
@media (min-width: $bp-md) {
|
|
margin: 1.5em 0;
|
|
}
|
|
}
|
|
|
|
li, dt, dd {
|
|
font-size: $font-size--xs;
|
|
line-height: 1.5;
|
|
margin: .25em;
|
|
}
|
|
|
|
ol, ul, dl {
|
|
list-style: initial;
|
|
font-size: $font-size--primary;
|
|
margin: 0 1.5em;
|
|
padding: 0;
|
|
}
|
|
|
|
li p, dt p, dd p {
|
|
margin: .4em 0;
|
|
}
|
|
|
|
ol {
|
|
list-style: decimal;
|
|
}
|
|
|
|
h1, h2, h3, h4, h5, h6 {
|
|
border: 0;
|
|
font-weight: normal;
|
|
}
|
|
|
|
h1 {
|
|
font-size: $font-size--xxl;
|
|
color: $secondBrandColor;
|
|
margin: 30px 0;
|
|
}
|
|
|
|
h2 {
|
|
font-size: $font-size--xl;
|
|
color: $black;
|
|
margin-bottom: 20px;
|
|
margin-top: 30px;
|
|
padding-bottom: 10px;
|
|
border-bottom: 1px;
|
|
border-color: $gray;
|
|
border-style: solid;
|
|
}
|
|
|
|
h3 {
|
|
font-size: $font-size--l;
|
|
font-weight: 500;
|
|
color: $dark-gray;
|
|
letter-spacing: 1px;
|
|
margin-bottom: 20px;
|
|
margin-top: 30px;
|
|
}
|
|
|
|
h4 {
|
|
font-size: $font-size--l;
|
|
font-weight: 500;
|
|
margin: 30px 0 20px;
|
|
color: $dark-gray;
|
|
|
|
// Text immediately following h4 should have same level of indention
|
|
+ p {
|
|
margin: 10px 0;
|
|
|
|
@media (max-width: 768px) {
|
|
margin: 5px 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
h5 {
|
|
font-size: $font-size--s;
|
|
font-weight: 500;
|
|
color: $black;
|
|
}
|
|
|
|
h6 {
|
|
font-size: .9rem;
|
|
font-weight: 500;
|
|
color: $black;
|
|
}
|
|
|
|
em {
|
|
font-style: italic;
|
|
}
|
|
|
|
strong {
|
|
font-weight: bold;
|
|
}
|
|
|
|
img {
|
|
width: 100%;
|
|
}
|
|
|
|
blockquote {
|
|
display: block;
|
|
margin: 1em 3em;
|
|
background-color: $light-gray;
|
|
}
|
|
|
|
.spacer {
|
|
height: .1rem;
|
|
|
|
@media (min-width: $bp-md) {
|
|
height: 1rem;
|
|
}
|
|
}
|
|
|
|
.deprecated {
|
|
background: silver;
|
|
}
|