Skip to content

Commit

Permalink
add styled nav user bg
Browse files Browse the repository at this point in the history
  • Loading branch information
bcomerford committed Sep 29, 2023
1 parent 41b0735 commit 944ee58
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 8 deletions.
2 changes: 1 addition & 1 deletion assets/scss/components/stencil/navUser/_navUser.scss
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
position: relative; // 7

&.navUser-section--styled {
background: #666;
background: $navUser-backgroundColor;
border-bottom-left-radius: 10px;
border-bottom-right-radius: 10px;
padding-left: 8px;
Expand Down
3 changes: 3 additions & 0 deletions assets/scss/settings/global/color/_color.scss
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,6 @@ $color-textLink-active: stencilColor("color-textLink--active");
// -----------------------------------------------------------------------------
$focusTooltip-textColor: stencilColor("focusTooltip-textColor");
$focusTooltip-backgroundColor: stencilColor("focusTooltip-backgroundColor");

// Custom
$navUser-backgroundColor: stencilColor("styled_nav_user_bg");
3 changes: 2 additions & 1 deletion config.json
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,8 @@
"mwn_home_category_block_limit": 10,
"mwn_home_category_block_col": 5,
"features_dynamic_locations": false,
"styled_nav_user": true
"styled_nav_user": true,
"styled_nav_user_bg": "#4F6686"
},
"read_only_files": [
"/assets/scss/components/citadel",
Expand Down
18 changes: 12 additions & 6 deletions schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -892,6 +892,18 @@
"force_reload": true,
"id": "show_copyright_footer"
},
{
"type": "checkbox",
"label": "Desktop styled nav",
"force_reload": true,
"id": "styled_nav_user"
},
{
"type": "text",
"label": "Styled nav bg",
"force_reload": true,
"id": "styled_nav_user_bg"
},
{
"type": "heading",
"content": "i18n.PaymentIcons"
Expand Down Expand Up @@ -962,12 +974,6 @@
"label": "i18n.ShowKlarna",
"force_reload": true,
"id": "show_accept_klarna"
},
{
"type": "checkbox",
"label": "Desktop styled nav",
"force_reload": true,
"id": "styled_nav_user"
}
]
},
Expand Down

0 comments on commit 944ee58

Please sign in to comment.