Skip to content

Commit

Permalink
docs: add media query to control for smaller sizes.
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasheartman committed Jan 26, 2022
1 parent 2d56e07 commit 132cba7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions website/src/css/custom.css
Expand Up @@ -79,19 +79,19 @@ html[data-theme='dark'] .header-github-link:before {

.unleash-video-container {
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;
--border-radius: var(--ifm-alert-border-radius);
gap: var(--gap);
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);
border-radius: var(--border-radius);
}
Expand Down

0 comments on commit 132cba7

Please sign in to comment.