Commit 986513d4 authored by Konrad Mohrfeldt's avatar Konrad Mohrfeldt

add day of event to calendar icon :)

parent 6f0bf8c4
{% extends 'content/_preview.html' %}
{% block content_type %}
<i class="sg sg-content-type-event"></i>
<span>{% if not association.public %}Interne {% endif %}Veranstaltung</span>
<i class="sg sg-content-type-event" data-day="{{ association.container.time|date:'d' }}"></i>
{% endblock %}
{% block content_preview_image %}
......
......@@ -3,8 +3,8 @@
{% block menu %}{% menu 'event' association.entity %}{% endblock %}
{% block content_type %}
<i class="sg sg-content-type-event"></i>
<span>{% if not association.public %}Interne {% endif %}Veranstaltung</span>
<i class="sg sg-content-type-event" data-day="{{ association.container.time|date:'d' }}"></i>
{% endblock %}
{% block user_content_header %}
......
......@@ -131,12 +131,12 @@
// content type icons
.sg-icon(content-type-article, @fa-var-file-text-o);
.sg-icon(content-type-event, @fa-var-calendar-o);
.sg-icon(content-type-event, @fa-var-calendar-o, @extensions: @ruleset-calendar-icon);
.sg-icon(content-type-gallery, @fa-var-picture-o);
.sg-icon(content-type-gestalt, @fa-var-user);
.sg-icon(content-type-poll, @fa-var-thumbs-o-up);
.sg-icon(article, @fa-var-file-text-o);
.sg-icon(event, @fa-var-calendar-o);
.sg-icon(event, @fa-var-calendar-o, @extensions: @ruleset-calendar-icon);
.sg-icon(gallery, @fa-var-picture-o);
.sg-icon(conversations, @fa-var-comments-o);
.sg-icon(gestalt, @fa-var-user);
......
......@@ -60,3 +60,18 @@
@input-border: @gray-light;
@input-border-focus: @brand-primary;
@input-border-width: @component-border-width;
@ruleset-calendar-icon: {
position: relative;
&[data-day]::before {
content: attr(data-day);
font-family: var(--font-default);
font-size: .5em;
font-weight: bold;
position: absolute;
left: 50%;
top: 67%;
transform: translate(-50%, -50%);
}
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment