Skip to content

Commit

Permalink
fix: gap size between lang select and next element (#1619)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffwcx authored Apr 19, 2023
1 parent c993e07 commit e9e53e3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions src/client/theme-default/slots/ColorSwitch/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@
inset-inline-end: -15px;
transform: none;

[class*='-switch'] + & {
[class*='-switch'] + &,
[class*='-select'] + & {
inset-inline-end: 0;
}
}
}

[class*='-switch'] + & {
[class*='-switch'] + &,
[class*='-select'] + & {
margin-inline-start: 15px;
margin-inline-end: -15px;
padding-inline: 15px;
Expand Down
3 changes: 2 additions & 1 deletion src/client/theme-default/slots/RtlSwitch/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
background-color: transparent;
cursor: pointer;

[class*='-switch'] + & {
[class*='-switch'] + &,
[class*='-select'] + & {
margin-inline-start: 15px;
margin-inline-end: -15px;
padding-inline: 15px;
Expand Down
3 changes: 2 additions & 1 deletion src/client/theme-default/slots/SocialIcon/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
font-size: 0;
line-height: 0;

[class*='-switch'] + & {
[class*='-switch'] + &,
[class*='-select'] + & {
margin-inline-start: 15px;
margin-inline-end: -15px;
padding-inline: 15px;
Expand Down

0 comments on commit e9e53e3

Please sign in to comment.