Skip to content

Commit fcd0242

Browse files
committed
Preload font
1 parent 3c4163b commit fcd0242

File tree

8 files changed

+49
-69
lines changed

8 files changed

+49
-69
lines changed

assets/css/_settings.css

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -58,26 +58,17 @@
5858
--zIndex-editor: 10;
5959
--zIndex-githubCorner: 1;
6060

61-
6261
--shadow1: 0 2px 16px hsla(0, 0%, 0%, 0.08);
6362
--shadow2: 0 0.25px 2px hsla(0, 0%, 0%, 0.16);
6463
--shadow1--hover: 0 5px 40px hsla(0, 0%, 0%, 0.12);
6564
--shadow2--hover: 0 1px 8px hsla(0, 0%, 0%, 0.08);
66-
--shadow:
67-
var(--shadow1),
68-
var(--shadow2),
69-
inset 0 2px 16px hsla(0, 0%, 0%, 0.0),
70-
inset 0 0.25px 2px hsla(0, 0%, 0%, 0.0);
71-
--shadow--inset:
72-
0 5px 40px hsla(0, 0%, 0%, 0),
73-
0 1px 8px hsla(0, 0%, 0%, 0),
74-
inset 0 1px 8px hsla(0, 0%, 0%, 0.16),
75-
inset 0 0.25px 2px hsla(0, 0%, 0%, 0.32);
76-
--shadow--hover:
77-
var(--shadow1--hover),
78-
var(--shadow2--hover),
79-
inset 0 2px 16px hsla(0, 0%, 0%, 0.0),
80-
inset 0 0.25px 2px hsla(0, 0%, 0%, 0.0);
65+
--shadow: var(--shadow1), var(--shadow2), inset 0 2px 16px hsla(0, 0%, 0%, 0),
66+
inset 0 0.25px 2px hsla(0, 0%, 0%, 0);
67+
--shadow--inset: 0 5px 40px hsla(0, 0%, 0%, 0), 0 1px 8px hsla(0, 0%, 0%, 0),
68+
inset 0 1px 8px hsla(0, 0%, 0%, 0.16),
69+
inset 0 0.25px 2px hsla(0, 0%, 0%, 0.32);
70+
--shadow--hover: var(--shadow1--hover), var(--shadow2--hover),
71+
inset 0 2px 16px hsla(0, 0%, 0%, 0), inset 0 0.25px 2px hsla(0, 0%, 0%, 0);
8172
}
8273

8374
.theme-primary {

assets/css/_typography.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@font-face {
22
font-family: 'gidole';
3-
src: url('~/assets/fonts/gidole-regular.woff2') format('woff2');
3+
src: url('/fonts/gidole-regular.woff2') format('woff2');
44
font-weight: normal;
55
font-style: normal;
66
}

assets/css/_utilities.css

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@
2626
.u-section {
2727
margin-bottom: var(--lineHeight-margin-large);
2828
&:last-child {
29-
margin-bottom: calc(var(--lineHeight-margin-large) + var(--lineHeight-margin-small));
29+
margin-bottom: calc(
30+
var(--lineHeight-margin-large) + var(--lineHeight-margin-small)
31+
);
3032
}
3133
}
3234

@@ -99,3 +101,10 @@
99101
.u-textCapitalize {
100102
text-transform: capitalize;
101103
}
104+
105+
/* ICON */
106+
.u-icon {
107+
width: 1rem;
108+
height: 1rem;
109+
opacity: var(--opacity-high);
110+
}

components/select-chevron.vue

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<template>
2+
<chevron-down-icon
3+
class="u-icon c-selectChevron"
4+
/>
5+
</template>
6+
7+
<script>
8+
import { ChevronDownIcon } from 'vue-feather-icons'
9+
10+
export default {
11+
components: {
12+
ChevronDownIcon,
13+
},
14+
}
15+
</script>
16+
17+
<style>
18+
.c-selectChevron {
19+
position: absolute;
20+
right: var(--spacer-xsmall);
21+
top: 50%;
22+
transform: translateY(-50%);
23+
pointer-events: none;
24+
}
25+
</style>

components/select-chevrons.vue

Lines changed: 0 additions & 46 deletions
This file was deleted.

components/tools/gradient/editor.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<div
2222
class="u-position-relative"
2323
>
24-
<select-chevrons />
24+
<select-chevron />
2525
<select
2626
v-model="$store.state.gradient.settings.easingFunction"
2727
>
@@ -39,7 +39,7 @@
3939
<div
4040
class="u-position-relative"
4141
>
42-
<select-chevrons />
42+
<select-chevron />
4343
<select
4444
v-model="$store.state.gradient.settings.colorMode"
4545
>
@@ -220,7 +220,7 @@
220220
<div
221221
class="u-position-relative"
222222
>
223-
<select-chevrons />
223+
<select-chevron />
224224
<select
225225
id="c-gradientEditor-input-steps-number"
226226
v-model="$store.state.gradient.steps.skip"
@@ -283,7 +283,7 @@
283283
</template>
284284

285285
<script>
286-
import selectChevrons from '~/components/select-chevrons'
286+
import selectChevron from '~/components/select-chevron'
287287
import colorEdit from '~/components/tools/gradient/color-edit'
288288
import easingEdit from '~/components/tools/gradient/easing-edit'
289289
import easingPreview from '~/components/tools/gradient/easing-preview'
@@ -298,7 +298,7 @@ export default {
298298
easingPreview,
299299
directionEdit,
300300
directionPreview,
301-
selectChevrons,
301+
selectChevron,
302302
},
303303
mixins: [gradientOutput],
304304
computed: {

nuxt.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ module.exports = {
4040
{ name: 'theme-color', content: '#ee2b7c' },
4141
],
4242
link: [
43+
{ rel: 'preload', href: '/fonts/awesome-l.woff2', as: 'font' },
4344
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
4445
{
4546
rel: 'apple-touch-icon',
File renamed without changes.

0 commit comments

Comments
 (0)