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 @@
1html._booting { background: $contentBackground; }
2body._max-width { background: none; }
3html._booting body._max-width { background: $documentBackground; }
4
1._app {5._app {
2 position: relative;6 position: relative;
3 z-index: 1;7 z-index: 1;
@@ -12,6 +16,7 @@ · 8 unmodified lines
12 ._max-width & {16 ._max-width & {
13 margin: 0 auto;17 margin: 0 auto;
14 max-width: $maxWidth;18 max-width: $maxWidth;
19 background: $contentBackground;
15 box-shadow: 1px 0 $headerBorder, -1px 0 $headerBorder;20 box-shadow: 1px 0 $headerBorder, -1px 0 $headerBorder;
16 }21 }
17}22}
assets/stylesheets/global/_base.scss+2−1
@@ -1,7 +1,7 @@
1html {1html {
2 height: 100%;2 height: 100%;
3 font-size: 100%;3 font-size: 100%;
4 background: $contentBackground;4 background: $documentBackground;
5 5
6 @media #{$mediumScreen} { font-size: 93.75%; }6 @media #{$mediumScreen} { font-size: 93.75%; }
7}7}
@@ -17,6 +17,7 @@ body { · 9 unmodified lines
17 color: $textColor;17 color: $textColor;
18 word-wrap: break-word;18 word-wrap: break-word;
19 overflow-wrap: break-word;19 overflow-wrap: break-word;
20 background: $contentBackground;
20 touch-action: manipulation;21 touch-action: manipulation;
21 -webkit-tap-highlight-color: rgba(black, 0);22 -webkit-tap-highlight-color: rgba(black, 0);
22 -webkit-touch-callout: none;23 -webkit-touch-callout: none;
assets/stylesheets/global/_variables-dark.scss+1−0
@@ -10,6 +10,7 @@ $headerHeight: 3rem; · 9 unmodified lines
10$sidebarWidth: 20rem;10$sidebarWidth: 20rem;
11$sidebarMediumWidth: 16rem;11$sidebarMediumWidth: 16rem;
12 12
13$documentBackground: #222;
13$contentBackground: #33373a;14$contentBackground: #33373a;
14 15
15$textColor: #cbd0d0;16$textColor: #cbd0d0;
assets/stylesheets/global/_variables.scss+1−0
@@ -10,6 +10,7 @@ $headerHeight: 3rem; · 9 unmodified lines
10$sidebarWidth: 20rem;10$sidebarWidth: 20rem;
11$sidebarMediumWidth: 16rem;11$sidebarMediumWidth: 16rem;
12 12
13$documentBackground: #f3f3f3;
13$contentBackground: #fff;14$contentBackground: #fff;
14 15
15$textColor: #333;16$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