stylesheets: make the actions bar sticky
This commit is contained in:
parent
1f8f38f492
commit
4b883a57bf
2 changed files with 28 additions and 42 deletions
|
@ -47,59 +47,49 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.send-dossier-actions-bar {
|
.send-dossier-actions-bar {
|
||||||
|
// scss-lint:disable VendorPrefix
|
||||||
|
position: -webkit-sticky; // This is needed on Safari (tested on 12.1)
|
||||||
|
// scss-lint:enable VendorPrefix
|
||||||
|
position: sticky;
|
||||||
|
bottom: 0;
|
||||||
|
|
||||||
display: flex;
|
display: flex;
|
||||||
width: 100%;
|
flex-direction: row;
|
||||||
|
align-items: center;
|
||||||
margin-top: $default-padding;
|
margin-top: $default-padding;
|
||||||
|
margin-left: -$default-padding;
|
||||||
|
margin-right: -$default-padding;
|
||||||
|
margin-bottom: 0;
|
||||||
|
padding-top: 0;
|
||||||
|
padding-bottom: $default-spacer;
|
||||||
|
padding-right: $default-padding;
|
||||||
|
padding-left: $default-padding;
|
||||||
background: #FFFFFF;
|
background: #FFFFFF;
|
||||||
position: fixed;
|
|
||||||
bottom: 0px;
|
|
||||||
border: 1px solid #CCCCCC;
|
border: 1px solid #CCCCCC;
|
||||||
border-top-left-radius: 5px;
|
border-top-left-radius: 5px;
|
||||||
border-top-right-radius: 5px;
|
border-top-right-radius: 5px;
|
||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
padding-top: 0px;
|
|
||||||
padding-bottom: $default-spacer;
|
|
||||||
padding-right: 30px;
|
|
||||||
padding-left: 30px;
|
|
||||||
margin: 0 auto;
|
|
||||||
margin-left: -30px;
|
|
||||||
max-width: 1100px;
|
|
||||||
|
|
||||||
.button {
|
.button {
|
||||||
margin-top: $default-spacer;
|
min-height: 38px;
|
||||||
|
line-height: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media(max-width: 1100px) {
|
// If there are more than one button, align the "Send" button to the right
|
||||||
margin-left: -16px;
|
.button:not(:first-of-type).send {
|
||||||
|
margin-left: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Wide layout: align buttons on a single row
|
// Normal layout
|
||||||
@media (min-width: 550px) {
|
@media (min-width: 500px) {
|
||||||
flex-direction: row;
|
padding-top: $default-spacer * 2;
|
||||||
|
padding-bottom: $default-spacer * 2;
|
||||||
.button:not(:first-of-type) {
|
|
||||||
margin-left: $default-spacer;
|
|
||||||
}
|
|
||||||
|
|
||||||
// If there are more than one button, align the "Send" button to the right
|
|
||||||
.button:not(:first-of-type).send {
|
|
||||||
margin-left: auto;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Narrow layout: stack buttons vertically
|
// Compact layout
|
||||||
@media (max-width: 550px) {
|
@media (max-width: 500px) {
|
||||||
flex-direction: column-reverse;
|
padding-top: $default-spacer;
|
||||||
align-items: center;
|
padding-bottom: $default-spacer;
|
||||||
margin-left: -16px;
|
|
||||||
|
|
||||||
.button {
|
|
||||||
width: 100%;
|
|
||||||
max-width: 350px;
|
|
||||||
line-height: 30px;
|
|
||||||
margin-left: none;
|
|
||||||
margin-right: none;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -108,10 +108,6 @@ footer {
|
||||||
.footer-row {
|
.footer-row {
|
||||||
margin-bottom: 30px;
|
margin-bottom: 30px;
|
||||||
|
|
||||||
&:last-child {
|
|
||||||
margin-bottom: 35px;
|
|
||||||
}
|
|
||||||
|
|
||||||
// In this case, the bottom margin is defined directly on each individual column
|
// In this case, the bottom margin is defined directly on each individual column
|
||||||
&.footer-columns {
|
&.footer-columns {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
|
|
Loading…
Reference in a new issue