about summary refs log tree commit diff
path: root/components/NavLink.vue
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2019-11-28 07:25:54 -0500
committerGitHub <noreply@github.com>2019-11-28 07:25:54 -0500
commitfaaf63ad895bd51541a9984273d52c71645a0b28 (patch)
tree90e949913650da4b619e3ab1e875731b1410d93f /components/NavLink.vue
parent72549ed7b81fc01445fecdb7889bab4cf2a1590f (diff)
parent73e5c7a20e5e8f6a54ab484ea2ce1aac16200b1d (diff)
downloadpuszcza-faaf63ad895bd51541a9984273d52c71645a0b28.tar.gz
puszcza-faaf63ad895bd51541a9984273d52c71645a0b28.zip
Merge pull request #8 from 19pdh/develop
Posts & ranking
Diffstat (limited to 'components/NavLink.vue')
-rw-r--r--components/NavLink.vue11
1 files changed, 10 insertions, 1 deletions
diff --git a/components/NavLink.vue b/components/NavLink.vue
index 253dde9..bb86ef8 100644
--- a/components/NavLink.vue
+++ b/components/NavLink.vue
@@ -1,6 +1,7 @@
 <template>
   <li class="navlink">
     <a v-if="external" class="link" target="_blank" rel="”noopener”" :href="link">{{ name }}</a>
+    <a v-else-if="pure" class="link" :href="link">{{ name }}</a>
     <nuxt-link v-else class="link" :to="link">{{ name }}</nuxt-link>
   </li>
 </template>
@@ -10,7 +11,8 @@ export default {
   props: {
     link: String,
     name: String,
-    external: { type: Boolean, default: false }
+    external: { type: Boolean, default: false },
+    pure: { type: Boolean, default: false }
   }
 }
 </script>
@@ -22,6 +24,7 @@ export default {
   font-family: 'Roboto Slab', serif;
   -webkit-font-smoothing: antialiased;
   -moz-osx-font-smoothing: grayscale;
+  font-weight: bold;
 
   text-decoration: none;
   color: #181818;
@@ -45,6 +48,12 @@ export default {
   background-color: #ececec !important;
 }
 
+@media (min-width: 900px) {
+  .link {
+    font-weight: normal;
+  }
+}
+
 @media (max-width: 1300px) {
   .navlink {
     margin: 0;