Hugo-theme-stack/assets/scss/partials/sidebar.scss

132 lines
2.6 KiB
SCSS
Raw Normal View History

2020-08-22 07:20:08 -04:00
.sidebar {
padding: 0 15px;
&.sticky {
@media (min-width: ($on-phone + 1)) {
position: sticky;
}
}
}
.left-sidebar {
display: flex;
flex-direction: column;
flex-shrink: 0;
@media (max-width: $on-phone) {
width: 100%;
padding: 30px 0;
max-width: none;
}
&.sticky {
top: 0;
2020-08-22 07:20:08 -04:00
}
@media (min-width: $on-phone + 1) {
margin-right: 1%;
padding: var(--main-top-padding) 15px;
max-height: 100vh;
2020-08-22 07:20:08 -04:00
}
}
.right-sidebar {
flex-shrink: 0;
&.sticky {
2020-09-04 07:10:11 -04:00
top: 0;
2020-08-22 07:20:08 -04:00
}
2020-08-22 07:20:08 -04:00
@media (max-width: $on-desktop - 1) {
display: none;
}
@media (min-width: $on-tablet) {
margin-left: 1%;
padding-top: var(--main-top-padding);
2020-08-22 07:20:08 -04:00
}
}
.site-info {
z-index: 1;
transition: box-shadow 0.5s ease;
@media (max-width: $on-phone) {
padding: 15px 30px;
}
.site-avatar {
position: relative;
margin: 0;
2020-09-03 05:42:01 -04:00
margin-bottom: 25px;
2020-08-22 07:20:08 -04:00
width: 150px;
height: 150px;
2020-09-03 05:42:01 -04:00
@media (max-width: $on-desktop-large) {
2020-08-22 07:20:08 -04:00
height: 120px;
width: 120px;
}
.site-logo {
width: 100%;
height: 100%;
border-radius: 100%;
box-shadow: var(--shadow-l1);
2020-08-22 07:20:08 -04:00
}
.emoji {
position: absolute;
width: 50px;
height: 50px;
line-height: 50px;
border-radius: 100%;
bottom: 0;
right: 0;
text-align: center;
font-size: 20px;
background-color: var(--card-background);
box-shadow: var(--shadow-l2);
2020-08-22 07:20:08 -04:00
2020-09-03 05:42:01 -04:00
@media (max-width: $on-desktop-large) {
2020-08-22 07:20:08 -04:00
width: 40px;
height: 40px;
line-height: 40px;
}
}
}
.site-name {
color: var(--accent-color);
font-size: 2.4rem;
margin: 0;
2020-09-03 05:42:01 -04:00
@media (max-width: $on-desktop-large) {
font-size: 2rem;
}
2020-08-22 07:20:08 -04:00
}
.site-description {
color: var(--body-text-color);
2020-09-03 17:32:28 -04:00
font-weight: normal;
2020-08-22 07:20:08 -04:00
margin: 10px 0;
2020-09-03 17:32:28 -04:00
font-size: 1.8rem;
2020-08-22 07:20:08 -04:00
2020-09-03 05:42:01 -04:00
@media (max-width: $on-desktop-large) {
2020-09-03 17:32:28 -04:00
font-size: 1.6rem;
2020-08-22 07:20:08 -04:00
}
}
}
.sidebar {
.widget {
margin-bottom: var(--section-separation);
&:not(:last-of-type):after {
content: "";
width: 100px;
height: 2px;
background-color: var(--body-text-color);
display: block;
margin-top: var(--section-separation);
2020-08-22 07:20:08 -04:00
}
}
}