about summary refs log tree commit diff
path: root/src/components/NavLink.vue
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2019-08-12 13:02:15 +0200
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2019-08-12 13:02:15 +0200
commit1e15172a7dfe5baf20225786c1ea06af0d3e691c (patch)
treeebeb382aa8dd88e67604373f83171a8722b1a6e2 /src/components/NavLink.vue
parenta163ec2d7497acb51612669a83e31e37746c176f (diff)
downloadpuszcza-1e15172a7dfe5baf20225786c1ea06af0d3e691c.tar.gz
puszcza-1e15172a7dfe5baf20225786c1ea06af0d3e691c.zip
Add basic responsiveness to NavBar
Diffstat (limited to 'src/components/NavLink.vue')
-rw-r--r--src/components/NavLink.vue8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/components/NavLink.vue b/src/components/NavLink.vue
index 7ad5088..5dbf609 100644
--- a/src/components/NavLink.vue
+++ b/src/components/NavLink.vue
@@ -1,6 +1,6 @@
 <template>
   <li class="navlink">
-    <a v-if="external" class="link" :href="link">{{name}}</a>
+    <a v-if="external" class="link" target="_blank" :href="link">{{name}}</a>
     <router-link v-else class="link" :to="link">{{ name }}</router-link>
   </li>
 </template>
@@ -27,4 +27,10 @@ export default {
   padding: 10px;
   margin: 10px;
 }
+
+@media (max-width: 1300px) {
+  .navlink {
+    margin: 0;
+  }
+}
 </style>
\ No newline at end of file