mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-04 00:18:01 +01:00
docs: add media query to control for smaller sizes.
This commit is contained in:
parent
2d56e07d3d
commit
132cba741c
@ -79,19 +79,19 @@ html[data-theme='dark'] .header-github-link:before {
|
|||||||
|
|
||||||
.unleash-video-container {
|
.unleash-video-container {
|
||||||
display: grid;
|
display: grid;
|
||||||
/* when it is wider than 400px */
|
|
||||||
grid-template-columns: 1fr min(250px, 25%);
|
|
||||||
|
|
||||||
/* otherwise no template-columns. Use a single column. */
|
|
||||||
|
|
||||||
--gap: .5em;
|
--gap: .5em;
|
||||||
--border-radius: var(--ifm-alert-border-radius);
|
--border-radius: var(--ifm-alert-border-radius);
|
||||||
gap: var(--gap);
|
gap: var(--gap);
|
||||||
margin-bottom: 1em;
|
margin-bottom: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.unleash-video-container p {
|
@media screen and (min-width: 450px) {
|
||||||
|
.unleash-video-container {
|
||||||
|
grid-template-columns: 1fr min(250px, 25%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.unleash-video-container p {
|
||||||
background: var(--ifm-color-success-contrast-background);
|
background: var(--ifm-color-success-contrast-background);
|
||||||
border-radius: var(--border-radius);
|
border-radius: var(--border-radius);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user