Skip to content

Commit 419c6f5

Browse files
authored
Fix #305 Move 1400px media-query to 1100px (#396)
* Use sass var for content max width * Add new theme vars * Use own media screen * Update patch with the ability to chnage the side bar width and content width There is still a bug were the centent width fills the full screen. This will have to be fixed before merging. * Use javascript instead * Run grunt build * Remove the ability to set sidebar width * Revert "Remove the ability to set sidebar width" This reverts commit 3ad5b5b. * Revert "Run grunt build" This reverts commit f3f9ff9. * Revert "Use javascript instead" This reverts commit 630b50f. * Revert "Update patch with the ability to chnage the side bar width and content width" This reverts commit f928c33.
1 parent f2e8a23 commit 419c6f5

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

sass/_theme_layout.sass

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@
309309
.wy-nav-content
310310
padding: $gutter $gutter * 2
311311
height: 100%
312-
max-width: 800px
312+
max-width: $nav-content-width
313313
margin: auto
314314

315315
.wy-body-mask
@@ -390,7 +390,7 @@ footer
390390
height: 100%
391391
overflow: hidden
392392

393-
+media($desktop-wider)
393+
@media screen and (min-width: $nav-media-query)
394394
.wy-nav-content-wrap
395395
background: rgba(0,0,0,.05)
396396
.wy-nav-content

sass/_theme_variables.sass

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
55
$font-awesome-dir: "../fonts/"
66
$static-img: "../img/"
7+
8+
$nav-content-width: 800px
9+
$nav-media-query: (($nav-desktop-width) + ($nav-content-width))
10+
711
$mathjax-color: $text-color
812

913
$headerlink-color: $text-color

0 commit comments

Comments
 (0)