Skip to content

Commit

Permalink
💄 [#2272] Changed heading structures and ellipsis
Browse files Browse the repository at this point in the history
  • Loading branch information
jiromaykin committed Apr 11, 2024
1 parent d55bfb2 commit 631ea4c
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
{% enddropdown %}
{% elif show_download %}
{% trans "Download" as download %}
{% link href=url text=download secondary=True download=True hide_text=True icon="file_download" icon_outlined=True icon_position="before" %}
{% link href=url text=download secondary=True download=True hide_text=True extra_classes="file__download" icon="file_download" icon_outlined=True icon_position="before" %}
{% endif %}
{% if description %}<p class="p p--small">{{ description }}</p>{% endif %}
</div>
Expand Down
12 changes: 10 additions & 2 deletions src/open_inwoner/scss/components/File/File.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

&__file {
align-items: center;
justify-content: space-between;
justify-content: flex-start;
border: var(--border-width-thin) solid var(--color-gray);
border-radius: var(--border-radius);
box-sizing: border-box;
Expand All @@ -33,9 +33,12 @@
flex-direction: column;

> * {
display: inline-block;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
min-width: 0;
flex: 1;
}
}

Expand All @@ -45,13 +48,18 @@
box-sizing: border-box;
}

.file__download {
margin-left: auto;
}

&__file .link:hover {
color: var(--font-color-body);
text-decoration: none;
}

&__file .file__data {
width: 100%;
//width: 100%;
align-items: flex-start;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
Expand Down
5 changes: 3 additions & 2 deletions src/open_inwoner/scss/components/Typography/H2.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
}

&.indicator {
display: inline-block;
//display: inline-block;
justify-content: flex-start;
overflow: visible;
position: relative;

Expand All @@ -46,7 +47,7 @@
border-radius: 100px;
display: inline-block;
height: 8px;
position: absolute;
//position: absolute;
right: -12px;
top: 6px;
width: 8px;
Expand Down
6 changes: 5 additions & 1 deletion src/open_inwoner/scss/components/UserFeed/UserFeed.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,14 @@
&:after {
content: ' ';
position: absolute;
border-right: 1px solid var(--color-red-notification);
border-right: none;
right: -4px;
top: 2px;
height: 16px;

@media (min-width: 768px) {
border-right: 1px solid var(--color-red-notification);
}
}

&:first-child {
Expand Down
10 changes: 7 additions & 3 deletions src/open_inwoner/templates/cms/plugins/userfeed/userfeed.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@

{% if userfeed %}
<section class="plugin userfeed">
<h2 class="h2 {% if userfeed.action_required %}indicator{% endif %}">
{{ instance.title }}
</h2>
<div class="userfeed__heading">
<h2 class="h2 {% if userfeed.action_required %}indicator{% endif %}">
<span class="userfeed__heading-title">{{ instance.title }}</span>
{% if userfeed.action_required %}<span class="userfeed__heading-indicator"></span>{% endif %}
</h2>
</div>

<div class="userfeed__summary">
<ul class="userfeed__list">
{% for line in userfeed.summary %}
Expand Down
7 changes: 6 additions & 1 deletion src/open_inwoner/templates/pages/cases/status_inner.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,12 @@ <h2 class="h2" id="documents-upload">{% trans "Document toevoegen" %}</h2>

{# Documents #}
{% if case.documents %}
<h2 class="h2 {% if case.new_docs %}indicator{% endif %}" id="documents">{% trans 'Eerder toegevoegde documenten' %}</h2>
<div class="file-list__heading">
<h2 class="h2 file-list__h2 {% if case.new_docs %}indicator{% endif %}" id="documents">
<span class="file-list__heading-title">{% trans 'Eerder toegevoegde documenten' %}</span>
<span class="file-list__heading-indicator indicator"></span>
</h2>
</div>
{% case_document_list case.documents %}
{% endif %}

Expand Down

0 comments on commit 631ea4c

Please sign in to comment.