Skip to content

Commit

Permalink
shop layout changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sujaykundu777 committed Feb 21, 2020
1 parent 42e62a8 commit 4c706ee
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
10 changes: 10 additions & 0 deletions _includes/shop_breadcrumb.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<div class="col-lg-12">
<nav aria-label="breadcrumb" role="navigation">
<ol class="breadcrumb">
<li class="breadcrumb-item">
<a href="{{site.url}}{{site.baseurl}}/shop"><i class="fa fa-home" aria-hidden="true"></i></a>
</li>
<li class="breadcrumb-item active" aria-current="page"><a href="{{page.url}}">{{ page.title }}</a></li>
</ol>
</nav>
</div>
4 changes: 3 additions & 1 deletion _layouts/product.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
---
<div class="row">
<div class="col-lg-12">
<nav class="sticky-top">
<nav class="fixed-top" id="snipcart-floating-cart">
<button class="btn btn-lg btn-dark header__checkout snipcart-checkout">
<svg width="31" height="27" viewBox="0 0 31 27" fill="none" xmlns="http://www.w3.org/2000/svg">
<path
Expand All @@ -18,6 +18,8 @@
</div>
</div>
<div class="row">
<!-- Blog Post Breadcrumbs -->
{%- include shop_breadcrumb.html -%}
<div class="col-lg-8 offset-md-2">
{% for product in site.products %}

Expand Down
13 changes: 13 additions & 0 deletions assets/css/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ html[data-theme="dark"] {
--social-link-color: #ffffff;
--card-background-color: rgb(32, 32, 34);
--newsletter-background-color: #222324;
--button-background-color: #111;
}

html,
Expand All @@ -45,6 +46,7 @@ html[data-theme="light"] {
--social-link-color: #262222;
--card-background-color: rgb(250, 250, 250);
--newsletter-background-color: #00000008;
--button-background-color: #fff;
}

@media (prefers-color-scheme: dark) {
Expand All @@ -65,6 +67,7 @@ html[data-theme="light"] {
--social-link-color: #ffffff;
--card-background-color: rgb(32, 32, 34);
--newsletter-background-color: #222324;
--button-background-color: #111;
}

/* Light Mode */
Expand All @@ -83,6 +86,7 @@ html[data-theme="light"] {
--underline-color: hsl(0, 0%, 60%);
--social-link-color: #262222;
--card-background-color: rgb(250, 250, 250);
--button-background-color: #fff;
}
}

Expand Down Expand Up @@ -246,6 +250,15 @@ header {
.snipcart__button--icon {
border: 0px solid #f0f5f6 !important;
}
#snipcart-floating-cart{
margin-top: 150px;
}
.snipcart-cart-button--secondary {
color: --var(--bold-color) !important;
background-color: var(--button-background-color) !important;
padding: 16px;
text-transform: none;
}

/* Gallery */
/* image-gallery */
Expand Down

0 comments on commit 4c706ee

Please sign in to comment.