forked from cotes2020/jekyll-theme-chirpy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a hook for custom variables (fix cotes2020#355)
- Loading branch information
Showing
5 changed files
with
38 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,34 @@ | ||
/* | ||
* Mainly scss variables | ||
*/ | ||
* The SCSS variables | ||
*/ | ||
|
||
/* --- ↓ width and height ---- */ | ||
/* sidebar */ | ||
|
||
$tab-height: 3.2rem; | ||
$tab-cursor-height: 1.6rem; | ||
$sidebar-width: 260px !default; // the basic width | ||
$sidebar-width-small: 210px !default; // screen width: >= 850px, <= 1199px (iPad landscape) | ||
$sidebar-width-large: 350px !default; // screen width: >= 1650px | ||
|
||
$sidebar-width-small: 210px; | ||
$sidebar-width-medium: 260px; | ||
$sidebar-width-large: 350px; | ||
/* tabs of sidebar */ | ||
|
||
$topbar-height: 3rem; | ||
$tab-count: 5 !default; // backward compatible (version <= 4.0.2) | ||
$tab-height: 3.2rem !default; | ||
$tab-cursor-height: 1.6rem !default; | ||
|
||
$footer-height: 5rem; | ||
$cursor-width: 3px !default; // the cursor width of the selected tab | ||
|
||
$main-content-max-width: 1150px; | ||
/* other framework sizes */ | ||
|
||
$panel-max-width: 300px; | ||
$topbar-height: 3rem !default; | ||
|
||
$post-extend-min-height: 35rem; | ||
$footer-height: 5rem !default; | ||
$footer-height-mobile: 6rem !default; // screen width: <= 576px | ||
|
||
$main-content-max-width: 1150px !default; | ||
|
||
$panel-max-width: 300px !default; | ||
|
||
$post-extend-min-height: 35rem !default; | ||
|
||
/* syntax highlight */ | ||
|
||
$code-font-size: 0.85rem !default; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
--- | ||
--- | ||
|
||
// see: /_sass/addon/commons.scss | ||
$tab-count: {{ site.tabs | size | plus: 1 }}; // plus 1 for home tab | ||
{% include_relative variables-hook.scss %} | ||
|
||
@import "jekyll-theme-chirpy"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/* | ||
Appending custom SCSS variables will override the default ones in `_sass/addon/variables.scsss` | ||
*/ | ||
|
||
$tab-count: {{ site.tabs | size | plus: 1 }}; // plus 1 for home tab |