forked from browserslist/browserslist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Tweet.css
85 lines (74 loc) 路 1.35 KB
/
Tweet.css
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
.Tweet {
position: relative;
z-index: 1;
height: fit-content;
padding: 16px;
pointer-events: none;
border: 1px solid var(--separator);
border-radius: 12px;
}
.Tweet__link {
position: absolute;
inset: 0;
z-index: -1;
pointer-events: all;
border-radius: inherit;
}
@media (hover) {
.Tweet__link:hover {
background-color: var(--text-highlited);
}
}
.Tweet__address {
position: relative;
display: grid;
grid-template-columns: 40px 1fr;
grid-auto-rows: 1fr 1fr;
column-gap: 10px;
margin-bottom: 10px;
font-style: normal;
}
.Tweet__address::after {
position: absolute;
bottom: -3px;
left: 26px;
width: 16px;
height: 16px;
content: "";
background-color: var(--twitter);
background-image: url(./twitter_white.svg);
background-repeat: no-repeat;
background-position: center;
border-radius: 50%;
}
.Tweet__img {
grid-row: span 2;
width: 40px;
height: 40px;
border-radius: 50%;
}
.Tweet__nickName {
color: var(--text-secondary);
text-decoration: none;
}
.Tweet__name {
font-weight: 600;
}
.Tweet__text {
margin: 0;
}
.Tweet__text a {
color: var(--accent);
text-decoration: none;
pointer-events: initial;
}
@media (hover) {
.Tweet__text a:hover {
text-decoration: underline;
}
}
.Tweet__list {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 12px;
}