From 456de15aea325cec94a6c2c83c01442665670efb Mon Sep 17 00:00:00 2001 From: Raphael Kabo Date: Mon, 5 Feb 2024 21:25:29 +0000 Subject: Styling for hidden attendees elements --- public/css/style.css | 26 ++++++++++++++++++++++++++ views/event.handlebars | 8 ++++---- 2 files changed, 30 insertions(+), 4 deletions(-) diff --git a/public/css/style.css b/public/css/style.css index d50ab11..dd59d6b 100755 --- a/public/css/style.css +++ b/public/css/style.css @@ -187,6 +187,28 @@ body, html { font-weight: bold; } +.attendeesList > li.hidden-attendee { + border: 4px solid #ccc; + background: #eee; +} + +.attendeesList > li.hidden-attendee a { + color: #555; +} + +.hidden-attendees-message { + display: inline-block; + border: 4px solid #ccc; + text-align: center; + border-radius: 2em; + padding: 0.5em 1em; + background: #eee; + color: #555; + font-size: 0.95em; + font-weight: bold; + margin: 0; +} + .expand { -webkit-transition: height 0.2s; -moz-transition: height 0.2s; @@ -321,6 +343,10 @@ body, html { color: #fff; } +li.hidden-attendee .attendee-name { + color: #555; +} + .remove-attendee { color: #fff; } diff --git a/views/event.handlebars b/views/event.handlebars index 2440623..763aa22 100755 --- a/views/event.handlebars +++ b/views/event.handlebars @@ -139,7 +139,7 @@ -
+
{{#if eventData.maxAttendees}} {{#if noMoreSpots}}
This event is at capacity.
@@ -147,20 +147,20 @@
{{spotsRemaining}} {{plural spotsRemaining "spot(s)"}} remaining - add yourself now!
{{/if}} {{/if}} - {{#if visibleAttendees}} + {{#if numberOfAttendees}}
    {{#each visibleAttendees}} {{this.name}}{{#if ../editingEnabled}} {{/if}} {{/each}} {{#if editingEnabled}} {{#each hiddenAttendees}} - {{this.name}} (hidden from public list){{#if ../editingEnabled}} {{/if}} + {{this.name}} (hidden from public list){{#if ../editingEnabled}} {{/if}} {{/each}} {{/if}}
{{#unless editingEnabled}} {{#if numberOfHiddenAttendees}} -

+{{numberOfHiddenAttendees}} hidden attendee{{plural numberOfHiddenAttendees ""}}

+
{{numberOfHiddenAttendees}} hidden attendee{{plural numberOfHiddenAttendees ""}}
{{/if}} {{/unless}} {{else}} -- cgit v1.2.3