docs: Align Images perfectly on mobile (#1856)

* docs: Use Light codeblocks theme

* docs: Fix image align

* fix pixels

* fix: Adjust all images
This commit is contained in:
Marc Rousavy
2023-09-26 13:09:44 +02:00
committed by GitHub
parent cc88de3926
commit 688963954a
12 changed files with 56 additions and 28 deletions

View File

@@ -19,7 +19,35 @@
.docusaurus-highlight-code-line {
background-color: rgb(72, 77, 91);
display: block;
display: flex;
margin: 0 calc(-1 * var(--ifm-pre-padding));
padding: 0 var(--ifm-pre-padding);
}
/* align image to the right */
.image-container {
float: right;
}
/* mobile screen; align center */
@media (max-width: 600px) {
.image-container {
float: none;
text-align: center;
}
}
/* wider screen; align right again */
@media (min-width: 600px) and (max-width: 997px) {
.image-container {
float: right;
}
}
/* even wider screen but with sidebars; align center cuz we dont have enough space for right */
@media (min-width: 997px) and (max-width: 1145px) {
.image-container {
float: none;
text-align: center;
}
}