Skip to content

Commit

Permalink
[#2294] Removed scroll-to-top, added KCM mobile style
Browse files Browse the repository at this point in the history
  • Loading branch information
jiromaykin committed Apr 9, 2024
1 parent 783df9c commit a557392
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 59 deletions.
1 change: 0 additions & 1 deletion src/open_inwoner/js/components/anchor-menu/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
import './anchor-menu'
import './anchor-menu-mobile'
import './scroll_to_top'
21 changes: 0 additions & 21 deletions src/open_inwoner/js/components/anchor-menu/scroll_to_top.js

This file was deleted.

29 changes: 0 additions & 29 deletions src/open_inwoner/scss/components/Header/AnchorMenu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -155,32 +155,3 @@
}
}
}

/// Scroll
.anchor {
&__scroll {
display: none;
position: fixed;
bottom: var(--spacing-large);
right: var(--spacing-large);
z-index: 1005;

@media (min-width: 768px) {
position: static;
display: none;
}

&-link {
position: static;

@media (min-width: 768px) {
position: static;
display: none;
}

.link {
border-color: transparent;
}
}
}
}
22 changes: 19 additions & 3 deletions src/open_inwoner/scss/components/KCMSurvey/KCMSurvey.scss
Original file line number Diff line number Diff line change
@@ -1,15 +1,31 @@
.kcm-survey {
display: inline-block;
border-top-left-radius: var(--border-radius);
border-top-right-radius: var(--border-radius);
border-bottom-right-radius: 0;
position: fixed;
inset: 50% -20px auto auto;
transform: rotate(180deg) translateX(50%) translateY(50%);
writing-mode: vertical-rl;
bottom: 0;
right: 0;
z-index: 1010;
padding: var(--spacing-medium);
background-color: var(--color-info-lighter);
font-size: var(--font-size-heading-card);
font-weight: bold;
writing-mode: initial;

& .link {
color: var(--color-info-darker);
}

@media (min-width: 768px) {
border-top-left-radius: 0;
border-top-right-radius: var(--border-radius);
border-bottom-right-radius: var(--border-radius);
bottom: initial;
right: initial;
display: block;
inset: 50% -20px auto auto;
transform: rotate(180deg) translateX(50%) translateY(50%);
writing-mode: vertical-rl;
}
}
5 changes: 0 additions & 5 deletions src/open_inwoner/templates/master.html
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,6 @@
{% endblock mobile_anchors %}
{% endif %}

<div class="anchor__scroll" id="scroll-anchor">
<div class="anchor__scroll-link">
{% button href="#top" text=_("Terug naar boven") icon="arrow_upward" pill=True %}
</div>
</div>
{% render_breadcrumbs "components/Header/Breadcrumbs.html" %}

{% block header_image %}{% endblock header_image %}
Expand Down

0 comments on commit a557392

Please sign in to comment.