From 780b05c5d7d47b3f298f801df6cbe16a56746379 Mon Sep 17 00:00:00 2001 From: anthraxx Date: Fri, 5 Feb 2021 21:56:35 +0100 Subject: [PATCH] style: use archlinux-common-style with shared images and navbar --- .external/archlinux-common-style | 1 + .gitmodules | 3 +++ tracker/static/archlogo.8a05bc7f6cd1.svg | 1 + tracker/static/archlogo.a2d0ef2df27d.png | Bin 5359 -> 0 bytes tracker/static/favicon.ico | Bin 501 -> 54 bytes tracker/static/style.css | 3 ++- tracker/templates/base.html | 17 ++--------------- tracker/templates/navbar.html | 1 + 8 files changed, 10 insertions(+), 16 deletions(-) create mode 160000 .external/archlinux-common-style create mode 120000 tracker/static/archlogo.8a05bc7f6cd1.svg delete mode 100644 tracker/static/archlogo.a2d0ef2df27d.png mode change 100644 => 120000 tracker/static/favicon.ico create mode 120000 tracker/templates/navbar.html diff --git a/.external/archlinux-common-style b/.external/archlinux-common-style new file mode 160000 index 00000000..fe414724 --- /dev/null +++ b/.external/archlinux-common-style @@ -0,0 +1 @@ +Subproject commit fe41472481348017b99e31f205235cdcaa0d556f diff --git a/.gitmodules b/.gitmodules index 99a388c6..90450c8c 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,6 @@ [submodule ".external/normalize.css"] path = .external/normalize.css url = https://github.com/necolas/normalize.css +[submodule ".external/archlinux-common-style"] + path = .external/archlinux-common-style + url = https://gitlab.archlinux.org/archlinux/archlinux-common-style.git diff --git a/tracker/static/archlogo.8a05bc7f6cd1.svg b/tracker/static/archlogo.8a05bc7f6cd1.svg new file mode 120000 index 00000000..673add74 --- /dev/null +++ b/tracker/static/archlogo.8a05bc7f6cd1.svg @@ -0,0 +1 @@ +../../.external/archlinux-common-style/img/archlogo.8a05bc7f6cd1.svg \ No newline at end of file diff --git a/tracker/static/archlogo.a2d0ef2df27d.png b/tracker/static/archlogo.a2d0ef2df27d.png deleted file mode 100644 index 3d2cd40fb499b2b37651ea67ec6f3b4400e3d157..0000000000000000000000000000000000000000 GIT binary pat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Y(sC%|`T~uY-SX@1z zc^lz?q7d#;BCtY4ota^k=$|s_$$Mft&vLi!yeM$eeL2pU1KwfN)Z!}^#Df}xSuXc8 zTfCh8LxwYVEYH_>0H3#aLxqFxW-=j4V+dh50`aTcMAjU=$Hd*a56>BsM}a|~4`SbF z%r@~aN+OVEgjMv158JDSyJK%X8vjgDdw4FyHQamUm-I~e{67C1Q|Jw27am{KRPd4G z&e!7)(6SD2Mg+JhIQhBU0YDlm^*|gda~Civ83m}cf~>44^q~S2+5z&A{(l5sKF;p0 zq5pruh}}fmoq+j&9V~oY1A-BLE`Z?RUbTPLq#!qoGBJPL<}UCxU*y71`;n5{F-^Z_q~tb42&?wU{e^y`zH%hH5TSy z*gVR*{a5E4AtnH8fUptly0N-L2%1Gls@cGueSEy~d6ZAuk|&FD!BcV@7}ZI$^ERI~ zz*BO!rzD<|bkgkP*=Otie+L}8^WmuLh*z!>%bt?-wDFt2dW)mHTi#&bt@p*iQw?L7 zNsalD8GLPw@EqAH6=nJUvGVt^1c9gO69qZrDuFQsU7d;F+OVm!Qb(IhV+rPNzMI+; zxN95j)c@M*(bL0pt|MAgu2We(J@;)S!KTjYZ<4m(_}T3*KLGCb=Ur_|8=dsRNP;km zcLEJydp>)V)T&4F*=^ud-fsitq*hJ-CAd7W4DfKEewv>K_yW|2t`J6X892kRJ`L1w z`^10?+#3o2t^$R;UIVTH9|r=Oz;$39r~u1h6rTVP(@QIRf!Dwj;7U@fzGRHTC_V@* r0*8TlF}<{M5qO@|s@5MjCg{K)aVVSN{kRIe00000NkvXXu0mjfyiez> diff --git a/tracker/static/favicon.ico b/tracker/static/favicon.ico new file mode 120000 index 00000000..a5c5649e --- /dev/null +++ b/tracker/static/favicon.ico @@ -0,0 +1 @@ +../../.external/archlinux-common-style/img/favicon.ico \ No newline at end of file diff --git a/tracker/static/style.css b/tracker/static/style.css index 2c9fcba5..3049a3dd 100644 --- a/tracker/static/style.css +++ b/tracker/static/style.css @@ -101,7 +101,8 @@ select { } #logo { - background: rgba(0, 0, 0, 0) url("archlogo.a2d0ef2df27d.png") no-repeat scroll 0 0 !important; + background: rgba(0, 0, 0, 0) url("archlogo.8a05bc7f6cd1.svg") no-repeat scroll 0 0 !important; + background-size: 100% !important; height: 40px !important; margin: 0 !important; padding: 0 !important; diff --git a/tracker/templates/base.html b/tracker/templates/base.html index 54f5b86a..483fa1da 100644 --- a/tracker/templates/base.html +++ b/tracker/templates/base.html @@ -16,21 +16,8 @@ {%- endfor %} -
- -
- -
-
+ {%- macro navbar() %}{% include "navbar.html" %}{% endmacro %} + {{ navbar()|replace('\n', "\n\t\t") }}