|
148 | 148 | // @description:zu Yengeza izimpendulo ze-AI ku-DuckDuckGo (inikwa amandla yi-GPT-4o!)
|
149 | 149 | // @author KudoAI
|
150 | 150 | // @namespace https://kudoai.com
|
151 |
| -// @version 2025.5.29.2 |
| 151 | +// @version 2025.6.2 |
152 | 152 | // @license MIT
|
153 | 153 | // @icon https://assets.ddgpt.com/images/icons/app/icon48.png?v=533ce0f
|
154 | 154 | // @icon64 https://assets.ddgpt.com/images/icons/app/icon64.png?v=533ce0f
|
|
404 | 404 | about: { type: 'modal', icon: 'questionMarkCircle',
|
405 | 405 | label: `${app.msgs.menuLabel_about} ${app.name}...` }
|
406 | 406 | }})
|
407 |
| - Object.assign(config, { lineHeightRatio: 1.28, maxFontSize: 24, minFontSize: 11, theme: 'lines' }) |
| 407 | + Object.assign(config, { lineHeightRatio: 1.28, maxFontSize: 24, minFontSize: 11 }) |
408 | 408 | settings.load(Object.keys(settings.controls), 'expanded', 'fontSize', 'minimized', 'notFirstRun')
|
409 | 409 | if (!config.replyLang) settings.save('replyLang', env.browser.language) // init reply language if unset
|
410 | 410 | if (!config.fontSize) settings.save('fontSize', 14.948771158854168) // init reply font size if unset
|
|
516 | 516 |
|
517 | 517 | /* Standby button styles */
|
518 | 518 | ${selectors.btn.standby} {
|
519 |
| - --standby-btn-zoom: scale(1.055) ; |
520 | 519 | --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 } |
523 | 521 | ${selectors.btn.standby}:nth-child(odd) { margin-right: 20% ; margin-left: 15px }
|
524 | 522 | ${selectors.btn.standby}:nth-child(even) { margin-left: 20% ; margin-bottom: 19px }
|
525 | 523 | ${selectors.btn.standby}:hover {
|
526 | 524 | 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' }}` |
529 | 526 | }
|
530 | 527 | }
|
531 | 528 | }
|
|
569 | 566 | --app-shadow: 0 2px 3px rgb(0,0,0,0.06) ;
|
570 | 567 | --app-hover-shadow-light-scheme: 0 1px 4px rgba(0,0,0,0.1), 0 4px 8px rgba(0,0,0,0.08) ;
|
571 | 568 | --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' }) ; |
574 | 570 | --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 */ |
577 | 573 | --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 ; |
579 | 575 | --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 */ |
581 | 577 | --font-size-slider-thumb-transition: transform 0.05s ease ; /* for hover-zoom */
|
582 | 578 | --reply-pre-transition: max-height 0.167s cubic-bezier(0, 0, 0.2, 1) ; /* for Anchor changes */
|
583 | 579 | --rq-transition: opacity 0.55s ease, transform 0.1s ease !important ; /* for fade-in + hover-zoom */
|
|
710 | 706 | ${ env.browser.isMobile ? '' : `#${app.slug}-font-size-slider-thumb:hover { transform: scale(1.125) }`}
|
711 | 707 | .${app.slug}-standby-btns { margin: 14px 0 -3px }
|
712 | 708 | .${app.slug}-standby-btn {
|
| 709 | + --skew: skew(-13deg) ; --counter-skew: skew(13deg) ; |
| 710 | + --content-color: ${ env.ui.app.scheme == 'dark' ? 'white' : 'black' }; |
713 | 711 | 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) ; |
715 | 715 | ${ config.fgAnimationsDisabled ? ''
|
716 | 716 | : `will-change: transform ;
|
717 | 717 | transition: var(--standby-btn-transition) ;
|
718 | 718 | -webkit-transition: var(--standby-btn-transition) ;
|
719 | 719 | -moz-transition: var(--standby-btn-transition) ;
|
720 | 720 | -o-transition: var(--standby-btn-transition) ;
|
721 | 721 | -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 } |
724 | 731 | .${app.slug}-standby-btn:first-of-type svg { /* Query button icon */
|
725 | 732 | width: 11px ; height: 11px ; top: -1.5px ; right: -1.5px }
|
726 | 733 | .${app.slug}-standby-btn:nth-of-type(2) svg { /* Summarize button icon */
|
|
0 commit comments