-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEATURE] builder: Add cssVariables option (#728)
BLI: CPOUI5FOUNDATION-346
- Loading branch information
Showing
35 changed files
with
255 additions
and
24 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
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
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
...cted/build/theme.j/dest-css-variables/resources/theme/j/themes/somefancytheme/Button.less
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 @@ | ||
.someClass { | ||
color: @someColor | ||
} |
3 changes: 3 additions & 0 deletions
3
...uild/theme.j/dest-css-variables/resources/theme/j/themes/somefancytheme/css_variables.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 @@ | ||
:root{--someColor:#000} | ||
/* Inline theming parameters */ | ||
#sap-ui-theme-theme\.j{background-image:url('data:text/plain;utf-8,%7B%22someColor%22%3A%22%23000%22%7D')} |
5 changes: 5 additions & 0 deletions
5
...me.j/dest-css-variables/resources/theme/j/themes/somefancytheme/css_variables.source.less
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,5 @@ | ||
@someColor: #000000; | ||
|
||
:root { | ||
--someColor: @someColor; | ||
} |
3 changes: 3 additions & 0 deletions
3
.../build/theme.j/dest-css-variables/resources/theme/j/themes/somefancytheme/library-RTL.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 @@ | ||
.someClass{color:#000} | ||
/* Inline theming parameters */ | ||
#sap-ui-theme-theme\.j{background-image:url('data:text/plain;utf-8,%7B%22someColor%22%3A%22%23000%22%7D')} |
1 change: 1 addition & 0 deletions
1
...heme.j/dest-css-variables/resources/theme/j/themes/somefancytheme/library-parameters.json
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 @@ | ||
{"someColor":"#000"} |
3 changes: 3 additions & 0 deletions
3
...cted/build/theme.j/dest-css-variables/resources/theme/j/themes/somefancytheme/library.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 @@ | ||
.someClass{color:#000} | ||
/* Inline theming parameters */ | ||
#sap-ui-theme-theme\.j{background-image:url('data:text/plain;utf-8,%7B%22someColor%22%3A%22%23000%22%7D')} |
2 changes: 2 additions & 0 deletions
2
...ld/theme.j/dest-css-variables/resources/theme/j/themes/somefancytheme/library.source.less
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,2 @@ | ||
@someColor: black; | ||
@import "Button.less"; |
1 change: 1 addition & 0 deletions
1
...eme.j/dest-css-variables/resources/theme/j/themes/somefancytheme/library_skeleton-RTL.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 @@ | ||
.someClass{color:var(--someColor)} |
1 change: 1 addition & 0 deletions
1
...d/theme.j/dest-css-variables/resources/theme/j/themes/somefancytheme/library_skeleton.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 @@ | ||
.someClass{color:var(--someColor)} |
9 changes: 9 additions & 0 deletions
9
...build/theme.library.e/dest-css-variables/resources/theme/library/e/themes/my_theme/.theme
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,9 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<theme xmlns="http://www.sap.com/sap.ui.library.xsd" > | ||
|
||
<name>my_theme</name> | ||
<vendor>me</vendor> | ||
<copyright>Some fancy copyright</copyright> | ||
<version>1.0.0</version> | ||
|
||
</theme> |
File renamed without changes.
3 changes: 3 additions & 0 deletions
3
....library.e/dest-css-variables/resources/theme/library/e/themes/my_theme/css_variables.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 @@ | ||
:root{--mycolor:#00f} | ||
/* Inline theming parameters */ | ||
#sap-ui-theme-theme\.library\.e{background-image:url('data:text/plain;utf-8,%7B%22mycolor%22%3A%22%2300f%22%7D')} |
5 changes: 5 additions & 0 deletions
5
....e/dest-css-variables/resources/theme/library/e/themes/my_theme/css_variables.source.less
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,5 @@ | ||
@mycolor: #0000ff; | ||
|
||
:root { | ||
--mycolor: @mycolor; | ||
} |
5 changes: 5 additions & 0 deletions
5
...me.library.e/dest-css-variables/resources/theme/library/e/themes/my_theme/library-RTL.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,5 @@ | ||
/*! | ||
* Some fancy copyright | ||
*/.sapUiBody{background-color:#00f} | ||
/* Inline theming parameters */ | ||
#sap-ui-theme-theme\.library\.e{background-image:url('data:text/plain;utf-8,%7B%22mycolor%22%3A%22%2300f%22%7D')} |
1 change: 1 addition & 0 deletions
1
...ry.e/dest-css-variables/resources/theme/library/e/themes/my_theme/library-parameters.json
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 @@ | ||
{"mycolor":"#00f"} |
5 changes: 5 additions & 0 deletions
5
.../theme.library.e/dest-css-variables/resources/theme/library/e/themes/my_theme/library.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,5 @@ | ||
/*! | ||
* Some fancy copyright | ||
*/.sapUiBody{background-color:#00f} | ||
/* Inline theming parameters */ | ||
#sap-ui-theme-theme\.library\.e{background-image:url('data:text/plain;utf-8,%7B%22mycolor%22%3A%22%2300f%22%7D')} |
9 changes: 9 additions & 0 deletions
9
...ibrary.e/dest-css-variables/resources/theme/library/e/themes/my_theme/library.source.less
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,9 @@ | ||
/*! | ||
* Some fancy copyright | ||
*/ | ||
|
||
@mycolor: blue; | ||
|
||
.sapUiBody { | ||
background-color: @mycolor; | ||
} |
3 changes: 3 additions & 0 deletions
3
...y.e/dest-css-variables/resources/theme/library/e/themes/my_theme/library_skeleton-RTL.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 @@ | ||
/*! | ||
* Some fancy copyright | ||
*/.sapUiBody{background-color:var(--mycolor)} |
3 changes: 3 additions & 0 deletions
3
...brary.e/dest-css-variables/resources/theme/library/e/themes/my_theme/library_skeleton.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 @@ | ||
/*! | ||
* Some fancy copyright | ||
*/.sapUiBody{background-color:var(--mycolor)} |
Empty file.
18 changes: 0 additions & 18 deletions
18
test/fixtures/theme.library.e/src/theme/library/e/my_theme/library.source.less
This file was deleted.
Oops, something went wrong.
File renamed without changes.
27 changes: 27 additions & 0 deletions
27
test/fixtures/theme.library.e/src/theme/library/e/themes/my_theme/.theming
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,27 @@ | ||
{ | ||
"sEntity": "Theme", | ||
"sId": "sap_belize", | ||
"oExtends": "base", | ||
"sVendor": "SAP", | ||
"aBundled": ["sap_belize_plus"], | ||
"mCssScopes": { | ||
"library": { | ||
"sBaseFile": "library", | ||
"sEmbeddingMethod": "APPEND", | ||
"aScopes": [ | ||
{ | ||
"sLabel": "Contrast", | ||
"sSelector": "sapContrast", | ||
"sEmbeddedFile": "sap_belize_plus.library", | ||
"sEmbeddedCompareFile": "library", | ||
"sThemeIdSuffix": "Contrast", | ||
"sThemability": "PUBLIC", | ||
"aThemabilityFilter": [ | ||
"Color" | ||
], | ||
"rExcludeSelector": "\\.sapContrastPlus\\W" | ||
} | ||
] | ||
} | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
test/fixtures/theme.library.e/src/theme/library/e/themes/my_theme/library.source.less
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,9 @@ | ||
/*! | ||
* ${copyright} | ||
*/ | ||
|
||
@mycolor: blue; | ||
|
||
.sapUiBody { | ||
background-color: @mycolor; | ||
} |
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
Oops, something went wrong.