|
148 | 148 | // @description:zu Yengeza izimpendulo ze-AI ku-Brave Search (inikwa amandla yi-GPT-4o!) |
149 | 149 | // @author KudoAI |
150 | 150 | // @namespace https://kudoai.com |
151 | | -// @version 2025.3.29.4 |
| 151 | +// @version 2025.3.30 |
152 | 152 | // @license MIT |
153 | 153 | // @icon https://cdn.jsdelivr.net/gh/KudoAI/bravegpt@df624b0/assets/images/icons/bravegpt/icon48.png |
154 | 154 | // @icon64 https://cdn.jsdelivr.net/gh/KudoAI/bravegpt@df624b0/assets/images/icons/bravegpt/icon64.png |
|
2339 | 2339 | width: 12.5px ; height: 12.5px ; margin-right: 6px ; top: 1px }` |
2340 | 2340 |
|
2341 | 2341 | // AI reply elem styles |
2342 | | - + `#${app.slug} .reply-tip {` |
2343 | | - + 'content: "" ; position: relative ; border: 7px solid transparent ;' |
2344 | | - + 'float: left ; left: 7px ; margin: 29px -13px 0 0 ;' // positioning |
2345 | | - + 'border-bottom-style: solid ; border-bottom-width: 16px ; border-top: 0 ; border-bottom-color:' |
2346 | | - + `${ // hide reply tip for terminal aesthetic |
2347 | | - isParticlizedDS ? '#0000' : `var(--reply-header-bg-color-${env.ui.app.scheme}-scheme)` }}` |
2348 | | - + `#${app.slug} .reply-header { |
| 2342 | + + `#${app.slug} .reply-tip { |
| 2343 | + content: "" ; position: relative ; border: 7px solid transparent ; |
| 2344 | + float: left ; left: 7px ; margin: 29px -13px 0 0 ; /* positioning */ |
| 2345 | + border-bottom-style: solid ; border-bottom-width: 16px ; border-top: 0 ; border-bottom-color: |
| 2346 | + ${ // hide reply tip for terminal aesthetic |
| 2347 | + isParticlizedDS ? '#0000' : `var(--reply-header-bg-color-${env.ui.app.scheme}-scheme)` }} |
| 2348 | + #${app.slug} .reply-header { |
2349 | 2349 | display: flex ; align-items: center ; position: relative ; |
2350 | 2350 | top: 12px ; padding: 16px 14px ; height: 18px ; border-radius: 12px 12px 0 0 ; |
2351 | 2351 | ${ env.ui.app.scheme == 'light' ? 'border-bottom: 1px solid white' |
|
2355 | 2355 | fill: var(--reply-header-fg-color-${env.ui.app.scheme}-scheme) ; |
2356 | 2356 | stroke: var(--reply-header-fg-color-${env.ui.app.scheme}-scheme) } |
2357 | 2357 | #${app.slug} .reply-header-text { flex-grow: 1 ; font-size: 12px ; font-family: monospace } |
2358 | | - #${app.slug} .reply-header-btns { margin: 10.5px -5px 0 }` |
2359 | | - + `#${app.slug} .reply-pre {` |
2360 | | - + `font-size: ${config.fontSize}px ; white-space: pre-wrap ;` |
2361 | | - + 'font-family: Consolas, Menlo, Monaco, monospace ;' |
2362 | | - + `line-height: ${ config.fontSize * config.lineHeightRatio }px ; overscroll-behavior: contain ;` |
2363 | | - + 'margin-top: 12px ; padding: 1.2em 1.2em 0 1.2em ; border-radius: 0 0 12px 12px ; overflow: auto ;' |
2364 | | - + ( config.bgAnimationsDisabled ? // classic opaque bg |
2365 | | - `background: var(--pre-bg-color-${env.ui.app.scheme}-scheme) ;` |
2366 | | - + `color: var(--font-color-${env.ui.app.scheme}-scheme)` |
2367 | | - : `${ env.ui.app.scheme == 'dark' ? // slightly tranluscent bg |
| 2358 | + #${app.slug} .reply-header-btns { margin: 10.5px -5px 0 } |
| 2359 | + #${app.slug} .reply-pre { |
| 2360 | + font-size: ${config.fontSize}px ; white-space: pre-wrap ; |
| 2361 | + font-family: Consolas, Menlo, Monaco, monospace ; |
| 2362 | + line-height: ${ config.fontSize * config.lineHeightRatio }px ; overscroll-behavior: contain ; |
| 2363 | + position: relative ; z-index: 1 ; /* allow top-margin to overlap header in light scheme */ |
| 2364 | + margin-top: ${ env.ui.app.scheme == 'light' ? 10 : 12 }px ; padding: 1.2em 1.2em 0 1.2em ; |
| 2365 | + border-radius: 0 0 12px 12px ; overflow: auto ; |
| 2366 | + ${ config.bgAnimationsDisabled ? // classic opaque bg |
| 2367 | + `background: var(--pre-bg-color-${env.ui.app.scheme}-scheme) ; |
| 2368 | + color: var(--font-color-${env.ui.app.scheme}-scheme)` |
| 2369 | + : env.ui.app.scheme == 'dark' ? // slightly tranluscent bg |
2368 | 2370 | 'background: #2b3a40cf ; color: var(--font-color-dark-scheme) ; border: 1px solid white' |
2369 | | - : 'background: var(--pre-bg-color-light-scheme) ;' |
2370 | | - + 'color: var(--font-color-light-scheme) ; border: none' };` ) |
2371 | | - + `${ config.fgAnimationsDisabled ? '' : // smoothen Anchor mode expand/shrink |
2372 | | - 'transition: var(--answer-pre-transition) ;' |
2373 | | - + '-webkit-transition: var(--answer-pre-transition) ;' |
2374 | | - + '-moz-transition: var(--answer-pre-transition) ;' |
2375 | | - + '-o-transition: var(--answer-pre-transition) ;' |
2376 | | - + '-ms-transition: var(--answer-pre-transition)' }}` |
2377 | | - + `#${app.slug} .reply-pre a, #${app.slug} .reply-pre a:visited { color: #4495d4 }` |
2378 | | - + `#${app.slug} .reply-pre a:hover { color: ${ env.ui.app.scheme == 'dark' ? 'white' : '#ea7a28' }}` |
2379 | | - + `code #${app.slug}-copy-btn { position: relative ; top: -6px ; right: -9px }` |
2380 | | - + `code #${app.slug}-copy-btn > svg { height: 13px ; width: 13px ; fill: white }` |
2381 | | - |
2382 | | - // Rendered AI reply styles |
| 2371 | + : /* light scheme */ `background: var(--pre-bg-color-light-scheme) ; |
| 2372 | + color: var(--font-color-light-scheme) ; border: none` }; |
| 2373 | + ${ config.fgAnimationsDisabled ? '' : // smoothen Anchor mode expand/shrink |
| 2374 | + `transition: var(--answer-pre-transition) ; |
| 2375 | + -webkit-transition: var(--answer-pre-transition) ; -moz-transition: var(--answer-pre-transition) ; |
| 2376 | + -o-transition: var(--answer-pre-transition) ; -ms-transition: var(--answer-pre-transition)` }} |
| 2377 | + #${app.slug} .reply-pre a, #${app.slug} .reply-pre a:visited { color: #4495d4 } |
| 2378 | + #${app.slug} .reply-pre a:hover { color: ${ env.ui.app.scheme == 'dark' ? 'white' : '#ea7a28' }} |
| 2379 | + code #${app.slug}-copy-btn { position: relative ; top: -6px ; right: -9px } |
| 2380 | + code #${app.slug}-copy-btn > svg { height: 13px ; width: 13px ; fill: white }` |
| 2381 | + |
| 2382 | + // Rendered AI reply text styles |
2383 | 2383 | + `#${app.slug} .reply-pre h1 { font-size: 1.25em } |
2384 | 2384 | #${app.slug} .reply-pre h2 { font-size: 1.1em } |
2385 | 2385 | #${app.slug} .reply-pre ul { margin: -10px 0 -6px } /* reduce v-spacing */ |
|
0 commit comments