mirror of
https://github.com/mbirth/wiki.git
synced 2024-12-24 22:54:09 +00:00
Move font definition to layout. Add more fonts. Make it work with
Android Chrome.
This commit is contained in:
parent
c6ff2e915b
commit
a36149f493
@ -1,19 +1,5 @@
|
||||
---
|
||||
---
|
||||
@font-face
|
||||
font-family: "Fira Code"
|
||||
src: url(../fonts/FiraCode-Regular.woff2) format(woff2)
|
||||
src: url(../fonts/FiraCode-Regular.woff) format(woff)
|
||||
font-weight: normal
|
||||
font-style: normal
|
||||
|
||||
@font-face
|
||||
font-family: "Fira Code"
|
||||
src: url(../fonts/FiraCode-Bold.woff2) format(woff2)
|
||||
src: url(../fonts/FiraCode-Bold.woff) format(woff)
|
||||
font-weight: bold
|
||||
font-style: normal
|
||||
|
||||
abbr, acronym
|
||||
border-bottom: 1px dotted #888
|
||||
cursor: help
|
||||
|
@ -3,12 +3,26 @@
|
||||
$font: "Fira Code", Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace
|
||||
$maincolor: #678b22
|
||||
|
||||
@font-face
|
||||
font-family: "Fira Code"
|
||||
src: url(../fonts/FiraCode-Regular.otf)
|
||||
src: url(../fonts/FiraCode-Regular.eot) format(embedded-opentype), url(../fonts/FiraCode-Regular.woff2) format(woff2), url(../fonts/FiraCode-Regular.woff) format(woff), url(../fonts/FiraCode-Regular.ttf) format(truetype), url(../fonts/FiraCode-Regular.otf) format(opentype)
|
||||
font-weight: normal
|
||||
font-style: normal
|
||||
|
||||
@font-face
|
||||
font-family: "Fira Code"
|
||||
src: url(../fonts/FiraCode-Bold.otf)
|
||||
src: url(../fonts/FiraCode-Bold.eot) format(embedded-opentype), url(../fonts/FiraCode-Bold.woff2) format(woff2), url(../fonts/FiraCode-Bold.woff) format(woff), url(../fonts/FiraCode-Bold.ttf) format(truetype), url(../fonts/FiraCode-Bold.otf) format(opentype)
|
||||
font-weight: bold
|
||||
font-style: normal
|
||||
|
||||
=text-shadow
|
||||
text-shadow: 0 1px 1px rgba(black, 0.1), 0 0 5px rgba(lighten($maincolor, 33%), 0.1), 0 0 10px rgba(lighten($maincolor, 33%), 0.1)
|
||||
|
||||
body
|
||||
font-feature-settings: "calt" 1 // Enable ligatures for IE 10+, Edge
|
||||
//text-rendering: optimizeLegibility // Force ligatures for Webkit, Blink, Gecko
|
||||
text-rendering: optimizeLegibility // Force ligatures for Webkit, Blink, Gecko
|
||||
margin: 0
|
||||
padding: 0
|
||||
background: #eaeaea url("../images/bkg-white.png") 0 0
|
||||
|
BIN
fonts/FiraCode-Bold.eot
Normal file
BIN
fonts/FiraCode-Bold.eot
Normal file
Binary file not shown.
BIN
fonts/FiraCode-Bold.otf
Normal file
BIN
fonts/FiraCode-Bold.otf
Normal file
Binary file not shown.
BIN
fonts/FiraCode-Bold.ttf
Normal file
BIN
fonts/FiraCode-Bold.ttf
Normal file
Binary file not shown.
BIN
fonts/FiraCode-Regular.eot
Normal file
BIN
fonts/FiraCode-Regular.eot
Normal file
Binary file not shown.
BIN
fonts/FiraCode-Regular.otf
Normal file
BIN
fonts/FiraCode-Regular.otf
Normal file
Binary file not shown.
BIN
fonts/FiraCode-Regular.ttf
Normal file
BIN
fonts/FiraCode-Regular.ttf
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user