Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix dashboard lists styles
Krzysztof Białogłowicz2f69f13285e4
diff --git a/saleor/static/scss/dashboard/components/_list.scss b/saleor/static/scss/dashboard/components/_list.scssindex 27bc03cbda..0f555a3801 100644--- a/saleor/static/scss/dashboard/components/_list.scss+++ b/saleor/static/scss/dashboard/components/_list.scss@@ -1,8 +1,21 @@@mixin list {overflow: visible;+ .collection {+ &-item {+ padding: 0;+ a {+ display: block;+ padding: 10px 20px 0px 20px;+ }+ &:hover {+ background: $collection-hover-bg-color;+ }+ }+ }+& &-item.avatar {- min-height: 64px;+ min-height: auto;&-delete {background: white;@@ -24,7 +37,6 @@}& &-item {- border: none;padding-bottom: 0;position: relative;@@ -34,24 +46,30 @@padding-right: 20px;text-overflow: ellipsis;white-space: nowrap;+ color: $off-black;&--single {margin-bottom: 10px;+ color: $off-black;}}&-price, &-desc, &-name--single {- border-bottom: 1px solid $collection-border-color;margin: 0;padding-bottom: 10px;}+ &-price {+ color: $off-black;+ }+&-desc {@extend .grey-text;margin: 0;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;+ padding-right: 30px;}&-prefix {@@ -63,10 +81,12 @@}&-icon {+ font-size: 16px;opacity: .6;position: absolute;- right: 0;- top: 0;+ right: 20px;;+ top: 50%;+ transform: translateY(-50%);}&--spaced {diff --git a/templates/dashboard/category/list.html b/templates/dashboard/category/list.htmlindex 5dd4d7ad45..fb6b60767c 100644--- a/templates/dashboard/category/list.html+++ b/templates/dashboard/category/list.html@@ -98,21 +98,21 @@<li class="collection-item list-item"><a class="list-item-name" href="{% url "dashboard:category-list" root_pk=node.pk %}">{{ node.name }}- </a>- <p class="list-item-desc">- <span>- {% if node.description %}- {{ node.description }}- {% else %}- - {% endif %}- </span>+ <p class="list-item-desc">+ <span>+ {% if node.description %}+ {{ node.description }}+ {% else %}+ + {% endif %}+ </span></p>- {% if node.hidden %}- <span class="list-item-icon">- <i class="material-icons">visibility_off</i>- </span>- {% endif %}+ {% if node.hidden %}+ <span class="list-item-icon">+ <i class="material-icons">visibility_off</i>+ </span>+ {% endif %}+ </a></li>{% endfor %}</ul>diff --git a/templates/dashboard/product/attributes/list.html b/templates/dashboard/product/attributes/list.htmlindex 123821253a..9496ebb987 100644--- a/templates/dashboard/product/attributes/list.html+++ b/templates/dashboard/product/attributes/list.html@@ -35,13 +35,13 @@<li class="collection-item list-item"><a class="list-item-name" href="{% url 'dashboard:product-attribute-update' pk=pk %}">{{ display }}+ <p class="list-item-desc">+ {% for value in values %}+ {{ value }}+ {% if not forloop.last %}, {% endif %}+ {% endfor %}+ </p></a>- <p class="list-item-desc">- {% for value in values %}- {{ value }}- {% if not forloop.last %}, {% endif %}- {% endfor %}- </p></li>{% endfor %}</ul>diff --git a/templates/dashboard/product/class_list.html b/templates/dashboard/product/class_list.htmlindex e1e41f5360..9788fea2a0 100644--- a/templates/dashboard/product/class_list.html+++ b/templates/dashboard/product/class_list.html@@ -41,21 +41,21 @@<span class="list-item-name">{{ name }}</span>+ <p class="list-item-desc">+ {% trans "Variants" context "Product type item list text" %}:+ {% if has_variants %}+ {% trans "Yes" %}+ {% else %}+ {% trans "No" %}+ {% endif %}+ {% if variant_attributes %}+ · {% trans "Variant attributes" context "Product type item list text" %}: {{ variant_attributes|join:", " }}+ {% endif %}+ {% if product_attributes %}+ · {% trans "Product attributes" context "Product type item list text" %}: {{ product_attributes|join:", " }}+ {% endif %}+ </p></a>- <p class="list-item-desc">- {% trans "Variants" context "Product type item list text" %}:- {% if has_variants %}- {% trans "Yes" %}- {% else %}- {% trans "No" %}- {% endif %}- {% if variant_attributes %}- · {% trans "Variant attributes" context "Product type item list text" %}: {{ variant_attributes|join:", " }}- {% endif %}- {% if product_attributes %}- · {% trans "Product attributes" context "Product type item list text" %}: {{ product_attributes|join:", " }}- {% endif %}- </p></li>{% endfor %}</ul>diff --git a/templates/dashboard/product/list.html b/templates/dashboard/product/list.htmlindex 009cc66c41..f066fa6063 100644--- a/templates/dashboard/product/list.html+++ b/templates/dashboard/product/list.html@@ -39,19 +39,19 @@<ul class="collection list">{% for product in products %}<li class="collection-item avatar list-item">- {% if product.images.exists %}- <img src="{{ product.images.first.image.crop.100x100 }}" alt="" class="circle teal">- {% else %}- <img src="{% static 'images/product-image-placeholder-small.png' %}" alt="" class="circle teal">- {% endif %}- <a class="title" href="{% url 'dashboard:product-update' pk=product.pk %}">- <span class="list-item-name">+ <a href="{% url 'dashboard:product-update' pk=product.pk %}">+ {% if product.images.exists %}+ <img src="{{ product.images.first.image.crop.100x100 }}" alt="" class="circle teal">+ {% else %}+ <img src="{% static 'images/product-image-placeholder-small.png' %}" alt="" class="circle teal">+ {% endif %}+ <span class="title list-item-name">{{ product.name }}</span>+ <p class="list-item-price">+ {% gross product.price html=True %}+ </p></a>- <p class="list-item-price">- {% gross product.price html=True %}- </p></li>{% endfor %}</ul>diff --git a/templates/dashboard/product/stock_locations/list.html b/templates/dashboard/product/stock_locations/list.htmlindex 26bd166d40..b164e102b9 100644--- a/templates/dashboard/product/stock_locations/list.html+++ b/templates/dashboard/product/stock_locations/list.html@@ -34,11 +34,11 @@<ul class="collection list">{% for location in locations %}<li class="collection-item list-item">- <p class="list-item-name--single"><a href="{% url 'dashboard:product-stock-location-edit' location.pk %}">+ <p class="list-item-name--single">{{ location }}+ </p></a>- </p></li>{% endfor %}</ul>