Skip to content

Commit

Permalink
imp: Improve the look of popups
Browse files Browse the repository at this point in the history
  • Loading branch information
marien-probesys committed Dec 9, 2022
1 parent 63c6d9d commit 4a1bf43
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 8 deletions.
1 change: 1 addition & 0 deletions assets/icons/caret-down.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions assets/stylesheets/components/popups.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
bottom: 0;
left: 0;

padding-top: 1.5rem;
padding-bottom: 1.5rem;
padding-top: 1rem;
padding-bottom: 1rem;

font-size: 0.9em;

Expand Down Expand Up @@ -102,6 +102,7 @@
}

.popup__title {
margin-bottom: 1rem;
padding-right: 1.5rem;
padding-left: 1.5rem;

Expand All @@ -111,8 +112,7 @@

.popup__separator {
height: 0.2rem;
margin-right: 1.5rem;
margin-left: 1.5rem;
margin: 1rem 1.5rem;

background-color: var(--color-primary7);
border-radius: 0.75rem;
Expand Down
3 changes: 2 additions & 1 deletion docs/developers/popups.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@ The HTML of popups is based on the [`<details>`](https://developer.mozilla.org/f
<summary class="popup__opener">
<span class="button">
{{ 'Actions' | trans }}
{{ icon('caret-down') }}
</span>
</summary>
<nav class="popup__container popup__container--left flow-small">
<nav class="popup__container popup__container--left">
</nav>
</details>
```
Expand Down
2 changes: 1 addition & 1 deletion public/icons.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion templates/base.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
</span>
</summary>

<nav class="popup__container popup__container--large popup__container--left flow-small">
<nav class="popup__container popup__container--large popup__container--left">
<div class="popup__title">{{ app.user.email }}</div>

<a class="popup__item" href="{{ path('preferences') }}">
Expand Down Expand Up @@ -98,6 +98,7 @@
<span class="button">
{{ icon('language') }}
{{ 'Language' | trans }}
{{ icon('caret-down') }}
</span>
</summary>

Expand Down
3 changes: 2 additions & 1 deletion templates/tickets/show.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -231,10 +231,11 @@
<span class="button">
{{ icon('ellipsis') }}
{{ 'Actions' | trans }}
{{ icon('caret-down') }}
</span>
</summary>

<nav class="popup__container popup__container--left flow-small">
<nav class="popup__container popup__container--left">
<form action="{{ path('update ticket type', { uid: ticket.uid }) }}" method="post">
<input type="hidden" name="_csrf_token" value="{{ csrf_token('update ticket type') }}">
{% if ticket.type == 'request' %}
Expand Down

0 comments on commit 4a1bf43

Please sign in to comment.