fix/fix sidebar css

This commit is contained in:
SouthFox 2022-12-12 17:43:41 +08:00
parent 3acfc1b08f
commit 57e9101ff4
2 changed files with 7 additions and 6 deletions

View file

@ -1,7 +1,5 @@
<div class="col-md-3">
<div id="sidebar">
<div class="col-md-3 sidebar">
<% theme.widgets.forEach(function(widget){ %>
<%- partial('../_widget/' + widget) %>
<% }); %>
</div> <!-- sidebar -->
</div> <!-- col-md-3 -->

View file

@ -26,11 +26,14 @@ body {
-moz-border-radius: 6px 6px 6px 6px;
border-radius: 6px 6px 6px 6px;
}
#sidebar,
#side_meta {
.sidebar {
font-size: 0.9em;
position: sticky;
top: 10px;
top: 25px;
}
#side_meta {
position: sticky;
top: 10px;
}
.post {
font-size: 1em;