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

78 lines
1.3 KiB
SCSS
Raw Normal View History

@mixin input-placeholder-overflow($direction: 'down') {
@if $direction == 'down' {
@media (width <= 1410px) {
@content;
}
} @else if $direction == 'up' {
@media (width > 1410px) {
@content;
}
} @else {
@error "Unknown direction #{$direction}.";
}
}
.form {
2022-09-09 11:53:35 +00:00
display: flex;
flex-direction: column;
2022-09-09 11:53:35 +00:00
@include input-placeholder-overflow(down) {
2022-11-20 21:23:12 +00:00
margin-bottom: 2.4rem;
}
}
2022-11-20 21:23:12 +00:00
.controls {
display: flex;
width: 100%;
@include input-placeholder-overflow(down) {
2022-10-19 22:16:17 +00:00
flex-direction: column;
}
.input {
2023-05-01 18:32:32 +00:00
@include font-size(2rem);
2022-09-09 11:53:35 +00:00
background: none;
color: #fff;
font-family: inherit;
2022-11-02 21:43:38 +00:00
margin: 0;
overflow: hidden;
text-overflow: ellipsis;
padding: 0.2em 0.5em;
2022-09-09 11:53:35 +00:00
width: 100%;
outline: none;
border: 1px solid #fff;
border-radius: 0;
height: 4rem;
2022-09-09 11:53:35 +00:00
@include input-placeholder-overflow(up) {
border-right: none;
2022-09-09 11:53:35 +00:00
}
@include input-placeholder-overflow(down) {
border-bottom: none;
}
2023-05-01 18:32:32 +00:00
&::placeholder {
color: #858585;
}
2022-09-09 11:53:35 +00:00
}
2022-11-02 21:43:38 +00:00
.button {
border-radius: 0;
flex-shrink: 0;
@include input-placeholder-overflow(down) {
width: 100%;
}
2022-09-09 11:53:35 +00:00
}
}
.error {
position: relative;
top: 4px;
font-size: 12px;
line-height: 16px;
color: #d00820;
}