mirror of https://gitlab.com/bashrc2/epicyon
Separate styling for lines on the newswire
parent
b6cabed32c
commit
e232aa714b
|
@ -92,6 +92,8 @@
|
||||||
--column-left-border-width: 0;
|
--column-left-border-width: 0;
|
||||||
--column-right-border-width: 0;
|
--column-right-border-width: 0;
|
||||||
--column-left-border-color: black;
|
--column-left-border-color: black;
|
||||||
|
--column-right-header-line-margin: 2%;
|
||||||
|
--column-right-header-line-width: 0;
|
||||||
--column-left-header-line-width: 0;
|
--column-left-header-line-width: 0;
|
||||||
--column-left-header-line-margin: 2%;
|
--column-left-header-line-margin: 2%;
|
||||||
--post-line-margin: 2%;
|
--post-line-margin: 2%;
|
||||||
|
@ -161,6 +163,16 @@ hr.linksLine {
|
||||||
border: var(--column-left-header-line-width) solid var(--column-left-header-line-color);
|
border: var(--column-left-header-line-width) solid var(--column-left-header-line-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
hr.linksLine {
|
||||||
|
margin: var(--column-left-header-line-margin);
|
||||||
|
border: var(--column-left-header-line-width) solid var(--column-left-header-line-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
hr.newswireLine {
|
||||||
|
margin: var(--column-right-header-line-margin);
|
||||||
|
border: var(--column-right-header-line-width) solid var(--column-left-header-line-color);
|
||||||
|
}
|
||||||
|
|
||||||
hr.postLine {
|
hr.postLine {
|
||||||
margin: var(--post-line-margin);
|
margin: var(--post-line-margin);
|
||||||
border: var(--post-line-width) solid var(--column-left-header-line-color);
|
border: var(--post-line-width) solid var(--column-left-header-line-color);
|
||||||
|
|
2
theme.py
2
theme.py
|
@ -1020,7 +1020,9 @@ def setThemeIndymediaModern(baseDir: str):
|
||||||
"url('./fonts/NimbusSanL-italic.otf') format('opentype')"
|
"url('./fonts/NimbusSanL-italic.otf') format('opentype')"
|
||||||
themeParams = {
|
themeParams = {
|
||||||
"column-left-header-line-margin": "2%",
|
"column-left-header-line-margin": "2%",
|
||||||
|
"column-right-header-line-margin": "2%",
|
||||||
"post-line-margin": "2%",
|
"post-line-margin": "2%",
|
||||||
|
"column-right-header-line-width": "0";
|
||||||
"column-left-border-width": "1px",
|
"column-left-border-width": "1px",
|
||||||
"column-right-border-width": "1px",
|
"column-right-border-width": "1px",
|
||||||
"column-left-border-color": "#BBBBBB",
|
"column-left-border-color": "#BBBBBB",
|
||||||
|
|
|
@ -5849,7 +5849,7 @@ def htmlNewswire(newswire: {}, nickname: str, moderator: bool,
|
||||||
dateStrLink = dateStr.replace('T', ' ')
|
dateStrLink = dateStr.replace('T', ' ')
|
||||||
dateStrLink = dateStrLink.replace('Z', '')
|
dateStrLink = dateStrLink.replace('Z', '')
|
||||||
moderatedItem = item[5]
|
moderatedItem = item[5]
|
||||||
htmlStr += '<hr class="linksLine">\n'
|
htmlStr += '<hr class="newswireLine">\n'
|
||||||
if moderatedItem and 'vote:' + nickname in item[2]:
|
if moderatedItem and 'vote:' + nickname in item[2]:
|
||||||
totalVotesStr = ''
|
totalVotesStr = ''
|
||||||
totalVotes = 0
|
totalVotes = 0
|
||||||
|
|
Loading…
Reference in New Issue