From 42e02823049000f9d61ca2522b8269e3390ae022 Mon Sep 17 00:00:00 2001 From: Sunpy Date: Thu, 25 Apr 2019 16:44:41 +0100 Subject: [PATCH 1/7] Flags --- static/const/img/flags/gb.svg | 15 +++++++++++++++ static/const/img/flags/no.svg | 7 +++++++ templates/layout/includes/top_nav.html | 5 +++-- 3 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 static/const/img/flags/gb.svg create mode 100644 static/const/img/flags/no.svg diff --git a/static/const/img/flags/gb.svg b/static/const/img/flags/gb.svg new file mode 100644 index 0000000..d98b6cc --- /dev/null +++ b/static/const/img/flags/gb.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/static/const/img/flags/no.svg b/static/const/img/flags/no.svg new file mode 100644 index 0000000..56e78e1 --- /dev/null +++ b/static/const/img/flags/no.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/templates/layout/includes/top_nav.html b/templates/layout/includes/top_nav.html index daf0278..1b3000a 100644 --- a/templates/layout/includes/top_nav.html +++ b/templates/layout/includes/top_nav.html @@ -2,6 +2,7 @@ .rndblock { border-radius: 100%; background: #B507DB; + background-position: center; width: 40px; height: 40px; @@ -13,11 +14,11 @@ } .languk { - background: url("{{ url_for('static', filename='const/img/flags/uk.png') }}"); + background-image: url("{{ url_for('static', filename='const/img/flags/gb.svg') }}"); } .langno { - background: url("{{ url_for('static', filename='const/img/flags/no.png') }}"); + background-image: url("{{ url_for('static', filename='const/img/flags/no.svg') }}"); } From af05ca6bf5014ed4e93e8ece7da2390b9de526df Mon Sep 17 00:00:00 2001 From: Sunpy Date: Thu, 25 Apr 2019 16:52:45 +0100 Subject: [PATCH 2/7] Topnav style --- templates/layout/includes/top_nav.html | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/templates/layout/includes/top_nav.html b/templates/layout/includes/top_nav.html index 1b3000a..7e6944e 100644 --- a/templates/layout/includes/top_nav.html +++ b/templates/layout/includes/top_nav.html @@ -20,11 +20,20 @@ .langno { background-image: url("{{ url_for('static', filename='const/img/flags/no.svg') }}"); } + +.icon-buttons > .col { + padding-right: 6px; + padding-left: 6px; +} + +.topnav a { + color: black; +} -