mirror of
https://github.com/zhigang1992/wallet.git
synced 2026-01-12 17:53:19 +08:00
24 lines
589 B
JavaScript
24 lines
589 B
JavaScript
import { mapObject } from '../helpers.mjs';
|
|
import { css } from '../css/index.mjs';
|
|
|
|
const linkOverlayConfig = {
|
|
transform(props) {
|
|
return {
|
|
position: "static",
|
|
_before: {
|
|
content: '""',
|
|
display: "block",
|
|
position: "absolute",
|
|
cursor: "inherit",
|
|
inset: "0",
|
|
zIndex: "0",
|
|
...props["_before"]
|
|
},
|
|
...props
|
|
};
|
|
}}
|
|
|
|
export const getLinkOverlayStyle = (styles = {}) => linkOverlayConfig.transform(styles, { map: mapObject })
|
|
|
|
export const linkOverlay = (styles) => css(getLinkOverlayStyle(styles))
|
|
linkOverlay.raw = (styles) => styles |