forked from indymedia/epicyon
Different way of highlighting dollowers button prevents odd shapes
parent
e10e133eeb
commit
52092e1d85
|
@ -105,6 +105,22 @@ body, html {
|
||||||
margin: 5px;
|
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 {
|
.timelineIcon {
|
||||||
width: 10%;
|
width: 10%;
|
||||||
}
|
}
|
||||||
|
@ -186,6 +202,22 @@ body, html {
|
||||||
margin: 5px;
|
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 {
|
.buttonselected span {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 4.4 KiB |
|
@ -384,7 +384,7 @@ def htmlProfile(baseDir: str,httpPrefix: str,authorized: bool, \
|
||||||
loginButton=''
|
loginButton=''
|
||||||
|
|
||||||
followApprovalsSection=''
|
followApprovalsSection=''
|
||||||
followApprovals=''
|
followApprovals=False
|
||||||
linkToTimelineStart=''
|
linkToTimelineStart=''
|
||||||
linkToTimelineEnd=''
|
linkToTimelineEnd=''
|
||||||
editProfileStr=''
|
editProfileStr=''
|
||||||
|
@ -402,11 +402,13 @@ def htmlProfile(baseDir: str,httpPrefix: str,authorized: bool, \
|
||||||
with open(followRequestsFilename,'r') as f:
|
with open(followRequestsFilename,'r') as f:
|
||||||
for line in f:
|
for line in f:
|
||||||
if len(line)>0:
|
if len(line)>0:
|
||||||
# show a star on the followers tab
|
followApprovals=True
|
||||||
followApprovals='<img class="highlight" src="/icons/new.png"/>'
|
followersButton='buttonhighlighted'
|
||||||
|
if selected=='followers':
|
||||||
|
followersButton='buttonselectedhighlighted'
|
||||||
break
|
break
|
||||||
if selected=='followers':
|
if selected=='followers':
|
||||||
if len(followApprovals)>0:
|
if followApprovals:
|
||||||
with open(followRequestsFilename,'r') as f:
|
with open(followRequestsFilename,'r') as f:
|
||||||
for followerHandle in f:
|
for followerHandle in f:
|
||||||
if len(line)>0:
|
if len(line)>0:
|
||||||
|
@ -440,7 +442,7 @@ def htmlProfile(baseDir: str,httpPrefix: str,authorized: bool, \
|
||||||
' <center>' \
|
' <center>' \
|
||||||
' <a href="'+actor+'"><button class="'+postsButton+'"><span>Posts </span></button></a>' \
|
' <a href="'+actor+'"><button class="'+postsButton+'"><span>Posts </span></button></a>' \
|
||||||
' <a href="'+actor+'/following"><button class="'+followingButton+'"><span>Following </span></button></a>' \
|
' <a href="'+actor+'/following"><button class="'+followingButton+'"><span>Following </span></button></a>' \
|
||||||
' <a href="'+actor+'/followers"><button class="'+followersButton+'"><span>Followers </span>'+followApprovals+'</button></a>' \
|
' <a href="'+actor+'/followers"><button class="'+followersButton+'"><span>Followers </span></button></a>' \
|
||||||
' <a href="'+actor+'/roles"><button class="'+rolesButton+'"><span>Roles </span></button></a>' \
|
' <a href="'+actor+'/roles"><button class="'+rolesButton+'"><span>Roles </span></button></a>' \
|
||||||
' <a href="'+actor+'/skills"><button class="'+skillsButton+'"><span>Skills </span></button></a>' \
|
' <a href="'+actor+'/skills"><button class="'+skillsButton+'"><span>Skills </span></button></a>' \
|
||||||
' <a href="'+actor+'/shares"><button class="'+sharesButton+'"><span>Shares </span></button></a>'+ \
|
' <a href="'+actor+'/shares"><button class="'+sharesButton+'"><span>Shares </span></button></a>'+ \
|
||||||
|
|
Loading…
Reference in New Issue