diff --git a/rero_ils/config.py b/rero_ils/config.py index 2a544598a0..829e7c2a94 100644 --- a/rero_ils/config.py +++ b/rero_ils/config.py @@ -275,9 +275,9 @@ def _(x): THEME_SETTINGS_TEMPLATE = SETTINGS_TEMPLATE #: Template for error pages. THEME_ERROR_TEMPLATE = "rero_ils/page_error.html" -# External CSS for each organisation customization -# For production: change "test" with "prod" on url -RERO_ILS_THEME_ORGANISATION_CSS_ENDPOINT = "https://resources.rero.ch/bib/test/css/" +#: Local path for organisation-specific CSS customization files. +#: CSS files are served from static assets (e.g., aoste.css, global.css). +RERO_ILS_THEME_ORGANISATION_CSS_ENDPOINT = "/static/themes/css/" #: Template for including a tracking code for web analytics. THEME_TRACKINGCODE_TEMPLATE = "rero_ils/trackingcode.html" THEME_JAVASCRIPT_TEMPLATE = "rero_ils/javascript.html" diff --git a/rero_ils/theme/static/themes/css/aoste.css b/rero_ils/theme/static/themes/css/aoste.css new file mode 100644 index 0000000000..150932407d --- /dev/null +++ b/rero_ils/theme/static/themes/css/aoste.css @@ -0,0 +1,37 @@ +@layer bootstrap { + body#view-aoste nav.rero-ils-header { + background-color: #ffd7d7 !important; + } + + body#view-aoste nav.rero-ils-header img.rero-ils-logo { + display: none; + } + + div#aoste-logo { + content: url('https://resources.rero.ch/ils/test/images/logo-aoste.svg'); + max-height: 44px; + } + + #view-global .rero-slogan { + margin-bottom: 4em; + } + + + @media (max-width: 576px) { + .h1, h1 { + font-size: 1.5rem; + } + + .h2, h2 { + font-size: 1.2rem; + } + + #view-global .rero-ils-frontpage { + height: 20vh; + } + + #view-global .rero-slogan { + margin-bottom: 1em; + } + } +} \ No newline at end of file diff --git a/rero_ils/theme/static/themes/css/fictive.css b/rero_ils/theme/static/themes/css/fictive.css new file mode 100644 index 0000000000..1a1a9e7d7a --- /dev/null +++ b/rero_ils/theme/static/themes/css/fictive.css @@ -0,0 +1,37 @@ +@layer bootstrap { + body#view-fictive nav.rero-ils-header { + background-color: #4f009e !important; + } + + body#view-fictive nav.rero-ils-header img.rero-ils-logo { + display: none ; + } + + div#fictive-logo { + content: url('https://resources.rero.ch/ils/test/images/logo-fictive.svg'); + max-height: 44px; + } + + #view-global .rero-slogan { + margin-bottom: 4em ; + } + + + @media (max-width: 576px) { + .h1, h1 { + font-size: 1.5rem ; + } + + .h2, h2 { + font-size: 1.2rem ; + } + + #view-global .rero-ils-frontpage { + height: 20vh ; + } + + #view-global .rero-slogan { + margin-bottom: 1em ; + } + } +} diff --git a/rero_ils/theme/static/themes/css/global.css b/rero_ils/theme/static/themes/css/global.css new file mode 100644 index 0000000000..eae9b6d24a --- /dev/null +++ b/rero_ils/theme/static/themes/css/global.css @@ -0,0 +1,38 @@ +@layer bootstrap { + body#view-global nav.rero-ils-header { + background-color: #1b4464 !important; + } + + body#view-global nav.rero-ils-header img.rero-ils-logo { + display: none; + } + + div#global-logo { + content: url('https://resources.rero.ch/bib/test/images/logo-global.svg'); + min-height: 44px; + max-height: 44px; + min-width: 58px; + } + + #view-global .rero-slogan { + margin-bottom: 4em; + } + + @media (max-width: 576px) { + .h1, h1 { + font-size: 1.5rem; + } + + .h2, h2 { + font-size: 1.2rem; + } + + #view-global .rero-ils-frontpage { + height: 20vh; + } + + #view-global .rero-slogan { + margin-bottom: 1em; + } + } +} \ No newline at end of file diff --git a/rero_ils/theme/static/themes/css/highlands.css b/rero_ils/theme/static/themes/css/highlands.css new file mode 100644 index 0000000000..3edeb9c6fa --- /dev/null +++ b/rero_ils/theme/static/themes/css/highlands.css @@ -0,0 +1,37 @@ +@layer bootstrap { + body#view-highlands nav.rero-ils-header { + background-color: #333333 !important; + } + + body#view-highlands nav.rero-ils-header img.rero-ils-logo { + display: none; + } + + div#highlands-logo { + content: url('https://resources.rero.ch/ils/test/images/logo-highlands.svg'); + max-height: 44px; + } + + #view-global .rero-slogan { + margin-bottom: 4em; + } + + + @media (max-width: 576px) { + .h1, h1 { + font-size: 1.5rem; + } + + .h2, h2 { + font-size: 1.2rem; + } + + #view-global .rero-ils-frontpage { + height: 20vh; + } + + #view-global .rero-slogan { + margin-bottom: 1em; + } + } +} \ No newline at end of file diff --git a/rero_ils/theme/static/themes/images/logo-aoste.svg b/rero_ils/theme/static/themes/images/logo-aoste.svg new file mode 100644 index 0000000000..1daf9be0f8 --- /dev/null +++ b/rero_ils/theme/static/themes/images/logo-aoste.svg @@ -0,0 +1,266 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/rero_ils/theme/static/themes/images/logo-fictive.svg b/rero_ils/theme/static/themes/images/logo-fictive.svg new file mode 100644 index 0000000000..64f7710fff --- /dev/null +++ b/rero_ils/theme/static/themes/images/logo-fictive.svg @@ -0,0 +1,210 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/rero_ils/theme/static/themes/images/logo-global.svg b/rero_ils/theme/static/themes/images/logo-global.svg new file mode 100644 index 0000000000..50b754dd7f --- /dev/null +++ b/rero_ils/theme/static/themes/images/logo-global.svg @@ -0,0 +1,308 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/rero_ils/theme/static/themes/images/logo-highlands.svg b/rero_ils/theme/static/themes/images/logo-highlands.svg new file mode 100644 index 0000000000..fc4c0612da --- /dev/null +++ b/rero_ils/theme/static/themes/images/logo-highlands.svg @@ -0,0 +1,196 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/rero_ils/theme/templates/rero_ils/header.html b/rero_ils/theme/templates/rero_ils/header.html index f1b7c9118f..ec06e90150 100644 --- a/rero_ils/theme/templates/rero_ils/header.html +++ b/rero_ils/theme/templates/rero_ils/header.html @@ -24,7 +24,7 @@
{%- block navbar_brand %} {%- if config.THEME_LOGO %} - diff --git a/rero_ils/theme/templates/rero_ils/page_cover.html b/rero_ils/theme/templates/rero_ils/page_cover.html index 02eabf1c07..820ca2907a 100644 --- a/rero_ils/theme/templates/rero_ils/page_cover.html +++ b/rero_ils/theme/templates/rero_ils/page_cover.html @@ -35,7 +35,7 @@
{%- block brand %} {%- if config.THEME_LOGO %} -