Fixing fonts & icons paths

This commit is contained in:
Lucas Cimon 2017-12-05 00:10:02 +01:00
parent ae47bb989a
commit 876989cb2d
No known key found for this signature in database
GPG Key ID: 6AF36E0DE97FE852
3 changed files with 8 additions and 8 deletions

View File

@ -16,7 +16,7 @@ def sed(filepath, pattern, value):
# Generating CSS bundle
short_hash = sha1(cat('static/css/main.css')).hexdigest()[:7]
short_hash = sha1(cat('static/main.css')).hexdigest()[:7]
sed('templates/base.html', '-SHORTSHA1-[a-z0-9]+.css', '-SHORTSHA1-{}.css'.format(short_hash))
for DISABLE_SEARCH in range(2):
bundle = b''
@ -25,7 +25,7 @@ for DISABLE_SEARCH in range(2):
bundle += cat('static/csslibs/uikit-2.27.4-search.min.css')
bundle += cat('static/csslibs/tipuesearch.css')
bundle += cat('static/csslibs/solarized-highlight.css')
bundle += cat('static/css/main.css')
bundle += cat('static/main.css')
bundle_filename = 'bundle-DISABLE_SEARCH-{}-SHORTSHA1-{}.css'.format(DISABLE_SEARCH, short_hash)
with open('static/' + bundle_filename, 'wb') as bundle_file:
bundle_file.write(bundle)

File diff suppressed because one or more lines are too long

View File

@ -2,13 +2,13 @@
font-family: 'Open Sans';
font-style: italic;
font-weight: 800;
src: local('Open Sans ExtraBold Italic'), local('OpenSans-ExtraBoldItalic'), url(../fonts/PRmiXeptR36kaC0GEAetxlDMrAYtoOisqqMDW9M_Mqc.ttf) format('truetype');
src: local('Open Sans ExtraBold Italic'), local('OpenSans-ExtraBoldItalic'), url(fonts/PRmiXeptR36kaC0GEAetxlDMrAYtoOisqqMDW9M_Mqc.ttf) format('truetype');
}
@font-face {
font-family: 'Oswald';
font-style: normal;
font-weight: 400;
src: local('Oswald Regular'), local('Oswald-Regular'), url(../fonts/Y_TKV6o8WovbUd3m_X9aAA.ttf) format('truetype');
src: local('Oswald Regular'), local('Oswald-Regular'), url(fonts/Y_TKV6o8WovbUd3m_X9aAA.ttf) format('truetype');
}
html, h1, h2, h3 {
@ -232,7 +232,7 @@ a {
display: inline-block;
height: 28px;
width: 28px;
background-image: url(../shaarli-icon.png);
background-image: url(shaarli-icon.png);
background-size: contain;
vertical-align: middle; }
.uk-icon-stackoverflow:before {
@ -240,7 +240,7 @@ a {
display: inline-block;
height: 28px;
width: 28px;
background-image: url(../stackoverflow-icon.png);
background-image: url(stackoverflow-icon.png);
background-size: contain;
vertical-align: middle; }
.uk-icon-travis-ci:before {
@ -248,7 +248,7 @@ a {
display: inline-block;
height: 28px;
width: 28px;
background-image: url(../travis-ci-icon.png);
background-image: url(travis-ci-icon.png);
background-size: contain;
vertical-align: middle; }