forked from CGM_Public/pretix_original
Clean up alignment on shop page (#2025)
This commit is contained in:
@@ -17,10 +17,10 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% for item in tup.1 %}
|
{% for item in tup.1 %}
|
||||||
{% if item.has_variations %}
|
{% if item.has_variations %}
|
||||||
<article>
|
<article class="item-with-variations">
|
||||||
<details class="item-with-variations" {% if event.settings.show_variations_expanded %}open{% endif %}
|
<details {% if event.settings.show_variations_expanded %}open{% endif %}
|
||||||
id="item-{{ item.id }}">
|
id="item-{{ item.id }}">
|
||||||
<summary class="row-fluid product-row headline">
|
<summary class="row product-row headline">
|
||||||
<div class="col-md-8 col-xs-12">
|
<div class="col-md-8 col-xs-12">
|
||||||
{% if item.picture %}
|
{% if item.picture %}
|
||||||
<a href="{{ item.picture.url }}" class="productpicture"
|
<a href="{{ item.picture.url }}" class="productpicture"
|
||||||
@@ -78,7 +78,7 @@
|
|||||||
</summary>
|
</summary>
|
||||||
<div class="variations {% if not event.settings.show_variations_expanded %}variations-collapsed{% endif %}">
|
<div class="variations {% if not event.settings.show_variations_expanded %}variations-collapsed{% endif %}">
|
||||||
{% for var in item.available_variations %}
|
{% for var in item.available_variations %}
|
||||||
<article class="row-fluid product-row variation">
|
<article class="row product-row variation">
|
||||||
<div class="col-md-8 col-xs-12">
|
<div class="col-md-8 col-xs-12">
|
||||||
<h5>
|
<h5>
|
||||||
<label for="variation_{{ item.pk }}_{{ var.pk }}">
|
<label for="variation_{{ item.pk }}_{{ var.pk }}">
|
||||||
@@ -179,7 +179,7 @@
|
|||||||
</details>
|
</details>
|
||||||
</article>
|
</article>
|
||||||
{% else %}
|
{% else %}
|
||||||
<article class="row-fluid product-row simple" id="item-{{ item.id }}">
|
<article class="row product-row simple" id="item-{{ item.id }}">
|
||||||
<div class="col-md-8 col-xs-12">
|
<div class="col-md-8 col-xs-12">
|
||||||
{% if item.picture %}
|
{% if item.picture %}
|
||||||
<a href="{{ item.picture.url }}" class="productpicture"
|
<a href="{{ item.picture.url }}" class="productpicture"
|
||||||
|
|||||||
@@ -271,7 +271,7 @@
|
|||||||
{% include "pretixpresale/event/fragment_product_list.html" %}
|
{% include "pretixpresale/event/fragment_product_list.html" %}
|
||||||
{% if ev.presale_is_running and display_add_to_cart %}
|
{% if ev.presale_is_running and display_add_to_cart %}
|
||||||
<section class="front-page">
|
<section class="front-page">
|
||||||
<div class="row-fluid">
|
<div class="row">
|
||||||
<div class="col-md-4 col-md-offset-8 col-xs-12">
|
<div class="col-md-4 col-md-offset-8 col-xs-12">
|
||||||
<button class="btn btn-block btn-primary btn-lg" type="submit" id="btn-add-to-cart">
|
<button class="btn btn-block btn-primary btn-lg" type="submit" id="btn-add-to-cart">
|
||||||
{% if request.event.settings.redirect_to_checkout_directly %}
|
{% if request.event.settings.redirect_to_checkout_directly %}
|
||||||
@@ -302,7 +302,7 @@
|
|||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<form method="get" action="{% eventurl event "presale:event.redeem" cart_namespace=cart_namespace %}">
|
<form method="get" action="{% eventurl event "presale:event.redeem" cart_namespace=cart_namespace %}">
|
||||||
<div class="row-voucher">
|
<div class="row row-voucher">
|
||||||
<div class="col-md-8 col-sm-6 col-xs-12">
|
<div class="col-md-8 col-sm-6 col-xs-12">
|
||||||
<label for="voucher" class="sr-only">{% trans "Voucher code" %}</label>
|
<label for="voucher" class="sr-only">{% trans "Voucher code" %}</label>
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
@@ -326,7 +326,7 @@
|
|||||||
{% eventsignal event "pretix.presale.signals.front_page_bottom" subevent=subevent request=request %}
|
{% eventsignal event "pretix.presale.signals.front_page_bottom" subevent=subevent request=request %}
|
||||||
<aside class="front-page" aria-labelledby="if-you-already-ordered-a-ticket">
|
<aside class="front-page" aria-labelledby="if-you-already-ordered-a-ticket">
|
||||||
<h3 id="if-you-already-ordered-a-ticket">{% trans "If you already ordered a ticket" %}</h3>
|
<h3 id="if-you-already-ordered-a-ticket">{% trans "If you already ordered a ticket" %}</h3>
|
||||||
<div>
|
<div class="row">
|
||||||
<div class="col-md-8 col-xs-12">
|
<div class="col-md-8 col-xs-12">
|
||||||
<p>
|
<p>
|
||||||
{% blocktrans trimmed %}
|
{% blocktrans trimmed %}
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
.product-row {
|
.product-row {
|
||||||
border-top: 1px solid $table-border-color;
|
|
||||||
.addons &:first-child {
|
.addons &:first-child {
|
||||||
border-top: 2px solid $table-border-color;
|
border-top: 2px solid $table-border-color;
|
||||||
}
|
}
|
||||||
@@ -84,6 +83,43 @@
|
|||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
position: relative;
|
||||||
|
|
||||||
|
border-top: 1px solid transparent;
|
||||||
|
&::before {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 15px;
|
||||||
|
width: calc(100% - 30px);
|
||||||
|
content: '';
|
||||||
|
border-top: 1px solid $table-border-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.headline, &.simple {
|
||||||
|
border-top: 2px solid transparent;
|
||||||
|
&::before {
|
||||||
|
border-top: 2px solid $table-border-color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
article.item-with-variations {
|
||||||
|
margin: 0 -15px;
|
||||||
|
padding: 0 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
article.item-with-variations:last-child, .product-row:last-child {
|
||||||
|
position: relative;
|
||||||
|
border-bottom: 2px solid transparent;
|
||||||
|
&::after {
|
||||||
|
position: absolute;
|
||||||
|
bottom: 0;
|
||||||
|
left: 15px;
|
||||||
|
width: calc(100% - 30px);
|
||||||
|
content: '';
|
||||||
|
border-bottom: 2px solid $table-border-color;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.radio .variation-description {
|
.radio .variation-description {
|
||||||
@@ -101,12 +137,6 @@
|
|||||||
#voucher-toggle {
|
#voucher-toggle {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
.item-with-variations .product-row.headline, .product-row.simple {
|
|
||||||
border-top: 2px solid $table-border-color;
|
|
||||||
}
|
|
||||||
.item-with-variations:last-child {
|
|
||||||
border-bottom: 2px solid $table-border-color;
|
|
||||||
}
|
|
||||||
|
|
||||||
.panel-body address:last-child {
|
.panel-body address:last-child {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user