style: don't truncate URL's

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

View file

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

View file

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

View file

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