mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-03-08 05:56:30 +08:00
fix(onboarding): Page content should remain centered when transitioning smaller
This commit is contained in:
parent
aab2726caf
commit
b56769bbde
1 changed files with 13 additions and 3 deletions
|
@ -95,8 +95,18 @@
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
|
||||||
width: 100%;
|
// Before you `git blame`, hear me out. We want the .page to be
|
||||||
|
// centered in the window, even if the window is transitioning to a smaller
|
||||||
|
// size to show a smaller page. transform:translateX(-50%) would be perfect,
|
||||||
|
// but can result in text aliasing, so we need margin:auto. But that won't
|
||||||
|
// work if the necessary margin is less than zero. So we pad the container
|
||||||
|
// out, such that the .page inside can be centered with positive margin.
|
||||||
|
|
||||||
|
// (Please don't break, it looks bad when our logo goes to the top left
|
||||||
|
// when the user chooses a sign-in method.)
|
||||||
|
left: -50%;
|
||||||
|
width: 200%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.page {
|
.page {
|
||||||
|
@ -142,7 +152,7 @@
|
||||||
|
|
||||||
.back,
|
.back,
|
||||||
.dismiss {
|
.dismiss {
|
||||||
position: absolute;
|
position: fixed;
|
||||||
top:25px;
|
top:25px;
|
||||||
left:25px;
|
left:25px;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue