mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
tests: move font-face to layout
This commit is contained in:
parent
5c2f4715e6
commit
32ef99a96c
12
test/fixtures/with-config/assets/app.css
vendored
12
test/fixtures/with-config/assets/app.css
vendored
@ -1,15 +1,3 @@
|
|||||||
@font-face {
|
|
||||||
font-family: 'Roboto';
|
|
||||||
font-style: normal;
|
|
||||||
font-weight: 400;
|
|
||||||
src: local('Roboto'), local('Roboto-Regular'), url(../assets/roboto.woff2) format('woff2');
|
|
||||||
unicode-range: U+0460-052F, U+20B4, U+2DE0-2DFF, U+A640-A69F;
|
|
||||||
}
|
|
||||||
|
|
||||||
body {
|
|
||||||
font-family: 'Roboto';
|
|
||||||
}
|
|
||||||
|
|
||||||
.global-css-selector {
|
.global-css-selector {
|
||||||
color: red;
|
color: red;
|
||||||
}
|
}
|
||||||
|
14
test/fixtures/with-config/layouts/default.vue
vendored
14
test/fixtures/with-config/layouts/default.vue
vendored
@ -4,3 +4,17 @@
|
|||||||
<nuxt/>
|
<nuxt/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Roboto';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 400;
|
||||||
|
src: local('Roboto'), local('Roboto-Regular'), url(~/assets/roboto.woff2) format('woff2');
|
||||||
|
unicode-range: U+0460-052F, U+20B4, U+2DE0-2DFF, U+A640-A69F;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
font-family: 'Roboto';
|
||||||
|
}
|
||||||
|
</style>
|
Loading…
Reference in New Issue
Block a user