Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Unify FAB design
dominik-zeglen209f7d1c1ecb
diff --git a/saleor/static/dashboard/scss/components/_buttons.scss b/saleor/static/dashboard/scss/components/_buttons.scssindex 9ed86654b3..65f49bd43f 100644--- a/saleor/static/dashboard/scss/components/_buttons.scss+++ b/saleor/static/dashboard/scss/components/_buttons.scss@@ -40,3 +40,15 @@.bulk-submit {margin-top: 25px;}++.btn-fab {+ &-fixed {+ @extend .fixed-action-btn;+ &-default {+ @extend .btn-fab;+ @extend .btn-floating;+ @extend .btn-large;+ @extend .waves-effect;+ @extend .waves-light;+ }+}diff --git a/templates/dashboard/category/list.html b/templates/dashboard/category/list.htmlindex 9ad7949103..083750a062 100644--- a/templates/dashboard/category/list.html+++ b/templates/dashboard/category/list.html@@ -20,8 +20,8 @@{% block header_extra %}{% if perms.product.edit_category %}- <div class="fixed-action-btn">- <a class="btn-fab btn-floating btn-large waves-effect waves-light"+ <div class="btn-fab-fixed">+ <a class="btn-fab-default waves-effect waves-light"title="{% trans 'Add category' context 'Category list add button text' %}"href="{% url 'dashboard:category-add' %}"><svg data-src="{% static 'dashboard/images/add.svg' %}"/>diff --git a/templates/dashboard/discount/sale/list.html b/templates/dashboard/discount/sale/list.htmlindex c1588017ce..669a597c17 100644--- a/templates/dashboard/discount/sale/list.html+++ b/templates/dashboard/discount/sale/list.html@@ -25,8 +25,8 @@{% block content %}{% if perms.discount.edit_sale %}- <div class="fixed-action-btn">- <a href="{% url 'dashboard:sale-add' %}" class="btn-fab btn-floating btn-large waves-effect waves-light"+ <div class="btn-fab-fixed">+ <a href="{% url 'dashboard:sale-add' %}" class="btn-fab-default waves-effect waves-light"title="{% trans "Add sale" context "Sale (discount) list add button text" %}"><svg data-src="{% static "dashboard/images/add.svg" %}" /></a>diff --git a/templates/dashboard/discount/voucher/list.html b/templates/dashboard/discount/voucher/list.htmlindex b68193352d..c401e9dd09 100644--- a/templates/dashboard/discount/voucher/list.html+++ b/templates/dashboard/discount/voucher/list.html@@ -26,8 +26,8 @@{% block content %}{% if perms.discount.edit_voucher %}- <div class="fixed-action-btn">- <a href="{% url 'dashboard:voucher-add' %}" class="btn-fab btn-floating btn-large waves-effect waves-light"+ <div class="btn-fab-fixed">+ <a href="{% url 'dashboard:voucher-add' %}" class="btn-fab-default waves-effect waves-light"title="{% trans "Add voucher" context "Voucher list add button text" %}"><svg data-src="{% static "dashboard/images/add.svg" %}" /></a>diff --git a/templates/dashboard/group/list.html b/templates/dashboard/group/list.htmlindex 8fa42b441e..4376276373 100644--- a/templates/dashboard/group/list.html+++ b/templates/dashboard/group/list.html@@ -16,8 +16,8 @@{% block header_extra %}{% if perms.userprofile.edit_group %}- <div class="fixed-action-btn">- <a class="btn-fab btn-floating btn-large waves-effect waves-light"+ <div class="btn-fab-fixed">+ <a class="btn-fab-default waves-effect waves-light"title="{% trans "Add group" context "Group list add button text" %}"href="{% url 'dashboard:group-create' %}"><svg data-src="{% static "dashboard/images/add.svg" %}" />diff --git a/templates/dashboard/product/list.html b/templates/dashboard/product/list.htmlindex 1dd7b4718d..a34f24419e 100644--- a/templates/dashboard/product/list.html+++ b/templates/dashboard/product/list.html@@ -18,13 +18,13 @@{% block header_extra %}{% if product_classes %}{% if perms.product.edit_product %}- <div class="fixed-action-btn">+ <div class="btn-fab-fixed">{% if product_classes|length > 1 %}- <a class="btn-fab btn-floating btn-large waves-effect waves-light modal-trigger" href="#modal-product-class" title="{% trans "Add product" context "Product list add button text" %}">+ <a class="btn-fab-default waves-effect waves-light modal-trigger" href="#modal-product-class" title="{% trans "Add product" context "Product list add button text" %}"><svg data-src="{% static "dashboard/images/add.svg" %}" /></a>{% else %}- <a class="btn-fab btn-floating btn-large waves-effect waves-light modal-trigger" href="{% url 'dashboard:product-add' product_classes.0.pk %}" title="{% trans "Add product" context "Product list add button text" %}">+ <a class="btn-fab-default waves-effect waves-light modal-trigger" href="{% url 'dashboard:product-add' product_classes.0.pk %}" title="{% trans "Add product" context "Product list add button text" %}"><svg data-src="{% static "dashboard/images/add.svg" %}" /></a>{% endif %}diff --git a/templates/dashboard/product/product_attribute/list.html b/templates/dashboard/product/product_attribute/list.htmlindex f39448182e..de868581ea 100644--- a/templates/dashboard/product/product_attribute/list.html+++ b/templates/dashboard/product/product_attribute/list.html@@ -15,8 +15,8 @@{% block header_extra %}{% if perms.product.edit_properties %}- <div class="fixed-action-btn">- <a class="btn-fab btn-floating btn-large waves-effect waves-light" href="{% url 'dashboard:product-attribute-add' %}" title="{% trans "Add attribute" context "Attribute list add button text" %}">+ <div class="btn-fab-fixed">+ <a class="btn-fab-default waves-effect waves-light" href="{% url 'dashboard:product-attribute-add' %}" title="{% trans "Add attribute" context "Attribute list add button text" %}"><svg data-src="{% static "dashboard/images/add.svg" %}" /></a></div>diff --git a/templates/dashboard/product/product_class/list.html b/templates/dashboard/product/product_class/list.htmlindex 8d91537f66..e7f3a808e2 100644--- a/templates/dashboard/product/product_class/list.html+++ b/templates/dashboard/product/product_class/list.html@@ -16,8 +16,8 @@{% block header_extra %}{% if perms.product.edit_properties %}- <div class="fixed-action-btn">- <a class="btn-fab btn-floating btn-large waves-effect waves-light" title="{% trans "Add product type" context "Product type list add button text" %}" href="{% url 'dashboard:product-class-add' %}">+ <div class="btn-fab-fixed">+ <a class="btn-fab-default waves-effect waves-light" title="{% trans "Add product type" context "Product type list add button text" %}" href="{% url 'dashboard:product-class-add' %}"><svg data-src="{% static "dashboard/images/add.svg" %}" /></a></div>diff --git a/templates/dashboard/product/product_image/list.html b/templates/dashboard/product/product_image/list.htmlindex 29dff0c950..384034fd01 100644--- a/templates/dashboard/product/product_image/list.html+++ b/templates/dashboard/product/product_image/list.html@@ -123,8 +123,8 @@</li></script></div>- <div class="fixed-action-btn">- <a class="btn-fab btn-floating btn-large waves-effect waves-light" id="images-btn" href="{% url 'dashboard:product-image-add' product_pk=product.pk %}" title="{% trans "Add image" context "Add image button text" %}">+ <div class="btn-fab-fixed">+ <a class="btn-fab-default waves-effect waves-light" id="images-btn" href="{% url 'dashboard:product-image-add' product_pk=product.pk %}" title="{% trans "Add image" context "Add image button text" %}"><svg data-src="{% static "dashboard/images/add.svg" %}" /></a></div>diff --git a/templates/dashboard/product/stock_location/list.html b/templates/dashboard/product/stock_location/list.htmlindex 349e4c932f..d5c6d4ef14 100644--- a/templates/dashboard/product/stock_location/list.html+++ b/templates/dashboard/product/stock_location/list.html@@ -13,8 +13,8 @@{% block header_extra %}{% if perms.product.edit_stock_location %}- <div class="fixed-action-btn">- <a class="btn-fab btn-floating btn-large waves-effect waves-light" href="{% url 'dashboard:product-stock-location-add' %}" title="{% trans "Add stock location" context "Stock location list add button text" %}">+ <div class="btn-fab-fixed">+ <a class="btn-fab-default waves-effect waves-light" href="{% url 'dashboard:product-stock-location-add' %}" title="{% trans "Add stock location" context "Stock location list add button text" %}"><svg data-src="{% static "dashboard/images/add.svg" %}" /></a></div>diff --git a/templates/dashboard/shipping/list.html b/templates/dashboard/shipping/list.htmlindex 54d0efd708..662569dd6c 100644--- a/templates/dashboard/shipping/list.html+++ b/templates/dashboard/shipping/list.html@@ -24,9 +24,9 @@{% block content %}{% if perms.shipping.edit_shipping %}- <div class="fixed-action-btn">+ <div class="btn-fab-fixed"><a href="{% url 'dashboard:shipping-method-add' %}"- class="btn-fab btn-floating btn-large waves-effect waves-light"+ class="btn-fab-default waves-effect waves-light"title="{% trans "Add method" context "Shipping method list add button text" %}"><svg data-src="{% static "dashboard/images/add.svg" %}" /></a>diff --git a/templates/dashboard/staff/list.html b/templates/dashboard/staff/list.htmlindex 23c70be26a..0ea3c94cfb 100644--- a/templates/dashboard/staff/list.html+++ b/templates/dashboard/staff/list.html@@ -16,8 +16,8 @@{% block header_extra %}{% if perms.userprofile.edit_staff %}- <div class="fixed-action-btn">- <a class="btn-fab btn-floating btn-large waves-effect waves-light"+ <div class="btn-fab-fixed">+ <a class="btn-fab-default waves-effect waves-light"title="{% trans "Add staff member" context "Staff members list add button text" %}"href="{% url 'dashboard:staff-create' %}"><svg data-src="{% static "dashboard/images/add.svg" %}" />