mirror of
https://github.com/readthedocs/sphinx_rtd_theme.git
synced 2025-02-25 18:55:21 -06:00
Bundle Roboto Slab as a real web font (not just ttf) (#642)
This commit is contained in:
parent
17ecdc6839
commit
9fdadd5a6f
15
.gitattributes
vendored
Normal file
15
.gitattributes
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
# Document global line endings settings
|
||||
# https://help.github.com/articles/dealing-with-line-endings/
|
||||
* text eol=lf
|
||||
|
||||
|
||||
# Denote all files that are truly binary and should not be modified.
|
||||
*.ai binary
|
||||
*.jpg binary
|
||||
*.otf binary
|
||||
*.png binary
|
||||
*.eot binary
|
||||
*.ttf binary
|
||||
*.whl binary
|
||||
*.woff binary
|
||||
*.woff2 binary
|
@ -1,5 +1,4 @@
|
||||
sphinx_rtd_theme/static/fonts/RobotoSlab-Bold.ttf
|
||||
sphinx_rtd_theme/static/fonts/RobotoSlab-Regular.tt/
|
||||
/fonts/RobotoSlab/*
|
||||
|
||||
|
||||
Apache License
|
||||
|
@ -45,9 +45,8 @@ module.exports = function(grunt) {
|
||||
{
|
||||
expand: true,
|
||||
flatten: true,
|
||||
src: ['bower_components/robotoslab-googlefont/RobotoSlab-Bold.ttf',
|
||||
'bower_components/robotoslab-googlefont/RobotoSlab-Regular.ttf'],
|
||||
dest: 'sphinx_rtd_theme/static/fonts/',
|
||||
src: ['fonts/RobotoSlab/*'],
|
||||
dest: 'sphinx_rtd_theme/static/fonts/RobotoSlab/',
|
||||
filter: 'isFile'
|
||||
}
|
||||
]
|
||||
|
@ -30,7 +30,6 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"lato-googlefont": "*",
|
||||
"robotoslab-googlefont": "*",
|
||||
"font-awesome": "~4.7"
|
||||
},
|
||||
"resolutions": {
|
||||
|
BIN
fonts/RobotoSlab/roboto-slab-v7-bold.eot
Normal file
BIN
fonts/RobotoSlab/roboto-slab-v7-bold.eot
Normal file
Binary file not shown.
BIN
fonts/RobotoSlab/roboto-slab-v7-bold.ttf
Normal file
BIN
fonts/RobotoSlab/roboto-slab-v7-bold.ttf
Normal file
Binary file not shown.
BIN
fonts/RobotoSlab/roboto-slab-v7-bold.woff
Normal file
BIN
fonts/RobotoSlab/roboto-slab-v7-bold.woff
Normal file
Binary file not shown.
BIN
fonts/RobotoSlab/roboto-slab-v7-bold.woff2
Normal file
BIN
fonts/RobotoSlab/roboto-slab-v7-bold.woff2
Normal file
Binary file not shown.
BIN
fonts/RobotoSlab/roboto-slab-v7-regular.eot
Normal file
BIN
fonts/RobotoSlab/roboto-slab-v7-regular.eot
Normal file
Binary file not shown.
BIN
fonts/RobotoSlab/roboto-slab-v7-regular.ttf
Normal file
BIN
fonts/RobotoSlab/roboto-slab-v7-regular.ttf
Normal file
Binary file not shown.
BIN
fonts/RobotoSlab/roboto-slab-v7-regular.woff
Normal file
BIN
fonts/RobotoSlab/roboto-slab-v7-regular.woff
Normal file
Binary file not shown.
BIN
fonts/RobotoSlab/roboto-slab-v7-regular.woff2
Normal file
BIN
fonts/RobotoSlab/roboto-slab-v7-regular.woff2
Normal file
Binary file not shown.
@ -26,11 +26,12 @@
|
||||
font-family: 'Roboto Slab'
|
||||
font-style: normal
|
||||
font-weight: 400
|
||||
src: local('Roboto Slab Regular'), local('RobotoSlab-Regular'), url(../fonts/RobotoSlab-Regular.ttf) format('truetype')
|
||||
src: url('../fonts/RobotoSlab/roboto-slab.eot')
|
||||
src: url('../fonts/RobotoSlab/roboto-slab-v7-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/RobotoSlab/roboto-slab-v7-regular.woff2') format('woff2'), url('../fonts/RobotoSlab/roboto-slab-v7-regular.woff') format('woff'), url('../fonts/RobotoSlab/roboto-slab-v7-regular.ttf') format('truetype')
|
||||
|
||||
@font-face
|
||||
@font-face
|
||||
font-family: 'Roboto Slab'
|
||||
font-style: normal
|
||||
font-weight: 700
|
||||
src: local('Roboto Slab Bold'), local('RobotoSlab-Bold'), url(../fonts/RobotoSlab-Bold.ttf) format('truetype')
|
||||
|
||||
src: url('../fonts/RobotoSlab/roboto-slab-v7-bold.eot')
|
||||
src: url('../fonts/RobotoSlab/roboto-slab-v7-bold.eot?#iefix') format('embedded-opentype'), url('../fonts/RobotoSlab/roboto-slab-v7-bold.woff2') format('woff2'), url('../fonts/RobotoSlab/roboto-slab-v7-bold.woff') format('woff'), url('../fonts/RobotoSlab/roboto-slab-v7-bold.ttf') format('truetype')
|
||||
|
Loading…
Reference in New Issue
Block a user