biome format --write
This commit is contained in:
parent
8372348148
commit
9262e803ec
415 changed files with 54076 additions and 17419 deletions
|
|
@ -11,7 +11,7 @@ const highlightStyle = (prefs) => {
|
|||
const customProps = {
|
||||
'--____highlight-solidColor': solidColor,
|
||||
'--____highlight-tintColor': tintColor,
|
||||
'--____highlight-tintColor2': tintColor2
|
||||
'--____highlight-tintColor2': tintColor2,
|
||||
}
|
||||
if (type === 'striped') {
|
||||
return {
|
||||
|
|
@ -20,15 +20,15 @@ const highlightStyle = (prefs) => {
|
|||
`${tintColor} ,`,
|
||||
`${tintColor} 20px,`,
|
||||
`${tintColor2} 20px,`,
|
||||
`${tintColor2} 40px`
|
||||
`${tintColor2} 40px`,
|
||||
].join(' '),
|
||||
backgroundPosition: '0 0',
|
||||
...customProps
|
||||
...customProps,
|
||||
}
|
||||
} else if (type === 'solid') {
|
||||
return {
|
||||
backgroundColor: tintColor2,
|
||||
...customProps
|
||||
...customProps,
|
||||
}
|
||||
} else if (type === 'side') {
|
||||
return {
|
||||
|
|
@ -36,21 +36,18 @@ const highlightStyle = (prefs) => {
|
|||
'linear-gradient(to right,',
|
||||
`${solidColor} ,`,
|
||||
`${solidColor} 2px,`,
|
||||
'transparent 6px'
|
||||
'transparent 6px',
|
||||
].join(' '),
|
||||
backgroundPosition: '0 0',
|
||||
...customProps
|
||||
...customProps,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
const highlightClass = (user) => {
|
||||
return 'USER____' + user.screen_name
|
||||
?.replace(/\./g, '_')
|
||||
.replace(/@/g, '_AT_')
|
||||
return (
|
||||
'USER____' + user.screen_name?.replace(/\./g, '_').replace(/@/g, '_AT_')
|
||||
)
|
||||
}
|
||||
|
||||
export {
|
||||
highlightClass,
|
||||
highlightStyle
|
||||
}
|
||||
export { highlightClass, highlightStyle }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue