Skip to content

Commit

Permalink
Merge pull request #735 from maykinmedia/feature/1662-customizable-sp…
Browse files Browse the repository at this point in the history
…inner

💄 [#1649] Improving spinner styling
  • Loading branch information
alextreme authored Aug 22, 2023
2 parents e321c89 + f08e947 commit 0f356b4
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 8 deletions.
28 changes: 27 additions & 1 deletion src/open_inwoner/scss/components/Spinner/Spinner.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,32 @@
}

.loader-container {
display: flex;
justify-content: center;
align-items: center;
height: 65vh;
margin: 0;
text-align: center;

@media (min-width: 500px) {
justify-content: flex-start;
align-items: flex-start;
height: 70vh;
margin: 100px 0 0 200px;
}

.spinner {
display: flex;
flex-direction: column;
align-items: center;
color: var(--font-color-body);
font-size: var(--font-size-body);

&__content {
margin-top: var(--spacing-large);
}
}

&--hide {
display: none;
}
Expand All @@ -24,7 +50,7 @@
.spinner-icon {
display: inline-block;
font-size: 50px;
color: var(--color-primary);
color: var(--color-gray-dark);
width: 50px;
height: 50px;
}
Expand Down
7 changes: 3 additions & 4 deletions src/open_inwoner/templates/pages/cases/list_outer.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,12 @@


{% block content %}
<h1 class="h1" id="title">{% trans "Mijn aanvragen" %}</h1>

<div class="cases" id="cases-content"></div>

<div class="loader-container" id="spinner-container">
<div class="spinner" id="spinner-id" hx-get="{{ hxget }}" hx-trigger="load" hx-target="#cases-content">
{% icon icon="autorenew" extra_classes="spinner-icon rotate" %}
{% icon icon="rotate_right" extra_classes="spinner-icon rotate" %}
<div class="spinner__content">{% trans "Gegevens laden..." %}</div>
</div>
</div>
{% endblock content %}
6 changes: 3 additions & 3 deletions src/open_inwoner/templates/pages/cases/status_outer.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@

{% block content %}
<div class="cases__detail" id="cases-detail-content"><div>

<div class="loader-container" id="spinner-container">
<h1 class="h1" id="title">{% trans "Status" %}</h1>
<div class="spinner" id="spinner-id" hx-get="{{ hxget }}" hx-trigger="load" hx-target="#cases-detail-content">
{% icon icon="autorenew" extra_classes="spinner-icon rotate" %}
{% icon icon="rotate_right" extra_classes="spinner-icon rotate" %}
<div class="spinner__content">{% trans "Gegevens laden..." %}</div>
</div>
</div>
{% endblock content %}

0 comments on commit 0f356b4

Please sign in to comment.