diff --git a/apps/web/pages/_document.tsx b/apps/web/pages/_document.tsx index 01b1ea009f..31ac347fd6 100644 --- a/apps/web/pages/_document.tsx +++ b/apps/web/pages/_document.tsx @@ -77,7 +77,7 @@ class MyDocument extends Document { {/* Keep the embed hidden till parent initializes and gives it the appropriate styles */} - +
{/* 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 */} diff --git a/apps/web/styles/globals.css b/apps/web/styles/globals.css index 15f5e91bc9..f0c2450473 100644 --- a/apps/web/styles/globals.css +++ b/apps/web/styles/globals.css @@ -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 diff --git a/packages/config/tailwind-preset.js b/packages/config/tailwind-preset.js index 9309c8263a..bdceee0689 100644 --- a/packages/config/tailwind-preset.js +++ b/packages/config/tailwind-preset.js @@ -1,4 +1,7 @@ +const plugin = require("tailwindcss/plugin"); + /** @type {import('tailwindcss').Config} */ + module.exports = { content: [ "./pages/**/*.{js,ts,jsx,tsx}", @@ -191,5 +194,10 @@ module.exports = { require("@tailwindcss/forms"), require("@tailwindcss/typography"), require("@tailwindcss/line-clamp"), + plugin(({ addVariant }) => { + addVariant("mac", ".mac &"); + addVariant("windows", ".windows &"); + addVariant("ios", ".ios &"); + }), ], }; diff --git a/packages/features/users/components/UserV2OptInBanner.tsx b/packages/features/users/components/UserV2OptInBanner.tsx index 2ee61cb85c..238527858f 100644 --- a/packages/features/users/components/UserV2OptInBanner.tsx +++ b/packages/features/users/components/UserV2OptInBanner.tsx @@ -1,6 +1,3 @@ -import { Alert } from "@calcom/ui/Alert"; -import { Alert as AlertV2 } from "@calcom/ui/v2/core/Alert"; - function UserV2OptInBanner() { // Only show on client-side if (typeof document === "undefined") return null; @@ -9,33 +6,23 @@ function UserV2OptInBanner() { if (hasV2OptInCookie) return ( - - You're using the new version of Cal.com.{" "} - - Go back to previous version - - . - - } - /> +

+ You're using the new version of Cal.com.{" "} + + Go back + + . +

); return ( - - Want to try the new version of Cal.com?{" "} - - Opt-in to our V2 beta - - . - - } - /> +

+ Want to try the new version of Cal.com?{" "} + + Opt-in to our v2.0 beta + + . +

); } diff --git a/packages/ui/Kbar.tsx b/packages/ui/Kbar.tsx index c66884c97f..dbdad9841b 100644 --- a/packages/ui/Kbar.tsx +++ b/packages/ui/Kbar.tsx @@ -196,7 +196,7 @@ export const KBarContent = () => { return ( - +
diff --git a/packages/ui/v2/core/Alert.tsx b/packages/ui/v2/core/Alert.tsx index 36f0c31c74..bddee05e32 100644 --- a/packages/ui/v2/core/Alert.tsx +++ b/packages/ui/v2/core/Alert.tsx @@ -15,7 +15,7 @@ export function Alert(props: AlertProps) { return (
+

{props.title} @@ -114,7 +114,7 @@ export function ShellSubHeading(props: { {props.subtitle &&

{props.subtitle}

}

{props.actions &&
{props.actions}
} -
+ ); } @@ -138,7 +138,6 @@ const Layout = (props: LayoutProps) => {
{props.SidebarContainer || }
-
@@ -279,7 +278,7 @@ function UserDropdown({ small }: { small?: boolean }) { ) : ( <> - { mutation.mutate({ away: !user?.away }); utils.invalidateQueries("viewer.me"); @@ -295,7 +294,7 @@ function UserDropdown({ small }: { small?: boolean }) { aria-hidden="true" /> {user.away ? t("set_as_free") : t("set_as_away")} - + {user.username && ( @@ -345,6 +344,17 @@ function UserDropdown({ small }: { small?: boolean }) { {t("help")} + + + {" "} + {t("download_desktop_app")} + + + +