From 2260ad617e61ef8373679fd417a7f78f6eaeb18d Mon Sep 17 00:00:00 2001 From: uncenter <47499684+uncenter@users.noreply.github.com> Date: Fri, 29 Mar 2024 16:47:42 -0400 Subject: [PATCH] fix(chatgpt): some other login page (#731) --- styles/chatgpt/catppuccin.user.css | 181 ++++++++++++++++++++++++++--- 1 file changed, 162 insertions(+), 19 deletions(-) diff --git a/styles/chatgpt/catppuccin.user.css b/styles/chatgpt/catppuccin.user.css index 717b041b..33c58611 100644 --- a/styles/chatgpt/catppuccin.user.css +++ b/styles/chatgpt/catppuccin.user.css @@ -2,7 +2,7 @@ @name ChatGPT Catppuccin @namespace github.com/catppuccin/userstyles/styles/chatgpt @homepageURL https://github.com/catppuccin/userstyles/tree/main/styles/chatgpt -@version 0.2.5 +@version 0.2.6 @updateURL https://github.com/catppuccin/userstyles/raw/main/styles/chatgpt/catppuccin.user.css @supportURL https://github.com/catppuccin/userstyles/issues?q=is%3Aopen+is%3Aissue+label%3Achatgpt @description Soothing pastel theme for ChatGPT @@ -927,6 +927,147 @@ } } +@-moz-document domain("auth.openai.com") { + @media (prefers-color-scheme: light) { + :root { + #catppuccin(@lightFlavor, @accentColor); + } + } + + @media (prefers-color-scheme: dark) { + :root { + #catppuccin(@darkFlavor, @accentColor); + } + } + + #catppuccin(@lookup, @accent) { + @rosewater: @catppuccin[@@lookup][@rosewater]; + @flamingo: @catppuccin[@@lookup][@flamingo]; + @pink: @catppuccin[@@lookup][@pink]; + @mauve: @catppuccin[@@lookup][@mauve]; + @red: @catppuccin[@@lookup][@red]; + @maroon: @catppuccin[@@lookup][@maroon]; + @peach: @catppuccin[@@lookup][@peach]; + @yellow: @catppuccin[@@lookup][@yellow]; + @green: @catppuccin[@@lookup][@green]; + @teal: @catppuccin[@@lookup][@teal]; + @sky: @catppuccin[@@lookup][@sky]; + @sapphire: @catppuccin[@@lookup][@sapphire]; + @blue: @catppuccin[@@lookup][@blue]; + @lavender: @catppuccin[@@lookup][@lavender]; + @text: @catppuccin[@@lookup][@text]; + @subtext1: @catppuccin[@@lookup][@subtext1]; + @subtext0: @catppuccin[@@lookup][@subtext0]; + @overlay2: @catppuccin[@@lookup][@overlay2]; + @overlay1: @catppuccin[@@lookup][@overlay1]; + @overlay0: @catppuccin[@@lookup][@overlay0]; + @surface2: @catppuccin[@@lookup][@surface2]; + @surface1: @catppuccin[@@lookup][@surface1]; + @surface0: @catppuccin[@@lookup][@surface0]; + @base: @catppuccin[@@lookup][@base]; + @mantle: @catppuccin[@@lookup][@mantle]; + @crust: @catppuccin[@@lookup][@crust]; + @accent-color: @catppuccin[@@lookup][@@accent]; + + color-scheme: if(@lookup = latte, light, dark); + color: @text; + caret-color: @text; + + a { + color: @accent-color; + } + + body, + .oai-header, + .login-container { + background-color: @base; + } + + img[alt="OpenAI's Logo"] { + @svg: escape( + '' + ); + height: 0 !important; + width: 0 !important; + padding-left: 32px !important; + padding-top: 32px !important; + margin-top: 32px; + background: url("data:image/svg+xml,@{svg}") no-repeat !important; + } + + .title { + color: @text; + } + + .email-input { + background-color: @base; + border-color: @surface0; + color: @text; + + &:focus, + &:valid { + border-color: @accent-color; + + & + .email-label { + color: @accent-color; + background-color: @base; + } + } + } + .email-label { + background-color: @base; + color: @subtext0; + } + + .continue-btn { + background-color: @accent-color; + color: @base; + } + + .divider-wrapper { + &::before, + &::after { + border-bottom-color: @surface2; + } + } + + .social-btn { + background-color: @mantle; + border-color: @surface0; + color: @text; + } + + @orange: mix(@red, @yellow); + + .social-logo { + height: 0 !important; + width: 0 !important; + padding-left: 20px !important; + padding-top: 20px !important; + } + + img[alt="Google logo"] { + @svg: escape( + '' + ); + background-image: url("data:image/svg+xml;charset=utf-8,@{svg}"); + } + img[alt="Microsoft logo"] { + @svg: escape( + '' + ); + + background-image: url("data:image/svg+xml;charset=utf-8,@{svg}"); + } + img[alt="Apple logo"] { + @svg: escape( + '' + ); + background-image: url("data:image/svg+xml;charset=utf-8,@{svg}"); + } + } +} + @-moz-document domain("auth0.openai.com") { @media (prefers-color-scheme: light) { :root { @@ -988,7 +1129,7 @@ --gray-dark: @overlay2; --gray-darkest: @text; - .c4ca43590 { + .cb2dfcee4 { background-color: @accent-color; color: @base; } @@ -1007,23 +1148,25 @@ @orange: mix(@red, @yellow); - .c7e427425[data-provider^="google"] { - @svg: escape( - '' - ); - background-image: url("data:image/svg+xml;charset=utf-8,@{svg}"); - } - .c7e427425[data-provider^="windowslive"] { - @svg: escape( - '' - ); - background-image: url("data:image/svg+xml;charset=utf-8,@{svg}"); - } - .c7e427425[data-provider^="apple"] { - @svg: escape( - '' - ); - background-image: url("data:image/svg+xml;charset=utf-8,@{svg}"); + button > span { + &[data-provider^="google"] { + @svg: escape( + '' + ); + background-image: url("data:image/svg+xml;charset=utf-8,@{svg}"); + } + &[data-provider^="windowslive"] { + @svg: escape( + '' + ); + background-image: url("data:image/svg+xml;charset=utf-8,@{svg}"); + } + &[data-provider^="apple"] { + @svg: escape( + '' + ); + background-image: url("data:image/svg+xml;charset=utf-8,@{svg}"); + } } } }