mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-23 07:38:07 -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 "../../colors";
|
||||||
@import "../../frameless";
|
@import "../../frameless";
|
||||||
|
|
||||||
|
$arrow-border-width: 1rem;
|
||||||
|
|
||||||
.validation-message {
|
.validation-message {
|
||||||
$arrow-border-width: 1rem;
|
|
||||||
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;
|
||||||
|
|
Loading…
Reference in a new issue