mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-22 23:27:54 -05:00
validation messages can position on the left
This commit is contained in:
parent
ae8f5a1e90
commit
16e1a46997
1 changed files with 19 additions and 1 deletions
|
@ -1,8 +1,9 @@
|
|||
@import "../../colors";
|
||||
@import "../../frameless";
|
||||
|
||||
$arrow-border-width: 1rem;
|
||||
|
||||
.validation-message {
|
||||
$arrow-border-width: 1rem;
|
||||
display: block;
|
||||
position: absolute;
|
||||
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} {
|
||||
.validation-message {
|
||||
position: relative;
|
||||
|
|
Loading…
Reference in a new issue