Skip to content

Commit e5cb8ab

Browse files
feat: spice up links a bit
1 parent a596826 commit e5cb8ab

File tree

1 file changed

+24
-4
lines changed

1 file changed

+24
-4
lines changed

styles/notion.css

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -217,13 +217,33 @@
217217
position: relative;
218218
transition: unset;
219219
opacity: 1;
220+
border-bottom-width: 0.08rem;
220221
}
221222

223+
.notion-link:focus,
222224
.notion-link:hover {
223-
border-width: 0;
224-
border-bottom-width: 3px;
225-
border-image: linear-gradient(90.68deg, #b439df 0.26%, #e5337e 102.37%);
226-
border-image-slice: 1;
225+
border-bottom-style: none;
226+
}
227+
228+
.notion-link:focus::after,
229+
.notion-link:hover::after {
230+
visibility: visible;
231+
width: 100%;
232+
left: 0;
233+
}
234+
235+
.notion-link::after {
236+
content: '';
237+
position: absolute;
238+
bottom: -0.1rem;
239+
left: 50%;
240+
width: 0;
241+
height: 0.1rem;
242+
transform: scaleX(1);
243+
transition-property: width, left;
244+
transition-duration: 300ms;
245+
visibility: hidden;
246+
background: linear-gradient(90.68deg, #b439df 0.26%, #e5337e 102.37%);
227247
}
228248

229249
.notion-red_background,

0 commit comments

Comments
 (0)