mirror of https://gitlab.com/bashrc2/epicyon
Hashtag backgrounds
parent
152eb754ff
commit
742d112018
|
@ -94,6 +94,7 @@
|
|||
--button-event-corner-radius: 60px;
|
||||
--button-event-background-color: green;
|
||||
--button-event-fg-color: white;
|
||||
--hashtag-background-color: black;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
|
@ -374,6 +375,10 @@ a:focus {
|
|||
width: 90%;
|
||||
}
|
||||
|
||||
.addedHashtag {
|
||||
background-color: var(--hashtag-background-color);
|
||||
}
|
||||
|
||||
.message:focus{
|
||||
border: 2px solid var(--focus-color);
|
||||
}
|
||||
|
|
|
@ -307,7 +307,7 @@ def newswireHashtagProcessing(session, baseDir: str, postJsonObject: {},
|
|||
# add corresponding html to the post content
|
||||
hashtagHtml = \
|
||||
" <a href=\"" + hashtagUrl + \
|
||||
"\" class=\"mention hashtag\" " + \
|
||||
"\" class=\"addedHashtag\" " + \
|
||||
"rel=\"tag\">#<span>" + \
|
||||
htId + "</span></a>"
|
||||
content = postJsonObject['object']['content']
|
||||
|
@ -334,7 +334,7 @@ def newswireHashtagProcessing(session, baseDir: str, postJsonObject: {},
|
|||
# remove tag html from the post content
|
||||
hashtagHtml = \
|
||||
"<a href=\"" + hashtagUrl + \
|
||||
"\" class=\"mention hashtag\" " + \
|
||||
"\" class=\"addedHashtag\" " + \
|
||||
"rel=\"tag\">#<span>" + \
|
||||
htId + "</span></a>"
|
||||
content = postJsonObject['object']['content']
|
||||
|
@ -609,7 +609,7 @@ def convertRSStoActivityPub(baseDir: str, httpPrefix: str,
|
|||
if tagName in blog['object']['content']:
|
||||
hashtagHtml = \
|
||||
"<a href=\"" + hashtagUrl + \
|
||||
"\" class=\"mention hashtag\" " + \
|
||||
"\" class=\"addedHashtag\" " + \
|
||||
"rel=\"tag\">#<span>" + \
|
||||
htId + "</span></a>"
|
||||
blog['object']['content'].replace(tagName, hashtagHtml)
|
||||
|
|
3
theme.py
3
theme.py
|
@ -255,6 +255,7 @@ def setThemeIndymediaClassic(baseDir: str):
|
|||
"search": "jpg"
|
||||
}
|
||||
themeParams = {
|
||||
"hashtag-background-color": "darkred",
|
||||
"font-size-newswire": "18px",
|
||||
"font-size-newswire-mobile": "48px",
|
||||
"line-spacing-newswire": "100%",
|
||||
|
@ -795,6 +796,7 @@ def setThemeHacker(baseDir: str):
|
|||
def setThemeLight(baseDir: str):
|
||||
name = 'light'
|
||||
themeParams = {
|
||||
"hashtag-background-color": "lightblue",
|
||||
"focus-color": "grey",
|
||||
"font-size-button-mobile": "26px",
|
||||
"font-size": "32px",
|
||||
|
@ -853,6 +855,7 @@ def setThemeLight(baseDir: str):
|
|||
def setThemeSolidaric(baseDir: str):
|
||||
name = 'solidaric'
|
||||
themeParams = {
|
||||
"hashtag-background-color": "lightred",
|
||||
"button-highlighted": "darkred",
|
||||
"button-selected-highlighted": "darkred",
|
||||
"newswire-date-color": "grey",
|
||||
|
|
Loading…
Reference in New Issue