Files
legolog/client/public/components/css/checkout.css
Ben 9a0b516712 discount dosen't get fucked anymmore
Former-commit-id: 176d2681fab12d0c7f6a835923ad6230be7648b2
2022-04-27 23:58:49 +01:00

240 lines
4.5 KiB
CSS

.checkout-header {
margin-top: 20px;
font-size: 2em;
border-bottom: 1px solid #ccc;
}
.checkout {
display: flex;
flex-direction: row;
align-items: flex-start;
justify-content: space-between;
width: 100%;
}
.section-title {
font-size: 1.3em;
margin-bottom: 25px;
margin-top: 25px;
border-bottom: 1px solid #ccc;
}
.checkout-body-left {
display: flex;
flex-direction: column;
flex-basis: 45%;
order: 0;
}
.checkout-body-right {
display: flex;
flex-direction: column;
flex-basis: 45%;
order: 1;
}
@media (pointer:none), (pointer:coarse), screen and (max-width: 900px) {
.checkout {
flex-direction: column;
}
/* we want the "your order" on top here */
.checkout-body-left {
width: 100%;
order: 1;
}
.checkout-body-right {
width: 100%;
margin-top: 50px;
order: 0;
}
}
.delivery-row {
display: flex;
flex-direction: row;
justify-content: space-between;
}
.checkout-form-row-input, .checkout-form-row-label {
width: 100%;
}
.checkout-form-row-label {
font-size: 0.9em;
color: #888;
text-transform: uppercase;
}
.checkout-form-row-input {
margin-bottom: 10px;
height: 3em;
background-color: #F5F6F6;
border: 1px solid #ccc;
border-radius: 0.4em;
transition: all 250ms ease-in-out;
}
.checkout-form-row-input:focus {
outline: 0;
border: 2px solid transparent;
border-bottom: 2px solid #222;
border-radius: 0;
}
.checkout-payment-form {
display: flex;
flex-direction: column;
margin-bottom: 20px;
}
.payment-row {
display: flex;
flex-direction: row;
justify-content: space-between;
}
.visa {
background: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/260969/ic_card_visa.png) no-repeat;
background-position: 95%;
}
.mastercard {
background: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/260969/ic_card_master_card.png) no-repeat;
background-position: 95%;
}
.form-item {
width: 49%;
display: flex;
flex-direction: column;
align-items: flex-start;
}
.full-width {
width: 100%;
}
.checkout-place-order {
width: 100%;
}
.checkout-place-order-button {
width: 100%;
box-shadow: #222 0px 0px 2px;
background: #222;
color: #fff;
border: none;
padding: 10px;
font-size: 1.2em;
cursor: pointer;
transition: all 250ms ease-in-out;
}
.edit-basket {
font-size: 0.7em;
color: #888;
float: right;
text-transform: uppercase;
}
.checkout-summary-prices {
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: flex-end;
margin-top: 20px;
margin-bottom: 20px;
}
.checkout-summary-prices-row {
width: 100%;
margin-top: 10px;
font-size: 1em;
color: #444;
font-weight: lighter;
border-bottom: 1px solid #ccc;
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: flex-end;
}
.discount-row {
color: #E55744;
}
.checkout-summary-discount-code {
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: flex-start;
margin-top: 10px;
margin-bottom: 10px;
}
.offer-text {
margin-bottom: 10px;
height: 3em;
width: 79%;
background-color: #F5F6F6;
border: 1px solid #ccc;
border-radius: 0.4em;
transition: all 250ms ease-in-out;
}
.offer-text:focus {
outline: 0;
border: 2px solid transparent;
border-bottom: 2px solid #222;
border-radius: 0;
}
.offer-button {
width: 14%;
background: #222;
color: #fff;
border: none;
padding: 10px;
font-size: 1em;
cursor: pointer;
transition: all 250ms ease-in-out;
}
.offer-button:hover {
background-color: #F5F6F6;
outline: 2px solid #222;
color: #222;
}
.error {
color: #E55744;
font-size: 0.8em;
animation: shake 0.82s cubic-bezier(.36,.07,.19,.97) both;
}
@keyframes shake {
10%, 90% {
transform: translate3d(-1px, 0, 0);
}
20%, 80% {
transform: translate3d(2px, 0, 0);
}
30%, 50%, 70% {
transform: translate3d(-4px, 0, 0);
}
40%, 60% {
transform: translate3d(4px, 0, 0);
}
}
.code-applied {
color: #F2CA52;
font-weight: bold;
pointer-events: none;
}