forked from vanilla-extract-css/vanilla-extract
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTweet.css.ts
More file actions
49 lines (45 loc) · 1.05 KB
/
Tweet.css.ts
File metadata and controls
49 lines (45 loc) · 1.05 KB
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
import { createVar, style } from '@vanilla-extract/css';
import { darkMode } from '../system/styles/sprinkles.css';
import { vars } from '../themes.css';
export const tweetLink = style({
':hover': {
textDecoration: 'none',
},
':focus': {
outline: 'none',
},
});
export const shadowColorVar = createVar();
export const tweet = style({
maxWidth: 440,
boxShadow: `0 0 30px -10px ${shadowColorVar}`,
vars: {
[shadowColorVar]: vars.palette.blue300,
},
selectors: {
[`.${darkMode} &`]: {
vars: {
[shadowColorVar]: vars.palette.gray900,
},
},
[`${tweetLink}:focus &`]: {
vars: {
[shadowColorVar]: vars.palette.pink400,
},
},
[`.${darkMode} ${tweetLink}:focus &`]: {
vars: {
[shadowColorVar]: vars.palette.pink400,
},
},
},
});
export const avatar = style({
backgroundRepeat: 'no-repeat',
backgroundPosition: 'center center',
backgroundSize: 'cover',
height: 60,
width: 60,
overflow: 'hidden',
clipPath: 'polygon(3% 2%, 100% 0, 94% 94%, 0 100%)',
});