}
.formSubmit {
- text-align: center;
+ display: flex;
+ flex-direction: row-reverse;
+ flex-wrap: wrap;
+ gap: 10px;
+ justify-content: center;
&:not(:first-child) {
margin-top: 30px;
}
+}
- /* the `margin-bottom` styles are required to deal with buttons wrapping
- into the next row, also requires some changes to `.dialogFormSubmit`! */
- margin-bottom: -10px;
-
- > input[type="button"],
- > input[type="reset"],
- > input[type="submit"],
- > .button,
- > a.button {
- margin-bottom: 10px;
- }
-
- > :not(:first-child) {
- margin-left: 10px;
+@include screen-xs {
+ .formSubmit {
+ input[type="button"],
+ input[type="reset"],
+ input[type="submit"],
+ .button,
+ a.button {
+ flex: 1;
+ }
}
}
left: 0;
position: absolute;
top: 0;
- transition: background-color 0.12s linear, width 0.12s linear;
+ transition:
+ background-color 0.12s linear,
+ width 0.12s linear;
width: 0;
}
}
}
-@include screen-xs {
- .messageTabMenu + .formSubmit,
- .messageFooter .formSubmit {
- column-gap: 10px;
- display: grid;
- grid-auto-columns: 1fr;
- grid-auto-flow: column;
-
- .button {
- margin-left: 0;
- margin-right: 0;
- }
- }
-}
-
/* fix for Firefox - fieldsets are set to display: table-column which cause an odd gap between the fieldset
and the next element, similar to gaps with display: inline-block and font-size > 0 */
@-moz-document url-prefix() {