diff options
author | Michael Grosser <development@stp-ip.net> | 2017-04-11 22:41:58 +0300 |
---|---|---|
committer | Michael Grosser <development@stp-ip.net> | 2017-04-11 22:41:58 +0300 |
commit | 25261051f675fbcf1c046f72e5d0eebc3322a9ff (patch) | |
tree | 52bf0e2314af2a4a60dcf7a8df7d32f1f3040132 | |
parent | 9f3e5616a826a3a30e15cc89f50d7f3301e14c5d (diff) |
Add example for custom icon font
-rw-r--r-- | exampleSite/static/icons.css | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/exampleSite/static/icons.css b/exampleSite/static/icons.css new file mode 100644 index 0000000..929c097 --- /dev/null +++ b/exampleSite/static/icons.css @@ -0,0 +1,36 @@ +@font-face { + font-family: 'FontAwesome'; + src: url('../fonts/icons.eot'); + src: url('../fonts/icons.eot#iefix') format('embedded-opentype'), + url('../fonts/icons.ttf') format('truetype'), + url('../fonts/icons.woff') format('woff'), + url('../fonts/icons.svg#FontAwesome') format('svg'); + font-weight: normal; + font-style: normal; +} + +.icons { + /* use !important to prevent issues with browser extensions that change fonts */ + font-family: 'FontAwesome' !important; + speak: none; + font-style: normal; + font-weight: normal; + font-variant: normal; + text-transform: none; + line-height: 1; + + /* Better Font Rendering =========== */ + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +.fa-twitter:before { + content: "\f099"; +} +.fa-linkedin:before { + content: "\f0e1"; +} +.fa-gitlab:before { + content: "\f296"; +} + |