-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
89 lines (79 loc) · 1.78 KB
/
style.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
86
87
88
89
:root {
--fg-light: #888;
--fg: #555;
}
html.dark {
--fg-light: #888;
--fg: #bbb;
}
.rspress-mention-link {
display: inline-flex;
align-items: center;
background: #8882;
transform: translateY(3px);
line-height: 100%;
color: var(--fg-light) !important;
gap: 0.25rem;
border-width: 0px !important;
border-radius: 0.25rem;
padding: 0.25rem 0.375rem;
transition-property: color, background-color, border-color, outline-color, text-decoration-color,
fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
transition-duration: 0.15s;
text-decoration: none !important;
margin: 0 0.25rem;
}
.rspress-mention-link:hover {
background: #8883;
color: var(--fg) !important;
}
.rspress-mention-link-image {
display: inline-block;
height: 1.1em;
width: 1.1em;
background-size: cover;
background-repeat: no-repeat;
background-position: center;
border-radius: 2px;
}
.rspress-mention-link.rspress-mention-link-github-at {
transform: translateY(6px);
gap: 0.3rem;
border-radius: 9999px;
padding-top: 0;
padding-bottom: 0;
padding-left: 0;
padding-right: 0.5rem;
font-size: 0.875rem;
line-height: 1.25rem;
text-transform: uppercase;
}
.rspress-mention-link.rspress-mention-link-github-at .rspress-mention-link-image {
height: 1.6em;
width: 1.6em;
border-radius: 50%;
}
.rspress-mention-link {
overflow: hidden;
}
.rspress-mention-link::before {
content: '';
position: absolute;
left: -110%;
top: 0;
width: 100%;
height: 100%;
background-image: linear-gradient(
90deg,
rgba(255, 255, 255, 0),
rgba(255, 255, 255, 0.5),
rgba(255, 255, 255, 0)
);
}
.rspress-mention-link:hover {
&::before {
left: 110%;
transition: all 0.8s;
}
}