-
Notifications
You must be signed in to change notification settings - Fork 12
/
Card.css.ts
66 lines (59 loc) · 1.27 KB
/
Card.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
62
63
64
65
66
import { style } from '@vanilla-extract/css';
import { BreakPoint, Space, tokens } from '../../styles/variables.css';
export const wrapper = style({
position: 'relative',
});
export const inner = style({
display: 'block',
width: '100%',
borderWidth: 0,
borderRadius: 6,
background: tokens.color.white,
boxShadow: tokens.shadow.lv3,
color: tokens.color.textBase,
fontSize: 'inherit',
textDecoration: 'none',
cursor: 'pointer',
transition: `box-shadow ${tokens.duration.fadeIn} ${tokens.easing.standard}`,
':hover': {
boxShadow: tokens.shadow.lv1,
},
':focus-visible': {
boxShadow: tokens.state.focus,
},
});
export const sign = style({
position: 'absolute',
top: Space * 1,
left: Space * 1,
zIndex: 10,
});
export const image = style({
position: 'relative',
overflow: 'hidden',
height: '260px',
borderRadius: '6px 6px 0 0',
});
export const imageInner = style({
position: 'absolute',
top: 0,
right: 0,
bottom: 0,
left: 0,
zIndex: 2,
});
export const title = style({
padding: Space * 2,
textAlign: 'left',
'@media': {
[`(min-width: ${BreakPoint.MEDIUM}px)`]: {
padding: Space * 3,
},
},
});
export const menu = style({
position: 'absolute',
top: Space * 0.5,
right: Space * 0.5,
zIndex: 10,
});