worked on links

This commit is contained in:
newick 2019-08-12 17:40:11 +02:00
parent e91c66eef4
commit f0da02371d
1 changed files with 49 additions and 26 deletions

View File

@ -1,33 +1,56 @@
@charset "UTF-8"; @charset "UTF-8";
nav {
a { a {
display: inline-block;
position: relative; position: relative;
font-family: $default_font; font-family: $default_font;
font-weight: 600; font-weight: 600;
font-size: 1.6rem; font-size: 1.6rem;
color: $black; color: $font_color;
text-decoration: none;
&::before { &,
&:hover {
text-decoration: none;
}
&::before,
&::after {
content: ""; content: "";
}
&.next::before,
&.prev::after {
position: absolute; position: absolute;
top: 0; bottom: 0.7rem;
bottom: 0;
display: block; display: block;
width: 100%; width: 100%;
height: 6px; height: 0.6rem;
margin: auto;
background-color: $primary_color; background-color: $primary_color;
z-index: -1; z-index: -1;
} }
&::after { &.next::after,
content: ">"; &.prev::before {
} display: inline-block;
} width: 1rem;
height: 1rem;
border-bottom: 2px solid #000;
} }
.home_link { &.next::after {
text-decoration: none; margin-right: 1rem;
border-right: 2px solid #000;
transform: rotate(-45deg);
}
&.prev::before {
margin-left: 1rem;
border-left: 2px solid #000;
transform: rotate(45deg);
}
span {
padding-right: 1rem;
padding-left: 1rem;
}
} }