mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-14 05:57:32 -07:00
style: link underlines, attempt two™
This commit is contained in:
parent
0129fa68f0
commit
8f6d5c2d3d
3 changed files with 23 additions and 6 deletions
|
@ -196,6 +196,7 @@ onUnmounted(() => {
|
||||||
> a {
|
> a {
|
||||||
display: flex;
|
display: flex;
|
||||||
transition: background 0.2s;
|
transition: background 0.2s;
|
||||||
|
text-decoration: none;
|
||||||
> div:first-child:not(:last-child) {
|
> div:first-child:not(:last-child) {
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 90px;
|
width: 90px;
|
||||||
|
@ -252,6 +253,9 @@ onUnmounted(() => {
|
||||||
font-size: 1em;
|
font-size: 1em;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
margin-bottom: 0.2em;
|
margin-bottom: 0.2em;
|
||||||
|
text-decoration: underline;
|
||||||
|
text-decoration-color: transparent;
|
||||||
|
transition: text-decoration-color .2s;
|
||||||
}
|
}
|
||||||
p {
|
p {
|
||||||
margin-bottom: -0.5em;
|
margin-bottom: -0.5em;
|
||||||
|
@ -277,8 +281,8 @@ onUnmounted(() => {
|
||||||
&:focus,
|
&:focus,
|
||||||
&:focus-within {
|
&:focus-within {
|
||||||
background: var(--panelHighlight);
|
background: var(--panelHighlight);
|
||||||
h1 {
|
h3 {
|
||||||
text-decoration: underline;
|
text-decoration-color: currentColor;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -80,6 +80,8 @@ const target = self ? null : "_blank";
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
overflow: clip;
|
overflow: clip;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
|
text-decoration: none !important;
|
||||||
|
line-height: 1.05;
|
||||||
|
|
||||||
> .icon {
|
> .icon {
|
||||||
padding-left: 2px;
|
padding-left: 2px;
|
||||||
|
|
|
@ -145,6 +145,12 @@ a {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
color: inherit;
|
color: inherit;
|
||||||
-webkit-tap-highlight-color: transparent;
|
-webkit-tap-highlight-color: transparent;
|
||||||
|
text-decoration: underline;
|
||||||
|
text-decoration-color: transparent;
|
||||||
|
transition: text-decoration-color .2s;
|
||||||
|
&:hover {
|
||||||
|
text-decoration-color: currentColor;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// i {
|
// i {
|
||||||
|
@ -229,6 +235,7 @@ hr {
|
||||||
font-size: 1em;
|
font-size: 1em;
|
||||||
font-family: inherit;
|
font-family: inherit;
|
||||||
line-height: inherit;
|
line-height: inherit;
|
||||||
|
text-decoration: none;
|
||||||
|
|
||||||
&,
|
&,
|
||||||
* {
|
* {
|
||||||
|
@ -628,18 +635,22 @@ hr {
|
||||||
._link {
|
._link {
|
||||||
position: relative;
|
position: relative;
|
||||||
color: var(--link);
|
color: var(--link);
|
||||||
|
text-decoration: none !important;
|
||||||
|
|
||||||
&:after {
|
&::before, &::after {
|
||||||
content: "";
|
content: "";
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
width: 0%;
|
width: 0%;
|
||||||
border-bottom: 2px solid var(--link);
|
border-bottom: 1px solid currentColor;
|
||||||
transition: 0.3s ease-in-out;
|
transition: 0.3s ease-in-out;
|
||||||
}
|
}
|
||||||
|
&::before {
|
||||||
&:hover:after {
|
width: 100%;
|
||||||
|
opacity: .4;
|
||||||
|
}
|
||||||
|
&:hover:after, &:focus:after {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue