From a8c39262ffa2ba04aa017f1d7203c9588361f83b Mon Sep 17 00:00:00 2001 From: mb Date: Mon, 10 Aug 2020 10:00:11 +0200 Subject: [PATCH 1/4] forcing font-family custom theme changes see #67 --- .../less/invenio_theme_tugraz/overrides.less | 35 +++++++++++++++++-- 1 file changed, 33 insertions(+), 2 deletions(-) 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 a611e74..7e71aaa 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 @@ -46,10 +46,41 @@ To #000000 /*** forcing the font changes */ -body { +* { font-family: "Source Sans Pro"; -} + } + html, body { + font-family: "Source Sans Pro"; + } + body, h1, h2, h3, h4, h5, h6 { + font-family: "Source Sans Pro"; + } + .ui.button{ + font-family: "Source Sans Pro"; + } + .ui.items{ + font-family: "Source Sans Pro"; + } + .ui.form input:not([type]), + .ui.form input[type=date], + .ui.form input[type=datetime-local], + .ui.form input[type=email], + .ui.form input[type=file], + .ui.form input[type=number], + .ui.form input[type=password], + .ui.form input[type=search], + .ui.form input[type=tel], + .ui.form input[type=text], + .ui.form input[type=time], .ui.form input[type=url] { + font-family: "Source Sans Pro"; + } + .ui.accordion .title:not(.ui) { + font-family: "Source Sans Pro"; + } + .ui.items>.item>.content>.header { + font-family: "Source Sans Pro"; + } /*** search.button **/ From 20d782aca7f4225f135a79816f3982e429ebcd2d Mon Sep 17 00:00:00 2001 From: mb Date: Mon, 10 Aug 2020 11:10:56 +0200 Subject: [PATCH 2/4] forcing font-family overriden some other css classes s --- .../semantic-ui/less/invenio_theme_tugraz/overrides.less | 6 ++++++ 1 file changed, 6 insertions(+) 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 7e71aaa..b698873 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 @@ -81,6 +81,12 @@ forcing the font changes .ui.items>.item>.content>.header { font-family: "Source Sans Pro"; } + .ui.menu{ + font-family: "Source Sans Pro"; + } + .ui.header { + font-family: "Source Sans Pro"; + } /*** search.button **/ From 3dc86691a6b55343a4cd5d6a6e9b32349ee4c389 Mon Sep 17 00:00:00 2001 From: mb Date: Tue, 11 Aug 2020 14:05:10 +0200 Subject: [PATCH 3/4] aligned grids removed unnecessary styles, add space between underline and body. --- .../assets/semantic-ui/less/invenio_theme_tugraz/header.less | 5 ++--- .../templates/invenio_theme_tugraz/header.html | 5 +++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/header.less b/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/header.less index 75bed48..22971f6 100644 --- a/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/header.less +++ b/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/header.less @@ -22,7 +22,6 @@ .affiliation-logo { display: table-cell; - padding: 0 50px 0 0; vertical-align: middle; white-space: nowrap; & a { @@ -48,7 +47,6 @@ .affiliation-text { display: table-cell; font-size: 17px; - padding: 0 0 0 50px; vertical-align: middle; white-space: nowrap; } @@ -206,7 +204,8 @@ svg:not(:root) { } .main-menu-underline-line { - border: 3px solid #e4154b !important; + border: 2.5px solid #e4154b !important; + border-radius: 0; } #margin-divider{ diff --git a/invenio_theme_tugraz/templates/invenio_theme_tugraz/header.html b/invenio_theme_tugraz/templates/invenio_theme_tugraz/header.html index 853d200..2cb5233 100644 --- a/invenio_theme_tugraz/templates/invenio_theme_tugraz/header.html +++ b/invenio_theme_tugraz/templates/invenio_theme_tugraz/header.html @@ -13,7 +13,7 @@ {%- block navbar %}