Fixed appearance when popup is opened in the new tab instead of popup

This commit is contained in:
koloml committed 2024-08-08 06:57:54 +04:00
1 parent 3adfab9555
commit c9107ab109
2 files changed
+15 -2

No files matched your search

+11 -2
View File
@@ -10,12 +10,21 @@
font-size: inherit;
}
body {
width: 320px;
// Hacky class which is added by the JavaScript indicating that page was (probably) opened in the tab
&.is-in-tab {
width: 100%;
max-width: 640px;
margin: 0 auto;
}
}
html, body {
background-color: colors.$background;
color: colors.$text;
font-size: 16px;
min-width: 320px;
max-height: min(100vh, 320px);
font-family: verdana, arial, helvetica, sans-serif;
margin: 0;
padding: 0;