validation messages can position on the left

This commit is contained in:
Ben Wheeler 2019-08-21 03:54:17 +02:00
parent ae8f5a1e90
commit 16e1a46997

View file

@ -1,8 +1,9 @@
@import "../../colors"; @import "../../colors";
@import "../../frameless"; @import "../../frameless";
.validation-message {
$arrow-border-width: 1rem; $arrow-border-width: 1rem;
.validation-message {
display: block; display: block;
position: absolute; position: absolute;
top: 0; top: 0;
@ -37,6 +38,23 @@
} }
} }
.validation-left {
left: unset;
right: 0;
margin-left: unset;
margin-right: $arrow-border-width;
transform: translate(-16rem, 0);
&:before {
left: unset;
right: -$arrow-border-width / 2;
border-top: 1px solid $active-gray;
border-right: 1px solid $active-gray;
border-bottom: none;
border-left: none;
}
}
@media #{$intermediate-and-smaller} { @media #{$intermediate-and-smaller} {
.validation-message { .validation-message {
position: relative; position: relative;