Skip to content

Commit

Permalink
Restricted invert colors on menu item hover to text only to not affec…
Browse files Browse the repository at this point in the history
…t toggles ↞ [auto-sync from https://github.com/KudoAI/chatgpt.js-chrome-starter]
  • Loading branch information
kudo-sync-bot committed Dec 25, 2024
1 parent d494d7f commit 1cf590c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions starters/chrome/extension/popup/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ a:focus, a:hover { text-decoration: underline ; color: inherit }
.menu-icon { padding: 8px }
.menu-area:focus, .menu-area:hover { /* add hover color/cursor */
color: var(--bg) ; background: rgb(100, 149, 237) ; cursor: pointer }
.menu-item:hover .toggle-switch .slider, .menu-item:hover span { filter: invert(1) } /* invert toggle switch + label */
.menu-item:hover .menu-icon { filter: none } /* ...but not non-toggle icons */
.menu-item:hover span:not(.slider) { filter: invert(1) } /* invert setting labels on hover */
.menu-item > label > .slider { transform: scale(0.95) ; top: 1px } /* make child toggles smaller */
.menu-prompt { margin-left: 2px } /* align non-toggle items */

Expand Down

0 comments on commit 1cf590c

Please sign in to comment.