Skip to content

Commit

Permalink
fix(themes): less3/4 needs font import interpreted as raw css
Browse files Browse the repository at this point in the history
When using webpack 4+ and LESS 3/4 the font imports have to be interpreted as raw CSS, otherwise the build breaks.
This is already fixed for the default theme since 3 years, but any of the included optional themes will fail.

I also updated the google font api usage to v2
  • Loading branch information
lubber-de committed Dec 20, 2021
1 parent 6dea710 commit c77b750
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/themes/bookish/elements/header.overrides
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Overrides
*******************************/

@import url(https://fonts.googleapis.com/css?family=Karma);
@import (css) url('https://fonts.googleapis.com/css2?family=Karma');

h1.ui.header,
.ui.huge.header {
Expand Down
2 changes: 1 addition & 1 deletion src/themes/chubby/elements/button.overrides
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Overrides
*******************************/

@import url(https://fonts.googleapis.com/css?family=Source+Sans+Pro);
@import (css) url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro');

.ui.labeled.icon.buttons > .button > .icon,
.ui.labeled.icon.button > .icon {
Expand Down
2 changes: 1 addition & 1 deletion src/themes/chubby/elements/header.overrides
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
Overrides
*******************************/

@import url(https://fonts.googleapis.com/css?family=Source+Sans+Pro);
@import (css) url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro');
2 changes: 1 addition & 1 deletion src/themes/instagram/views/card.overrides
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*******************************/


@import url(https://fonts.googleapis.com/css?family=Montserrat:700,400);
@import (css) url('https://fonts.googleapis.com/css2?family=Montserrat');

.ui.cards > .card,
.ui.card {
Expand Down
2 changes: 1 addition & 1 deletion src/themes/material/collections/menu.overrides
Original file line number Diff line number Diff line change
@@ -1 +1 @@
@import url(https://fonts.googleapis.com/css?family=Roboto);
@import (css) url('https://fonts.googleapis.com/css2?family=Roboto');
2 changes: 1 addition & 1 deletion src/themes/material/elements/button.overrides
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import url(https://fonts.googleapis.com/css?family=Roboto);
@import (css) url('https://fonts.googleapis.com/css2?family=Roboto');

.ui.primary.button:hover {
box-shadow:
Expand Down
2 changes: 1 addition & 1 deletion src/themes/material/elements/header.overrides
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Overrides
*******************************/

@import url(https://fonts.googleapis.com/css?family=Roboto);
@import (css) url('https://fonts.googleapis.com/css2?family=Roboto');

h1.ui.header,
.ui.huge.header {
Expand Down
2 changes: 1 addition & 1 deletion src/themes/material/modules/dropdown.overrides
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import url(https://fonts.googleapis.com/css?family=Roboto:400,700);
@import (css) url('https://fonts.googleapis.com/css2?family=Roboto');

.ui.dropdown {
font-family: 'Roboto';
Expand Down
2 changes: 1 addition & 1 deletion src/themes/material/modules/modal.overrides
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import url(https://fonts.googleapis.com/css?family=Roboto);
@import (css) url('https://fonts.googleapis.com/css2?family=Roboto');

.ui.modal .header {
font-family: "Roboto", Arial, Sans-serif !important;
Expand Down
2 changes: 1 addition & 1 deletion src/themes/rtl/globals/site.overrides
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
*******************************/

/* Import Droid Arabic Kufi */
@import 'https://fonts.googleapis.com/earlyaccess/droidarabickufi.css';
@import (css) url('https://fonts.googleapis.com/css2?family=Droid+Arabic+Kufi');

0 comments on commit c77b750

Please sign in to comment.