Refactoring of styles - BEM + ITCSS, removed Disqus.
[ghost-theme-willow.git] / source / sass / components / _sidebar-header.scss
diff --git a/source/sass/components/_sidebar-header.scss b/source/sass/components/_sidebar-header.scss
new file mode 100644 (file)
index 0000000..0c24f16
--- /dev/null
@@ -0,0 +1,36 @@
+/*
+|-------------------------------------------------------------------------------
+| Sidebar header
+|-------------------------------------------------------------------------------
+*/
+// Cover
+.c-sidebar-header {
+  height: 100px;
+  position: relative;
+  margin-bottom: 70px;
+  @include bg-size(cover);
+  background-position: 50% 50%;
+}
+
+// Logo and link
+.c-sidebar-header__link,
+.c-sidebar-header__image {
+  width: 80px;
+  height: 80px;
+  display: block;
+}
+
+// Logo
+.c-sidebar-header__image {
+  @include border-radius(40px);
+  border: 2px solid $c-white;
+}
+
+// Link {
+.c-sidebar-header__link {
+  left: 50%;
+  bottom: -40px;
+  z-index: 1;
+  position: absolute;
+  margin-left: -40px;
+}
\ No newline at end of file