1
0
mirror of https://github.com/cotes2020/jekyll-theme-chirpy.git synced 2025-12-18 05:41:31 +00:00

Add a hook for custom variables (fix #355)

This commit is contained in:
Cotes Chung
2021-07-04 21:01:11 +08:00
parent 5f1e6e9350
commit c98a41317f
5 changed files with 38 additions and 27 deletions

View File

@@ -596,8 +596,6 @@ figure .mfp-title {
/* --- sidebar layout --- */
$tab-count: 5 !default;
$sidebar-display: "sidebar-display";
#sidebar {
@@ -608,7 +606,7 @@ $sidebar-display: "sidebar-display";
left: 0;
height: 100%;
overflow-y: auto;
width: $sidebar-width-medium;
width: $sidebar-width;
z-index: 99;
background: var(--sidebar-bg);
@@ -717,7 +715,6 @@ $sidebar-display: "sidebar-display";
width: 100%;
&:last-child {
$cursor-width: 3px;
a {
position: relative;
@@ -846,7 +843,7 @@ $sidebar-display: "sidebar-display";
height: $topbar-height;
position: fixed;
top: 0;
left: 260px; /* same as sidebar width */
left: $sidebar-width; /* same as sidebar width */
right: 0;
transition: top 0.2s ease-in-out;
z-index: 50;
@@ -1090,7 +1087,7 @@ $sidebar-display: "sidebar-display";
@media all and (max-width: 576px) {
$footer-height: 6rem; // overwrite
$footer-height: $footer-height-mobile; // overwrite
#main > div.row:first-child > div:first-child {
min-height: calc(100vh - #{$topbar-height} - #{$footer-height});
@@ -1164,7 +1161,7 @@ $sidebar-display: "sidebar-display";
#topbar-wrapper,
#main-wrapper {
transform: translateX(#{$sidebar-width-medium});
transform: translateX(#{$sidebar-width});
}
}
@@ -1172,8 +1169,8 @@ $sidebar-display: "sidebar-display";
#sidebar {
@extend %slide;
transform: translateX(-#{$sidebar-width-medium}); // hide
-webkit-transform: translateX(-#{$sidebar-width-medium});
transform: translateX(-#{$sidebar-width}); // hide
-webkit-transform: translateX(-#{$sidebar-width});
.cursor {
-webkit-transition: none;
@@ -1271,7 +1268,7 @@ $sidebar-display: "sidebar-display";
}
#main-wrapper {
margin-left: $sidebar-width-medium;
margin-left: $sidebar-width;
}
.profile-wrapper {