From 52092e1d855805a5b3377c38c3e017a2bfdc823c Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 2 Aug 2019 11:37:03 +0100 Subject: [PATCH] Different way of highlighting dollowers button prevents odd shapes --- epicyon-profile.css | 32 ++++++++++++++++++++++++++++++++ img/icons/person.png | Bin 5328 -> 4531 bytes webinterface.py | 12 +++++++----- 3 files changed, 39 insertions(+), 5 deletions(-) diff --git a/epicyon-profile.css b/epicyon-profile.css index 4c6d636c..96e3c989 100644 --- a/epicyon-profile.css +++ b/epicyon-profile.css @@ -105,6 +105,22 @@ body, html { margin: 5px; } +.buttonhighlighted { + border-radius: 4px; + background-color: green; + border: none; + color: white; + text-align: center; + font-size: 18px; + padding: 10px; + width: 20%; + max-width: 200px; + min-width: 100px; + transition: all 0.5s; + cursor: pointer; + margin: 5px; +} + .timelineIcon { width: 10%; } @@ -186,6 +202,22 @@ body, html { margin: 5px; } +.buttonselectedhighlighted { + border-radius: 4px; + background-color: darkgreen; + border: none; + color: white; + text-align: center; + font-size: 18px; + padding: 10px; + width: 20%; + max-width: 200px; + min-width: 140px; + transition: all 0.5s; + cursor: pointer; + margin: 5px; +} + .buttonselected span { cursor: pointer; display: inline-block; diff --git a/img/icons/person.png b/img/icons/person.png index ee96781d00b75a34bd631d0f61cb32f99973e5be..782f443a342676a6e570443b1ba2735f19a793a5 100644 GIT binary patch delta 4411 zcmV-B5ybA$DYGMxBLWQ#ktHC1k{n5nME~s+eFQVu1{}v$k-otke;z!7NivJcTBb!t zIjox2;yJ7Yx3p@KAIuk-h0>BoqYd^}lxjHsV@;*UQ+=I?I3 z_q7aq_{Eknx*J+G(Vl z&a+)<5n_=eovp}{{2bHV#biC86#q?EdH|mdI+7R2We&?nEa`c!`SW;~^5mU3QxZ1= zt&u&)Q?;dmw0^HISWA2edn}3`Ay+}wTYj99M}wk^+~g` zz!B%`7PF@BwUr;7bF6_=OMLZ9>ic~IQpB?>!BEj9#g=kSEyXUd&ZsM(+2hr8jEw0OjZP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;-xaC!qp!(im(gnnUu zfL|1foIE-=Jimg$vyl+AME7QGma&Hs^!0^8M<|M7&r(7Df82tAl7Kvuzpn^E#{@s1 zKW?jFe}9cWtNME`kCJC1Xi;cUy6*UItFp}dTn5BW>E7@>1dL{%dIV#qh>}OLLqnpG zOi422L_oN8KH>ki;q0U#gi3UH6tMyzc4|vP&Th*J?|w&&?$tD}WQa8Lk_Z$d*NMG7 zbN(R%qTDCO?&TkAfPPMD9h*ZVj@S}&E5&BX{sASH!C7eJUx0x=Dhm5m}Qc)0Lo}_@@VmGsdwy9GO|Yr%*nft&WAI3x%ap79)n0`< zhL_gb=zp^Rr~dQuXmH5(zk4(o_wR_VWvBgX0#PMOzT#KHl zAfNJ0^ZtVssQ=t42*_K@clm$)|G9^U8xkxp5Bt~uf<%XN+;!(_!cNfM0EqgVRvc9& LO=N|lMd<$lSh?X$ diff --git a/webinterface.py b/webinterface.py index 272f7578..62fd4391 100644 --- a/webinterface.py +++ b/webinterface.py @@ -384,7 +384,7 @@ def htmlProfile(baseDir: str,httpPrefix: str,authorized: bool, \ loginButton='' followApprovalsSection='' - followApprovals='' + followApprovals=False linkToTimelineStart='' linkToTimelineEnd='' editProfileStr='' @@ -402,11 +402,13 @@ def htmlProfile(baseDir: str,httpPrefix: str,authorized: bool, \ with open(followRequestsFilename,'r') as f: for line in f: if len(line)>0: - # show a star on the followers tab - followApprovals='' + followApprovals=True + followersButton='buttonhighlighted' + if selected=='followers': + followersButton='buttonselectedhighlighted' break if selected=='followers': - if len(followApprovals)>0: + if followApprovals: with open(followRequestsFilename,'r') as f: for followerHandle in f: if len(line)>0: @@ -440,7 +442,7 @@ def htmlProfile(baseDir: str,httpPrefix: str,authorized: bool, \ '
' \ ' ' \ ' ' \ - ' ' \ + ' ' \ ' ' \ ' ' \ ' '+ \