Merge pull request #420 from mgcrea/patch-docs-navigation

docs(media): keep navigation open with playground for wider screens
old
Javi Velasco 2016-03-31 00:17:13 +02:00
commit 48e700f6ce
2 changed files with 19 additions and 0 deletions

View File

@ -1,5 +1,7 @@
@import "../../globals";
$media-min-width: 1440px;
$playground-max-width: $media-min-width / 2;
$playground-width: 50%;
$navigation-width: 22 * $unit;
$navigation-h-padding: 2.4 * $unit;

View File

@ -80,3 +80,20 @@ hr {
.load-button {
display: inline-block;
}
@media(min-width: $media-min-width) {
.root {
.playground {
width: $playground-max-width;
}
&.with-playground {
> .documentation {
padding-right: $playground-max-width;
padding-left: $navigation-width;
}
> .navigation {
transform: translateX(0);
}
}
}
}