Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Fix buttons style

Krzysztof Białogłowicz50951ae11a75
diff --git a/saleor/static/scss/dashboard/components/_buttons.scss b/saleor/static/scss/dashboard/components/_buttons.scss
index 82aba42e92..b0118b1d30 100644
--- a/saleor/static/scss/dashboard/components/_buttons.scss
+++ b/saleor/static/scss/dashboard/components/_buttons.scss
@@ -1,25 +1,5 @@
.btn-flat {
- &.primary {
- background: $button-flat-color;
- color: #fff;
- transition: transform $transition-duration, box-shadow $transition-duration;
- &:hover {
- box-shadow: 0px 2px 9px -2px rgba(0,0,0,0.75);
- }
- }
-}
-
-.fixed-action-btn {
- padding: 0;
-}
-
-.btn-fab {
- transition: transform $transition-duration, box-shadow $transition-duration;
- i {
- &:before {
- transition: font-size $transition-duration;
- }
- }
+ color: $secondary-color;
}
.btn-fab.btn-fab-hidden {
diff --git a/saleor/static/scss/dashboard/components/_tabs.scss b/saleor/static/scss/dashboard/components/_tabs.scss
index 7aea16a91e..226bea35d1 100644
--- a/saleor/static/scss/dashboard/components/_tabs.scss
+++ b/saleor/static/scss/dashboard/components/_tabs.scss
@@ -1,4 +1,5 @@
@mixin tabs {
+ background: none;
li {
a {
span {
diff --git a/templates/dashboard/category/detail.html b/templates/dashboard/category/detail.html
index 2f0f5d206a..76ddb99f3b 100644
--- a/templates/dashboard/category/detail.html
+++ b/templates/dashboard/category/detail.html
@@ -84,11 +84,11 @@
</a>
{% endif %}
{% if category.pk %}
- <button type="submit" class="btn btn-flat primary">
+ <button type="submit" class="btn waves-effect waves-light">
{% trans "Update" context "Category form primary action" %}
</button>
{% else %}
- <button type="submit" class="btn btn-flat primary">
+ <button type="submit" class="btn waves-effect waves-light">
{% trans "Create" context "Category form primary action" %}
</button>
{% endif %}
diff --git a/templates/dashboard/discount/sale_form.html b/templates/dashboard/discount/sale_form.html
index e953b62815..f4b2a5e5ae 100644
--- a/templates/dashboard/discount/sale_form.html
+++ b/templates/dashboard/discount/sale_form.html
@@ -97,14 +97,14 @@
<a href="{% url 'dashboard:sale-list' %}" class="btn btn-flat">
{% trans "Cancel" context "Sale (discount) secondary action" %}
</a>
- <button type="submit" class="btn btn-flat primary">
+ <button type="submit" class="btn waves-effect waves-light">
{% trans "Update" context "Sale (discount) primary action" %}
</button>
{% else %}
<a href="{% url 'dashboard:sale-list' %}" class="btn btn-flat">
{% trans "Cancel" context "Sake (discount) secondary action" %}
</a>
- <button type="submit" class="btn btn-flat primary">
+ <button type="submit" class="btn waves-effect waves-light">
{% trans "Create" context "Sale (discount) primary action" %}
</button>
{% endif %}
diff --git a/templates/dashboard/discount/voucher_form.html b/templates/dashboard/discount/voucher_form.html
index d8e973d7c3..4e6be77203 100644
--- a/templates/dashboard/discount/voucher_form.html
+++ b/templates/dashboard/discount/voucher_form.html
@@ -126,14 +126,14 @@
<a href="{% url 'dashboard:voucher-list' %}" class="btn btn-flat">
{% trans "Cancel" context "Voucher form secondary action" %}
</a>
- <button type="submit" class="btn btn-flat primary">
+ <button type="submit" class="btn waves-effect waves-light">
{% trans "Update" context "Voucher form primary action" %}
</button>
{% else %}
<a href="{% url 'dashboard:voucher-list' %}" class="btn btn-flat">
{% trans "Cancel" context "Voucher form secondary action" %}
</a>
- <button type="submit" class="btn btn-flat primary">
+ <button type="submit" class="btn waves-effect waves-light">
{% trans "Create" context "Voucher form primary action" %}
</button>
{% endif %}
diff --git a/templates/dashboard/order/address_form.html b/templates/dashboard/order/address_form.html
index 0d0549395c..e9999c9737 100644
--- a/templates/dashboard/order/address_form.html
+++ b/templates/dashboard/order/address_form.html
@@ -60,7 +60,7 @@
<a href="{% url "dashboard:order-details" order_pk=order.pk %}" class="btn btn-flat">
{% trans "Cancel" context "Address form secondary action" %}
</a>
- <button type="submit" class="btn btn-flat primary">
+ <button type="submit" class="btn waves-effect waves-light">
{% trans "Update" context "Address primary action" %}
</button>
</div>
diff --git a/templates/dashboard/order/detail.html b/templates/dashboard/order/detail.html
index 7c6f8640c1..206a64b490 100644
--- a/templates/dashboard/order/detail.html
+++ b/templates/dashboard/order/detail.html
@@ -210,7 +210,7 @@
{% include 'dashboard/includes/_address.html' with address=address only %}
</div>
<div class="card-action">
- <a class="btn-flat" href="{% url "dashboard:address-edit" order_pk=order.pk address_type="shipping" %}">
+ <a class="btn btn-flat" href="{% url "dashboard:address-edit" order_pk=order.pk address_type="shipping" %}">
{% trans "Edit" context "Shipping address card action" %}
</a>
</div>
@@ -228,7 +228,7 @@
{% endwith %}
</div>
<div class="card-action">
- <a href="{% url "dashboard:address-edit" order_pk=order.pk address_type="billing" %}" class=" btn-flat">
+ <a href="{% url "dashboard:address-edit" order_pk=order.pk address_type="billing" %}" class="btn btn-flat">
{% trans "Edit" context "Billing address card action" %}</a>
</div>
</div>
@@ -431,7 +431,7 @@
{% endif %}
</div>
<div class="card-action">
- <a data-href="{% url "dashboard:order-add-note" order_pk=order.pk %}" class="modal-trigger-custom btn-flat" href="#base-modal">
+ <a data-href="{% url "dashboard:order-add-note" order_pk=order.pk %}" class="modal-trigger-custom btn btn-flat" href="#base-modal">
{% trans "Add note" context "Order notes card action" %}
</a>
</div>
diff --git a/templates/dashboard/product/attributes/form.html b/templates/dashboard/product/attributes/form.html
index 92df1cbf12..23f411f8e6 100644
--- a/templates/dashboard/product/attributes/form.html
+++ b/templates/dashboard/product/attributes/form.html
@@ -114,14 +114,14 @@
<a href="{% url 'dashboard:product-attributes' %}" class="btn btn-flat">
{% trans "Cancel" context "Attribute secondary action" %}
</a>
- <button type="submit" class="btn btn-flat primary">
+ <button type="submit" class="btn waves-effect waves-light">
{% trans "Update" context "Attribute values formset action" %}
</button>
{% else %}
<a href="{% url 'dashboard:product-attributes' %}" class="btn btn-flat">
{% trans "Cancel" context "Attribute secondary action" %}
</a>
- <button type="submit" class="btn btn-flat primary">
+ <button type="submit" class="btn waves-effect waves-light">
{% trans "Create" context "Attribute values formset action" %}
</button>
{% endif %}
diff --git a/templates/dashboard/product/product_class_form.html b/templates/dashboard/product/product_class_form.html
index a794c46bd8..ba81d39d19 100644
--- a/templates/dashboard/product/product_class_form.html
+++ b/templates/dashboard/product/product_class_form.html
@@ -97,14 +97,14 @@
<a href="{% url 'dashboard:product-class-list' %}" class="btn btn-flat">
{% trans "Cancel" context "Product class secondary action" %}
</a>
- <button type="submit" class="btn btn-flat primary">
+ <button type="submit" class="btn waves-effect waves-light">
{% trans "Update" context "Product class primary action" %}
</button>
{% else %}
<a href="{% url 'dashboard:product-class-list' %}" class="btn btn-flat">
{% trans "Cancel" context "Product class secondary action" %}
</a>
- <button type="submit" class="btn btn-flat primary">
+ <button type="submit" class="btn waves-effect waves-light">
{% trans "Create" context "Product class primary action" %}
</button>
{% endif %}
diff --git a/templates/dashboard/product/product_form.html b/templates/dashboard/product/product_form.html
index 34a5b146c7..9bf6134d1d 100644
--- a/templates/dashboard/product/product_form.html
+++ b/templates/dashboard/product/product_form.html
@@ -162,14 +162,14 @@
<a href="{% url 'dashboard:product-list' %}" class="btn btn-flat">
{% trans "Cancel" context "Product form secondary action" %}
</a>
- <button type="submit" class="btn btn-flat primary">
+ <button type="submit" class="btn waves-effect waves-light">
{% trans "Update" context "Product form details tab action" %}
</button>
{% else %}
<a href="{% url 'dashboard:product-list' %}" class="btn btn-flat">
{% trans "Cancel" context "Product form secondary action" %}
</a>
- <button type="submit" class="btn btn-flat primary">
+ <button type="submit" class="btn waves-effect waves-light">
{% trans "Create" context "Product form details tab action" %}
</button>
{% endif %}
diff --git a/templates/dashboard/product/product_image_form.html b/templates/dashboard/product/product_image_form.html
index 77ea8a4931..bf04ae72e3 100644
--- a/templates/dashboard/product/product_image_form.html
+++ b/templates/dashboard/product/product_image_form.html
@@ -91,14 +91,14 @@
<a href="{% url "dashboard:product-update" pk=product.pk %}#images" class="btn btn-flat">
{% trans "Cancel" context "Image form secondary action" %}
</a>
- <button type="submit" class="btn btn-flat primary">
+ <button type="submit" class="btn waves-effect waves-light">
{% trans "Update" context "Image form primary action" %}
</button>
{% else %}
<a href="{% url "dashboard:product-update" pk=product.pk %}#images" class="btn btn-flat">
{% trans "Cancel" context "Image form secondary action" %}
</a>
- <button type="submit" class="btn btn-flat primary">
+ <button type="submit" class="btn waves-effect waves-light">
{% trans "Create" context "Image form secondary action" %}
</button>
{% endif %}
diff --git a/templates/dashboard/product/stock_form.html b/templates/dashboard/product/stock_form.html
index c1af97e614..261f94429f 100644
--- a/templates/dashboard/product/stock_form.html
+++ b/templates/dashboard/product/stock_form.html
@@ -97,14 +97,14 @@
<a href="{% url "dashboard:product-update" pk=product.pk %}#stock" class="btn btn-flat">
{% trans "Cancel" context "Stock form secondary action" %}
</a>
- <button type="submit" class="btn btn-flat primary">
+ <button type="submit" class="btn waves-effect waves-light">
{% trans "Update" context "Stock form action" %}
</button>
{% else %}
<a href="{% url "dashboard:product-update" pk=product.pk %}#stock" class="btn btn-flat">
{% trans "Cancel" context "Stock form secondary action" %}
</a>
- <button type="submit" class="btn btn-flat primary">
+ <button type="submit" class="btn waves-effect waves-light">
{% trans "Create" context "Stock form action" %}
</button>
{% endif %}
diff --git a/templates/dashboard/product/stock_locations/form.html b/templates/dashboard/product/stock_locations/form.html
index a6e522ab76..10a5234ba0 100644
--- a/templates/dashboard/product/stock_locations/form.html
+++ b/templates/dashboard/product/stock_locations/form.html
@@ -73,14 +73,14 @@
<a href="{% url 'dashboard:product-stock-location-list' %}" class="btn btn-flat">
{% trans "Cancel" context "Product stock location secondary action" %}
</a>
- <button type="submit" class="btn btn-flat primary">
+ <button type="submit" class="btn waves-effect waves-light">
{% trans "Update" context "Stock location detail action" %}
</button>
{% else %}
<a href="{% url 'dashboard:product-stock-location-list' %}" class="btn btn-flat">
{% trans "Cancel" context "Product stock location secondary action" %}
</a>
- <button type="submit" class="btn btn-flat primary">
+ <button type="submit" class="btn waves-effect waves-light">
{% trans "Create" context "Stock location detail action" %}
</button>
{% endif %}
diff --git a/templates/dashboard/product/variant_form.html b/templates/dashboard/product/variant_form.html
index 2f17042bc9..a27582d617 100644
--- a/templates/dashboard/product/variant_form.html
+++ b/templates/dashboard/product/variant_form.html
@@ -99,14 +99,14 @@
<a href="{% url "dashboard:product-update" pk=product.pk %}#variants" class="btn btn-flat">
{% trans "Cancel" context "Variant form secondary action" %}
</a>
- <button type="submit" class="btn btn-flat primary">
+ <button type="submit" class="btn waves-effect waves-light">
{% trans "Update" context "Variant form action" %}
</button>
{% else %}
<a href="{% url "dashboard:product-update" pk=product.pk %}#variants" class="btn btn-flat">
{% trans "Cancel" context "Variant form secondary action" %}
</a>
- <button type="submit" class="btn btn-flat primary">
+ <button type="submit" class="btn waves-effect waves-light">
{% trans "Create" context "Variant form action" %}
</button>
{% endif %}
diff --git a/templates/dashboard/shipping/method_form.html b/templates/dashboard/shipping/method_form.html
index de62c490d9..659cdb7c62 100644
--- a/templates/dashboard/shipping/method_form.html
+++ b/templates/dashboard/shipping/method_form.html
@@ -128,14 +128,14 @@
<a href="{% url 'dashboard:shipping-methods' %}" class="btn btn-flat">
{% trans "Cancel" context "Shipping method form action" %}
</a>
- <button type="submit" class="btn btn-flat primary">
+ <button type="submit" class="btn waves-effect waves-light">
{% trans "Update" context "Shipping method form action" %}
</button>
{% else %}
<a href="{% url 'dashboard:shipping-methods' %}" class="btn btn-flat">
{% trans "Cancel" context "Shipping method form action" %}
</a>
- <button type="submit" class="btn btn-flat primary">
+ <button type="submit" class="btn waves-effect waves-light">
{% trans "Create" context "Shipping method form action" %}
</button>
{% endif %}
diff --git a/templates/dashboard/sites/detail.html b/templates/dashboard/sites/detail.html
index a96311861f..b6fd1c8888 100644
--- a/templates/dashboard/sites/detail.html
+++ b/templates/dashboard/sites/detail.html
@@ -47,7 +47,7 @@
<a class="btn btn-flat" href="{% url "dashboard:index" %}" traget="_blank">
{% trans "Cancel" %}
</a>
- <button type="submit" class="btn btn-flat primary">
+ <button type="submit" class="btn waves-effect waves-light">
{% trans "Update" context "Site settings action" %}
</button>
</div>