Skip to content

Commit

Permalink
💄 [#1898] Made some sections conform more to profile design
Browse files Browse the repository at this point in the history
  • Loading branch information
jiromaykin committed Dec 18, 2023
1 parent fc0d9d5 commit 28c4aaf
Show file tree
Hide file tree
Showing 6 changed files with 200 additions and 205 deletions.
4 changes: 2 additions & 2 deletions src/open_inwoner/components/templatetags/button_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ def button_row(parser, token):
{% endbutton_row %}
Variables:
- align: enum[right] | if the buttons should be aligned left (no align should be given) or alinged right side.
- mobile: booleam | If the button row should only be displayed on mobile screens.
- align: enum[right] | if the buttons should be aligned left (no align should be given) or aligned right side.
- mobile: boolean | If the button row should only be displayed on mobile screens.
Extra context:
- contents: string (HTML) | this is the context between the button_row and endbutton_row tags
Expand Down
8 changes: 8 additions & 0 deletions src/open_inwoner/scss/components/Button/Button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@
width: 100%;
}

&--spaceless {
padding: 0;
}

&#{&}--primary {
background-color: var(--color-primary);
border: 1px solid var(--color-primary);
Expand Down Expand Up @@ -160,6 +164,10 @@
color: var(--color-danger-lighter);
}

&--error {
color: var(--color-error-darker);
}

&--borderless {
background-color: rgba(0, 0, 0, 0);
border: none;
Expand Down
12 changes: 9 additions & 3 deletions src/open_inwoner/scss/components/Card/Card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
display: flex;
flex-direction: column;
min-height: 70px;
min-width: 200px;
position: relative;
text-decoration: none;

Expand Down Expand Up @@ -123,6 +124,13 @@
.plan-list {
text-decoration: none;
}

span,
p {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
}

&__body--grid {
Expand Down Expand Up @@ -275,10 +283,8 @@
}

&--stretch .list + .link:first-of-type:last-of-type,
&--stretch .profile__link > .link:first-of-type:last-of-type {
&--stretch .profile-card__button {
bottom: var(--card-spacing);
bottom: var(--card-spacing);
position: absolute;
position: static;

@media (min-width: 768px) {
Expand Down
12 changes: 11 additions & 1 deletion src/open_inwoner/scss/components/Profile/_personal-overview.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
.profile-section {
&--bordered {
border-bottom: 1px solid var(--color-gray-light);
padding-bottom: var(--spacing-large);
}

h2,
.h2 {
margin: calc(var(--row-height) * 1.5) 0 0 0;
height: var(--row-height);
margin: calc(var(--row-height)) 0 0 0;
}

.h2 + .grid {
margin-top: 0;
}

.profile-list {
Expand Down
24 changes: 0 additions & 24 deletions src/open_inwoner/scss/components/Table/Tabled.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@
display: flex;
flex-direction: column;

.h2 {
&.title--extra-padding {
padding-bottom: var(--spacing-large);
}
}

&__key {
color: var(--color-gray-90);
}
Expand Down Expand Up @@ -41,24 +35,6 @@
margin: var(--row-height) 0 0 0;
}

.card {
.h4 .link {
color: var(--color-black);
}

.profile__link {
text-decoration: none;
}

.list-item {
p {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
}
}

.tabled__header {
display: grid;
grid-template-columns: 1fr 1fr;
Expand Down
Loading

0 comments on commit 28c4aaf

Please sign in to comment.