Skip to content
This repository was archived by the owner on Jul 19, 2021. It is now read-only.

Update settings for header section #198

Merged
merged 3 commits into from
Jul 14, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 7 additions & 9 deletions src/sections/header.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,6 @@
max-width: {{ section.settings.logo_max_width }}px;
}
{% endif %}

{% if section.settings.align_logo == 'left' %}
.site-header__logo-image {
margin: 0;
}
{% endif %}
</style>
<div data-section-id="{{ section.id }}" data-section-type="header-section">
<header role="banner">
Expand Down Expand Up @@ -121,10 +115,14 @@
"label": "Logo image"
},
{
"type": "text",
"type": "range",
"id": "logo_max_width",
"label": "Custom logo width (in pixels)",
"default": "250"
"min": 50,
"max": 450,
"step": 10,
"unit": "px",
"label": "Custom logo width",
"default": 250
},
{
"type": "link_list",
Expand Down
1 change: 1 addition & 0 deletions src/styles/modules/site-header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@

img {
display: block;
width: 100%;
}
}