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

Commit 98e2624

Browse files
committed
Merge pull request #65 from Shopify/style-updates
Style updates
2 parents 8c74922 + 8da43bb commit 98e2624

File tree

3 files changed

+38
-36
lines changed

3 files changed

+38
-36
lines changed

assets/timber.scss.liquid

+10-8
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ $borderColor: #e5e5e5;
104104
/* Nav and dropdown link background */
105105
$colorNav: #f6f6f6;
106106

107+
/* Footer */
108+
$colorFooterBg: #f6f6f6;
109+
107110
/* Helper colors */
108111
$disabledGrey: #f6f6f6;
109112
$disabledBorder: darken($disabledGrey, 25%);
@@ -644,7 +647,7 @@ $class-type: unquote(".");
644647
// #Basic Styles
645648
// ==============================================================================
646649
html {
647-
background-color: #f6f6f6;
650+
background-color: $colorFooterBg;
648651
}
649652

650653
body {
@@ -1296,7 +1299,6 @@ a.btn-secondary {
12961299
a,
12971300
a:hover,
12981301
a:focus {
1299-
color: $colorText;
13001302
text-decoration: none;
13011303
}
13021304

@@ -1393,13 +1395,13 @@ a.btn-secondary {
13931395
.input-group-field {
13941396
margin-bottom: 0;
13951397
}
1398+
}
13961399

1397-
.search-bar {
1398-
max-width: 300px;
1400+
.search-bar {
1401+
max-width: 300px;
13991402

1400-
@include at-query($max, $medium) {
1401-
margin: 0 auto;
1402-
}
1403+
@include at-query($max, $medium) {
1404+
margin: 0 auto;
14031405
}
14041406
}
14051407

@@ -1408,7 +1410,7 @@ a.btn-secondary {
14081410
// #Site Footer
14091411
// ==============================================================================
14101412
.site-footer {
1411-
background-color: #f6f6f6;
1413+
background-color: $colorFooterBg;
14121414
border-top: 1px solid $borderColor;
14131415
text-align: center;
14141416
padding: $gutter 0;

snippets/footer.liquid

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
Loop through available payment methods and show their icons.
4646
{% endcomment %}
4747
{% unless shop.enabled_payment_types == empty %}
48-
<h4 class="text-center">Accepted Payments</h4>
48+
<h4 class="text-center">Accepted Payments</h4>
4949
<ul class="inline-list payment-icons text-center">
5050
{% for type in shop.enabled_payment_types %}
5151
<li>
@@ -56,7 +56,7 @@
5656
{% endunless %}
5757

5858
<p class="text-center">
59-
<a href="">Timber v1.0</a> by <a href="http://www.shopify.com?ref=Timber">Shopify</a><br>
59+
<a href="http://shopify.com/timber">Timber</a> by <a href="http://www.shopify.com?ref=Timber">Shopify</a><br>
6060
<small>{{ powered_by_link }}</small>
6161
</p>
6262

templates/index.liquid

+26-26
Original file line numberDiff line numberDiff line change
@@ -83,37 +83,37 @@
8383

8484
{% endunless %}
8585

86-
{% if isEmpty %}
87-
<div class="grid-item">
88-
<p>You don't have any collections to show here. <a href="/admin/custom_collections">Add some collections</a> to go along with the default Frontpage.</p>
89-
</div>
90-
<div class="grid-item">
91-
<div class="grid-uniform">
92-
<div class="grid-item large--one-third medium--one-half text-center">
93-
<div class="demo-image">
94-
Collection Image
95-
</div>
96-
<p><a href="/admin/custom_collections">Example Collection Title</a> <small>(3 items)</small></p>
86+
{% comment %}Add 1 to the current index{% endcomment %}
87+
{% assign index = index | plus: 1 %}
88+
{% endfor %}
89+
90+
{% if isEmpty %}
91+
<div class="grid-item">
92+
<p>You don't have any collections to show here. <a href="/admin/custom_collections">Add some collections</a> to go along with the default Frontpage.</p>
93+
</div>
94+
<div class="grid-item">
95+
<div class="grid-uniform">
96+
<div class="grid-item large--one-third medium--one-half text-center">
97+
<div class="demo-image">
98+
Collection Image
9799
</div>
98-
<div class="grid-item large--one-third medium--one-half text-center">
99-
<div class="demo-image">
100-
Collection Image
101-
</div>
102-
<p><a href="/admin/custom_collections">Example Collection Title</a> <small>(13 items)</small></p>
100+
<p><a href="/admin/custom_collections">Example Collection Title</a> <small>(3 items)</small></p>
101+
</div>
102+
<div class="grid-item large--one-third medium--one-half text-center">
103+
<div class="demo-image">
104+
Collection Image
103105
</div>
104-
<div class="grid-item large--one-third medium--one-half text-center">
105-
<div class="demo-image">
106-
Collection Image
107-
</div>
108-
<p><a href="/admin/custom_collections">Example Collection Title</a> <small>(25 items)</small></p>
106+
<p><a href="/admin/custom_collections">Example Collection Title</a> <small>(13 items)</small></p>
107+
</div>
108+
<div class="grid-item large--one-third medium--one-half text-center">
109+
<div class="demo-image">
110+
Collection Image
109111
</div>
112+
<p><a href="/admin/custom_collections">Example Collection Title</a> <small>(25 items)</small></p>
110113
</div>
111114
</div>
112-
{% endif %}
113-
114-
{% comment %}Add 1 to the current index{% endcomment %}
115-
{% assign index = index | plus: 1 %}
116-
{% endfor %}
115+
</div>
116+
{% endif %}
117117

118118
</div>
119119

0 commit comments

Comments
 (0)