X-Git-Url: https://git.njae.me.uk/?a=blobdiff_plain;f=source%2Fsass%2Fcomponents%2F_sidebar-header.scss;fp=source%2Fsass%2Fcomponents%2F_sidebar-header.scss;h=0c24f16ce6a3a9eaf1b15fd646e956ec52aa0f55;hb=ca309747b3ab36294a5d2d6eba7e2956ee43f024;hp=0000000000000000000000000000000000000000;hpb=650bdc61d1bda30b47a308594be84c8b9e8b1ac8;p=ghost-theme-willow.git diff --git a/source/sass/components/_sidebar-header.scss b/source/sass/components/_sidebar-header.scss new file mode 100644 index 0000000..0c24f16 --- /dev/null +++ b/source/sass/components/_sidebar-header.scss @@ -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