1
0
Fork 0
blog/src/components/Web3Donation/InputGroup.module.scss

99 lines
1.9 KiB
SCSS
Raw Normal View History

2018-10-09 23:48:25 +02:00
@import 'variables';
@import 'mixins';
2018-10-13 15:40:05 +02:00
.inputGroup {
2019-10-02 13:35:50 +02:00
max-width: 18rem;
margin: auto;
position: relative;
animation: fadeIn 0.8s ease-out backwards;
2018-10-13 15:40:05 +02:00
2019-10-02 13:35:50 +02:00
@media (min-width: $screen-sm) {
display: flex;
flex-wrap: wrap;
}
2018-10-13 15:40:05 +02:00
2019-10-02 13:35:50 +02:00
button {
width: 100%;
border-top-left-radius: 0;
border-top-right-radius: 0;
border-color: lighten($brand-grey-light, 10%);
2018-10-13 15:40:05 +02:00
2019-10-02 13:35:50 +02:00
@media (min-width: $screen-sm) {
width: 50%;
border-top-right-radius: $border-radius;
border-top-left-radius: 0;
border-bottom-left-radius: 0;
border-left: 0;
2018-10-13 15:40:05 +02:00
}
2019-10-02 13:35:50 +02:00
}
2018-10-13 15:40:05 +02:00
}
.input {
2019-10-02 13:35:50 +02:00
position: relative;
2018-10-13 15:40:05 +02:00
2019-10-02 13:35:50 +02:00
@media (min-width: $screen-sm) {
width: 50%;
}
2018-10-13 15:40:05 +02:00
2019-10-02 13:35:50 +02:00
input {
text-align: center;
border: 1px solid lighten($brand-grey-light, 20%);
font-size: $font-size-large;
padding: $spacer / 3 $spacer / 3 $spacer / 3 $spacer * 1.7;
border-bottom: 0;
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
2018-10-13 15:40:05 +02:00
2019-10-02 13:35:50 +02:00
@media (min-width: $screen-sm) {
border-top-right-radius: 0;
border-bottom-right-radius: 0;
border-bottom-left-radius: $border-radius;
border-bottom: 1px solid lighten($brand-grey-light, 20%);
border-right: 0;
}
2018-10-13 18:13:36 +02:00
2019-10-02 13:35:50 +02:00
&::-webkit-inner-spin-button {
margin-left: -($spacer / 2);
2018-10-13 15:40:05 +02:00
}
2019-10-02 13:35:50 +02:00
}
2018-10-13 15:40:05 +02:00
}
.currency {
2019-10-02 13:35:50 +02:00
position: absolute;
top: 1px;
bottom: 1px;
left: 1px;
font-size: $font-size-small;
padding: $spacer / 3;
color: $brand-grey-light;
background: $brand-light;
border-right: 1px solid rgba($brand-grey-light, 0.4);
border-top-left-radius: $border-radius;
border-bottom-left-radius: $border-radius;
display: flex;
align-items: center;
2018-10-13 15:40:05 +02:00
}
2018-10-14 22:04:54 +02:00
.infoline {
2019-10-02 13:35:50 +02:00
flex-basis: 100%;
display: flex;
align-items: center;
justify-content: center;
margin-top: $spacer / 4;
animation: fadeIn 0.5s 0.8s ease-out backwards;
}
.message {
2019-10-02 13:35:50 +02:00
composes: message from './index.module.scss';
}
@keyframes fadeIn {
2019-10-02 13:35:50 +02:00
from {
opacity: 0.01;
}
2019-10-02 13:35:50 +02:00
to {
opacity: 1;
}
2018-10-14 22:04:54 +02:00
}