Skip to content

Commit

Permalink
Fix date and styling issues
Browse files Browse the repository at this point in the history
  • Loading branch information
trymebytes committed Feb 20, 2024
1 parent 7b0ef0b commit d15182f
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 5 deletions.
17 changes: 14 additions & 3 deletions assets/css/translation-events.css
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,6 @@ input[type="submit"].attending-btn {
font-weight: 500;
font-size: .9em;
}
.event-stats-summary:hover {
border: thin solid #e0dcdc;
}
.event-stats-summary p.event-stats-text {
margin: 0;
background: #f8f8f8;
Expand All @@ -212,3 +209,17 @@ input[type="submit"].attending-btn {
border-top: thin solid #e0e0e0;
font-family: monospace;
}
time.event-utc-time {
display: block;
font-size: .95em;
}
.event-utc-time:first-of-type{
border-bottom: #cdcdcd thin solid;
padding-bottom: 0.5em;
margin-bottom: 0.5em;
}
span.event-details-date-label {
font-weight: bold;
color: #5a5a5a;
display: block;
}
2 changes: 1 addition & 1 deletion assets/js/translation-events.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
const options = {
weekday: 'short',
year: 'numeric',
month: 'long',
month: 'short',
day: 'numeric',
hour: 'numeric',
minute: 'numeric',
Expand Down
5 changes: 4 additions & 1 deletion templates/event.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,10 @@
</div>
<div class="event-details-right">
<div class="event-details-date">
<p><span class="dashicons dashicons-clock"></span> <time class="event-utc-time" datetime="<?php echo esc_attr( $event_start ); ?>"></time> - <time class="event-utc-time" datetime="<?php echo esc_attr( $event_end ); ?>"></time></p>
<p>
<span class="event-details-date-label">Starts:</span> <time class="event-utc-time" datetime="<?php echo esc_attr( $event_start ); ?>"></time>
<span class="event-details-date-label">Ends:</span><time class="event-utc-time" datetime="<?php echo esc_attr( $event_end ); ?>"></time>
</p>
</div>
<?php if ( is_user_logged_in() ) : ?>
<div class="event-details-join">
Expand Down

0 comments on commit d15182f

Please sign in to comment.