/* ==UserStyle== @name Google Drive Catppuccin @namespace github.com/catppuccin/userstyles/styles/google-drive @homepageURL https://github.com/catppuccin/userstyles/tree/main/styles/google-drive @version 2025.09.06 @updateURL https://github.com/catppuccin/userstyles/raw/main/styles/google-drive/catppuccin.user.less @supportURL https://github.com/catppuccin/userstyles/issues?q=is%3Aopen+is%3Aissue+label%3Agoogle-drive @description Soothing pastel theme for Google Drive @author Catppuccin @license MIT @preprocessor less @var select lightFlavor "Light Flavor" ["latte:Latte*", "frappe:Frappé", "macchiato:Macchiato", "mocha:Mocha"] @var select darkFlavor "Dark Flavor" ["latte:Latte", "frappe:Frappé", "macchiato:Macchiato", "mocha:Mocha*"] @var select accentColor "Accent" ["rosewater:Rosewater", "flamingo:Flamingo", "pink:Pink", "mauve:Mauve*", "red:Red", "maroon:Maroon", "peach:Peach", "yellow:Yellow", "green:Green", "teal:Teal", "blue:Blue", "sapphire:Sapphire", "sky:Sky", "lavender:Lavender", "subtext0:Gray"] ==/UserStyle== */ @import "https://userstyles.catppuccin.com/lib/lib.less"; @-moz-document domain("drive.google.com") { .vhoiae { &.KkxPLb { #catppuccin(@lightFlavor); } &.LgGVmb, .yYWAMb.bvmRsc, .dif24c.bvmRsc { #catppuccin(@darkFlavor); } } #catppuccin(@flavor) { #lib.palette(); // TODO: Try to make use `#lib.defaults()` here, but it causes issues with the color scheme (see below). // #lib.defaults(); // Color scheme is already set by Google Drive; setting it here causes bugs, and there are no known side effects as Google does not use native UI elements (which would reflect `color-scheme` state and cause potential issues). ::selection { background-color: fade(@accent, 30%); } input, textarea { &::placeholder { color: @subtext0 !important; } } --dt-on-background: @text; --dt-on-background-secondary: @subtext0; --dt-background: @base; --dt-on-surface: @text; --dt-inverse-surface: @text; --dt-on-surface-secondary: @subtext0; --dt-on-surface-variant: @text; --dt-surface-variant: @surface0; --dt-inverse-on-surface: @surface0; --dt-surface: @base; --dt-surface-tint: @accent; --dt-shadow-elevation-1: 0px 3px 1px -2px fade(@base, 20%), 0px 2px 2px 0px fade(@base, 14%), 0px 1px 5px 0px fade(@base, 12%); --dt-shadow-elevation-2: 0px 2px 4px -1px fade(@base, 20%), 0px 4px 5px 0px fade(@base, 14%), 0px 1px 10px 0px fade(@base, 12%); --dt-shadow-elevation-3: 0px 5px 5px -3px fade(@base, 20%), 0px 8px 10px 1px fade(@base, 14%), 0px 3px 14px 2px fade(@base, 12%); --dt-shadow-elevation-4: 0px 5px 5px -3px fade(@base, 20%), 0px 8px 10px 1px fade(@base, 14%), 0px 3px 14px 2px fade(@base, 12%); --dt-shadow-elevation-5: 0px 8px 10px -6px fade(@base, 20%), 0px 16px 24px 2px fade(@base, 14%), 0px 6px 30px 5px fade(@base, 12%); --dt-surface-container-lowest: @crust; --dt-surface-container-low: @mantle; --dt-surface-container: @surface0; --dt-surface-container-high: @surface1; --dt-surface-container-highest: @surface2; --dt-surface-dim: @crust; --dt-surface-bright: @base; --dt-on-primary-container: @text; --dt-primary-container-icon: @text; --dt-primary-container-link: @text; --dt-primary: @accent; --dt-primary-action: @accent; --dt-primary-action-stateful: @accent; --dt-primary-outline: @accent; --dt-primary-action-state-layer: @accent; --dt-primary-container: @surface0; --dt-on-primary: @base; --dt-primary-icon: @base; --dt-primary-link: @base; --dt-on-secondary-container: @text; --dt-secondary-container-icon: @text; --dt-secondary-container-link: @text; --dt-secondary: @accent; --dt-secondary-action: @accent; --dt-secondary-action-stateful: @accent; --dt-secondary-outline: @accent; --dt-secondary-action-state-layer: @accent; --dt-secondary-container: @surface0; --dt-on-secondary: @base; --dt-secondary-icon: @base; --dt-secondary-link: @base; --dt-on-tertiary-container: @text; --dt-tertiary-container-icon: @text; --dt-tertiary-container-link: @text; --dt-tertiary: @accent; --dt-tertiary-action: @accent; --dt-tertiary-action-stateful: @accent; --dt-tertiary-outline: @accent; --dt-tertiary-action-state-layer: @accent; --dt-tertiary-container: @surface0; --dt-on-tertiary: @base; --dt-tertiary-icon: @base; --dt-tertiary-link: @base; --dt-on-neutral-container: @text; --dt-neutral-container-icon: @text; --dt-neutral-container-link: @text; --dt-neutral: @surface0; --dt-neutral-action: @text; --dt-neutral-action-stateful: @text; --dt-neutral-outline: @surface0; --dt-neutral-action-state-layer: @surface0; --dt-neutral-container: @surface0; --dt-on-neutral: @text; --dt-neutral-icon: @surface0; --dt-neutral-link: @surface0; --dt-on-warning-container: @yellow; --dt-warning-container-icon: @yellow; --dt-warning-container-link: @yellow; --dt-warning: @yellow; --dt-warning-action: @yellow; --dt-warning-action-stateful: @yellow; --dt-warning-outline: @yellow; --dt-warning-action-state-layer: @yellow; --dt-warning-container: @surface0; --dt-on-warning: @base; --dt-warning-icon: @yellow; --dt-warning-link: @yellow; --dt-on-error-container: @red; --dt-error-container-icon: @red; --dt-error-container-link: @red; --dt-error: @red; --dt-error-action: @red; --dt-error-action-stateful: @red; --dt-error-outline: @red; --dt-error-action-state-layer: @surface1; --dt-error-container: @surface1; --dt-on-error: @base; --dt-error-icon: @base; --dt-error-link: @base; --dt-mime-type-blue: @blue; --dt-mime-type-dark-blue: @blue; --dt-mime-type-green: @green; --dt-mime-type-grey: @overlay0; --dt-mime-type-purple: @mauve; --dt-mime-type-deep-purple: @mauve; --dt-mime-type-red: @red; --dt-mime-type-yellow: @yellow; --dt-disabled: @overlay0; --dt-on-disabled: @text; --dt-outline: @overlay0; --dt-outline-variant: @surface2; --dt-light-info-banner-button: @text; --dt-light-neutral-banner-button: @text; --dt-light-success-banner-button: @green; --dt-light-warning-banner-button: @yellow; --dt-light-error-banner-button: @red; --gm3-sys-color-background: @base; --gm3-sys-color-background-rgb: #lib.rgbify(@base)[]; --gm3-sys-color-error: @red; --gm3-sys-color-error-rgb: #lib.rgbify(@red)[]; --gm3-sys-color-error-container: @surface2; --gm3-sys-color-error-container-rgb: #lib.rgbify(@surface2)[]; --gm3-sys-color-inverse-on-surface: @surface0; --gm3-sys-color-inverse-on-surface-rgb: #lib.rgbify(@surface0)[]; --gm3-sys-color-inverse-primary: red; --gm3-sys-color-inverse-primary-rgb: 255, 0, 0; --gm3-sys-color-inverse-surface: @text; --gm3-sys-color-inverse-surface-rgb: #lib.rgbify(@text)[]; --gm3-sys-color-on-background: @text; --gm3-sys-color-on-background-rgb: #lib.rgbify(@text)[]; --gm3-sys-color-on-error: @base; --gm3-sys-color-on-error-rgb: #lib.rgbify(@base)[]; --gm3-sys-color-on-error-container: @red; --gm3-sys-color-on-error-container-rgb: #lib.rgbify(@red)[]; --gm3-sys-color-on-primary: @base; --gm3-sys-color-on-primary-rgb: #lib.rgbify(@base)[]; --gm3-sys-color-on-primary-container: @text; --gm3-sys-color-on-primary-container-rgb: #lib.rgbify(@text)[]; --gm3-sys-color-on-primary-fixed: @base; --gm3-sys-color-on-primary-fixed-rgb: #lib.rgbify(@base); --gm3-sys-color-on-primary-fixed-variant: @base; --gm3-sys-color-on-primary-fixed-variant-rgb: #lib.rgbify(@base); --gm3-sys-color-on-secondary: @base; --gm3-sys-color-on-secondary-rgb: #lib.rgbify(@base)[]; --gm3-sys-color-on-secondary-container: @text; --gm3-sys-color-on-secondary-container-rgb: #lib.rgbify(@text)[]; --gm3-sys-color-on-secondary-fixed: @base; --gm3-sys-color-on-secondary-fixed-rgb: #lib.rgbify(@base)[]; --gm3-sys-color-on-secondary-fixed-variant: @base; --gm3-sys-color-on-secondary-fixed-variant-rgb: #lib.rgbify(@base)[]; --gm3-sys-color-on-surface: @text; --gm3-sys-color-on-surface-rgb: #lib.rgbify(@text)[]; --gm3-sys-color-on-surface-variant: @text; --gm3-sys-color-on-surface-variant-rgb: #lib.rgbify(@text)[]; --gm3-sys-color-on-tertiary: @base; --gm3-sys-color-on-tertiary-rgb: #lib.rgbify(@base)[]; --gm3-sys-color-on-tertiary-container: @text; --gm3-sys-color-on-tertiary-container-rgb: #lib.rgbify(@text)[]; --gm3-sys-color-on-tertiary-fixed: @base; --gm3-sys-color-on-tertiary-fixed-rgb: #lib.rgbify(@base)[]; --gm3-sys-color-on-tertiary-fixed-variant: @base; --gm3-sys-color-on-tertiary-fixed-variant-rgb: #lib.rgbify(@base)[]; --gm3-sys-color-outline: @overlay0; --gm3-sys-color-outline-rgb: #lib.rgbify(@overlay0)[]; --gm3-sys-color-outline-variant: @surface2; --gm3-sys-color-outline-variant-rgb: #lib.rgbify(@surface2)[]; --gm3-sys-color-primary: @accent; --gm3-sys-color-primary-rgb: #lib.rgbify(@accent)[]; --gm3-sys-color-primary-container: @surface0; --gm3-sys-color-primary-container-rgb: #lib.rgbify(@surface0)[]; --gm3-sys-color-primary-fixed: @accent; --gm3-sys-color-primary-fixed-rgb: #lib.rgbify(@accent)[]; --gm3-sys-color-primary-fixed-dim: @accent; --gm3-sys-color-primary-fixed-dim-rgb: #lib.rgbify(@accent)[]; --gm3-sys-color-secondary: @accent; --gm3-sys-color-secondary-rgb: #lib.rgbify(@accent); --gm3-sys-color-secondary-container: @surface0; --gm3-sys-color-secondary-container-rgb: #lib.rgbify(@surface0)[]; --gm3-sys-color-secondary-fixed: #c2e7ff; --gm3-sys-color-secondary-fixed-rgb: 194, 231, 255; --gm3-sys-color-secondary-fixed-dim: #7fcfff; --gm3-sys-color-secondary-fixed-dim-rgb: 127, 207, 255; --gm3-sys-color-surface: @base; --gm3-sys-color-surface-rgb: #lib.rgbify(@base)[]; --gm3-sys-color-surface-bright: @base; --gm3-sys-color-surface-bright-rgb: #lib.rgbify(@base)[]; --gm3-sys-color-surface-container: @surface0; --gm3-sys-color-surface-container-rgb: #lib.rgbify(@surface0)[]; --gm3-sys-color-surface-container-high: @surface1; --gm3-sys-color-surface-container-high-rgb: #lib.rgbify(@surface1)[]; --gm3-sys-color-surface-container-highest: @surface2; --gm3-sys-color-surface-container-highest-rgb: #lib.rgbify(@surface2)[]; --gm3-sys-color-surface-container-low: @mantle; --gm3-sys-color-surface-container-low-rgb: #lib.rgbify(@mantle)[]; --gm3-sys-color-surface-container-lowest: @crust; --gm3-sys-color-surface-container-lowest-rgb: #lib.rgbify(@crust)[]; --gm3-sys-color-surface-dim: @crust; --gm3-sys-color-surface-dim-rgb: #lib.rgbify(@crust)[]; --gm3-sys-color-surface-tint: @accent; --gm3-sys-color-surface-tint-rgb: #lib.rgbify(@accent)[]; --gm3-sys-color-surface-variant: @surface0; --gm3-sys-color-surface-variant-rgb: #lib.rgbify(@surface0)[]; --gm3-sys-color-tertiary: @accent; --gm3-sys-color-tertiary-rgb: #lib.rgbify(@accent)[]; --gm3-sys-color-tertiary-container: @surface0; --gm3-sys-color-tertiary-container-rgb: #lib.rgbify(@surface0); --gm3-sys-color-tertiary-fixed: @accent; --gm3-sys-color-tertiary-fixed-rgb: #lib.rgbify(@accent)[]; --gm3-sys-color-tertiary-fixed-dim: @accent; --gm3-sys-color-tertiary-fixed-dim-rgb: #lib.rgbify(@accent)[]; & when (@flavor = latte) { --dt-scrim: fade(@text, 50%); --dt-scrim-2x: fade(@text, 50%); --gm3-sys-color-scrim: @text; --gm3-sys-color-scrim-rgb: #lib.rgbify(@text)[]; --gm3-sys-color-shadow: @text; --gm3-sys-color-shadow-rgb: #lib.rgbify(@text)[]; } & when not(@flavor = latte) { --dt-scrim: fade(@base, 50%); --dt-scrim-2x: fade(@base, 50%); --gm3-sys-color-scrim: @base; --gm3-sys-color-scrim-rgb: #lib.rgbify(@base)[]; --gm3-sys-color-shadow: @base; --gm3-sys-color-shadow-rgb: #lib.rgbify(@base)[]; } /* Settings menu title & back button */ .gb_Pc svg, .gb_Uc.gb_Zc svg, .gb_Pc .gb_gd .gb_od, .gb_Pc .gb_gd .gb_Oc, .gb_Pc .gb_gd .gb_id, .gb_Uc.gb_Zc .gb_od { color: @text !important; } /* Settings menu Storage total used icon */ .VBJTHe svg path { fill: @text; } /* Drive sync checkbox disabled */ .MlG5Jc gm-checkbox[disabled] ~ .VfPpkd-ga, .MlG5Jc gm-radio[disabled] ~ .VfPpkd-ga, .MlG5Jc .VfPpkd-Qa-Qu-db ~ .VfPpkd-ga, .MlG5Jc .VfPpkd-Eg-Qu-db ~ .VfPpkd-ga { color: @subtext0 !important; } /* Quota hover box-shadow */ .KnDsIf:hover, .KnDsIf:focus, .al9hA { box-shadow: 0 2px 6px @overlay0; } /* Quota Google Drive */ .kJzqSb { color: @blue; } /* Quota Google Photos */ .L1pqQb { color: @yellow; } /* Quota Gmail */ .au0LDe { color: @red; } /* Google Account outline */ .gb_Ea.gb_i { border-color: @overlay0; background-color: @surface0; } .gb_Ea.gb_i:focus, .gb_Ea.gb_i:hover { border-color: @subtext0; } /* File preview (separate tab) background */ &.ndfHFb-c4YZDc-uoC0bf.ndfHFb-c4YZDc-i5oIFb .ndfHFb-c4YZDc-bnBfGc { background-color: @base; } .a-b-uoC0bf.a-b-L .a-b-jl /* File preview (in Drive) background */ { background-color: fade(@base, 85%); } /* File preview (separate tab) top bar */ &.ndfHFb-c4YZDc-uoC0bf.ndfHFb-c4YZDc-i5oIFb .ndfHFb-c4YZDc-Wrql6b.ndfHFb-c4YZDc-Wrql6b-Hyc8Sd, .a-b-uoC0bf.a-b-L .a-b-K.a-b-K-Hyc8Sd /* File preview (in Drive) top bar */ { background-color: fade(@base, 85%); } /* File preview (separate tab) bottom bar */ .ndfHFb-c4YZDc-q77wGc .ndfHFb-c4YZDc-DARUcf-NnAfwf-i5oIFb, .ndfHFb-c4YZDc-q77wGc .ndfHFb-c4YZDc-nJjxad-nK2kYb-i5oIFb, .a-b-vo .a-b-La-yc-L, .a-b-vo .a-b-Kb-ac-L /* File preview (in Drive) bottom bar */ { background-color: fade(@base, 85%); color: @text !important; /* File preview (separate tab) page input */ .ndfHFb-c4YZDc-DARUcf-NGme3c-YPqjbf, .a-b-La-su-vb /* File preview (in Drive) page input */ { background-color: fade(@base, 50%); color: @text; } } /* File preview (separate tab) share button */ &.ndfHFb-c4YZDc-uoC0bf .zAYgkb-uoC0bf .tk3N6e-LgbsSe, &.ndfHFb-c4YZDc-uoC0bf .zAYgkb-mAKE4e-LQLjdd-xl07Ob-LgbsSe.VIpgJd-Kb3HCc-xl07Ob-LgbsSe, .a-b-uoC0bf .ae-uoC0bf .g-d, .a-b-uoC0bf .ae-mAKE4e-Hc-w-d.h-R-w-d /* File preview (in Drive) share button */ { background-color: @accent; color: @base; /* File preview (separate tab) share icon */ .IyROMc-euCgFf-LJSvSb, .ae-c /* File preview (in Drive) share icon */ { & when (@flavor = latte) { filter: brightness(0) invert(97%) sepia(4%) saturate(152%) hue-rotate( 183deg ) brightness(94%) contrast(106%); } & when (@flavor = frappe) { filter: brightness(0) invert(15%) sepia(8%) saturate(2252%) hue-rotate(192deg) brightness(98%) contrast(85%); } & when (@flavor = macchiato) { filter: brightness(0) invert(13%) sepia(26%) saturate(823%) hue-rotate(195deg) brightness(90%) contrast(92%); } & when (@flavor = mocha) { filter: brightness(0) invert(10%) sepia(36%) saturate(650%) hue-rotate(201deg) brightness(90%) contrast(93%); } } /* File preview (separate tab) share triangle */ .VIpgJd-Kb3HCc-xl07Ob-LgbsSe-j4gsHd, .h-R-w-d-Re /* File preview (in Drive) share triangle */ { border-color: @base transparent !important; } } /* File preview (separate tab) share Quick options */ .zAYgkb-NhlrFc-xl07Ob-BvBYQ, .h-w.ae-NhlrFc-w /* File preview (in Drive) share Quick options */ { background-color: @base; * { color: @text !important; } /* File preview (in Drive) share Quick options current share level container */ .h-v-x { opacity: 100%; } /* File preview (separate tab) share Quick options divider */ .zAYgkb-NhlrFc-gqMrKb, .ae-NhlrFc-Yo /* File preview (in Drive) share Quick options divider */ { border-color: @overlay0; } /* File preview (separate tab) share Quick options row hover */ .VIpgJd-j7LFlb-sn54Q, .h-v-pc /* File preview (in Drive) share Quick options row hover */ { background-color: @surface0; } /* File preview (separate tab) share Quick options row icon */ .IyROMc-euCgFf-LJSvSb, .ba-ea-i /* File preview (in Drive) share Quick options row icon */ { & when (@flavor = latte) { filter: brightness(0) invert(31%) sepia(10%) saturate(1268%) hue-rotate(196deg) brightness(90%) contrast(86%); } & when (@flavor = frappe) { filter: brightness(0) invert(80%) sepia(7%) saturate(1070%) hue-rotate(192deg) brightness(104%) contrast(92%); } & when (@flavor = macchiato) { filter: brightness(0) invert(84%) sepia(13%) saturate(579%) hue-rotate(193deg) brightness(99%) contrast(94%); } & when (@flavor = mocha) { filter: brightness(0) invert(84%) sepia(19%) saturate(370%) hue-rotate(192deg) brightness(98%) contrast(95%); } } } /* File preview (separate tab) Print, Download, 3 dots */ .ndfHFb-c4YZDc-Bz112c:not([style]), .ndfHFb-c4YZDc-Bz112c[style*="googlematerialicons"], .ndfHFb-c4YZDc-Bz112c[style="user-select: none;"], .ndfHFb-c4YZDc-Wrql6b-htvI8d-wcotoc-wHEfpf-ndfHFb-Bz112c /* File preview (separate tab) Save to drive */, .ndfHFb-c4YZDc-Wrql6b-w37qKe-Bz112c /* File preview (separate tab) Save to drive (clicked) */, /* File preview (in Drive) Print, Download, 3 dots */ .a-b-c:not([style]), .a-b-c[style*="googlematerialicons"], .a-b-c[style="user-select: none;"], .a-b-K-zc-Eb-bg-a-c /* File preview (in Drive) Save to drive */, .a-b-K-X-c /* File preview (in Drive) Save to drive (clicked) */ { & when (@flavor = latte) { filter: brightness(0) invert(31%) sepia(10%) saturate(1268%) hue-rotate( 196deg ) brightness(90%) contrast(86%); } & when (@flavor = frappe) { filter: brightness(0) invert(80%) sepia(7%) saturate(1070%) hue-rotate( 192deg ) brightness(104%) contrast(92%); } & when (@flavor = macchiato) { filter: brightness(0) invert(84%) sepia(13%) saturate(579%) hue-rotate( 193deg ) brightness(99%) contrast(94%); } & when (@flavor = mocha) { filter: brightness(0) invert(84%) sepia(19%) saturate(370%) hue-rotate( 192deg ) brightness(98%) contrast(95%); } } /* File preview (separate tab) File title */ .ndfHFb-c4YZDc-Wrql6b-V1ur5d, .a-b-cg-Zf /* File preview (in Drive) File title */ { color: @text; } /* File preview (separate tab) 3 dots menu item hover */ .ndfHFb-c4YZDc-j7LFlb:hover, .a-b-v:hover /* File preview (in Drive) 3 dots menu item hover */ { background-color: @surface0; } /* File preview (separate tab) No preview available */ .ndfHFb-c4YZDc-EglORb-haAclf, .a-b-Tb-j /* File preview (in Drive) No preview available */ { background-color: @surface0; color: @text; /* File preview (separate tab) No preview available Download */ .ndfHFb-c4YZDc-bN97Pc-nupQLb-LgbsSe, .a-b-x-rb-d /* File preview (in Drive) No preview available Download */ { background-color: @surface1; color: @text; text-shadow: none; border-color: transparent; &:hover { background-color: @surface2; background-image: none; } } /* File preview (separate tab) No preview available Download icon */ .ndfHFb-c4YZDc-bN97Pc-nupQLb-LgbsSe-Bz112c, .a-b-x-rb-d-c /* File preview (in Drive) No preview available Download icon */ { & when (@flavor = latte) { filter: brightness(0) invert(31%) sepia(10%) saturate(1268%) hue-rotate(196deg) brightness(90%) contrast(86%); } & when (@flavor = frappe) { filter: brightness(0) invert(80%) sepia(7%) saturate(1070%) hue-rotate(192deg) brightness(104%) contrast(92%); } & when (@flavor = macchiato) { filter: brightness(0) invert(84%) sepia(13%) saturate(579%) hue-rotate(193deg) brightness(99%) contrast(94%); } & when (@flavor = mocha) { filter: brightness(0) invert(84%) sepia(19%) saturate(370%) hue-rotate(192deg) brightness(98%) contrast(95%); } } } /* File preview (in Drive) text document */ .a-b-r-x, .ndfHFb-c4YZDc-fmcmS-bN97Pc /* File preview (separate tab) text document */ { &, pre { background-color: @surface0 !important; color: @text !important; } } /* File preview (in Drive) comment on image */ .Yk-efwuC { background-color: @surface0 !important; /* File preview (in Drive) comment on image person */ .Yk-Vq7Udc { background-color: @surface0 !important; [data-name] { color: @text !important; } /* Comment text */ .Yk-eKrold-Sg.Yk-eKrold-Sg { color: @text !important; } /* Comment date */ .Yk-eKrold-bi { color: @subtext0 !important; } } /* File preview (in Drive) comments */ .Yk-efwuC-vb-Gd { background-color: @surface0; &, * { color: @text !important; } [role="textbox"] { background-color: @surface1; border-color: @overlay0; &::before { color: @subtext0 !important; } } [role="button"] { background-color: @surface1 !important; /* needed to override border-color */ &[role="button"] { border-color: @overlay0 !important; } &[aria-disabled="true"] { background-color: @surface1 !important; color: @subtext0 !important; } } } } /* Drive sharing window material icon */ .SbpzSe .VfPpkd-StrnGf-rymPhb-f7MjDc { color: @accent; } /* Drive sharing window access hover */ .lfDNBb:hover, .lfDNBb:focus-within, .ZelW3e:hover .FYhd9e, .ZelW3e:focus-within .FYhd9e /* Drive sharing window person row hover */ { background-color: @surface0; } /* Drive sharing iframe (in Drive) */ .lb-k-x { color-scheme: unset; } /* Drive sharing iframe (file preview separate tab) */ .XKSfm-Sx9Kwc-bN97Pc { color-scheme: auto; /* unset doesn't work? */ } [role="tooltip"], .Kk7lMc-Ca /* Drive applications sidebar tooltip */, .gb_2e /* Drive google account tooltip */ { background-color: @surface2; *, & { color: @text !important; } border-color: transparent; /* File preview (separate tab) tooltip arrow */ .tk3N6e-suEOdc-jQ8oHc, .tk3N6e-suEOdc-ez0xG { border-color: @surface2 transparent !important; } } /* Drive applications sidebar close button */ .Kk7lMc-QWPxkf-d-j .Yb-Il-d .Yb-Il-d-c-j { background-color: @surface0; path:nth-child(1) { stroke: @text; } } /* Drive applications sidebar get addons */ .Yb-Il-d#qJTzr .Yb-Il-d-c-j { & when (@flavor = latte) { filter: brightness(0) invert(31%) sepia(10%) saturate(1268%) hue-rotate( 196deg ) brightness(90%) contrast(86%); } & when (@flavor = frappe) { filter: brightness(0) invert(80%) sepia(7%) saturate(1070%) hue-rotate( 192deg ) brightness(104%) contrast(92%); } & when (@flavor = macchiato) { filter: brightness(0) invert(84%) sepia(13%) saturate(579%) hue-rotate( 193deg ) brightness(99%) contrast(94%); } & when (@flavor = mocha) { filter: brightness(0) invert(84%) sepia(19%) saturate(370%) hue-rotate( 192deg ) brightness(98%) contrast(95%); } } /* Drive applications sidebar close button white background */ .Yb-Il-d-c-Nd { background-color: transparent; } /* Drive icon */ [src="//ssl.gstatic.com/images/branding/product/1x/drive_2020q4_48dp.png"] { @darkBlue: mix(@blue, @base, 80%); @darkGreen: mix(@green, @base, 80%); @svg: escape( '' ); content: url("data:image/svg+xml,@{svg}"); } /* Drive upload checkmark */ .z-Ea-Fj-c svg path { fill: @green; } } }