Skip to content

Commit

Permalink
chore(react): improve mobile styles
Browse files Browse the repository at this point in the history
  • Loading branch information
janryWang committed Aug 7, 2021
1 parent 028461f commit 57588ca
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/react/src/simulators/MobileSimulator/styles.less
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@
display: flex;
justify-content: center;
height: 100%;

&-content {
background-color: var(--dn-mobile-simulator-body-bg-color);
border: 3px solid var(--dn-mobile-simulator-border-color)
}
}
}
}
2 changes: 2 additions & 0 deletions packages/react/src/theme.less
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@

--dn-mobile-simulator-bg-color: #eee;
--dn-mobile-simulator-body-bg-color: #fff;
--dn-mobile-simulator-border-color: #222;
--dn-responsive-simulator-bg-color: #fff;
--dn-pc-simulator-bg-color: #fff;

Expand Down Expand Up @@ -139,6 +140,7 @@

--dn-mobile-simulator-bg-color: #222;
--dn-mobile-simulator-body-bg-color: #222;
--dn-mobile-simulator-border-color: #222;
--dn-responsive-simulator-bg-color: #222;
--dn-pc-simulator-bg-color: #222;

Expand Down

0 comments on commit 57588ca

Please sign in to comment.