Skip to content
This repository has been archived by the owner on Aug 30, 2018. It is now read-only.

Commit

Permalink
Merge pull request #461 from montalvomiguelo/echo-setting-logo_max_width
Browse files Browse the repository at this point in the history
Using the settings.logo_max_width value in styles
  • Loading branch information
cshold committed Sep 17, 2015
2 parents d75393f + 15dc440 commit a3ddf4c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion assets/timber.scss.liquid
Expand Up @@ -113,6 +113,9 @@ $colorNavText: #333;
$colorFooterBg: {{ settings.color_footer_bg }};
$colorFooterText: {{ settings.color_footer_text }};

// Logo max width
$logoMaxWidth: {{ settings.logo_max_width | default: '450' | remove: 'px' }}px;

// Helper colors
$disabledGrey: #f6f6f6;
$disabledBorder: darken($disabledGrey, 25%);
Expand Down Expand Up @@ -1799,7 +1802,7 @@ label.error {
}

.site-header__logo-link {
max-width: 450px; // max upload size
max-width: $logoMaxWidth;
margin: 0 auto;
}

Expand Down
2 changes: 1 addition & 1 deletion config/settings_schema.json
Expand Up @@ -117,7 +117,7 @@
"id": "logo_max_width",
"label": "Max Logo Width",
"default": "450",
"info": "Defines the CSS max-width."
"info": "Defined in pixels. Do not add the 'px' unit."
},
{
"type": "header",
Expand Down

0 comments on commit a3ddf4c

Please sign in to comment.