mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-29 05:26:13 +00:00
UX: [permissiongroup] fix form with new sticky-form class
This commit is contained in:
parent
318a84e04d
commit
8042edc13c
@ -1,3 +1,11 @@
|
||||
/// mixin to set sticky area on bottom when scrolling
|
||||
@mixin sticky-bottom {
|
||||
position: sticky;
|
||||
bottom: 0;
|
||||
margin-top: 4em;
|
||||
z-index: 1000;
|
||||
}
|
||||
|
||||
ul.record_actions {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
@ -53,16 +61,30 @@ ul.record_actions {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.sticky-form {
|
||||
background-color: $white;
|
||||
padding: 1em;
|
||||
margin: -1em;
|
||||
border-top: 1px solid $chill-ll-gray;
|
||||
@include sticky-bottom;
|
||||
|
||||
.sticky-form-buttons {
|
||||
position: initial;
|
||||
bottom: unset;
|
||||
margin-top: unset;
|
||||
z-index: unset;
|
||||
}
|
||||
}
|
||||
|
||||
.sticky-form-buttons {
|
||||
margin-top: 4em;
|
||||
background-color: $beige;
|
||||
position: sticky;
|
||||
bottom: 0.3em;
|
||||
text-align: center;
|
||||
display: flex;
|
||||
padding: 0.8em 1.6em;
|
||||
border-radius: 0;
|
||||
z-index: 1000;
|
||||
display: flex;
|
||||
background-color: $beige;
|
||||
text-align: center;
|
||||
padding: 0.8em 1.6em;
|
||||
border-radius: 0;
|
||||
@include sticky-bottom;
|
||||
bottom: 0.3em;
|
||||
}
|
||||
|
||||
/// EXCEPTIONS
|
||||
|
@ -73,7 +73,7 @@
|
||||
<p>{{ 'This group does not provide any permission'|trans }}</p>
|
||||
{%- endif -%}
|
||||
|
||||
<div class="mt-5">
|
||||
<div class="sticky-form">
|
||||
<h2>{{ 'Grant new permissions'|trans }}</h2>
|
||||
|
||||
{{ form_start(add_role_scopes_form) }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user