style: don't truncate URL's

This commit is contained in:
freeplay 2023-07-10 19:02:31 -04:00
parent 4176328b8e
commit a37daacc56
3 changed files with 28 additions and 25 deletions

View File

@ -255,7 +255,7 @@ onUnmounted(() => {
margin-bottom: 0.2em;
text-decoration: underline;
text-decoration-color: transparent;
transition: text-decoration-color .2s;
transition: text-decoration-color 0.2s;
}
p {
margin-bottom: -0.5em;

View File

@ -75,13 +75,11 @@ const target = self ? null : "_blank";
<style lang="scss" scoped>
.url {
white-space: nowrap;
max-width: 80%;
display: inline-block;
overflow: clip;
text-overflow: ellipsis;
text-decoration: none !important;
line-height: 1.05;
> span {
text-decoration: underline var(--fgTransparent);
transition: text-decoration-color 0.2s;
}
> .icon {
padding-left: 2px;
@ -111,5 +109,9 @@ const target = self ? null : "_blank";
> .hash {
font-style: italic;
}
&:hover span {
text-decoration-color: var(--link);
}
}
</style>

View File

@ -147,7 +147,7 @@ a {
-webkit-tap-highlight-color: transparent;
text-decoration: underline;
text-decoration-color: transparent;
transition: text-decoration-color .2s;
transition: text-decoration-color 0.2s;
&:hover {
text-decoration-color: currentColor;
}
@ -635,24 +635,25 @@ hr {
._link {
position: relative;
color: var(--link);
text-decoration: none !important;
&::before, &::after {
content: "";
position: absolute;
bottom: 0;
left: 0;
width: 0%;
border-bottom: 1px solid currentColor;
transition: 0.3s ease-in-out;
}
&::before {
width: 100%;
opacity: .4;
}
&:hover:after, &:focus:after {
width: 100%;
}
// &::before,
// &::after {
// content: "";
// position: absolute;
// bottom: 0;
// left: 0;
// width: 0%;
// border-bottom: 1px solid currentColor;
// transition: 0.3s ease-in-out;
// }
// &::before {
// width: 100%;
// opacity: 0.4;
// }
// &:hover:after,
// &:focus:after {
// width: 100%;
// }
}
._caption {