forked from hyoo-ru/mam_mol
-
Notifications
You must be signed in to change notification settings - Fork 0
/
link.view.css.ts
61 lines (45 loc) · 853 Bytes
/
link.view.css.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
60
61
namespace $ {
const { rem } = $mol_style_unit
$mol_style_define( $mol_link , {
textDecoration: 'none',
color: $mol_theme.control,
stroke: 'currentcolor',
cursor: 'pointer',
padding: $mol_gap.text,
boxSizing: 'border-box',
position: 'relative',
minWidth: rem(2.5),
gap: $mol_gap.space,
border: {
radius: $mol_gap.round,
},
':hover': {
background: {
color: $mol_theme.hover,
},
},
':focus-visible': {
outline: 'none',
background: {
color: $mol_theme.hover,
},
},
// ':has(:focus-visible)': {
// outline: 'none',
// background: {
// color: $mol_theme.hover,
// }
// },
':active': {
color: $mol_theme.focus,
},
'@': {
mol_link_current: {
'true': {
color: $mol_theme.current,
textShadow: '0 0',
}
}
},
} )
}