Skip to content

Commit

Permalink
Updating styles
Browse files Browse the repository at this point in the history
  • Loading branch information
randimays committed Sep 30, 2024
1 parent 6e64dd4 commit 8a6feeb
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 24 deletions.
9 changes: 9 additions & 0 deletions src/site/assets/sass/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,15 @@
}
}

.abbreviated-day {
width: 35px;
margin-right: 0;

@media screen and (min-width: 481px) {
margin-right: 5px;
}
}

// START: Styles for mobile app promo banner
#alert-with-additional-info {

Expand Down
50 changes: 26 additions & 24 deletions src/site/includes/hours-item.liquid
Original file line number Diff line number Diff line change
@@ -1,30 +1,32 @@
<li>
{% if headerType == 'clinical' or boldDay == true %}
<b>{{ hours.day | officeHoursDayFormatter }}:</b>
<b class="abbreviated-day">{{ hours.day | officeHoursDayFormatter }}:</b>
{% else %}
<span>{{ hours.day | officeHoursDayFormatter }}.</span>
<span class="abbreviated-day">{{ hours.day | officeHoursDayFormatter }}.</span>
{% endif %}

{% if hours.starthours == hours.endhours and hours.starthours == 0 and !hours.comment %}
Open 24 hours
{% elsif !hours.starthours && !hours.endhours && !hours.comment %}
Closed
{% else %}
{% if hours.starthours == 0 %}
midnight to
{% elsif hours.starthours == 1200 %}
noon to
{% elsif hours.starthours && hours.starthours != -1 %}
{{ hours.starthours | officeHoursTimeFormatter}}
to

<span>
{% if hours.starthours == hours.endhours and hours.starthours == 0 and !hours.comment %}
Open 24 hours
{% elsif !hours.starthours && !hours.endhours && !hours.comment %}
Closed
{% else %}
{% if hours.starthours == 0 %}
midnight to
{% elsif hours.starthours == 1200 %}
noon to
{% elsif hours.starthours && hours.starthours != -1 %}
{{ hours.starthours | officeHoursTimeFormatter}}
to
{% endif %}
{% if hours.endhours == 0 %}
midnight
{% elsif hours.endhours == 1200 %}
noon
{% elsif hours.endhours && hours.endhours != -1 %}
{{ hours.endhours | officeHoursTimeFormatter}}
{% endif %}
{% endif %}
{% if hours.endhours == 0 %}
midnight
{% elsif hours.endhours == 1200 %}
noon
{% elsif hours.endhours && hours.endhours != -1 %}
{{ hours.endhours | officeHoursTimeFormatter}}
{% endif %}
{% endif %}
{{ hours.comment }}
{{ hours.comment }}
</span>
</li>

0 comments on commit 8a6feeb

Please sign in to comment.