feat(mobile): add dev phone preview and system-bar safe areas
Continuous Integration / build_web (push) Failing after 0s
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / build (windows-11-arm) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
Continuous Integration / build_web (push) Failing after 0s
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / build (windows-11-arm) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
This commit is contained in:
1 parent
c15742ff2a
commit
7fb3d6cfa4
30 files changed
+304
-81
No files matched your search
@@ -0,0 +1,61 @@
|
||||
html.mobile-preview {
|
||||
--safe-top: 32px;
|
||||
--safe-bottom: 28px;
|
||||
}
|
||||
|
||||
html.mobile-preview .window-controls,
|
||||
html.mobile-preview .window-chrome {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.mobile-preview {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 10000;
|
||||
pointer-events: none;
|
||||
color: #fff;
|
||||
font-family: "Medeo Sans", system-ui, sans-serif;
|
||||
}
|
||||
|
||||
.mobile-preview-status {
|
||||
position: absolute;
|
||||
inset: 0 0 auto;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
height: 32px;
|
||||
padding: 0 18px;
|
||||
box-sizing: border-box;
|
||||
text-shadow: 0 1px 3px rgb(0 0 0 / 0.45);
|
||||
}
|
||||
|
||||
.mobile-preview-time {
|
||||
font-size: 0.82rem;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.01em;
|
||||
}
|
||||
|
||||
.mobile-preview-status-icons {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.3rem;
|
||||
|
||||
.material-symbols-rounded {
|
||||
font-size: 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
.mobile-preview-gesture {
|
||||
position: absolute;
|
||||
inset: auto 0 0;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
height: 28px;
|
||||
|
||||
span {
|
||||
width: 108px;
|
||||
height: 4px;
|
||||
border-radius: 999px;
|
||||
background: rgb(255 255 255 / 0.85);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user