TimOetting / kirby-builder

A site builder extension for Kirby CMS
398 stars 51 forks source link

Imported fonts in CSS aren't loaded #181

Closed RustyDev closed 2 years ago

RustyDev commented 4 years ago

I'm loading my main css file so the previews are consistent with the site styles.

name: Testimonials
label: Testimonials
preview:
  snippet: blocks/testimonials
  css: /assets/css/style.css

In style.css I'm loading a few google fonts:

@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;1,300&family=Playfair+Display:wght@700&display=swap");

The fonts show correctly on the site, but the preview will not load them.

TimOetting commented 2 years ago

Closing this issue because this plugin will no longer be maintained, as its main functionality can be replaced by Kirby's built-in Blocks Field and Layout Field.