Skip to content

Commit

Permalink
fix(switch): h5 switch 不靠右
Browse files Browse the repository at this point in the history
  • Loading branch information
jimczj committed Aug 20, 2018
1 parent fd82138 commit 3d461af
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/components/switch/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
justify-content: center;
align-items: center;
background-color: $color-bg;
padding: 22px 22px 22px 0;
padding: $spacing-v-lg $spacing-h-xl $spacing-v-lg 0;
@include border-thin-bottom;

&__title {
Expand All @@ -15,12 +15,18 @@
}

&__container {
display: flex;
align-items: center;
flex-direction: row-reverse;
position: relative;
flex: 2;
text-align: right;
background-color: $color-bg;
}

&__switch {
display: inline-block;
}

&__mask {
position: absolute;
display: none;
Expand Down

0 comments on commit 3d461af

Please sign in to comment.