diff --git a/MANIFEST.in b/MANIFEST.in index a804211..78cc530 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -33,4 +33,5 @@ recursive-include invenio_theme_tugraz *.scss recursive-include invenio_theme_tugraz *.svg recursive-include invenio_theme_tugraz *.less recursive-include invenio_theme_tugraz *.ico -recursive-include tests *.py \ No newline at end of file +recursive-include tests *.py +recursive-include invenio_theme_tugraz *.jpg \ No newline at end of file diff --git a/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/footer.less b/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/footer.less index c3994da..f0ca800 100644 --- a/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/footer.less +++ b/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/footer.less @@ -7,23 +7,38 @@ */ #footer { - color: #fff; + color: #5E5E5E; - &.footer-bottom { - background-color: #E4154B; - padding-top: 15px; - padding-bottom: 15px; - font-weight: 300; - font-size: 14px; + /*background-image: url("/static/images/footer.jpg");*/ + -webkit-background-size: 100% 100%; + -moz-background-size: 100% 100%; + -o-background-size: 100% 100%; + background-size: 100% 100%; + min-height: 100%; + /* the following 2 lines are a hack for IE6 */ + height: auto !important; + height: 100%; + width: 100%; + background-attachment: fixed; - a { - text-decoration: none; - color: #ffffffd6; - font-weight: 600; + &.footer-bottom { + background-color: #fff; + padding-top: 15px; + padding-bottom: 15px; + font-size: 16px; + + a { + text-decoration: none; + color: #5E5E5E; + + &:hover, &:focus { + color: #ffffff; + background-color: #000000; + } + } + } + } - &:hover, &:focus { - color: #ffffff; - } - } - } - } + .bodytext{ + font-size: 16px; + } \ No newline at end of file diff --git a/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/overrides.less b/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/overrides.less index c586a43..a611e74 100644 --- a/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/overrides.less +++ b/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/overrides.less @@ -57,3 +57,7 @@ search.button .ui.search.button{ background-color:#e4154b; } + +.ui.search.button:hover{ + background-color:#000000; +} diff --git a/invenio_theme_tugraz/ext.py b/invenio_theme_tugraz/ext.py index 0f6687c..e645d62 100644 --- a/invenio_theme_tugraz/ext.py +++ b/invenio_theme_tugraz/ext.py @@ -18,10 +18,6 @@ class inveniothemetugraz(object): def __init__(self, app=None): """Extension initialization.""" - # TODO: This is an example of translation string with comment. Please - # remove it. - # NOTE: This is a note to a translator. - _('A translation string') if app: self.init_app(app) @@ -32,12 +28,6 @@ class inveniothemetugraz(object): def init_config(self, app): """Initialize configuration.""" - # Use theme's base template if theme is installed - if 'BASE_TEMPLATE' in app.config: - app.config.setdefault( - 'INVENIO_THEME_TUGRAZ_BASE_TEMPLATE', - app.config['BASE_TEMPLATE'], - ) for k in dir(config): if k.startswith('INVENIO_THEME_TUGRAZ_'): app.config.setdefault(k, getattr(config, k)) diff --git a/invenio_theme_tugraz/static/images/TU_Austria_Logo.png b/invenio_theme_tugraz/static/images/TU_Austria_Logo.png new file mode 100644 index 0000000..ceaab53 Binary files /dev/null and b/invenio_theme_tugraz/static/images/TU_Austria_Logo.png differ diff --git a/invenio_theme_tugraz/static/images/footer.jpg b/invenio_theme_tugraz/static/images/footer.jpg new file mode 100644 index 0000000..bda9282 Binary files /dev/null and b/invenio_theme_tugraz/static/images/footer.jpg differ diff --git a/invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html b/invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html index 1959de9..b5e716d 100644 --- a/invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html +++ b/invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html @@ -16,19 +16,102 @@ {{ webpack['invenio-theme-tugraz-js.js'] }} {%- endblock javascript %} +
+
+ diff --git a/pytest.ini b/pytest.ini index 7c61c41..8df2de4 100644 --- a/pytest.ini +++ b/pytest.ini @@ -10,3 +10,4 @@ pep8ignore = docs/conf.py ALL addopts = --pep8 --doctest-glob="*.rst" --doctest-modules --cov=invenio_theme_tugraz --cov-report=term-missing testpaths = docs tests invenio_theme_tugraz +filterwarnings = ignore::pytest.PytestDeprecationWarning \ No newline at end of file diff --git a/run-tests.sh b/run-tests.sh index 09125cd..9589743 100755 --- a/run-tests.sh +++ b/run-tests.sh @@ -8,7 +8,7 @@ # details. pydocstyle invenio_theme_tugraz tests docs && \ -isort --check-only --diff && \ +isort invenio_theme_tugraz tests --check-only --diff && \ check-manifest --ignore ".travis-*" && \ sphinx-build -qnNW docs docs/_build/html && \ -python setup.py test +pytest