X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/9eeeeab0b4b72b405b2c2a6e69969537706535bf..12db7e7cbb003b83ba2aeb1c205b66c9557841cd:/src/wolnelektury/static/2022/styles/layout/_checkout.scss?ds=inline diff --git a/src/wolnelektury/static/2022/styles/layout/_checkout.scss b/src/wolnelektury/static/2022/styles/layout/_checkout.scss index 89b97f164..636580a1a 100644 --- a/src/wolnelektury/static/2022/styles/layout/_checkout.scss +++ b/src/wolnelektury/static/2022/styles/layout/_checkout.scss @@ -11,6 +11,7 @@ border-radius: 10px; width: 100%; height: 34px; position: relative; + flex: 1; span { position: absolute; top: 0; left: 0; @@ -18,13 +19,19 @@ background: #92BD39; border-radius: 10px; &:after { + white-space: nowrap; + color: #083F4D; + top: 0; left:10px; bottom: 2px; + @include rwd($B5) { + color: #FFFFFF; + right: 13px; + left: auto; + } margin: auto; position: absolute; - top: 0; right: 13px; bottom: 2px; content: attr(data-label); font-weight: bold; font-size: 15px; - color: #FFFFFF; display: flex; align-items: center; justify-content: center; @@ -36,7 +43,8 @@ display: flex; margin-top: 7px; justify-content: space-between; - align-items: center; + align-items: flex-start; + gap: 15px; p { margin: 0; font-weight: normal; @@ -174,6 +182,7 @@ align-items: center; justify-content: center; margin-top: 35px; + width: 100%; } .l-switch { @@ -186,7 +195,7 @@ } .l-switch label { - color: #fff; + color: #74BDC2; font-weight: 600; font-size: 18.5px; line-height: 26px; @@ -221,10 +230,23 @@ z-index: 2; } +.toggle-input-left:checked ~ .l-switch__wrapper { + .toggle-for-left { + color: #003C3C; + } + .toggle { + left: 5px; + } +} +.toggle-input-right:checked ~ .l-switch__wrapper { + .toggle-for-right { + color: #003C3C; + } + .toggle { + left: 39px; + } +} .l-switch input:checked~label:nth-of-type(1) { color: #003C3C; } -.l-switch input:checked~label:nth-of-type(2) { color: #74BDC2; } - -.l-switch input~:checked~label:nth-of-type(1) { color: #74BDC2; } .l-switch input~:checked~label:nth-of-type(2) { color: #003C3C; } .l-switch input:checked~.toggle { @@ -327,26 +349,35 @@ } } button { - height: 56px; + margin: 0; + font-family: "Source Sans Pro",sans-serif; + font-weight: bold; + font-size: 44px; + line-height: 130%; + letter-spacing: -0.01em; + height: 90px; + display: flex; + align-items: center; + justify-content: center; + transition: all $ease-out 250ms; + background: #FFFFFF; border: 1px solid #92BD39; border-radius: 3px; width: 100%; outline: 0; cursor: pointer; - font-weight: 600; - font-size: 16px; - line-height: 24px; - display: flex; - align-items: center; - justify-content: center; text-align: center; color: #083F4D; - transition: background $ease-out 250ms; - @include rwd($break-flow) { - font-size: 20px; - line-height: 25px; + span { + font-weight: 600; + font-size: 25px; + line-height: 200%; + letter-spacing: -0.01em; + color: #92BD39; + margin-left: 10px; + transition: opacity $ease-out 250ms; } &:hover { @@ -375,6 +406,9 @@ &:hover { background: #83AD2B; } + span { + color: white; + } } } @@ -523,6 +557,8 @@ } } + + //Input .l-checkout__input { display: flex; @@ -964,6 +1000,26 @@ } ~.payments-once { display: flex; + + &.wide-spot-1 ~.l-checkout__amount { + @include rwd($break-flow) { + margin-top: -110px; + + > div, > button { + width: calc(33.333% - 20px); + } + } + } + &.wide-spot-2 ~.l-checkout__amount { + @include rwd($break-flow) { + flex-direction: column; + margin-top: -182px; + + > div, > button { + width: calc(33.333% - 20px); + } + } + } } } &#switch-monthly:checked { @@ -978,6 +1034,38 @@ } ~.payments-recurring { display: flex; + + &.wide-spot-1 ~.l-checkout__amount { + @include rwd($break-flow) { + margin-top: -110px; + + > div, > button { + width: calc(33.333% - 20px); + margin-left: 24px; + } + } + } + &.wide-spot-2 ~.l-checkout__amount { + @include rwd($break-flow) { + flex-direction: column; + margin-top: -182px; + + > div, > button { + width: calc(33.333% - 20px); + } + } + } } } } + + +.if-monthly { display: none; } +.is-monthly { + .if-monthly { + display: block; + } + .if-not-monthly { + display: none; + } +}