Skip to content
This repository has been archived by the owner on Sep 7, 2020. It is now read-only.

Commit

Permalink
Responsive Menu Fix #2
Browse files Browse the repository at this point in the history
  • Loading branch information
noxify committed Jan 22, 2020
1 parent 4eb2ee0 commit 2477e08
Show file tree
Hide file tree
Showing 11 changed files with 154 additions and 692 deletions.
662 changes: 132 additions & 530 deletions package-lock.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions package.json
Expand Up @@ -12,13 +12,13 @@
"@gridsome/transformer-remark": "^0.4.0",
"gridsome": "^0.7.12",
"gridsome-source-static-meta": "github:noxify/gridsome-source-static-meta#master",
"node-sass": "^4.13.0",
"sass": "^1.25.0",
"postcss-import": "^12.0.1",
"postcss-nested": "^4.2.1",
"prism-themes": "^1.3.0",
"sass-loader": "^8.0.0"
"sass-loader": "^8.0.2"
},
"devDependencies": {
"gridsome-plugin-tailwindcss": "^2.2.30"
"gridsome-plugin-tailwindcss": "^2.2.32"
}
}
18 changes: 15 additions & 3 deletions src/layouts/partials/ResponsiveNav.vue
Expand Up @@ -3,6 +3,7 @@
<nav
id="mobile-nav"
class="mobile-nav fixed left-0 top-0 h-screen w-full overflow-y-auto pt-12 bg-purple-900 z-50 md:hidden"
:class="toggleNav ? 'menu-visible': ''"
>
<ul>
<li
Expand All @@ -23,8 +24,10 @@
<button
id="mobile-nav-toggle"
class="mobile-nav-toggle block fixed h-16 w-full bottom-0 flex items-center justify-center font-bold border-none bg-purple-900 text-white z-50 focus:outline-none md:hidden"
:class="toggleNav ? 'menu-toggle-active': ''"
aria-expanded="false"
aria-controls="mobile-nav"
@click="toggle"
>
<span class="mobile-nav-label mr-2 font-medium">Menu</span>

Expand All @@ -49,11 +52,20 @@ query {
</static-query>

<script>
let myBody = {
classList : {}
};
export default {
mounted() {
require('@modules/mobile-nav');
data() {
return {
toggleNav: false
}
},
methods: {
toggle() {
this.toggleNav = !this.toggleNav
}
}
}
Expand Down
3 changes: 0 additions & 3 deletions src/main.js
Expand Up @@ -3,9 +3,6 @@

import DefaultLayout from '~/layouts/Default.vue'


//import '~/resources/js/main.js'

import '~/resources/scss/main.scss'

export default function (Vue, { router, head, isClient }) {
Expand Down
4 changes: 0 additions & 4 deletions src/resources/js/main.js

This file was deleted.

58 changes: 0 additions & 58 deletions src/resources/js/modules/lazyload/index.js

This file was deleted.

20 changes: 0 additions & 20 deletions src/resources/js/modules/mobile-nav/index.js

This file was deleted.

39 changes: 0 additions & 39 deletions src/resources/js/utilities/helpers/index.js

This file was deleted.

30 changes: 0 additions & 30 deletions src/resources/js/utilities/selectors/index.js

This file was deleted.

3 changes: 2 additions & 1 deletion src/resources/scss/base/_links.scss
@@ -1,5 +1,6 @@
a {
@apply no-underline text-pink-500 transition;
@apply no-underline text-pink-500;
transition: 0.25s all ease-out;

&:hover {
@apply text-purple-900;
Expand Down
3 changes: 2 additions & 1 deletion src/resources/scss/components/_form.scss
Expand Up @@ -28,7 +28,8 @@

.input,
.textarea {
@apply border border-gray-200 rounded p-3 w-full transition;
@apply border border-gray-200 rounded p-3 w-full;
transition: 0.25s all ease-out;

&:focus {
@apply border-pink-500 outline-none;
Expand Down

1 comment on commit 2477e08

@vercel
Copy link

@vercel vercel bot commented on 2477e08 Jan 22, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.