Skip to content

Commit

Permalink
Moved @keyframes rotation from modal to app styles, grouped animati…
Browse files Browse the repository at this point in the history
…ons together, renamed to `rotate` ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions/tree/main/duckduckgpt]
  • Loading branch information
kudo-sync-bot committed Feb 2, 2025
1 parent 2723265 commit 3d134d6
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions greasemonkey/duckduckgpt.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@
// @description:zu Yengeza izimpendulo ze-AI ku-DuckDuckGo (inikwa amandla yi-GPT-4o!)
// @author KudoAI
// @namespace https://kudoai.com
// @version 2025.2.1.14
// @version 2025.2.1.15
// @license MIT
// @icon https://assets.ddgpt.com/images/icons/duckduckgpt/icon48.png?v=06af076
// @icon64 https://assets.ddgpt.com/images/icons/duckduckgpt/icon64.png?v=06af076
Expand Down Expand Up @@ -948,8 +948,7 @@
+ 'position: relative ; top: 3px ; margin-left: 4px }'
+ ( config.fgAnimationsDisabled ? '' // spin cycle arrows icon when scheme is Auto
: ( '#scheme-settings-entry svg:has([d^="M204-318q-22"]),'
+ '.chatgpt-notif svg:has([d^="M204-318q-22"]) { animation: rotation 5s linear infinite }' ))
+ '@keyframes rotation { from { transform: rotate(0deg) } to { transform: rotate(360deg) }}'
+ '.chatgpt-notif svg:has([d^="M204-318q-22"]) { animation: rotate 5s linear infinite }' ))
+ `#about-settings-entry span { color: ${ env.ui.app.scheme == 'dark' ? '#28ee28' : 'green' }}`
+ '#about-settings-entry > span {' // outer About status span
+ `width: ${ env.browser.isPortrait ? '15vw' : '95px' } ; height: 20px ; overflow: hidden ;`
Expand Down Expand Up @@ -2060,10 +2059,14 @@
+ '--rq-transition: transform 0.1s ease !important ;' // for hover-zoom
+ '--fade-in-less-transition: opacity 0.2s ease }' // used by Font Size slider + Pin menu

// Main styles
// Animations
+ '@keyframes btn-zoom-fade-out {'
+ '0% { opacity: 1 } 55% { opacity: 0.25 ; transform: scale(1.85) }'
+ '75% { opacity: 0.05 ; transform: scale(2.15) } 100% { opacity: 0 ; transform: scale(6.85) }}'
+ '@keyframes pulse { 0%, to { opacity: 1 } 50% { opacity: .5 }}'
+ '@keyframes rotate { from { transform: rotate(0deg) } to { transform: rotate(360deg) }}'

// Main styles
+ '.no-user-select {'
+ '-webkit-user-select: none ; -moz-user-select: none ;'
+ '-ms-user-select: none ; user-select: none }'
Expand Down Expand Up @@ -2196,7 +2199,6 @@
+ '-ms-transition: var(--answer-pre-transition) }' }}`
+ `#${app.slug} > pre a, #${app.slug} > pre a:visited { color: #4495d4 }`
+ `#${app.slug} pre a:hover { color: ${ env.ui.app.scheme == 'dark' ? 'white' : '#ea7a28' }}`
+ '@keyframes pulse { 0%, to { opacity: 1 } 50% { opacity: .5 }}'
+ `#${app.slug} section.loading { padding-left: 5px }` // left-pad loading status when sending replies
+ `.${app.slug}-header-btns {
--light-scheme-color: #6f6f6f ; --dark-scheme-color: white ; float: right ; margin-left: 5px ;
Expand Down Expand Up @@ -3575,7 +3577,7 @@
if (!env.browser.isMobile) regenBtn.onmouseenter = regenBtn.onmouseleave = toggle.tooltip
regenBtn.onclick = event => {
get.reply(msgChain)
Object.assign(regenSVG.style, { animation: 'rotation 1.8s linear infinite', cursor: 'default' })
Object.assign(regenSVG.style, { animation: 'rotate 1.8s linear infinite', cursor: 'default' })
toggle.tooltip(event) // trigger tooltip update

// Hide/remove elems
Expand Down

0 comments on commit 3d134d6

Please sign in to comment.