-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Enable use of external css using
@import
(#10953)
Add fix for using a external css file by having the `@import url(...)` in a css file. Also supports imports with media queries. fixes #10228
- Loading branch information
Showing
8 changed files
with
127 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
...t-embedding/test-embedding-application-theme/frontend/themes/embedded-theme/docImport.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.global { | ||
color: blue; | ||
} |
9 changes: 5 additions & 4 deletions
9
...st-embedding/test-embedding-application-theme/frontend/themes/embedded-theme/document.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
@import url('https://fonts.googleapis.com/css?family=Poppins'); | ||
@import url('https://fonts.googleapis.com/css?family=Oswald') screen and (orientation:landscape); | ||
|
||
@import url("docImport.css"); | ||
|
||
@font-face { | ||
font-family: "Ostrich"; | ||
src: url("./font/ostrich-sans-regular.ttf") format("TrueType"); | ||
} | ||
|
||
.global { | ||
color: blue; | ||
} |
2 changes: 2 additions & 0 deletions
2
...test-embedding/test-embedding-application-theme/frontend/themes/embedded-theme/styles.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
@import url('https://fonts.googleapis.com/css?family=Itim'); | ||
|
||
:host { | ||
width: 1200px; | ||
height: 600px; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
@import url('https://fonts.googleapis.com/css?family=Itim'); | ||
@import 'sub-css/sub.css'; | ||
|
||
@font-face { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters