Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 22 additions & 15 deletions public/css/admin.css
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,9 @@

#opendxp_avatar img {
position: absolute;
left: 12px;
bottom: 50px;
width:36px;
left: 14px;
bottom: 54px;
width: 32px;
border-radius: 18px;
cursor: pointer;
}
Expand Down Expand Up @@ -2328,27 +2328,34 @@ ul.leaflet-draw-actions.leaflet-draw-actions-top.leaflet-draw-actions-bottom li:
display: none;
}

#opendxp_notification > img {
#opendxp_notification > span.notification-icon {
position: absolute;
width: 24px;
height: 24px;
top: 11px;
left: 18px;
width: 60px;
height: 48px;
top: 0;
left: 0;
background-color: var(--color-neutral-a);
mask: url(/bundles/opendxpadmin/img/material-icons/outline-sms-24px.svg) no-repeat center / 24px 24px;
-webkit-mask: url(/bundles/opendxpadmin/img/material-icons/outline-sms-24px.svg) no-repeat center / 24px 24px;
}

#notification_value {
background-color: var(--color-neutral-a);
border-radius: 9px;
border-radius: 100px;
color: var(--color-white);
font-size: 10px;
line-height: 1.3;
min-height: 12px;
padding: 4px 4px;
font-weight: 600;
line-height: 1;
min-width: 18px;
min-height: 18px;
padding: 4px 5px;
background-clip: padding-box;
display: block;
display: flex;
align-items: center;
justify-content: center;
position: absolute;
right: 12px;
top: 12px;
right: 9px;
top: 6px;
}

/** END notifications **/
Expand Down
Binary file modified public/img/avatar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion templates/admin/index/index.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@

{% block notification %}
<div id="opendxp_notification" data-menu-tooltip="{{ "notifications"|trans([],'admin') }}" class="opendxp_icon_comments">
<img src="/bundles/opendxpadmin/img/material-icons/outline-sms-24px.svg">
<span class="notification-icon"></span>
<span id="notification_value" style="display:none;"></span>
</div>
{% endblock %}
Expand Down
1 change: 1 addition & 0 deletions templates/admin/login/layout.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
<style>
#content button {
background: {{ customColor }};
color: var(--color-white);
}

#content a {
Expand Down
19 changes: 17 additions & 2 deletions templates/admin/misc/admin_css.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,30 @@
{% endfor %}
{% endif %}

{# CUSTOM BRANDING #}
{# custom branding #}
{% if adminSettings is defined and adminSettings['branding']['color_admin_interface'] is defined %}
{% set interfaceColor = adminSettings['branding']['color_admin_interface'] %}
{% set interfaceColor = adminSettings['branding']['color_admin_interface'] %}
{% if interfaceColor is not empty %}
#opendxp_avatar {
background-color: {{ interfaceColor }} !important;
}

#opendxp_notification {
background-color: {{ interfaceColor }} !important;
}

#opendxp_notification > span.notification-icon {
background: var(--color-white) !important;
}

#opendxp_signet {
background-color: {{ interfaceColor }} !important;
background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1MTIiIGhlaWdodD0iNTEyIiB2aWV3Qm94PSIwIDAgNTEyIDUxMiI+PGNpcmNsZSBjeD0iMjU2IiBjeT0iMjU2IiByPSIxMjAiIGZpbGw9IiNFNkZGMkEiIHN0cm9rZT0iIzAwMDAwMCIgc3Ryb2tlLXdpZHRoPSIyNCIvPjwvc3ZnPg==) !important;
}

#opendxp_navigation li:hover:after {
background-color: {{ interfaceColor }} !important;
}
{% endif %}
{% endif %}

Loading