blog/src/styles/leftNav.scss

125 lines
2 KiB
SCSS
Raw Normal View History

2023-08-31 08:07:03 +00:00
@use "variables";
.side-nav .side-nav-content {
display: flex;
justify-content: center;
gap: 20px;
.me {
display: flex;
justify-content: space-evenly;
flex-direction: column;
.links {
text-align: center;
font-size: 0.9rem;
display: grid;
grid-template-columns: repeat(3, 1fr);
row-gap: 6px;
a {
text-decoration: none;
color: var(--link-color);
text-transform: lowercase;
border-radius: 4px;
padding: 4px;
&:hover {
background-color: var(--link-hover-color);
}
}
}
}
.home-link {
text-decoration: none;
}
.portrait {
aspect-ratio: 1;
}
a.portrait {
all: unset;
cursor: pointer;
}
a.portrait img {
border-radius: 100%;
width: 100%;
height: 100%;
}
.bio {
font-size: 0.85rem;
ul {
padding-left: 12px;
list-style-type: "\25B8\00A0";
}
}
}
@media screen and (max-width: variables.$breakpoint) {
.side-nav {
.side-nav-content {
width: 100%;
padding: 18px 0;
border-bottom: 1px solid var(--shadow-color);
.home-link {
display: flex;
justify-content: space-evenly;
}
h1.title {
margin-bottom: 5px;
}
a.portrait img {
max-height: 80px;
}
.bio {
display: none;
}
2023-08-31 03:47:22 +00:00
}
}
2023-08-31 08:07:03 +00:00
}
2023-08-31 03:47:22 +00:00
2023-08-31 08:07:03 +00:00
@media screen and (min-width: variables.$breakpoint) {
2023-08-31 03:47:22 +00:00
.side-nav {
// Capital Min to avoid invoking SCSS min
2023-08-31 08:07:03 +00:00
width: 300px;
2023-08-31 03:47:22 +00:00
min-width: 300px;
.side-nav-content {
2023-09-01 03:04:16 +00:00
height: 100vh;
position: sticky;
left: 0;
top: 0;
2023-08-31 03:47:22 +00:00
padding-top: 32px;
padding-right: 32px;
padding-left: 32px;
border-right: 1px solid var(--shadow-color);
flex-direction: column;
2023-09-01 03:04:16 +00:00
justify-content: flex-start;
2023-08-31 08:07:03 +00:00
a.portrait img {
2023-08-31 03:47:22 +00:00
max-width: 100%;
}
h1.title {
text-align: center;
}
.links {
2023-08-31 08:07:03 +00:00
// margin-bottom: 20px;
2023-08-31 03:47:22 +00:00
}
}
}
}