-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
♻️ [#3178] Replace layout wrapper with utrecht-page-content
The NL DS component provides in paddings around the content, so our layout component in the backend is obsolete. There is still a layout component in the SDK for the time being, and the paddings of that one need tweaking so that the A11Y toolbar and the form content properly align again.
- Loading branch information
1 parent
73f5bab
commit 5c271f7
Showing
8 changed files
with
76 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
src/openforms/ui/static/ui/scss/components/_page-content.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
@import '~microscope-sass/lib/responsive'; | ||
|
||
// Extensions of the utrecht-page-content component | ||
.utrecht-page-content { | ||
@include mobile-only { | ||
padding-block-end: var( | ||
--of-utrecht-page-content-mobile-padding-block-end, | ||
var(--utrecht-page-content-padding-block-end) | ||
); | ||
padding-block-start: var( | ||
--of-utrecht-page-content-mobile-padding-block-start, | ||
var(--utrecht-page-content-padding-block-start) | ||
); | ||
padding-inline-end: var( | ||
--of-utrecht-page-mobile-padding-inline-end, | ||
var(--utrecht-page-padding-inline-end) | ||
); | ||
padding-inline-start: var( | ||
--of-utrecht-page-mobile-padding-inline-start, | ||
var(--utrecht-page-padding-inline-start) | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
31 changes: 0 additions & 31 deletions
31
src/openforms/ui/static/ui/scss/components/layout/_layout.scss
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,19 @@ | ||
{% extends "master.html" %} | ||
|
||
{% block inner-content %} | ||
<section class="layout__container"> | ||
{% block card %} | ||
<div class="card"> | ||
<header class="card__header"> | ||
<h1 class="title">{{ object }}</h1> | ||
</header> | ||
{% block card %} | ||
<div class="card"> | ||
<header class="card__header"> | ||
<h1 class="title">{{ object }}</h1> | ||
</header> | ||
|
||
<div class="card__body"> | ||
{% block card_body %} | ||
<p class="body"> | ||
{{ object }} | ||
</p> | ||
{% endblock %} | ||
</div> | ||
<div class="card__body"> | ||
{% block card_body %} | ||
<p class="body"> | ||
{{ object }} | ||
</p> | ||
{% endblock %} | ||
</div> | ||
{% endblock %} | ||
|
||
{% include "includes/a11y_toolbar.html" only %} | ||
</section> | ||
</div> | ||
{% endblock %} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,31 @@ | ||
{% extends "master.html" %} | ||
|
||
{% block inner-content %} | ||
<section class="layout__container"> | ||
<div class="openforms-card"> | ||
{% block card %} | ||
<header class="openforms- card__header"> | ||
<h1 class="title">{{ title }}</h1> | ||
</header> | ||
<div class="openforms-layout"> | ||
<div class="openforms-layout__row"> | ||
|
||
<div class="openforms-card__body"> | ||
{% block card_body %} | ||
<ul class="list"> | ||
{% for object in object_list %} | ||
<li class="list__item"> | ||
<a | ||
href="{{ object.get_absolute_url }}" | ||
class="utrecht-link utrecht-link--openforms" | ||
>{{ object }}</a> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
{% endblock %} | ||
</div> | ||
{% endblock %} | ||
</div> | ||
<div class="openforms-card"> | ||
{% block card %} | ||
<header class="openforms- card__header"> | ||
<h1 class="title">{{ title }}</h1> | ||
</header> | ||
|
||
{% include "includes/a11y_toolbar.html" only %} | ||
</section> | ||
<div class="openforms-card__body"> | ||
{% block card_body %} | ||
<ul class="list"> | ||
{% for object in object_list %} | ||
<li class="list__item"> | ||
<a | ||
href="{{ object.get_absolute_url }}" | ||
class="utrecht-link utrecht-link--openforms" | ||
>{{ object }}</a> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
{% endblock %} | ||
</div> | ||
{% endblock %} | ||
</div> | ||
</div> | ||
</div> | ||
{% endblock %} |