X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/a98d18bc92d7d28d54c0cc1c1a636c9d79e6a648..031b8be3bf03baa724dd7e225b0555726d089341:/src/wolnelektury/static/2022/styles/layout/_checkout.scss?ds=sidebyside diff --git a/src/wolnelektury/static/2022/styles/layout/_checkout.scss b/src/wolnelektury/static/2022/styles/layout/_checkout.scss index b4423dda4..779324ae6 100644 --- a/src/wolnelektury/static/2022/styles/layout/_checkout.scss +++ b/src/wolnelektury/static/2022/styles/layout/_checkout.scss @@ -275,13 +275,8 @@ transition: box-shadow $ease-out 250ms; box-shadow: 0px 0px 0px rgba(55, 170, 156, 0); margin-bottom: 30px; - width: calc(50% - 8px); + width: 100%; - &.narrow-wide { - flex-direction: row; - width: 100%; - } - @include rwd($break-flow) { width: calc(33.333% - 20px); } @@ -357,13 +352,9 @@ &.is-active { box-shadow: 0px 0px 20px rgba(55, 170, 156, 0.35); - background: #083F4D; - color: white; + background: white; + color: black; - @include rwd($break-flow) { - background: white; - color: black; - } h3 { color: white; background: #083F4D; @@ -377,23 +368,77 @@ } } + &.l-checkout__payments__box--half { + width: calc(50% - 8px); + @include rwd($break-flow) { + width: calc(33.333% - 20px); + } + + &.is-active { + background: #083F4D; + color: white; + + @include rwd($break-flow) { + background: white; + color: black; + } + } + } + &.l-checkout__payments__box--bar { + flex-direction: row; + + @include rwd($break-flow) { + flex-direction: column; + } + + &.is-active { + background: #083F4D; + color: white; + + @include rwd($break-flow) { + background: white; + color: black; + } + } + + h3, .l-checkout__payments__box__btn-wrp { + flex-grow: 1; + } + } + &.l-checkout__payments__box--card { + } + &.l-checkout__payments__box--xl { width: 100%; + justify-content: center; + min-height: 160px; + @include rwd($break-flow) { width: calc(67.4% - 20px); - width: calc(67.4% - 20px); - flex-direction: row; - & > div { - display: flex; - &:first-child { - width: 50%; + padding-left: calc(33.7% - 10px); + position: relative; + + h3 { + position: absolute; + left: 0; + top: 0; + padding-right: 50%; + } + + .l-checkout__payments__box__btn-wrp { + margin: 0; + + p { flex-wrap: wrap; max-width: 340px; margin-right: 20px; } - &:last-child { - width: 49%; + button { + position: absolute; + bottom: 20px; + left: 20px; + width: calc(50% - 50px); align-items: center; justify-content: center; } @@ -915,18 +960,3 @@ } } } - - -.payments-recurring { - .l-checkout__payments__box { - width: 100%; - &.is-active { - background: white; - color: black; - } - @include rwd($break-flow) { - width: calc(33.333% - 20px); - //margin-right: 30px; - } - } -}