From 30772e0dd8436062e325eda0f54e90f7e8696705 Mon Sep 17 00:00:00 2001 From: amzrk2 Date: Wed, 6 May 2020 22:58:45 +0800 Subject: Sass structure full rebuild --- assets/sass/modules/_sidebar.scss | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 assets/sass/modules/_sidebar.scss (limited to 'assets/sass/modules/_sidebar.scss') diff --git a/assets/sass/modules/_sidebar.scss b/assets/sass/modules/_sidebar.scss new file mode 100644 index 0000000..e7cfa49 --- /dev/null +++ b/assets/sass/modules/_sidebar.scss @@ -0,0 +1,39 @@ +#sidebar { + ul { + list-style-type: none; + } + + padding: 1.5rem 1rem; + + // different padding when screen size below width-md(768px) + @media screen and (max-width: $width-md) { + border-top: $spliter; + padding: 1.5rem; + } + + h5 { + font-size: $font-size-l3; + } + + .widget-toc, + .widget-pages, + .widget-tags, + .widget-links { + + div, + ul { + margin: 0.5rem 0; + } + } + + .widget-bgm img { + margin: 0.5rem 0; + width: 100%; + border-radius: 2px; + filter: grayscale(50%); + + @media screen and (max-width: $width-md) { + width: 50%; + } + } +} \ No newline at end of file -- cgit v1.2.3