Move custom stylesheet to css/style.css

Author: copernicus-mogley <ryan@z.cash>
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
Daira Hopwood 2020-01-24 15:33:40 +00:00
parent 25ada6f826
commit 2b62e7574b
2 changed files with 5 additions and 5 deletions

View File

@ -15,14 +15,14 @@ protocol:
index.html: README.rst
$(eval TITLE := $(shell echo '$(basename $<)' | sed -E 's|zip-0{0,3}|ZIP |'): $(shell grep -E '^(\.\.)?\s*Title:' $< |sed 's|.*Title:\s*||'))
rst2html5 -v --title="$(TITLE)" $< >$@
sed -i.sedbak 's|</head>|<meta name="viewport" content="width=device-width, initial-scale=1"><link rel="stylesheet" href="assets/css/style.css"></head>|' $@
sed -i.sedbak 's|</head>|<meta name="viewport" content="width=device-width, initial-scale=1"><link rel="stylesheet" href="css/style.css"></head>|' $@
sed -i.sedbak 's|<a href="\([^":]*\).rst">|<a href="\1">|' $@
rm -f *.sedbak
%.html: %.rst
$(eval TITLE := $(shell echo '$(basename $<)' | sed -E 's|zip-0{0,3}|ZIP |'): $(shell grep -E '^(\.\.)?\s*Title:' $< |sed 's|.*Title:\s*||'))
rst2html5 -v --title="$(TITLE)" $< >$@
sed -i.sedbak 's|</head>|<meta name="viewport" content="width=device-width, initial-scale=1"><link rel="stylesheet" href="assets/css/style.css"></head>|' $@
sed -i.sedbak 's|</head>|<meta name="viewport" content="width=device-width, initial-scale=1"><link rel="stylesheet" href="css/style.css"></head>|' $@
sed -i.sedbak 's|<a href="\([^":]*\).rst">|<a href="\1">|' $@
rm -f *.sedbak

View File

@ -1,20 +1,20 @@
@font-face {
font-family: robotolight;
src: url('../fonts/Roboto-Light-webfont.woff') format('woff');
src: url('../assets/fonts/Roboto-Light-webfont.woff') format('woff');
font-weight: 100;
font-style: normal;
}
@font-face {
font-family: robotoregular;
src: url('../fonts/Roboto-Regular-webfont.woff') format('woff');
src: url('../assets/fonts/Roboto-Regular-webfont.woff') format('woff');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: robotomedium;
src: url('../fonts/Roboto-Medium-webfont.woff') format('woff');
src: url('../assets/fonts/Roboto-Medium-webfont.woff') format('woff');
font-weight: normal;
font-style: normal;
}