mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-05-16 10:49:24 +00:00
Fix multiple minor CSS issues to fix mobile and tablets
This commit is contained in:
parent
9a5c7466d6
commit
1432291db7
14
docs/_static/style.css
vendored
14
docs/_static/style.css
vendored
@ -16,6 +16,10 @@ Historically however, thanks to:
|
|||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
section {
|
||||||
|
word-break: break-word;
|
||||||
|
}
|
||||||
|
|
||||||
/* CSS variables would go here */
|
/* CSS variables would go here */
|
||||||
:root {
|
:root {
|
||||||
--font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
--font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
||||||
@ -216,6 +220,7 @@ body {
|
|||||||
display: grid;
|
display: grid;
|
||||||
min-height: 100%;
|
min-height: 100%;
|
||||||
grid-auto-rows: min-content auto min-content;
|
grid-auto-rows: min-content auto min-content;
|
||||||
|
grid-template-columns: minmax(0, 1fr);
|
||||||
grid-template-areas:
|
grid-template-areas:
|
||||||
"s"
|
"s"
|
||||||
"h"
|
"h"
|
||||||
@ -1046,6 +1051,7 @@ code.xref, a code {
|
|||||||
|
|
||||||
span.pre {
|
span.pre {
|
||||||
padding: 0 2px;
|
padding: 0 2px;
|
||||||
|
white-space: pre-wrap !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
dl.class {
|
dl.class {
|
||||||
@ -1211,12 +1217,13 @@ div.code-block-caption {
|
|||||||
|
|
||||||
/* desktop stuff */
|
/* desktop stuff */
|
||||||
|
|
||||||
@media screen and (min-width: 600px) {
|
@media screen and (min-width: 768px) {
|
||||||
.grid-item {
|
.grid-item {
|
||||||
max-width: unset;
|
max-width: unset;
|
||||||
}
|
}
|
||||||
|
|
||||||
.main-grid {
|
.main-grid {
|
||||||
|
grid-template-columns: repeat(6, 1fr);
|
||||||
grid-template-areas:
|
grid-template-areas:
|
||||||
"h h h h h h"
|
"h h h h h h"
|
||||||
"n n n n n n"
|
"n n n n n n"
|
||||||
@ -1273,6 +1280,7 @@ div.code-block-caption {
|
|||||||
position: sticky;
|
position: sticky;
|
||||||
top: 1em;
|
top: 1em;
|
||||||
max-height: calc(100vh - 2em);
|
max-height: calc(100vh - 2em);
|
||||||
|
max-width: 100%;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
margin: 1em;
|
margin: 1em;
|
||||||
}
|
}
|
||||||
@ -1322,6 +1330,10 @@ div.code-block-caption {
|
|||||||
"s s s f f f f f f f f f f f f f"
|
"s s s f f f f f f f f f f f f f"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#sidebar {
|
||||||
|
max-width: unset;
|
||||||
|
}
|
||||||
|
|
||||||
header > nav {
|
header > nav {
|
||||||
margin-left: 18.75%;
|
margin-left: 18.75%;
|
||||||
margin-right: 18.75%;
|
margin-right: 18.75%;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user