Skip to content

Commit

Permalink
perf(fonts): remove unused fonts (#118)
Browse files Browse the repository at this point in the history
* perf(fonts): remove unused fonts

* refactor(fonts): remove brand style
  • Loading branch information
shadow81627 committed Jan 27, 2020
1 parent 0d6ef25 commit 6ec6d6e
Show file tree
Hide file tree
Showing 9 changed files with 7 additions and 648 deletions.
14 changes: 0 additions & 14 deletions assets/css/fonts.css

This file was deleted.

5 changes: 5 additions & 0 deletions assets/scss/custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,9 @@ body {
font-family: $font-family-base !important;
}

/* no pointer events */
.pointer-events-none {
pointer-events: none;
}

@import '~/assets/css/print.css' print;
17 changes: 0 additions & 17 deletions layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -111,21 +111,4 @@ export default {

<style lang="scss">
@import '~/assets/scss/custom.scss';
.brand {
font-family: 'Rouge Script', cursive;
font-size: 2rem;
font-weight: 400;
vertical-align: middle;
}
/* no pointer events */
.pointer-events-none {
pointer-events: none;
}
/* navbar links no underline, can't add class to a element since it is added in js */
.text-decoration-none a {
text-decoration: none !important;
}
</style>
19 changes: 2 additions & 17 deletions nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ module.exports = {
/*
** Global CSS
*/
css: ['~/assets/css/storyblok.css', '~/assets/css/fonts.css'],
css: ['~/assets/css/storyblok.css'],

/*
** Plugins to load before mounting the App
Expand Down Expand Up @@ -242,22 +242,7 @@ module.exports = {
defaultAssets: false,
},

webfontloader: {
// google: {
// families: ['Rouge Script', 'Nunito Sans:n4,n6'],
// urls: [
// // for each Google Fonts add url + options you want
// // here add font-display option
// 'https://fonts.googleapis.com/css?family=Rouge+Script&display=swap',
// 'https://fonts.googleapis.com/css?family=Nunito+Sans:400,600&display=swap',
// // 'https://fonts.googleapis.com/css?family=Roboto:300,700&display=swap'
// ]
// },
custom: {
families: ['Rouge Script'],
// urls: ['/fonts.css']
},
},
webfontloader: {},

/*
** Build configuration
Expand Down
Binary file removed static/fonts/rouge-script-v8-latin-regular.eot
Binary file not shown.
600 changes: 0 additions & 600 deletions static/fonts/rouge-script-v8-latin-regular.svg

This file was deleted.

Binary file removed static/fonts/rouge-script-v8-latin-regular.ttf
Binary file not shown.
Binary file removed static/fonts/rouge-script-v8-latin-regular.woff
Binary file not shown.
Binary file removed static/fonts/rouge-script-v8-latin-regular.woff2
Binary file not shown.

1 comment on commit 6ec6d6e

@vercel
Copy link

@vercel vercel bot commented on 6ec6d6e Jan 27, 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.