Skip to content

Commit

Permalink
add wide screen configuration (alshedivat#157)
Browse files Browse the repository at this point in the history
add wide screen configuration by adding a `max_width` config in `_config.yml`
  • Loading branch information
ziruizhuang committed Dec 27, 2020
1 parent c462e01 commit 387aaa7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ last_updated: false # set to true if you want to display last updated in the foo

navbar_fixed: true
footer_fixed: true

# Dimensions
max_width: 800px

# TODO: add layout settings (single page vs. multi-page)

# -----------------------------------------------------------------------------
Expand Down
2 changes: 0 additions & 2 deletions _sass/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
* To adjust anything, simply edit the variables below and rebuild the theme.
******************************************************************************/

// Dimensions

$max-content-width: 800px;

// Colors
$red-color: #FF3636 !default;
Expand Down
3 changes: 3 additions & 0 deletions assets/css/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
---
@charset "utf-8";

// Dimensions
$max-content-width: {{site.max_width}};

@import
"variables",
"themes",
Expand Down

0 comments on commit 387aaa7

Please sign in to comment.