diff --git a/src/components/HdModal.vue b/src/components/HdModal.vue index 92e1063a3..ff7b80765 100644 --- a/src/components/HdModal.vue +++ b/src/components/HdModal.vue @@ -29,20 +29,20 @@ }" > -
- - - {{ button.text }} - - -
+ + {{ button.text }} + +
@@ -207,7 +207,46 @@ $mobile-browser-footer-buffer: 75px; .hd-modal__footer { width: 100%; display: flex; + + .hd-modal__action { + flex: 1; + + &:not(:last-child) { + margin-right: $sp-s; + } + } + + @media (min-width: $break-tablet) { + justify-content: flex-end; + + .hd-modal__action { + flex: 0 1 auto; + } + } +} + +.hd-modal__footer--wide { flex-direction: column; + + .hd-modal__action { + &:not(:last-child) { + margin-right: 0; + margin-bottom: $sp-s; + } + } + + @media (min-width: $break-tablet) { + flex-direction: row; + + .hd-modal__action { + flex: 1; + + &:not(:last-child) { + margin-right: $sp-s; + margin-bottom: 0; + } + } + } } .hd-modal__close-button { @@ -242,43 +281,4 @@ $mobile-browser-footer-buffer: 75px; } } } - -.hd-modal__footer:not(.hd-modal__footer--wide) { - display: flex; - flex-direction: column; - justify-content: flex-end; - - @media (min-width: $break-tablet) { - flex-direction: row; - justify-content: flex-end; - } - - .hd-modal__action { - display: flex; - flex-direction: column; - margin-top: $sp-s; - - @media (min-width: $break-tablet) { - display: flex; - margin-top: 0; - margin-left: $sp-s; - flex-direction: column; - } - } -} - -.hd-modal__footer--wide { - display: flex; - flex-direction: row; - - .hd-modal__action { - display: flex; - flex: auto; - flex-direction: column; - } - - .hd-modal__action:not(:first-child) { - margin-left: $sp-s; - } -}