Fix margin in sign in / sign up forms divider
When the "Or fill the following form" text was translated to another language or customized by administrators, the text could span over two lines. Since the element had a fixed height, it could overlap with the text below it. So now we're using an element with a relative position to achieve the same effect (have the contents of the elements on top of its border).
This commit is contained in:
@@ -1011,15 +1011,17 @@ footer {
|
||||
}
|
||||
|
||||
.auth-divider {
|
||||
border-bottom: 1px solid $border;
|
||||
height: rem-calc(14);
|
||||
margin: $line-height 0;
|
||||
border-top: 1px solid $border;
|
||||
margin-top: $line-height * 1.5;
|
||||
text-align: center;
|
||||
|
||||
span {
|
||||
background: #fff;
|
||||
box-decoration-break: clone;
|
||||
font-weight: bold;
|
||||
padding: 0 $line-height / 2;
|
||||
position: relative;
|
||||
top: -$line-height / 2;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user