forked from openhab/openhab-webui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BasicUI] Add support for framework7 icons (openhab#2013)
Signed-off-by: Laurent Garnier <[email protected]>
- Loading branch information
Showing
8 changed files
with
67 additions
and
1 deletion.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
1 change: 1 addition & 0 deletions
1
bundles/org.openhab.ui.basic/src/main/resources/snippets/icon_framework7.html
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 @@ | ||
<spam class="f7-icons">%icon_name%</spam> |
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
33 changes: 33 additions & 0 deletions
33
bundles/org.openhab.ui.basic/src/main/resources/web/framework7-icons.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,33 @@ | ||
@font-face { | ||
font-family: 'Framework7 Icons'; | ||
font-style: normal; | ||
font-weight: 400; | ||
src: local('Framework7 Icons'), | ||
local('Framework7Icons-Regular'), | ||
url('fonts/Framework7Icons-Regular.woff2') format('woff2'), | ||
url('fonts/Framework7Icons-Regular.woff') format('woff'), | ||
url('fonts/Framework7Icons-Regular.ttf') format('truetype'); | ||
} | ||
|
||
.f7-icons, | ||
.framework7-icons { | ||
font-family: 'Framework7 Icons'; | ||
font-weight: normal; | ||
font-style: normal; | ||
font-size: 28px; | ||
line-height: 1; | ||
letter-spacing: normal; | ||
text-transform: none; | ||
display: inline-block; | ||
white-space: nowrap; | ||
word-wrap: normal; | ||
direction: ltr; | ||
-webkit-font-smoothing: antialiased; | ||
text-rendering: optimizeLegibility; | ||
-moz-osx-font-smoothing: grayscale; | ||
-webkit-font-feature-settings: 'liga'; | ||
-moz-font-feature-settings: 'liga=1'; | ||
-moz-font-feature-settings: 'liga'; | ||
font-feature-settings: 'liga'; | ||
text-align: center; | ||
} |
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