Using built-in link underline

- Setting decoration-thickness for nicer control of appearance
This commit is contained in:
James Barnsley
2023-04-01 17:54:35 +13:00
parent d2ced56690
commit 5ac3c6254a
5 changed files with 13 additions and 32 deletions

View File

@ -17,8 +17,6 @@
padding: 0 5px; padding: 0 5px;
display: block; display: block;
box-sizing: border-box; box-sizing: border-box;
border: none !important;
text-decoration: none !important;
cursor: pointer; cursor: pointer;
&__inner { &__inner {
@ -61,6 +59,8 @@
} }
&:hover { &:hover {
text-decoration: none;
.menu-item__inner { .menu-item__inner {
background: lighten(colour('dark_grey'), 4%); background: lighten(colour('dark_grey'), 4%);

View File

@ -7,8 +7,6 @@
margin-right: 25px; margin-right: 25px;
font-size: 15px; font-size: 15px;
font-weight: 500; font-weight: 500;
border-bottom: 0;
padding-bottom: 3px;
cursor: pointer; cursor: pointer;
@include theme('light') { @include theme('light') {
@ -21,25 +19,7 @@
&--active, &--active,
&:hover { &:hover {
border-bottom-width: 3px !important; text-decoration: underline 0.15em;
border-bottom-style: solid;
padding-bottom: 0px;
}
&--active {
border-color: colour('white') !important;
@include theme('light') {
border-color: colour('darkest_grey') !important;
}
}
&:not(.sub-views__option--active):hover {
border-color: colour('soft_grey') !important;
@include theme('light') {
border-color: colour('light_grey') !important;
}
} }
} }

View File

@ -194,10 +194,8 @@ main {
text-decoration: none; text-decoration: none;
cursor: pointer; cursor: pointer;
&:not(.control):not(.action):not(.button) { &:hover {
&:hover { text-decoration: underline 0.15em;
text-decoration: underline;
}
} }
} }
@ -260,17 +258,16 @@ h2 {
a { a {
color: inherit; color: inherit;
text-decoration: none; text-decoration: none 2px;
&:hover { &:hover {
border-bottom: 2px solid colour('white'); text-decoration: underline 2px;
} }
} }
&.grey-text { &.grey-text {
a:hover { a:hover {
color: colour('mid_grey') !important; color: colour('mid_grey') !important;
border-bottom: 2px solid colour('mid_grey');
} }
} }
} }
@ -340,7 +337,7 @@ h5 {
text-decoration: none; text-decoration: none;
&:hover { &:hover {
text-decoration: underline; text-decoration: underline 0.15em;
} }
} }
} }

View File

@ -214,6 +214,10 @@ select {
transform: translate(1px, 1px); transform: translate(1px, 1px);
} }
&:hover {
text-decoration: none;
}
@include theme('light') { @include theme('light') {
&--default { &--default {
border-color: colour('darkest_grey'); border-color: colour('darkest_grey');

View File

@ -66,7 +66,7 @@
.biography-text { .biography-text {
overflow-wrap: break-word; overflow-wrap: break-word;
white-space: pre-wrap; white-space: pre-wrap;
} }
} }
} }