History

Improve fixed-width layout

Thibaut Courouble committed 9 years ago

Commit 0fb449f1 parent 786a5494 files · +9 −1Browse files

Unified · Split

4 files
  1. assets/stylesheets/components/_app.scss +5 −0
  2. assets/stylesheets/global/_base.scss +2 −1
  3. assets/stylesheets/global/_variables-dark.scss +1 −0
  4. assets/stylesheets/global/_variables.scss +1 −0
assets/stylesheets/components/_app.scss+5−0
@@ -1,3 +1,7 @@
1+html._booting { background: $contentBackground; }
2+body._max-width { background: none; }
3+html._booting body._max-width { background: $documentBackground; }
4+
15 ._app {
26 position: relative;
37 z-index: 1;
@@ -12,6 +16,7 @@ · 8 unmodified lines
1216 ._max-width & {
1317 margin: 0 auto;
1418 max-width: $maxWidth;
19+ background: $contentBackground;
1520 box-shadow: 1px 0 $headerBorder, -1px 0 $headerBorder;
1621 }
1722 }
assets/stylesheets/global/_base.scss+2−1
@@ -1,7 +1,7 @@
11 html {
22 height: 100%;
33 font-size: 100%;
4− background: $contentBackground;
4+ background: $documentBackground;
55
66 @media #{$mediumScreen} { font-size: 93.75%; }
77 }
@@ -17,6 +17,7 @@ body { · 9 unmodified lines
1717 color: $textColor;
1818 word-wrap: break-word;
1919 overflow-wrap: break-word;
20+ background: $contentBackground;
2021 touch-action: manipulation;
2122 -webkit-tap-highlight-color: rgba(black, 0);
2223 -webkit-touch-callout: none;
assets/stylesheets/global/_variables-dark.scss+1−0
@@ -10,6 +10,7 @@ $headerHeight: 3rem; · 9 unmodified lines
1010 $sidebarWidth: 20rem;
1111 $sidebarMediumWidth: 16rem;
1212
13+$documentBackground: #222;
1314 $contentBackground: #33373a;
1415
1516 $textColor: #cbd0d0;
assets/stylesheets/global/_variables.scss+1−0
@@ -10,6 +10,7 @@ $headerHeight: 3rem; · 9 unmodified lines
1010 $sidebarWidth: 20rem;
1111 $sidebarMediumWidth: 16rem;
1212
13+$documentBackground: #f3f3f3;
1314 $contentBackground: #fff;
1415
1516 $textColor: #333;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t