2019-06-24 11:23:32 -04:00
|
|
|
@import "../../colors";
|
|
|
|
@import "../../frameless";
|
|
|
|
|
|
|
|
.validation-message {
|
2019-08-26 14:30:52 -04:00
|
|
|
$arrow-border-width: 1rem;
|
2019-06-24 11:23:32 -04:00
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
transform: translate(16rem, 0);
|
|
|
|
margin-left: $arrow-border-width;
|
|
|
|
border: 1px solid $active-gray;
|
|
|
|
border-radius: 5px;
|
2019-08-27 23:01:08 -04:00
|
|
|
background-color: $ui-orange;
|
2019-06-24 11:23:32 -04:00
|
|
|
padding: 1rem;
|
|
|
|
max-width: 18.75rem;
|
|
|
|
min-height: 1rem;
|
|
|
|
overflow: visible;
|
|
|
|
color: $type-white;
|
2019-07-26 16:26:11 -04:00
|
|
|
z-index: 1;
|
2019-09-26 14:49:42 -04:00
|
|
|
font-weight: 500;
|
2019-06-24 11:23:32 -04:00
|
|
|
|
|
|
|
&:before {
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
top: 1rem;
|
|
|
|
left: -$arrow-border-width / 2;
|
|
|
|
|
|
|
|
transform: rotate(45deg);
|
|
|
|
|
|
|
|
border-bottom: 1px solid $active-gray;
|
|
|
|
border-left: 1px solid $active-gray;
|
|
|
|
border-radius: 5px;
|
|
|
|
|
2019-08-27 23:01:08 -04:00
|
|
|
background-color: $ui-orange;
|
2019-06-24 11:23:32 -04:00
|
|
|
width: $arrow-border-width;
|
|
|
|
height: $arrow-border-width;
|
|
|
|
|
|
|
|
content: "";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-08-20 21:54:17 -04:00
|
|
|
.validation-left {
|
2019-08-26 14:30:52 -04:00
|
|
|
$arrow-border-width: 1rem;
|
2019-08-20 21:54:17 -04:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-06-24 11:23:32 -04:00
|
|
|
@media #{$intermediate-and-smaller} {
|
|
|
|
.validation-message {
|
|
|
|
position: relative;
|
|
|
|
transform: none;
|
|
|
|
margin: inherit;
|
|
|
|
width: 100%;
|
|
|
|
height: inherit;
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-08-12 17:52:16 -04:00
|
|
|
|
|
|
|
.validation-error {
|
|
|
|
background-color: $ui-orange;
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
background-color: $ui-orange;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-08-16 17:58:10 -04:00
|
|
|
.validation-info {
|
2019-08-12 17:52:16 -04:00
|
|
|
background-color: $ui-blue;
|
2019-08-27 15:25:10 -04:00
|
|
|
box-shadow: 0 0 4px 2px rgba(0, 0, 0, .15);
|
2019-08-12 17:52:16 -04:00
|
|
|
|
|
|
|
&:before {
|
|
|
|
background-color: $ui-blue;
|
|
|
|
}
|
|
|
|
}
|