design updates

This commit is contained in:
E. S. 2024-05-11 18:49:46 +00:00
parent e2b5031443
commit 62b4246163
8 changed files with 47 additions and 15 deletions

View File

@ -408,6 +408,7 @@ body.wide .blog-post {
} }
&-item { &-item {
@include no-underline();
display: block; display: block;
padding: 6px 8px; padding: 6px 8px;
margin-left: -8px; margin-left: -8px;

View File

@ -112,9 +112,21 @@ a {
text-decoration: none; text-decoration: none;
color: $link-color; color: $link-color;
outline: none; outline: none;
border-bottom: 1px $link-color-underline solid;
} }
a:hover { a:hover {
text-decoration: underline; border-bottom-color: $link-color-underline-hover;
}
@mixin no-underline($underline-on-hover: false) {
&, &:hover {
border-bottom: none !important;
}
@if $underline-on-hover {
&:hover {
border-bottom: 1px solid $link-color-underline-hover !important;
}
}
} }
p, p code { p, p code {
@ -280,6 +292,7 @@ table.contacts div.note {
.md-image-wrap > a { .md-image-wrap > a {
display: block; display: block;
max-width: 100%; max-width: 100%;
@include no-underline();
} }
.md-image-note { .md-image-note {
line-height: 130%; line-height: 130%;
@ -304,6 +317,9 @@ table.contacts div.note {
float: left; float: left;
width: 300px; width: 300px;
height: 463px; height: 463px;
> a {
@include no-underline();
}
} }
&-image { &-image {
background: url(/img/cover.jpg?1) no-repeat 0 0; background: url(/img/cover.jpg?1) no-repeat 0 0;
@ -363,19 +379,20 @@ table.contacts div.note {
} }
} }
a.index-dl-line { a.index-dl-line {
@include no-underline();
text-decoration: none; text-decoration: none;
&:hover { //&:hover {
> b:after { // > b:after {
display: block; // display: block;
content: ''; // content: '';
position: absolute; // position: absolute;
bottom: 0; // bottom: 0;
left: 0; // left: 0;
right: 0; // right: 0;
height: 1px; // height: 1px;
background-color: $link-color-underline; // background-color: $link-color-underline;
} // }
} //}
} }
.bc { .bc {
@ -397,6 +414,7 @@ a.index-dl-line {
} }
> a.bc-item { > a.bc-item {
@include no-underline();
background-color: $hover-hl; background-color: $hover-hl;
border-radius: 4px; border-radius: 4px;
} }

View File

@ -5,6 +5,7 @@
} }
.files-list {} .files-list {}
.files-list-item { .files-list-item {
@include no-underline();
display: block; display: block;
padding: 5px 8px; padding: 5px 8px;
margin-left: -8px; margin-left: -8px;

View File

@ -6,4 +6,7 @@
text-align: right; text-align: right;
color: $dark_grey; color: $dark_grey;
> span { color: $fg; } > span { color: $fg; }
> a {
@include no-underline(true);
}
} }

View File

@ -83,6 +83,7 @@
padding-top: 15px; padding-top: 15px;
} }
a.head-item { a.head-item {
@include no-underline();
color: $fg; color: $fg;
font-size: $fs; font-size: $fs;
display: inline-block; display: inline-block;

View File

@ -75,6 +75,9 @@ a.head-item:last-child > span {
height: auto; height: auto;
margin: 0 auto 15px; margin: 0 auto 15px;
max-width: 100%; max-width: 100%;
> a {
@include no-underline();
}
} }
.index-book-updates { .index-book-updates {
float: none; float: none;
@ -83,6 +86,7 @@ a.head-item:last-child > span {
.index-dl-line { .index-dl-line {
margin-left: 0; margin-left: 0;
padding: 20px 15px; padding: 20px 15px;
@include no-underline();
} }
.footer { .footer {

View File

@ -1,7 +1,8 @@
$head_green_color: #0bad19; $head_green_color: #0bad19;
$head_red_color: #e23636; $head_red_color: #e23636;
$link-color: #71abe5; $link-color: #71abe5;
$link-color-underline: #69849d; $link-color-underline: #42566e;
$link-color-underline-hover: #537ca6;
$hover-hl: rgba(255, 255, 255, 0.09); $hover-hl: rgba(255, 255, 255, 0.09);
$hover-hl-darker: rgba(255, 255, 255, 0.12); $hover-hl-darker: rgba(255, 255, 255, 0.12);

View File

@ -1,7 +1,10 @@
@use 'sass:color';
$head_green_color: #0bad19; $head_green_color: #0bad19;
$head_red_color: #ce1a1a; $head_red_color: #ce1a1a;
$link-color: #116fd4; $link-color: #116fd4;
$link-color-underline: #95b5da; $link-color-underline: rgba(17, 111, 212, 0.18);
$link-color-underline-hover: rgba(17, 111, 212, 0.5);
$hover-hl: #f0f0f0; $hover-hl: #f0f0f0;
$hover-hl-darker: #ebebeb; $hover-hl-darker: #ebebeb;