@import "../../colors"; @import "../../frameless"; .validation-message { $arrow-border-width: 1rem; 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; padding: 1rem; max-width: 18.75rem; min-height: 1rem; overflow: visible; color: $type-white; z-index: 1; &: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; width: $arrow-border-width; height: $arrow-border-width; content: ""; } } @media #{$intermediate-and-smaller} { .validation-message { position: relative; transform: none; margin: inherit; width: 100%; height: inherit; &:before { display: none; } } } .validation-error { background-color: $ui-orange; &:before { background-color: $ui-orange; } } .validation-info { background-color: $ui-blue; &:before { background-color: $ui-blue; } }