Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix incorrect colors, paddings
Krzysztof Białogłowicze9798bfd10d7
diff --git a/saleor/static/scss/dashboard/components/_nav.scss b/saleor/static/scss/dashboard/components/_nav.scssindex d1a01b0ac1..77d1ce5cd0 100644--- a/saleor/static/scss/dashboard/components/_nav.scss+++ b/saleor/static/scss/dashboard/components/_nav.scss@@ -162,7 +162,7 @@ header {}.subheader {- background-color: $primary-color;+ background-color: $primary-color-light;height: $subheader-height;margin-top: 0;.container {@@ -170,6 +170,7 @@ header {max-width: none;height: $subheader-height;.breadcrumbs {+ transition: margin .1s;margin-left: 40px;@media (max-width: $small-screen) {margin-left: 15px;diff --git a/saleor/static/scss/dashboard/dashboard.scss b/saleor/static/scss/dashboard/dashboard.scssindex 8242e6c16a..b00cbddb48 100644--- a/saleor/static/scss/dashboard/dashboard.scss+++ b/saleor/static/scss/dashboard/dashboard.scss@@ -88,6 +88,10 @@ $roboto-font-path: "~materialize-css/fonts/roboto/";}.btn-data-table {+ &:hover {+ background: $button-flat-color;+ color: #fff;+ }}.fixed-action-btn {diff --git a/templates/dashboard/shipping/method_list.html b/templates/dashboard/shipping/method_list.htmlindex 2cafa99072..4a8d84009f 100644--- a/templates/dashboard/shipping/method_list.html+++ b/templates/dashboard/shipping/method_list.html@@ -17,44 +17,47 @@{% block content %}{% if shipping_methods %}- <div class="card">- <div class="data-table-header-action">- <a href="{% url 'dashboard:shipping-method-add' %}" class="btn-data-table btn-flat" title="{% trans "Add method" context "Shipping method list add button text" %}">- {% trans "Add" context "Product form variants tab table action" %}- </a>- </div>- <div class="data-table-container">- <table class="bordered highlight responsive data-table">- <thead>- <tr>- <th>{% trans "Name" context "Shipping methods table header" %}</th>- <th>{% trans "Price range" context "Shipping methods table header" %}</th>- <th class="wide">{% trans "Countries" context "Shipping methods table header" %}</th>- </tr>- </thead>- <tbody>- {% for method in shipping_methods %}- <tr>- <td>- <a href="{% url 'dashboard:shipping-method-detail' pk=method.pk %}">{{ method }}</a>- </td>- <td>- {% if not method.price_range %}- -- {% elif method.price_range.min_price == method.price_range.max_price %}- {% gross method.price_range.min_price html=True %}- {% else %}- {% gross method.price_range.min_price html=True %}–{% gross method.price_range.max_price html=True %}- {% endif %}- </td>- <td>{{ method.countries|join:", " }}</td>- </tr>- {% endfor %}- </tbody>- </table>+ <div class="row">+ <div class="col s12">+ <div class="card">+ <div class="data-table-header-action">+ <a href="{% url 'dashboard:shipping-method-add' %}" class="btn-data-table btn-flat" title="{% trans "Add method" context "Shipping method list add button text" %}">+ {% trans "Add" context "Product form variants tab table action" %}+ </a>+ </div>+ <div class="data-table-container">+ <table class="bordered highlight responsive data-table">+ <thead>+ <tr>+ <th>{% trans "Name" context "Shipping methods table header" %}</th>+ <th>{% trans "Price range" context "Shipping methods table header" %}</th>+ <th class="wide">{% trans "Countries" context "Shipping methods table header" %}</th>+ </tr>+ </thead>+ <tbody>+ {% for method in shipping_methods %}+ <tr>+ <td>+ <a href="{% url 'dashboard:shipping-method-detail' pk=method.pk %}">{{ method }}</a>+ </td>+ <td>+ {% if not method.price_range %}+ -+ {% elif method.price_range.min_price == method.price_range.max_price %}+ {% gross method.price_range.min_price html=True %}+ {% else %}+ {% gross method.price_range.min_price html=True %}–{% gross method.price_range.max_price html=True %}+ {% endif %}+ </td>+ <td>{{ method.countries|join:", " }}</td>+ </tr>+ {% endfor %}+ </tbody>+ </table>+ </div>+ </div></div></div>-{% include "dashboard/includes/_pagination.html" %}{% else %}<p>{% trans "No shipping methods found." context "Empty Shipping methods table" %}</p>