From: Anthony Talarico Date: Fri, 5 Jan 2018 15:01:55 +0000 (-0500) Subject: adding visual separation between each attendee in the cart summary X-Git-Tag: v1.0.0^2~89 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=c5518ebf780f0dc964a181221af679dc72ec75b3;p=WP-Plugins%2Fglm-member-db-registrations.git adding visual separation between each attendee in the cart summary front cart summary , using visual backgrounds to help separate each line item --- diff --git a/css/front.css b/css/front.css index 251165f..46de5bb 100644 --- a/css/front.css +++ b/css/front.css @@ -2,7 +2,9 @@ /*{{{ Temp replacement for glm-row without max-width and other checkout form tampering */ - +.glm-bold{ + font-weight: bold; +} .glm-reg-event-profile-details { } .reg-cart-summary-edit{ @@ -858,6 +860,13 @@ span.glm-error { #accountHeader #glm-header-reg-widget a { text-decoration: none; } +.glm-reg-cart-registrant-item:nth-child(odd){ + background-color: rgba(66,162,208, .1); +} +.glm-reg-cart-registrant-item{ + margin: 5px 0; + clear: both; +} /*#accountHeader .glm-reg-header-btn{ font-size: 16px; height: 60px; @@ -998,6 +1007,7 @@ span.glm-error { .reg-class-time:not(:last-child){ border-bottom: 1px solid lightgrey; } + @media(max-width: 1024px) { /* #glm-header-reg-widget a{ display: block; @@ -1045,6 +1055,8 @@ span.glm-error { } hr.glm-reg-class-separator{ max-width: 98%; + margin: .5rem auto; + border: none; } .glm-reg-cart-total{ font-size: 22px; @@ -1053,8 +1065,15 @@ hr.glm-reg-class-separator{ .glm-reg-cart-total-attendees{ font-size: 24px; } +.glm-reg-cart-summary-custom-fields,.glm-reg-cart-custom-charge{ + margin-top: -2px; +} + /* MOBILE ONLY ----------*/ @media(max-width: 640px){ + .glm-reg-cart-registrant-item{ + padding-bottom: 5px; + } .glm-reg-date::before{ left: 10px; } @@ -1157,6 +1176,10 @@ hr.glm-reg-class-separator{ } .glm-reg-cart-summary-custom-fields{ padding-left: 30px; + margin-top: -5px; + } + .glm-reg-cart-custom-charge{ + margin-top: -5px; } } @@ -1248,7 +1271,7 @@ hr.glm-reg-class-separator{ font-size: 0.875rem; } .glm-reg-cart-event-container { - padding-bottom: 10px + padding-bottom: 0px } .glm-reg-cart-event-class > div { font-size: 16px; diff --git a/views/front/registrations/cartSummary.html b/views/front/registrations/cartSummary.html index 2821c1a..23c7ee1 100644 --- a/views/front/registrations/cartSummary.html +++ b/views/front/registrations/cartSummary.html @@ -44,7 +44,7 @@
Registration Level: {$class.class_name}
-
+
Charges
@@ -60,7 +60,9 @@ --> {/if} + {foreach $rate.registrants as $registrant} +
{$terms.reg_term_attendee_cap}: {$registrant.fname} {$registrant.lname} @@ -89,11 +91,11 @@ {$customField.stored}
{if $customField.cost > 0} -
+
${$customField.cost|number_format:2}
{/if} -
+
{/if} {/foreach} {/if} @@ -107,7 +109,9 @@
{/if} + {/foreach} {* registrants *} + {/foreach} {* rates *}
{/foreach} {* classes *}