Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
grouprise
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
102
Issues
102
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
grouprise
grouprise
Commits
986513d4
Commit
986513d4
authored
Jun 11, 2018
by
Konrad Mohrfeldt
✊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add day of event to calendar icon :)
parent
6f0bf8c4
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
4 deletions
+19
-4
features/events/templates/events/_preview.html
features/events/templates/events/_preview.html
+1
-1
features/events/templates/events/detail.html
features/events/templates/events/detail.html
+1
-1
res/css/components/icons.less
res/css/components/icons.less
+2
-2
res/css/definitions/variables.less
res/css/definitions/variables.less
+15
-0
No files found.
features/events/templates/events/_preview.html
View file @
986513d4
{% 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 %}
...
...
features/events/templates/events/detail.html
View file @
986513d4
...
...
@@ -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 %}
...
...
res/css/components/icons.less
View file @
986513d4
...
...
@@ -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);
...
...
res/css/definitions/variables.less
View file @
986513d4
...
...
@@ -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%);
}
};
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment