aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2022-04-07 19:06:26 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2022-04-07 19:06:26 +0200
commit69cb8e6dce13fbe30b16200529c3d17965443fab (patch)
tree9042e1cd9c86b1e7e0c181537bf0ac683418a5f8
parentposts: rename a CSS class (diff)
downloadjekyll-theme-69cb8e6dce13fbe30b16200529c3d17965443fab.tar.gz
jekyll-theme-69cb8e6dce13fbe30b16200529c3d17965443fab.zip
css: revert the stupid .sidebar hack
-rw-r--r--_includes/jekyll-theme/sidebar.html2
-rw-r--r--assets/css/jekyll-theme/posts.css5
2 files changed, 4 insertions, 3 deletions
diff --git a/_includes/jekyll-theme/sidebar.html b/_includes/jekyll-theme/sidebar.html
index 89d660d..2ffe91b 100644
--- a/_includes/jekyll-theme/sidebar.html
+++ b/_includes/jekyll-theme/sidebar.html
@@ -1,5 +1,5 @@
{% unless site.settings.sidebar.hide or page.sidebar.hide %}
-<div class="row sidebar">
+<div class="row">
{% include jekyll-theme/sidebar/latest-posts.html %}
{% include custom-sidebar.html %}
{% include jekyll-theme/sidebar/about.html %}
diff --git a/assets/css/jekyll-theme/posts.css b/assets/css/jekyll-theme/posts.css
index 933dfa7..60b4715 100644
--- a/assets/css/jekyll-theme/posts.css
+++ b/assets/css/jekyll-theme/posts.css
@@ -14,10 +14,11 @@
margin-right: .5em;
}
-.sidebar .post-header {
+/* On the sidebar, don't shrink the date part, shrink the header. */
+.list-group-item .post-header {
flex-wrap: nowrap;
}
-.sidebar .post-date {
+.list-group-item .post-date {
flex-shrink: 0;
}