Skip to content

Commit 7fde693

Browse files
committed
De-activated lines theme, moved some styles to core ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions/tree/main/duckduckgpt]
1 parent c646caa commit 7fde693

File tree

1 file changed

+23
-16
lines changed

1 file changed

+23
-16
lines changed

chatgpt/duckduckgpt/duckduckgpt.user.js

Lines changed: 23 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148
// @description:zu Yengeza izimpendulo ze-AI ku-DuckDuckGo (inikwa amandla yi-GPT-4o!)
149149
// @author KudoAI
150150
// @namespace https://kudoai.com
151-
// @version 2025.5.29.2
151+
// @version 2025.6.2
152152
// @license MIT
153153
// @icon https://assets.ddgpt.com/images/icons/app/icon48.png?v=533ce0f
154154
// @icon64 https://assets.ddgpt.com/images/icons/app/icon64.png?v=533ce0f
@@ -404,7 +404,7 @@
404404
about: { type: 'modal', icon: 'questionMarkCircle',
405405
label: `${app.msgs.menuLabel_about} ${app.name}...` }
406406
}})
407-
Object.assign(config, { lineHeightRatio: 1.28, maxFontSize: 24, minFontSize: 11, theme: 'lines' })
407+
Object.assign(config, { lineHeightRatio: 1.28, maxFontSize: 24, minFontSize: 11 })
408408
settings.load(Object.keys(settings.controls), 'expanded', 'fontSize', 'minimized', 'notFirstRun')
409409
if (!config.replyLang) settings.save('replyLang', env.browser.language) // init reply language if unset
410410
if (!config.fontSize) settings.save('fontSize', 14.948771158854168) // init reply font size if unset
@@ -516,16 +516,13 @@
516516
517517
/* Standby button styles */
518518
${selectors.btn.standby} {
519-
--standby-btn-zoom: scale(1.055) ;
520519
--standby-btn-transition: transform 0.18s ease, background 0.2s ease ;
521-
font-size: 11.5px ; width: 80% ; height: 51px ; margin-bottom: 16px ; transform: var(--skew) }
522-
${selectors.btn.standby} > span { transform: var(--counter-skew) }
520+
font-size: 11.5px ; width: 80% ; height: 51px ; margin-bottom: 16px }
523521
${selectors.btn.standby}:nth-child(odd) { margin-right: 20% ; margin-left: 15px }
524522
${selectors.btn.standby}:nth-child(even) { margin-left: 20% ; margin-bottom: 19px }
525523
${selectors.btn.standby}:hover {
526524
border : 1px rgba(var(--content-color), ${
527-
env.ui.app.scheme == 'dark' ? '1) solid' : '0.6) dotted' };
528-
transform: var(--skew) ${ env.browser.isMobile ? '' : 'var(--standby-btn-zoom)' }}`
525+
env.ui.app.scheme == 'dark' ? '1) solid' : '0.6) dotted' }}`
529526
}
530527
}
531528
}
@@ -569,15 +566,14 @@
569566
--app-shadow: 0 2px 3px rgb(0,0,0,0.06) ;
570567
--app-hover-shadow-light-scheme: 0 1px 4px rgba(0,0,0,0.1), 0 4px 8px rgba(0,0,0,0.08) ;
571568
--app-hover-shadow-dark-scheme: 0 1px 4px rgba(0,0,0,0.1), 0 4px 8px rgba(0,0,0,0.38) ;
572-
--app-anchored-shadow: 0 15px 52px rgb(0,0,${ env.ui.app.scheme == 'light' ? '7,0.06'
573-
: '11,0.22' }) ;
569+
--app-anchored-shadow: 0 15px 52px rgb(0,0,${ env.ui.app.scheme == 'light' ? '7,0.06' : '11,0.22' }) ;
574570
--app-transition: opacity 0.5s ease, transform 0.5s ease, /* for 1st fade-in */
575-
bottom 0.1s cubic-bezier(0,0,0.2,1), /* smoothen Anchor Y min/restore */
576-
width 0.167s cubic-bezier(0,0,0.2,1) ; /* smoothen Anchor X expand/shrink */
571+
bottom 0.1s cubic-bezier(0,0,0.2,1), /* smoothen Anchor Y min/restore */
572+
width 0.167s cubic-bezier(0,0,0.2,1) ; /* smoothen Anchor X expand/shrink */
577573
--app-shadow-transition: box-shadow 0.15s ease ; /* for app:hover to not trigger on hover-off */
578-
--standby-btn-zoom: scale(1.055) ; --standby-btn-transition: all 0.25s ease ;
574+
--standby-btn-zoom: scale(1.055) ; --standby-btn-transition: all 0.18s ease ;
579575
--btn-transition: transform 0.15s ease, /* for hover-zoom */
580-
opacity 0.25s ease-in-out ; /* + btn-zoom-fade-out + .app-hover-only shows */
576+
opacity 0.25s ease-in-out ; /* + btn-zoom-fade-out + .app-hover-only shows */
581577
--font-size-slider-thumb-transition: transform 0.05s ease ; /* for hover-zoom */
582578
--reply-pre-transition: max-height 0.167s cubic-bezier(0, 0, 0.2, 1) ; /* for Anchor changes */
583579
--rq-transition: opacity 0.55s ease, transform 0.1s ease !important ; /* for fade-in + hover-zoom */
@@ -710,17 +706,28 @@
710706
${ env.browser.isMobile ? '' : `#${app.slug}-font-size-slider-thumb:hover { transform: scale(1.125) }`}
711707
.${app.slug}-standby-btns { margin: 14px 0 -3px }
712708
.${app.slug}-standby-btn {
709+
--skew: skew(-13deg) ; --counter-skew: skew(13deg) ;
710+
--content-color: ${ env.ui.app.scheme == 'dark' ? 'white' : 'black' };
713711
display: flex ; align-items: center ; justify-content: center ; gap: 8px ;
714-
cursor: pointer ; background: none ; color: rgb(var(--content-color)) ;
712+
width: 90% ; height: 51px ; margin-bottom: 9px ; padding: 12px 0 ;
713+
cursor: pointer ; transform: var(--skew) ; border: 1px solid var(--content-color) ;
714+
background: none ; box-shadow: #aaaaaa12 7px 7px 3px 0px ; color: var(--content-color) ;
715715
${ config.fgAnimationsDisabled ? ''
716716
: `will-change: transform ;
717717
transition: var(--standby-btn-transition) ;
718718
-webkit-transition: var(--standby-btn-transition) ;
719719
-moz-transition: var(--standby-btn-transition) ;
720720
-o-transition: var(--standby-btn-transition) ;
721721
-ms-transition: var(--standby-btn-transition)` }}
722-
.${app.slug}-standby-btn:hover { color: rgb(var(--content-color)) ; transform: var(--standby-btn-zoom) }
723-
.${app.slug}-standby-btn > svg { position: relative ; stroke: rgb(var(--content-color)) }
722+
.${app.slug}-standby-btn:hover {
723+
color: var(--content-color) ;
724+
transform: var(--skew) ${ env.browser.isMobile ? '' : 'var(--standby-btn-zoom)' }}
725+
.${app.slug}-standby-btn > span { transform: var(--counter-skew) }
726+
.${app.slug}-standby-btn > svg {
727+
position: relative ; stroke: var(--content-color) ; fill: stroke: var(--content-color) ;
728+
transform: var(--counter-skew) }
729+
.${app.slug}-standby-btn:nth-child(odd) { margin-right: 10% }
730+
.${app.slug}-standby-btn:nth-child(even) { margin-left: 10% ; margin-bottom: 19px }
724731
.${app.slug}-standby-btn:first-of-type svg { /* Query button icon */
725732
width: 11px ; height: 11px ; top: -1.5px ; right: -1.5px }
726733
.${app.slug}-standby-btn:nth-of-type(2) svg { /* Summarize button icon */

0 commit comments

Comments
 (0)