docs/_scss/_content.scss

206 lines
3.4 KiB
SCSS
Executable File

.content, p {
line-height: 24px;
clear: both;
img {
display: block;
height: auto;
max-width: 100%;
}
}
/*
* Code formatting *************************************************************
*/
pre, code {
background-color: $light-page-background!important;
color: $light-blue-600 !important;
}
pre {
border: 0;
border-radius: 4px;
display: block;
padding: 20.5px!important;
margin: 0 0 10px;
font-size: 13px;
line-height: 1.42857143;
word-break: normal !important;
word-wrap: break-word;
code {
overflow-x: auto;
overflow-wrap: normal;
white-space: pre;
}
}
code {
border-radius: 2px;
font-size: 90%;
padding: 3px 7px;
overflow-x: scroll;
}
.highlighter-rouge {
margin: 15px 0;
position: relative;
button.copy {
position: absolute;
top: 10px;
right: 10px;
background: none;
border: none;
}
}
/*
* Guides : components *********************************************************
*/
.component-container {
padding: 0;
margin: 0 0 50px;
width: 100%;
.row {
display: flex;
flex-wrap: wrap;
}
// "get-docker" tiles
.row > .block {
display: flex;
flex-direction: column;
padding: 10px;
}
.component {
padding: 15px 25px 15px 15px;
text-align: center;
height: 100%;
width: 100%;
background: $bg-component;
img {
height: 70px;
}
.component-icon {
display: flex;
justify-content: center;
}
h2 {
font-size: 18px;
}
h2, h3, p {
margin: 0;
}
}
}
a.anchorLink {
font-size: 0.5em;
margin-left: 5px;
visibility: hidden;
}
h1:hover > a.anchorLink,
h2:hover > a.anchorLink,
h3:hover > a.anchorLink
{
visibility: visible;
}
a.glossary {
color: $body-text;
outline: none;
&:hover {
opacity: 1;
}
}
a.accept-eula {
font-weight: bold;
}
/* Style the Image Used to Trigger the Modal */
main img {
border-radius: 5px;
cursor: pointer;
transition: 0.3s;
}
main img:hover {opacity: 0.7;}
/* The Modal (background) */
.modal1 {
display: none; /* Hidden by default */
position: fixed; /* Stay in place */
z-index: 1; /* Sit on top */
padding-top: 100px; /* Location of the box */
left: 0;
top: 0;
width: 100%; /* Full width */
height: 100%; /* Full height */
overflow: auto; /* Enable scroll if needed */
background-color: rgb(0,0,0); /* Fallback color */
background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}
/* Modal Content (Image) */
.modal-content1 {
margin: auto;
display: block;
width: 90%;
top:20px;
}
/* Caption of Modal Image (Image Text) - Same Width as the Image */
#img-modal-caption1 {
margin: 15px auto;
display: block;
width: 80%;
max-width: 700px;
text-align: center;
color: #ccc;
padding: 10px 0;
height: 150px;
}
/* Add Animation - Zoom in the Modal */
.modal-content1, #img-modal-caption1 {
animation-name: zoom;
animation-duration: 0.6s;
}
@keyframes zoom {
from {transform:scale(0)}
to {transform:scale(1)}
}
/* The Close Button */
#img-modal-close1 {
font-size: 40px;
font-weight: bold;
color: #f1f1f1;
transition: 0.3s;
margin-right: 10px;
}
#img-modal-close1:hover,
#img-modal-close1:focus {
color: #bbb;
text-decoration: none;
cursor: pointer;
}
/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px){
.modal-content {
width: 100%;
}
}