Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix home page styles, add light font
weronkaa7223b075571
diff --git a/saleor/static/fonts/Lato-Black.ttf b/saleor/static/fonts/Lato-Black.ttfdeleted file mode 100755index 6848db0d1a..0000000000Binary files a/saleor/static/fonts/Lato-Black.ttf and /dev/null differdiff --git a/saleor/static/fonts/Lato-Black.woff b/saleor/static/fonts/Lato-Black.woffdeleted file mode 100644index 7ff0a27e95..0000000000Binary files a/saleor/static/fonts/Lato-Black.woff and /dev/null differdiff --git a/saleor/static/fonts/Lato-Black.woff2 b/saleor/static/fonts/Lato-Black.woff2deleted file mode 100644index 2fc23ff950..0000000000Binary files a/saleor/static/fonts/Lato-Black.woff2 and /dev/null differdiff --git a/saleor/static/fonts/Lato-Light.ttf b/saleor/static/fonts/Lato-Light.ttfnew file mode 100755index 0000000000..a958067a86Binary files /dev/null and b/saleor/static/fonts/Lato-Light.ttf differdiff --git a/saleor/static/fonts/Lato-Light.woff b/saleor/static/fonts/Lato-Light.woffnew file mode 100644index 0000000000..e54b218257Binary files /dev/null and b/saleor/static/fonts/Lato-Light.woff differdiff --git a/saleor/static/fonts/Lato-Light.woff2 b/saleor/static/fonts/Lato-Light.woff2new file mode 100644index 0000000000..e1168f11dcBinary files /dev/null and b/saleor/static/fonts/Lato-Light.woff2 differdiff --git a/saleor/static/scss/storefront/components/_buttons.scss b/saleor/static/scss/storefront/components/_buttons.scssindex e8dc329468..010b75db0e 100644--- a/saleor/static/scss/storefront/components/_buttons.scss+++ b/saleor/static/scss/storefront/components/_buttons.scss@@ -1,8 +1,9 @@.btn {transition: 0.3s;+ border-radius: $button-border-radius;&.home__button {- border-radius: 0;text-transform: uppercase;+ font-size: $font-size-h3;color: $white;background-color: transparent;border: 1px solid $white;diff --git a/saleor/static/scss/storefront/components/_fonts.scss b/saleor/static/scss/storefront/components/_fonts.scssindex 1aa2835bab..94c238ab52 100644--- a/saleor/static/scss/storefront/components/_fonts.scss+++ b/saleor/static/scss/storefront/components/_fonts.scss@@ -1,3 +1,10 @@+@font-face {+ font-family: 'Lato';+ src: url('../../fonts/Lato-Light.woff2') format('woff2'),+ url('../../fonts/Lato-Light.woff') format('woff'),+ url('../../fonts/Lato-Light.ttf') format('truetype');+ font-weight: 300;+}@font-face {font-family: 'Lato';src: url('../../fonts/Lato-Regular.woff2') format('woff2'),@@ -12,10 +19,3 @@url('../../fonts/Lato-Bold.ttf') format('truetype');font-weight: 700;}-@font-face {- font-family: 'Lato';- src: url('../../fonts/Lato-Black.woff2') format('woff2'),- url('../../fonts/Lato-Black.woff') format('woff'),- url('../../fonts/Lato-Black.ttf') format('truetype');- font-weight: 900;-}diff --git a/saleor/static/scss/storefront/components/_home.scss b/saleor/static/scss/storefront/components/_home.scssindex 1b7fb9b91a..1de529e4f3 100644--- a/saleor/static/scss/storefront/components/_home.scss+++ b/saleor/static/scss/storefront/components/_home.scss@@ -2,11 +2,8 @@text-align: center;color: $white;h1 {- font-weight: 900;- font-size: $font-size-h1 * 1.3;- }- h2 {- font-weight: 400;+ font-weight: 300;+ text-transform: uppercase;}.btn {margin-top: $global-margin;@@ -16,9 +13,6 @@background-image: url('../../images/block1.jpg');padding: $global-padding * 15 0 $global-padding * 12;background-size: cover;- h1 {- text-transform: uppercase;- }}}&__block2 {@@ -39,10 +33,9 @@}&__featured {color: $body-color;- h3 {+ h2 {text-transform: uppercase;- font-weight: 700;- margin: $global-margin * 4 0 $global-margin * 2;+ margin: $global-margin * 2 0;}}}diff --git a/saleor/static/scss/storefront/components/_product-list.scss b/saleor/static/scss/storefront/components/_product-list.scssindex 28f9466a36..47ae89e2f0 100644--- a/saleor/static/scss/storefront/components/_product-list.scss+++ b/saleor/static/scss/storefront/components/_product-list.scss@@ -10,11 +10,13 @@text-decoration: none;}}- &__name {- font-weight: 700;- margin-top: $global-margin / 2;+ &-item-name {+ margin: $global-margin / 2 0;display: block;}+ .panel-footer {+ color: $skull-gray;+ }&__sale {clip-path: polygon(0 37%, 37% 0, 100% 0, 0% 100%);background-color: $red;diff --git a/saleor/static/scss/storefront/variables.scss b/saleor/static/scss/storefront/variables.scssindex 11a44a3a5d..b99a46aa32 100644--- a/saleor/static/scss/storefront/variables.scss+++ b/saleor/static/scss/storefront/variables.scss@@ -3,22 +3,24 @@ $fa-font-path: "~font-awesome/fonts";$global-padding: 1rem;$global-margin: 1rem;+$button-border-radius: 3px;// COLORS- $gray: #C4C4C4;- $light-gray: #efefef;- $dark-gray: #909090;- $white: #fff;- $body-color: #333333;- $red: #EB5757;- $darkred: #c53636;- $green: #27AE60;- $darkgreen: #1b8a4a;+$skull-gray: #828282;++$gray: #C4C4C4;+$light-gray: #efefef;+$dark-gray: #909090;+$white: #fff;+$body-color: #333333;+$red: #EB5757;+$darkred: #c53636;+$green: #27AE60;+$darkgreen: #1b8a4a;// TYPOGRAPHY$font-family-sans-serif: 'Lato';-$font-size-root: 14px;-$font-size-h1: 2.6rem;-$font-size-h2: 1.7rem;-$font-size-h3: 1.3rem;+$font-size-h1: 3rem;+$font-size-h2: 1.3rem;+$font-size-h3: 1rem;diff --git a/templates/category/_items.html b/templates/category/_items.htmlindex 08211c06df..7d484acc45 100644--- a/templates/category/_items.html+++ b/templates/category/_items.html@@ -4,7 +4,7 @@{% load product_first_image from product_images %}{% for product, availability in products %}- <div class="col-6 col-md-4 product-list" itemscope itemtype="https://schema.org/Product">+ <div class="col-xs-6 col-md-4 product-list" itemscope itemtype="https://schema.org/Product"><div class="text-center"><div><a itemprop="url" href="{{ product.get_absolute_url }}">@@ -13,7 +13,7 @@</a></div>- <div>+ <div class="panel-footer">{% if availability.available %}{% price_range availability.price_range %}{% if availability.discount %}diff --git a/templates/home.html b/templates/home.htmlindex ac0b51ffa5..635dbdf67d 100644--- a/templates/home.html+++ b/templates/home.html@@ -26,20 +26,18 @@</div><div class="col-sm-12 col-md-6 home__block3"><div>- <h1>{% trans "Digital Downloads" %}</h1>+ <h1>{% trans "DIGITAL DWNLDS" %}</h1><button class="btn btn-secondary home__button">{% trans "Shop now" %}</button></div></div></div>- <div class="row home__featured">- <h3 class="text-xs-center">{% trans "Featured products" %}</h3>- <div class="col-sm-12">- <div class="row">- {% include "category/_items.html" %}- </div>- </div>+ <div class="home__featured">+ <h2 class="text-center">{% trans "Featured products" %}</h2>+ <div class="row">+ {% include "category/_items.html" %}+ </div></div></div>