Skip to content

Commit

Permalink
feat: add scss setting, custom Site Header Height
Browse files Browse the repository at this point in the history
  • Loading branch information
xianmin committed Nov 11, 2024
1 parent 412ee13 commit 6e237ed
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion assets/sass/_partial/_header/_desktop_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

.menu-item {
display: block;
height: 3em;
height: $desktop-header-height;
position: relative;

&:hover {
Expand Down
1 change: 1 addition & 0 deletions assets/sass/_partial/_header/_mobile_header.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.mobile-header {
display: none;
height: $mobile-header-height;

a {
text-decoration: none;
Expand Down
6 changes: 6 additions & 0 deletions assets/sass/_settings.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ $jane-theme-color: 'azure';
*------------------------------------------------------------------------**/
$article-max-width: 40em;

/**------------------------------------------------------------------------
* Site Header Height
*------------------------------------------------------------------------**/
$desktop-header-height: 4rem;
$mobile-header-height: 3rem;

/**------------------------------------------------------------------------
* Font Settings
*------------------------------------------------------------------------**/
Expand Down
2 changes: 2 additions & 0 deletions assets/sass/jane.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

$jane-theme-color: 'azure' !default;
$article-max-width: 40em !default;
$desktop-header-height: 80px !default;
$mobile-header-height: 60px !default;
$logo-font-family: 'Comic Sans MS', -apple-system, 'Open Sans', 'Segoe UI', 'Helvetica', Arial, sans-serif !default;
$title-font-family: -apple-system, 'Open Sans', 'Segoe UI', 'Helvetica', Arial, sans-serif !default;
$global-font-family: -apple-system,'Open Sans', 'Segoe UI', 'Helvetica', Arial, sans-serif !default;
Expand Down

0 comments on commit 6e237ed

Please sign in to comment.