added desktop app layout for v2.0, changed 2.0 banner (#4242)
This commit is contained in:
1 parent
e52af8d387
commit
b4d1cb0988
8 files changed
+108
-48
No files matched your search
@@ -77,7 +77,7 @@ class MyDocument extends Document<Props> {
|
||||
</Head>
|
||||
|
||||
{/* Keep the embed hidden till parent initializes and gives it the appropriate styles */}
|
||||
<body className="dark:bg-darkgray-50 bg-gray-100">
|
||||
<body className="dark:bg-darkgray-50 desktop-transparent bg-gray-100">
|
||||
<Main />
|
||||
<NextScript />
|
||||
{/* In case of Embed we want background to be transparent so that it merges into the website seamlessly. Also, we keep the body hidden here and embed logic would take care of showing the body when it's ready */}
|
||||
|
||||
@@ -22,7 +22,8 @@ body {
|
||||
/* disable user selection on buttons, links and images on desktop app */
|
||||
html.todesktop button,
|
||||
html.todesktop a,
|
||||
html.todesktop img{
|
||||
html.todesktop img,
|
||||
html.todesktop header{
|
||||
-webkit-touch-callout: none;
|
||||
-webkit-user-select: none;
|
||||
-khtml-user-select: none;
|
||||
@@ -38,14 +39,13 @@ html.todesktop div {
|
||||
}
|
||||
|
||||
/* make header draggable on desktop app */
|
||||
html.todesktop header {
|
||||
html.todesktop header{
|
||||
-webkit-app-region: drag;
|
||||
}
|
||||
html.todesktop header button {
|
||||
html.todesktop header button{
|
||||
-webkit-app-region: no-drag;
|
||||
}
|
||||
|
||||
|
||||
html.todesktop .logo {
|
||||
display: none;
|
||||
}
|
||||
@@ -63,13 +63,47 @@ html.todesktop .desktop-hidden {
|
||||
}
|
||||
|
||||
html.todesktop header {
|
||||
margin-top: -9px;
|
||||
margin-top: -14px;
|
||||
}
|
||||
|
||||
html.todesktop header nav {
|
||||
margin-top: 8px;
|
||||
}
|
||||
|
||||
html.todesktop aside {
|
||||
margin:0px -6px;
|
||||
}
|
||||
|
||||
/* TODO: add "native" MacOS colors
|
||||
requires darkmode for MacOS first
|
||||
|
||||
html.todesktop .desktop-transparent{
|
||||
background: transparent !important;
|
||||
border: none !important;
|
||||
}
|
||||
|
||||
html.todesktop aside a {
|
||||
height: 28px;
|
||||
padding: 0px 8px;
|
||||
font-size: 12px;
|
||||
color: #383438 !important
|
||||
}
|
||||
|
||||
html.todesktop nav a:hover{
|
||||
background-color: inherit !important
|
||||
}
|
||||
|
||||
html.todesktop nav a[aria-current="page"]{
|
||||
background: rgba(0, 0, 0, 0.1) !important;
|
||||
}
|
||||
|
||||
html.todesktop nav a svg{
|
||||
color: #0272F7 !important
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/*
|
||||
Adds Utility to hide scrollbar to tailwind
|
||||
https://github.com/tailwindlabs/tailwindcss/discussions/2394
|
||||
|
||||
Reference in new issue
Block a user