forked from ConnectAI-E/MidJourney-Web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
unocss.config.ts
59 lines (58 loc) · 2.85 KB
/
unocss.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
import {
defineConfig,
presetAttributify,
presetIcons,
presetTypography,
presetUno,
transformerDirectives,
transformerVariantGroup,
} from 'unocss'
export default defineConfig({
presets: [
presetUno(),
presetAttributify(),
presetIcons({
scale: 1.1,
cdn: 'https://esm.sh/',
}),
presetTypography({
cssExtend: {
'ul,ol': {
'padding-left': '2.25em',
'position': 'relative',
},
},
}),
],
transformers: [transformerVariantGroup(), transformerDirectives()],
shortcuts: [{
'fc': 'flex justify-center',
'fi': 'flex items-center',
'fb': 'flex justify-between',
'fcc': 'fc items-center',
'fie': 'fi justify-end',
'fis': 'flex justify-start',
'fib':'fi justify-between',
'col-fcc': 'flex-col fcc',
'inline-fcc': 'inline-flex items-center justify-center',
'base-focus': 'focus:(bg-op-20 ring-0 outline-none)',
'b-slate-link': 'border-b border-(slate none) hover:border-dashed cursor-pointer',
'b-buy-link': 'border-b border-(slate) hover:border-dashed',
'gpt-title': 'text-2xl font-extrabold mr-1',
'gpt-subtitle': 'text-(2xl transparent) font-extrabold bg-(clip-text gradient-to-r) from-green-400 to-cyan-600',
'gpt-copy-btn': 'absolute top-12px right-12px z-3 fcc border b-transparent w-8 h-8 p-2 bg-light-300 dark:bg-dark-300 op-90 cursor-pointer',
'gpt-copy-tips': 'op-0 h-7 bg-black px-2.5 py-1 box-border text-xs c-white fcc rounded absolute z-1 transition duration-600 whitespace-nowrap -top-8',
'gpt-retry-btn': 'fi gap-1 px-2 py-0.5 op-70 border border-slate rounded-md text-sm cursor-pointer hover:bg-slate/10',
'gpt-back-top-btn': 'fcc p-2.5 text-base rounded-md hover:bg-slate/10 fixed bottom-200px right-20px z-10 cursor-pointer transition-colors',
'gpt-back-bottom-btn': 'gpt-back-top-btn bottom-140px transform-rotate-180deg',
'gpt-password-input': 'px-4 py-3 w-[340px] h-12 rounded-sm bg-(slate op-15) base-focus placeholder:text-gray dark:(placeholder:op-90) text-sm',
'gpt-password-submit': 'fcc h-12 w-12 bg-slate cursor-pointer bg-op-20 hover:bg-op-50 ',
'gen-slate-btn': 'h-10 px-4 text-sm py-2 bg-(slate op-15) hover:bg-op-20 rounded-sm ',
'img-action-btn': 'h-7 text-sm w-[68px] bg-(slate op-50) hover:bg-op-40 rounded-sm ',
'gen-cb-wrapper': 'h-12 fcc gap-4 bg-(slate op-15) rounded-sm',
'gen-cb-stop': 'px-2 py-0.5 border border-slate rounded-md text-sm op-70 cursor-pointer hover:bg-slate/10',
'gen-text-wrapper': 'mt-4 mb-1 fc gap-2 transition-opacity min-h-10',
'gen-textarea': 'w-full text-sm px-3 pt-[10px] min-h-10 max-h-36 rounded-sm bg-(slate op-15) resize-none base-focus placeholder:text-gray dark:(placeholder:op-90) scroll-pa-8px',
'sys-edit-btn': 'inline-fcc gap-1 text-sm bg-slate/20 px-2 py-1 rounded-md transition-colors cursor-pointer hover:bg-slate/50',
}],
})