Skip to content

Commit 89038c9

Browse files
committed
Fix aesthetics in button for adding event to Google Calendar
1 parent e357f73 commit 89038c9

2 files changed

Lines changed: 17 additions & 4 deletions

File tree

apps/events/static/events/css/event/schedule.scss

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,15 @@
162162
.not-closed-schedule {
163163
margin-top: 1rem;
164164
i {
165-
margin-right: .3rem;
165+
margin-right: 0.3rem;
166+
}
167+
}
168+
169+
.section-detail {
170+
text-align: center;
171+
172+
a#add-to-google-calendar {
173+
font-size: medium;
166174
}
167175
}
168176
}

apps/events/templates/events/event.html

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,15 +128,20 @@ <h1 class="title section-title dyn-anchor-heading">
128128
Agenda
129129
<a class="dyn-anchor-link" href="#schedule"><i class="fas fa-link"></i></a>
130130
</p>
131-
<p class="section-detail"><i class="far fa-calendar-alt"></i> {{ event.start_date|as_short_date }}</p>
132-
<a target="_blank" href="{{ event.get_google_calendar_url }}">Añadir a Google Calendar</a>
131+
</h1>
132+
133+
<div class="section-detail">
134+
<p><i class="far fa-calendar-alt"></i> {{ event.start_date|as_short_date }}</p>
135+
136+
<a id="add-to-google-calendar" target="_blank" href="{{ event.get_google_calendar_url }}"><i class="far fa-calendar-plus"></i> Añadir a Google Calendar</a>
137+
133138
{% if event.schedule_for_display and not event.closed_schedule %}
134139
<span class="tag is-warning is-medium not-closed-schedule">
135140
<i class="fas fa-info-circle"></i>
136141
La agenda aún no está cerrada!
137142
</span>
138143
{% endif %}
139-
</h1>
144+
</div>
140145

141146
<div class="schedule-table">
142147
{% for row in event.schedule_for_display %}

0 commit comments

Comments
 (0)