From 11654f494c7c34373ec23bbf7d09de004c77354d Mon Sep 17 00:00:00 2001 From: ManjaroOne666 Date: Wed, 16 Jan 2019 21:09:55 +0000 Subject: [PATCH] site-menu styling/layout/functionality --- assets/scss/_base.scss | 13 ++++ assets/scss/_buefy.scss | 8 +++ assets/scss/_globals.scss | 3 + assets/scss/_mixins.scss | 10 +++ assets/scss/style.scss | 1 + components/SiteMenu.vue | 130 +++++++++++++++++++++++++++++--------- layouts/default.vue | 41 +++++++++++- nuxt.config.js | 3 +- 8 files changed, 177 insertions(+), 32 deletions(-) create mode 100644 assets/scss/_buefy.scss create mode 100644 assets/scss/_mixins.scss diff --git a/assets/scss/_base.scss b/assets/scss/_base.scss index 637c4a4..903e96c 100644 --- a/assets/scss/_base.scss +++ b/assets/scss/_base.scss @@ -6,3 +6,16 @@ html { overflow: hidden; } + +body { + font-family: 'Raleway', sans-serif; + font-size: 100%; +} + +a { + font-family: 'Montserrat', sans-serif; +} + +h1, h2, h3, h4, h5, h6 { + font-family: 'Montserrat', sans-serif; +} diff --git a/assets/scss/_buefy.scss b/assets/scss/_buefy.scss new file mode 100644 index 0000000..ffbb1ee --- /dev/null +++ b/assets/scss/_buefy.scss @@ -0,0 +1,8 @@ +$link: $color__neutral-800; +$link-hover: $color__primary-500; + +$primary: #f00; + +@import "~bulma/sass/utilities/_all.sass"; +@import "~bulma/bulma.sass"; +@import "~buefy/src/scss/buefy"; diff --git a/assets/scss/_globals.scss b/assets/scss/_globals.scss index bdb840b..f670f37 100644 --- a/assets/scss/_globals.scss +++ b/assets/scss/_globals.scss @@ -1,4 +1,5 @@ @import 'palette'; +@import 'mixins'; $bp__m: 40em; @@ -6,7 +7,9 @@ $bp__m: 40em; $bp__layout: 40em; $z-index__page: 50; +$z-index__page-overlay: 75; $z-index__menu: 100; +$site-menu__width: 25rem; $site-menu__header-width: 3rem; $site-menu__header-height: 3rem; diff --git a/assets/scss/_mixins.scss b/assets/scss/_mixins.scss new file mode 100644 index 0000000..398ec71 --- /dev/null +++ b/assets/scss/_mixins.scss @@ -0,0 +1,10 @@ +@mixin font-body($weight: 400) { + font-family: 'Raleway', sans-serif; + font-weight: $weight; +} + +@mixin font-title($weight: 400) { + font-family: 'Montserrat', sans-serif; + letter-spacing: 1px; + font-weight: $weight; +} diff --git a/assets/scss/style.scss b/assets/scss/style.scss index d71f710..7321d20 100644 --- a/assets/scss/style.scss +++ b/assets/scss/style.scss @@ -1 +1,2 @@ +@import 'buefy'; @import 'base'; diff --git a/components/SiteMenu.vue b/components/SiteMenu.vue index 981e70f..be86613 100644 --- a/components/SiteMenu.vue +++ b/components/SiteMenu.vue @@ -1,8 +1,12 @@