webapp/src/components/Discours/Donate.module.scss

147 lines
2.2 KiB
SCSS

.donateForm input,
.donateForm label,
.donateForm .btn {
font-family: Muller, Arial, Helvetica, sans-serif;
border: solid 1px #595959;
border-radius: 3px;
font-size: 16px;
height: 39px;
line-height: 1.8;
text-align: center;
}
.donateForm input {
&::-webkit-outer-spin-button,
&::-webkit-inner-spin-button {
appearance: none;
margin: 0;
}
&::placeholder,
&:focus {
text-align: center;
color: #000;
}
&:focus {
&::placeholder {
opacity: 0;
transition: opacity 0.2s ease;
}
box-shadow: inset 0 0 0 3px #000;
}
&:valid,
&:checked + label {
box-shadow: inset 0 0 0 3px #000;
border-color: #000;
font-weight: 700;
}
&[type='number'] {
appearance: textfield;
}
&[type='radio'] {
display: none;
}
}
.donateForm .btn {
cursor: pointer;
flex: 1;
padding: 5px 10px;
text-align: center;
white-space: nowrap;
transform: none !important;
@include media-breakpoint-down(sm) {
&:last-of-type {
margin-right: 0 !important;
}
}
}
.btnGroup {
input {
&:first-child + .btn {
border-top-right-radius: 0;
border-bottom-right-radius: 0;
}
&:not(:first-child) + .btn {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}
}
.paymentType {
width: 50%;
}
}
.donateButtonsContainer {
align-items: center;
display: flex;
flex: 1;
justify-content: space-between;
@include media-breakpoint-down(sm) {
flex-wrap: wrap;
}
input,
label {
margin: 0 8px;
@include media-breakpoint-down(sm) {
margin-bottom: 1em;
}
}
input {
&:first-child,
&:first-child + label {
margin-left: 0;
}
&:last-child,
&:last-child + label {
margin-right: 0;
}
}
}
.donateInput {
@include media-breakpoint-down(sm) {
flex: 1 100%;
margin: 0 !important;
}
}
.sendBtn {
border: 2px solid #000;
background-color: #000;
color: #fff !important;
display: block;
font-weight: 700;
line-height: 1.8;
letter-spacing: 0.05em;
text-transform: uppercase;
width: 100%;
&:hover {
background-color: #fff !important;
color: #000 !important;
}
}
.paymentChoose {
display: flex;
}
.formGroup:not(:first-child) {
margin-top: 20px;
}