Skip to content

Commit 6c0d952

Browse files
committed
made underline effect more comprehensive + added comments
1 parent ad8c15f commit 6c0d952

1 file changed

Lines changed: 12 additions & 4 deletions

File tree

_sass/specialized.scss

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* This file is where all special things that aren't in html by default will be located */
2+
/* So far there is highlighted and underlined */
23
.highlighted {
34
background-color: #f29333;
45
color: #3f1b66 !important;
@@ -22,9 +23,16 @@
2223
left: 0;
2324
right: 0;
2425
bottom: 0;
25-
height: 8px;
26-
background-image: url("data:image/svg+xml,%3Csvg width='100' height='8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 4 Q10 8 20 4 T40 4 T60 4 T80 4 T100 4' stroke='%23f29333' stroke-width='2' fill='none'/%3E%3C/svg%3E");
26+
height: 2px;
27+
background-color: #f29333;
28+
transition: all 0.3s ease;
29+
pointer-events: none;
30+
}
31+
32+
.underlined:hover::after {
33+
height: 10px;
34+
background-color: transparent;
35+
background-image: url("data:image/svg+xml,%3Csvg width='100' height='10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 5 Q2.5 0 5 5 T10 5 T15 5 T20 5 T25 5 T30 5 T35 5 T40 5 T45 5 T50 5 T55 5 T60 5 T65 5 T70 5 T75 5 T80 5 T85 5 T90 5 T95 5 T100 5' stroke='%23f29333' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
2736
background-size: 100% 100%;
2837
background-repeat: no-repeat;
29-
pointer-events: none;
30-
}
38+
}

0 commit comments

Comments
 (0)