diff --git a/themes/gokarna/layouts/partials/header.html b/themes/gokarna/layouts/partials/header.html index e69de29..01712fc 100644 --- a/themes/gokarna/layouts/partials/header.html +++ b/themes/gokarna/layouts/partials/header.html @@ -0,0 +1,17 @@ +
+
+ +
+
\ No newline at end of file diff --git a/themes/gokarna/static/css/main.css b/themes/gokarna/static/css/main.css new file mode 100644 index 0000000..af7837b --- /dev/null +++ b/themes/gokarna/static/css/main.css @@ -0,0 +1,98 @@ +html { + font-family: open sans, helvetica neue, Helvetica, Arial, sans-serif; +} + +.container { + height: 800px; +} + +.header-light { + background-color: #bbb; + color: black; +} + +.header-dark { + background-color: #1b1c1d; + color: white; +} + +.header { + position: fixed; + height: 100px; + left: 0; + top: 0; + width: 100%; + -ms-transition: all 0.5s ease-out; + -moz-transition: all 0.5s ease-out; + -webkit-transition: all 0.5s ease-out; + -o-transition: all 0.5s ease-out; + transition: all 0.5s ease-out; +} + +.header.small { + height: 70px; +} + +/* #header-sroll h1 { + font-size: 30px; + font-family: Arial; + text-align: center; + line-height: 50px; + -ms-transition: all 0.2s ease-out; + -moz-transition: all 0.2s ease-out; + -webkit-transition: all 0.2s ease-out; + -o-transition: all 0.2s ease-out; + transition: all 0.2s ease-out; +} +#header-sroll.small h1{ + height: 70px; + line-height: 35px; + font-size: 25px; +} + */ + +.header a { + text-decoration: none; + color: inherit; +} + +.header .header-nav { + height: 64px; + margin-top: 18px; + -ms-transition: all 0.5s ease-out; + -moz-transition: all 0.5s ease-out; + -webkit-transition: all 0.5s ease-out; + -o-transition: all 0.5s ease-out; + transition: all 0.5s ease-out; +} + +.header .header-nav.small { + margin-top: 0; +} + +.header-nav .avatar { + float: left; + display: inline-block; + height: 100%; + border: 0.5px solid white; + border-radius: 18px; +} +.header-nav .avatar img { + display: block; + width: 64px; + height: 64px; + overflow: hidden; + border-radius: 100%; +} + +.header-nav .nav-title { + display: inline-block; + padding-left: 10px; + height: 100%; + line-height: 60px; +} + +.nav-title a { + height: 50px; + font-size: 20px; +} diff --git a/themes/gokarna/static/js/main.js b/themes/gokarna/static/js/main.js new file mode 100644 index 0000000..2edb9ca --- /dev/null +++ b/themes/gokarna/static/js/main.js @@ -0,0 +1,10 @@ +$(window).scroll(function () { + var sc = $(window).scrollTop() + if (sc > 100) { + $(".header").addClass("small"); + $(".header-nav").addClass("small"); + } else { + $(".header").removeClass("small"); + $(".header-nav").removeClass("small"); + } +}); \ No newline at end of file