chore: replace global.css with todesktop tailwind variant (#12991)

* installed todesktop tailwind variant

* moved todesktop styles into tailwind classes

* fixed back button in settings
This commit is contained in:
Peer Richelsen authored and GitHub committed 2024-01-03 13:54:44 -03:00
1 parent 7d7e74c869
commit c4b296d580
11 files changed
+37 -79

No files matched your search

+1 -1
View File
@@ -84,7 +84,7 @@ export default async function RootLayout({ children }: { children: React.ReactNo
`}</style>
</head>
<body
className="dark:bg-darkgray-50 desktop-transparent bg-subtle antialiased"
className="dark:bg-darkgray-50 todesktop:!bg-transparent bg-subtle antialiased"
style={
isEmbed
? {
@@ -26,7 +26,7 @@ export default function AdminLayout({
const isAppsPage = pathname?.startsWith("/settings/admin/apps");
return (
<SettingsLayout {...rest}>
<div className="divide-subtle mx-auto flex max-w-4xl flex-row divide-y">
<div className="divide-subtle bg-default mx-auto flex max-w-4xl flex-row divide-y">
<div className={isAppsPage ? "min-w-0" : "flex flex-1 [&>*]:flex-1"}>
<ErrorBoundary>{children}</ErrorBoundary>
</div>
+1 -1
View File
@@ -87,7 +87,7 @@ class MyDocument extends Document<Props> {
</Head>
<body
className="dark:bg-darkgray-50 desktop-transparent bg-subtle antialiased"
className="dark:bg-darkgray-50 todesktop:!bg-transparent bg-subtle antialiased"
style={
isEmbed
? {
+6 -56
View File
@@ -142,77 +142,27 @@ html.todesktop div {
html.todesktop header {
-webkit-app-region: drag;
}
html.todesktop header button {
-webkit-app-region: no-drag;
}
html.todesktop .logo {
display: none;
}
.desktop-only {
display: none;
}
html.todesktop .desktop-only {
display: block;
}
html.todesktop .desktop-hidden {
display: none;
}
html.todesktop header nav {
margin-top: 8px;
}
html.todesktop aside {
margin: 0px -6px;
}
html.todesktop-platform-darwin .desktop-transparent {
background: transparent !important;
border: none !important;
}
html.todesktop-platform-darwin.dark main.bg-default {
background: rgba(0, 0, 0, 0.6) !important;
}
html.todesktop-platform-darwin.light main.bg-default {
background: rgba(255, 255, 255, 0.6) !important;
background: rgba(255, 255, 255, 0.8) !important;
}
html.todesktop.light nav a[aria-current="page"]{
background: #CFD0D0 !important;
html.todesktop.light {
--cal-bg-emphasis: hsla(0, 0%, 11%, 0.1);
}
html.todesktop.dark nav a[aria-current="page"]{
background: #3D3D3D !important;
html.todesktop.dark {
--cal-bg-emphasis: hsla(220, 2%, 26%, 0.3);
}
html.todesktop aside header {
margin-top: -12px;
flex-direction: column-reverse;
}
html.todesktop aside header > div {
width: 100%;
}
html.todesktop.dark nav a:hover{
background: inherit;
}
html.todesktop.light nav a:hover{
background: none;
}
html.todesktop nav a svg{
color: #229CFF !important
}
/*
Adds Utility to hide scrollbar to tailwind
https://github.com/tailwindlabs/tailwindcss/discussions/2394