diff --git a/invenio_theme_tugraz/assets/scss/invenio_tugraz_theme/footer.scss b/invenio_theme_tugraz/assets/scss/invenio_tugraz_theme/footer.scss index 93d1ef9..093dc8b 100644 --- a/invenio_theme_tugraz/assets/scss/invenio_tugraz_theme/footer.scss +++ b/invenio_theme_tugraz/assets/scss/invenio_tugraz_theme/footer.scss @@ -1,5 +1,6 @@ /* - * Copyright (C) 2019 TUGRAZ. + * Copyright (C) 2020 TUGRAZ. + * Copyright (C) 2020 mojib wali. * * invenio-theme-tugraz is free software; you can redistribute it and/or modify it * under the terms of the MIT License; see LICENSE file for more details. diff --git a/invenio_theme_tugraz/assets/scss/invenio_tugraz_theme/header.scss b/invenio_theme_tugraz/assets/scss/invenio_tugraz_theme/header.scss index fdc6104..e71e3f2 100644 --- a/invenio_theme_tugraz/assets/scss/invenio_tugraz_theme/header.scss +++ b/invenio_theme_tugraz/assets/scss/invenio_tugraz_theme/header.scss @@ -1,5 +1,6 @@ /* - * Copyright (C) 2019 TUGRAZ. + * Copyright (C) 2020 TUGRAZ. + * Copyright (C) 2020 mojib wali. * * invenio-theme-tugraz is free software; you can redistribute it and/or modify it * under the terms of the MIT License; see LICENSE file for more details. @@ -232,54 +233,3 @@ color:#E4154B; text-decoration:underline } - -/*CUSTOM*********************/ -/* On hover color changed -* from #0377cd -* to #E4154B -*/ -.section-content-white-bg a:hover, -.section-content-white-bg a:focus, -.section-content-light-bg a:hover, -.section-content-light-bg a:focus, -.hp-blog-section a:hover, -.hp-blog-section a:focus { - color: #E4154B; -} - -/* -* Logos background frontpage. -* from rgba(173, 206, 224, 0.52) -* to #ffffff -*/ -.section-content-light-bg { - background-color: #ffffff; -} - - /* -* section title. -* from #0377cd -* to #000000 -*/ -.section-title { -color: #000000; -} - -/*** -login background color -from : rgba(13,95,137,.8) -To #ffffff -*/ -.cover-page { - //text-align: center; - background-color: #ffffff; -} - -/*** -login & sigup page title -from : #0377cd -To #000000 -*/ -.panel-free-title { - color: #000000; -} diff --git a/invenio_theme_tugraz/assets/scss/invenio_tugraz_theme/overrides.scss b/invenio_theme_tugraz/assets/scss/invenio_tugraz_theme/overrides.scss new file mode 100644 index 0000000..4918aee --- /dev/null +++ b/invenio_theme_tugraz/assets/scss/invenio_tugraz_theme/overrides.scss @@ -0,0 +1,57 @@ +/* + * Copyright (C) 2020 TUGRAZ. + * Copyright (C) 2020 mojib wali. + * + * invenio-theme-tugraz is free software; you can redistribute it and/or modify it + * under the terms of the MIT License; see LICENSE file for more details. + */ + +/* On hover color changed +* from #0377cd +* to #E4154B +*/ +.section-content-white-bg a:hover, +.section-content-white-bg a:focus, +.section-content-light-bg a:hover, +.section-content-light-bg a:focus, +.hp-blog-section a:hover, +.hp-blog-section a:focus { + color: #E4154B; +} + +/* +* Logos background frontpage. +* from rgba(173, 206, 224, 0.52) +* to #ffffff +*/ +.section-content-light-bg { + background-color: #ffffff; +} + + /* +* section title. +* from #0377cd +* to #000000 +*/ +.section-title { +color: #000000; +} + +/*** +login background color +from : rgba(13,95,137,.8) +To #ffffff +*/ +.cover-page { + //text-align: center; + background-color: #ffffff; +} + +/*** +login & sigup page title +from : #0377cd +To #000000 +*/ +.panel-free-title { + color: #000000; +} diff --git a/invenio_theme_tugraz/assets/scss/invenio_tugraz_theme/search/footer.scss b/invenio_theme_tugraz/assets/scss/invenio_tugraz_theme/search/footer.scss index e726a0f..4e019bb 100644 --- a/invenio_theme_tugraz/assets/scss/invenio_tugraz_theme/search/footer.scss +++ b/invenio_theme_tugraz/assets/scss/invenio_tugraz_theme/search/footer.scss @@ -1,5 +1,6 @@ /* - * Copyright (C) 2019 TUGRAZ. + * Copyright (C) 2020 TUGRAZ. + * Copyright (C) 2020 mojib wali. * * invenio-theme-tugraz is free software; you can redistribute it and/or modify it * under the terms of the MIT License; see LICENSE file for more details. diff --git a/invenio_theme_tugraz/assets/scss/invenio_tugraz_theme/search/theme.scss b/invenio_theme_tugraz/assets/scss/invenio_tugraz_theme/search/theme.scss index 4d3ad71..10454dc 100644 --- a/invenio_theme_tugraz/assets/scss/invenio_tugraz_theme/search/theme.scss +++ b/invenio_theme_tugraz/assets/scss/invenio_tugraz_theme/search/theme.scss @@ -1,5 +1,6 @@ /* - * Copyright (C) 2019 TUGRAZ. + * Copyright (C) 2020 TUGRAZ. + * Copyright (C) 2020 mojib wali. * * invenio-theme-tugraz is free software; you can redistribute it and/or modify it * under the terms of the MIT License; see LICENSE file for more details. diff --git a/invenio_theme_tugraz/assets/scss/invenio_tugraz_theme/search/variables.scss b/invenio_theme_tugraz/assets/scss/invenio_tugraz_theme/search/variables.scss index 0c8e1c8..2766093 100644 --- a/invenio_theme_tugraz/assets/scss/invenio_tugraz_theme/search/variables.scss +++ b/invenio_theme_tugraz/assets/scss/invenio_tugraz_theme/search/variables.scss @@ -1,5 +1,6 @@ /* - * Copyright (C) 2019 TUGRAZ. + * Copyright (C) 2020 TUGRAZ. + * Copyright (C) 2020 mojib wali. * * invenio-theme-tugraz is free software; you can redistribute it and/or modify it * under the terms of the MIT License; see LICENSE file for more details. diff --git a/invenio_theme_tugraz/assets/scss/invenio_tugraz_theme/theme.scss b/invenio_theme_tugraz/assets/scss/invenio_tugraz_theme/theme.scss index c7060b7..b8dacf4 100644 --- a/invenio_theme_tugraz/assets/scss/invenio_tugraz_theme/theme.scss +++ b/invenio_theme_tugraz/assets/scss/invenio_tugraz_theme/theme.scss @@ -1,5 +1,6 @@ /* - * Copyright (C) 2019 TUGRAZ. + * Copyright (C) 2020 TUGRAZ. + * Copyright (C) 2020 mojib wali. * * invenio-theme-tugraz is free software; you can redistribute it and/or modify it * under the terms of the MIT License; see LICENSE file for more details. @@ -9,3 +10,4 @@ @import "../invenio_app_rdm/theme"; @import "header"; @import "footer"; +@import "overrides"; diff --git a/invenio_theme_tugraz/assets/scss/invenio_tugraz_theme/variables.scss b/invenio_theme_tugraz/assets/scss/invenio_tugraz_theme/variables.scss index 3b6ee8a..3d6faef 100644 --- a/invenio_theme_tugraz/assets/scss/invenio_tugraz_theme/variables.scss +++ b/invenio_theme_tugraz/assets/scss/invenio_tugraz_theme/variables.scss @@ -1,5 +1,6 @@ /* - * Copyright (C) 2019 TUGRAZ. + * Copyright (C) 2020 TUGRAZ. + * Copyright (C) 2020 mojib wali. * * invenio-theme-tugraz is free software; you can redistribute it and/or modify it * under the terms of the MIT License; see LICENSE file for more details. diff --git a/invenio_theme_tugraz/config.py b/invenio_theme_tugraz/config.py index cea9dc6..b4ba8e0 100644 --- a/invenio_theme_tugraz/config.py +++ b/invenio_theme_tugraz/config.py @@ -8,6 +8,8 @@ """invenio module for TUGRAZ theme.""" +from flask_babelex import gettext as _ + # TODO: This is an example file. Remove it if your package does not use any # extra configuration variables. @@ -36,6 +38,9 @@ THEME_FRONTPAGE_TEMPLATE = 'invenio_theme_tugraz/frontpage.html' # Login page SECURITY_LOGIN_USER_TEMPLATE = 'invenio_theme_tugraz/accounts/login.html' +# footer template +THEME_FOOTER_TEMPLATE = 'invenio_theme_tugraz/footer.html' + # uncomment this to use the login with Tugraz @ login.html SHIBBOLETH_ISACTIVE = 'False' @@ -50,3 +55,12 @@ MAIL_SERVER = '129.27.11.182' SECURITY_EMAIL_SENDER = 'info@invenio-rdm.tugraz.at' SECURITY_EMAIL_SUBJECT_REGISTER = 'Welcome to RDM!' MAIL_SUPPRESS_SEND = False + +# Invenio-I18N +# ============ +# See https://invenio-i18n.readthedocs.io/en/latest/configuration.html +# Other supported languages (do not include BABEL_DEFAULT_LOCALE in list). +I18N_LANGUAGES = [ + ('de', _('German')) + ] + diff --git a/invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login.html b/invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login.html index 9f92a2f..8dd35de 100644 --- a/invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login.html +++ b/invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login.html @@ -1,4 +1,5 @@ {# + Copyright (C) 2020 TUGRAZ Copyright (C) 2020 mojib wali. invenio-theme-tugraz is free software; you can redistribute it and/or diff --git a/invenio_theme_tugraz/templates/invenio_theme_tugraz/base.html b/invenio_theme_tugraz/templates/invenio_theme_tugraz/base.html index 6178a30..ced67ed 100644 --- a/invenio_theme_tugraz/templates/invenio_theme_tugraz/base.html +++ b/invenio_theme_tugraz/templates/invenio_theme_tugraz/base.html @@ -1,4 +1,5 @@ {# + Copyright (C) 2020 TUGRAZ Copyright (C) 2020 mojib wali. invenio-theme-tugraz is free software; you can redistribute it and/or diff --git a/invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html b/invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html new file mode 100644 index 0000000..4ac2c8a --- /dev/null +++ b/invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html @@ -0,0 +1,26 @@ +{# + Copyright (C) 2020 TUGRAZ + Copyright (C) 2020 mojib wali. + + invenio-theme-tugraz is free software; you can redistribute it and/or + modify it under the terms of the MIT License; see LICENSE file for more + details. +#} + + diff --git a/invenio_theme_tugraz/templates/invenio_theme_tugraz/frontpage.html b/invenio_theme_tugraz/templates/invenio_theme_tugraz/frontpage.html index 78d9504..6bd0691 100644 --- a/invenio_theme_tugraz/templates/invenio_theme_tugraz/frontpage.html +++ b/invenio_theme_tugraz/templates/invenio_theme_tugraz/frontpage.html @@ -1,4 +1,5 @@ {# + Copyright (C) 2020 TUGRAZ Copyright (C) 2020 mojib wali. invenio-theme-tugraz is free software; you can redistribute it and/or diff --git a/invenio_theme_tugraz/templates/invenio_theme_tugraz/header.html b/invenio_theme_tugraz/templates/invenio_theme_tugraz/header.html index a133da2..cffb120 100644 --- a/invenio_theme_tugraz/templates/invenio_theme_tugraz/header.html +++ b/invenio_theme_tugraz/templates/invenio_theme_tugraz/header.html @@ -1,4 +1,5 @@ {# + Copyright (C) 2020 TUGRAZ Copyright (C) 2020 mojib wali. invenio-theme-tugraz is free software; you can redistribute it and/or @@ -117,6 +118,7 @@
+
@@ -124,7 +126,17 @@