Skip to content

Commit 6c44f38

Browse files
committed
Made modal button hover styles more subtle ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions/tree/main/amazongpt]
1 parent f59eb3a commit 6c44f38

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

chatgpt/amazongpt/amazongpt.user.js

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// @description Add AI chat & product/category summaries to Amazon shopping, powered by the latest LLMs like GPT-4o!
44
// @author KudoAI
55
// @namespace https://kudoai.com
6-
// @version 2025.10.11.6
6+
// @version 2025.10.12
77
// @license MIT
88
// @icon https://amazongpt.kudoai.com/assets/images/icons/app/black-gold-teal/icon48.png?v=8e8ed1c
99
// @icon64 https://amazongpt.kudoai.com/assets/images/icons/app/black-gold-teal/icon64.png?v=8e8ed1c
@@ -1839,18 +1839,22 @@
18391839
border: 1px solid ${ env.ui.app.scheme == 'dark' ? 'white' : 'black' }!important ;
18401840
${ env.ui.app.scheme == 'dark' ? 'background: none ; color: white' : '' }}
18411841
.primary-modal-btn { background: black !important ; color: white !important }
1842-
.chatgpt-modal button:hover { background-color: #9cdaff !important ; color: black !important }
1842+
.chatgpt-modal button:hover {
1843+
${ env.ui.app.scheme == 'light' ? // reduce intensity of light scheme hover glow
1844+
'--btn-shadow: 2px 1px 43px #00cfff70 ;' : '' }
1845+
color: inherit !important ; background-color: inherit !important /* remove color hacks */
1846+
}
18431847
${ env.ui.app.scheme == 'dark' ? // darkmode chatgpt.alert() styles
18441848
`.chatgpt-modal > div, .chatgpt-modal button:not(.primary-modal-btn) {
18451849
color: white !important }
18461850
.primary-modal-btn { background: #00cfff !important ; color: black !important }
1847-
.chatgpt-modal a { color: #00cfff !important }
1848-
.chatgpt-modal button:hover {
1849-
background-color: #00cfff !important ; color: black !important }` : '' }
1851+
.chatgpt-modal a { color: #00cfff !important }` : ''
1852+
}
18501853
.${modals.class} { display: grid ; place-items: center } /* for centered icon/logo */
18511854
[class*=modal-close-btn] {
18521855
position: absolute !important ; float: right ; top: 14px !important ; right: 16px !important ;
1853-
cursor: pointer ; width: 33px ; height: 33px ; border-radius: 20px }
1856+
cursor: pointer ; width: 33px ; height: 33px ; border-radius: 20px
1857+
}
18541858
[class*=modal-close-btn] path {${ env.ui.app.scheme == 'dark' ? 'stroke: white ; fill: white'
18551859
: 'stroke: #9f9f9f ; fill: #9f9f9f' }}
18561860
${ env.ui.app.scheme == 'dark' ? // invert dark mode hover paths

0 commit comments

Comments
 (0)