Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve font load & sizes #58

Merged
merged 2 commits into from Mar 9, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions components/BaelFooter.vue
@@ -1,5 +1,5 @@
<template>
<footer class="fill-gray-lighter xs-text-6 md-text-5">
<footer class="fill-gray-lighter xs-text-2 md-text-2">
<div class="r no-gap">
<div v-if="pagination" class="c-12 xs-text-left xs-p2 xs-border-right">
<div class="item xs-text-center">
Expand Down Expand Up @@ -106,7 +106,7 @@
</div>
</div>
<div class="c-12 xs-text-left xs-p2 xs-border">
<div class="item xs-text-6">
<div class="item xs-text-2">
An open source design by
<a href="https://jake101.com">
jake101
Expand Down
2 changes: 1 addition & 1 deletion components/BaelGrid.vue
@@ -1,5 +1,5 @@
<template>
<div class="xs-text-6 md-text-5">
<div class="xs-text-2 md-text-2">
<div
v-if="elements"
class="r full-height browse"
Expand Down
15 changes: 10 additions & 5 deletions components/BaelHeader.vue
Expand Up @@ -24,7 +24,7 @@
<div
v-if="blogtitle"
style="z-index:55;"
class="c-12 xs-border-top xs-p2 xs-text-6 titlebar"
class="c-12 xs-border-top xs-p2 xs-text-2 titlebar"
>
<div class="item">
<nuxt-link to="/" exact>
Expand Down Expand Up @@ -104,7 +104,7 @@ export default {
}
}
</script>
<style>
<style lang="scss">
#navbar {
z-index: 999;
}
Expand All @@ -129,10 +129,15 @@ nav {
}
.sitename {
color: #000;
font-family: "Archivo Black", sans-serif;
font-family: arial, sans-serif;
text-transform: uppercase;
font-weight: 400;
font-size: 18px;
font-weight: 900;
font-size: 2rem;

.wf-active & {
font-family: "Archivo Black";
font-weight: 400;
}
}
@media only screen and (max-width: 40rem) {
.results {
Expand Down
2 changes: 1 addition & 1 deletion components/SlideOut.vue
@@ -1,6 +1,6 @@
<template>
<div
class="zap-slideout xs-border xs-text-6 md-text-5"
class="zap-slideout xs-border xs-text-2 md-text-2"
:class="{ isOpen: $store.state.menuIsActive }"
>
<div class="zap-slideout-opener">
Expand Down
26 changes: 21 additions & 5 deletions layouts/default.vue
Expand Up @@ -68,19 +68,35 @@ export default {
}
</script>

<style>
html,
<style lang="scss">
:root {
font-size: 62.5%;
}

body {
font-size: 1rem;
image-rendering: optimizeQuality;
text-rendering: optimizeLegibility;
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

main {
font-size: 1.8rem;
}

.main-title {
font-size: 3rem;
font-family: "Archivo Black", sans-serif;
font-weight: 400;
font-size: 4.3rem;
font-family: arial, sans-serif;
font-weight: 900;
line-height: 1;

.wf-active & {
font-family: "Archivo Black";
font-weight: 400;
}
}
.feat-wrapper {
max-height: 55vh;
Expand Down
12 changes: 11 additions & 1 deletion nuxt.config.js
Expand Up @@ -31,7 +31,17 @@ module.exports = {
}
],
link: [
{ rel: "icon", type: "image/x-icon", href: "/favicon.ico" }
{ rel: "icon", type: "image/x-icon", href: "/favicon.ico" },
{
rel: "preconnect",
href: "https://fonts.googleapis.com/",
crossorigin: true
},
{
rel: "preconnect",
href: "https://fonts.gstatic.com/",
crossorigin: true
}
]
},
css: ["~/assets/grid.css", "bf-solid/dist/solid.latest.css"],
Expand Down
86 changes: 42 additions & 44 deletions pages/blog/_slug.vue
@@ -1,52 +1,50 @@
<template>
<main class="xs-border-bottom">
<div
class="full-height single xs-border-left xs-border-right"
:style="
`min-height:calc(100vh - ${navbarheight}px);margin-top:${navbarheight}px`
"
>
<div class="xs-mt2 xs-p2 bcg-item">
<div class="item xs-block xs-full-height">
<div v-if="theThumb" class="feat-wrapper">
<transition appear name="fade">
<img class="featured-image" :src="thumbnail" :alt="title" >
</transition>
</div>
<h1 class="xs-py3 main-title">
{{ title }}
</h1>
<no-ssr>
<div class="xs-mt-5 bold">
<ul class="list-unstyled xs-flex xs-flex-align-center">
<li
v-if="this.$store.state.theCategory"
class="xs-inline-block xs-mr1"
>
<div class="tag fill-gray-darker xs-border">
<nuxt-link
:to="
`/category/${this.$store.state.theCategory.toLowerCase()}`
"
class="tag__link text-white"
>
{{ this.$store.state.theCategory }}
</nuxt-link>
</div>
</li>
<li class="xs-inline-block">
{{ date }}
</li>
</ul>
</div>
</no-ssr>
<div class="xs-py3 post-content text-gray-lighter">
<div v-html="$md.render(body)" />
<div
class="full-height single xs-border-left xs-border-right xs"
:style="
`min-height:calc(100vh - ${navbarheight}px);margin-top:${navbarheight}px`
"
>
<div class="xs-mt2 xs-p2 bcg-item">
<div class="item xs-block xs-full-height">
<div v-if="theThumb" class="feat-wrapper">
<transition appear name="fade">
<img class="featured-image" :src="thumbnail" :alt="title" >
</transition>
</div>
<h1 class="xs-py3 main-title">
{{ title }}
</h1>
<no-ssr>
<div class="xs-mt-5 bold">
<ul class="list-unstyled xs-flex xs-flex-align-center">
<li
v-if="this.$store.state.theCategory"
class="xs-inline-block xs-mr1"
>
<div class="tag fill-gray-darker xs-border">
<nuxt-link
:to="
`/category/${this.$store.state.theCategory.toLowerCase()}`
"
class="tag__link text-white"
>
{{ this.$store.state.theCategory }}
</nuxt-link>
</div>
</li>
<li class="xs-inline-block">
{{ date }}
</li>
</ul>
</div>
</no-ssr>
<div class="xs-py3 post-content text-gray-lighter">
<div v-html="$md.render(body)" />
</div>
</div>
</div>
</main>
</div>
</template>
<script>
import MdWrapper from "~/components/MdWrapper"
Expand Down
40 changes: 19 additions & 21 deletions pages/page/_slug.vue
@@ -1,28 +1,26 @@
<template>
<main>
<div
class="full-height single xs-border-left xs-border-right"
:style="
`min-height:calc(100vh - ${navbarheight}px);margin-top:${navbarheight}px`
"
>
<div class="xs-mt2 xs-p2 bcg-item">
<div class="item xs-block xs-full-height">
<div v-if="theThumb" class="fill-gray-lighter feat-wrapper">
<transition appear name="fade">
<img class="featured-image" :src="thumbnail" :alt="title">
</transition>
</div>
<h1 class="xs-py3 main-title">
{{ title }}
</h1>
<div class="xs-py3 post-content text-gray">
<div v-html="$md.render(body)" />
</div>
<div
class="full-height single xs-border-left xs-border-right"
:style="
`min-height:calc(100vh - ${navbarheight}px);margin-top:${navbarheight}px`
"
>
<div class="xs-mt2 xs-p2 bcg-item">
<div class="item xs-block xs-full-height">
<div v-if="theThumb" class="fill-gray-lighter feat-wrapper">
<transition appear name="fade">
<img class="featured-image" :src="thumbnail" :alt="title">
</transition>
</div>
<h1 class="xs-py3 main-title">
{{ title }}
</h1>
<div class="xs-py3 post-content text-gray">
<div v-html="$md.render(body)" />
</div>
</div>
</div>
</main>
</div>
</template>

<script>
Expand Down