Improve fixed-width layout

pull/667/merge
Thibaut Courouble 7 years ago
parent 786a549f0f
commit 0fb449fcb9

@ -1,3 +1,7 @@
html._booting { background: $contentBackground; }
body._max-width { background: none; }
html._booting body._max-width { background: $documentBackground; }
._app { ._app {
position: relative; position: relative;
z-index: 1; z-index: 1;
@ -12,6 +16,7 @@
._max-width & { ._max-width & {
margin: 0 auto; margin: 0 auto;
max-width: $maxWidth; max-width: $maxWidth;
background: $contentBackground;
box-shadow: 1px 0 $headerBorder, -1px 0 $headerBorder; box-shadow: 1px 0 $headerBorder, -1px 0 $headerBorder;
} }
} }

@ -1,7 +1,7 @@
html { html {
height: 100%; height: 100%;
font-size: 100%; font-size: 100%;
background: $contentBackground; background: $documentBackground;
@media #{$mediumScreen} { font-size: 93.75%; } @media #{$mediumScreen} { font-size: 93.75%; }
} }
@ -17,6 +17,7 @@ body {
color: $textColor; color: $textColor;
word-wrap: break-word; word-wrap: break-word;
overflow-wrap: break-word; overflow-wrap: break-word;
background: $contentBackground;
touch-action: manipulation; touch-action: manipulation;
-webkit-tap-highlight-color: rgba(black, 0); -webkit-tap-highlight-color: rgba(black, 0);
-webkit-touch-callout: none; -webkit-touch-callout: none;

@ -10,6 +10,7 @@ $headerHeight: 3rem;
$sidebarWidth: 20rem; $sidebarWidth: 20rem;
$sidebarMediumWidth: 16rem; $sidebarMediumWidth: 16rem;
$documentBackground: #222;
$contentBackground: #33373a; $contentBackground: #33373a;
$textColor: #cbd0d0; $textColor: #cbd0d0;

@ -10,6 +10,7 @@ $headerHeight: 3rem;
$sidebarWidth: 20rem; $sidebarWidth: 20rem;
$sidebarMediumWidth: 16rem; $sidebarMediumWidth: 16rem;
$documentBackground: #f3f3f3;
$contentBackground: #fff; $contentBackground: #fff;
$textColor: #333; $textColor: #333;

Loading…
Cancel
Save