- needed to position the dropdown content */
@@ -958,6 +959,10 @@ aside .toggle-inside li {
border: 0;
width: 100vw;
}
+ .timeline-banner {
+ width: 98vw;
+ height: var(--banner-height);
+ }
.column-left {
width: var(--column-left-width);
}
@@ -1443,6 +1448,10 @@ aside .toggle-inside li {
border: 0;
width: 100vw;
}
+ .timeline-banner {
+ width: 98vw;
+ height: var(--banner-height-mobile);
+ }
.column-left {
width: 0%;
}
diff --git a/epicyon-profile.css b/epicyon-profile.css
index 75572b813..ad284219a 100644
--- a/epicyon-profile.css
+++ b/epicyon-profile.css
@@ -388,9 +388,14 @@ a:focus {
.containerNewPost {
border: var(--border-width) solid var(--border-color);
- background-color: var(--main-bg-color);
border-radius: var(--timeline-border-radius);
- padding: var(--container-padding);
+ background-color: var(--main-bg-color);
+ margin: var(--vertical-between-posts);
+}
+
+.containerSubmitNewPost {
+ border: 0;
+ background-color: var(--main-bg-color);
margin: var(--vertical-between-posts);
}
@@ -663,7 +668,6 @@ input[type=submit]:hover {
max-width: 90%;
min-width: 600px;
margin: 0 auto;
- padding: 5% 0px;
}
/* The container
- needed to position the dropdown content */
@@ -934,7 +938,6 @@ aside .toggle-inside li {
-ms-transition: all 0.1s ease-in-out;
-o-transition: all 0.1s ease-in-out;
transition: all 0.1s ease-in-out;
- width: 170px;
margin: 0 auto;
text-decoration: none;
display: inline-block;
@@ -1315,6 +1318,10 @@ div.container {
background: transparent;
border: none !important;
font-size: 0;
+ padding-left: 0; padding-right: 0;
+ border-left-width: 0; border-right-width: 0;
+ white-space: nowrap;
+ overflow: hidden;
}
.button {
border-radius: var(--button-corner-radius);
@@ -1334,6 +1341,24 @@ div.container {
border-left: var(--tab-border-width) solid var(--tab-border-color);
border-right: var(--tab-border-width) solid var(--tab-border-color);
}
+ .buttonDesktop {
+ border-radius: var(--button-corner-radius);
+ background-color: var(--button-background);
+ color: var(--button-text);
+ text-align: center;
+ font-size: var(--font-size-header);
+ font-family: Arial, Helvetica, sans-serif;
+ padding: var(--button-height-padding);
+ width: 10%;
+ margin: 5px;
+ min-width: var(--button-width-chars);
+ transition: all 0.5s;
+ cursor: pointer;
+ border-top: var(--tab-border-width) solid var(--tab-border-color);
+ border-bottom: none;
+ border-left: var(--tab-border-width) solid var(--tab-border-color);
+ border-right: var(--tab-border-width) solid var(--tab-border-color);
+ }
.publishbtn {
border-radius: var(--button-corner-radius);
background-color: var(--publish-button-background);
@@ -1983,6 +2008,15 @@ div.container {
border-left: var(--tab-border-width) solid var(--tab-border-color);
border-right: var(--tab-border-width) solid var(--tab-border-color);
}
+ .buttonDesktop {
+ background: transparent;
+ border: none !important;
+ font-size: 0;
+ padding-left: 0; padding-right: 0;
+ border-left-width: 0; border-right-width: 0;
+ white-space: nowrap;
+ overflow: hidden;
+ }
.publishbtn {
border-radius: var(--button-corner-radius);
background-color: var(--publish-button-background);
diff --git a/epicyon-search.css b/epicyon-search.css
index 92ed3217e..243758e9e 100644
--- a/epicyon-search.css
+++ b/epicyon-search.css
@@ -33,6 +33,8 @@
--follow-text-size2: 40px;
--follow-text-entry-width: 90%;
--focus-color: white;
+ --search-banner-height: 30vh;
+ --search-banner-height-mobile: 20vh;
}
@font-face {
@@ -58,7 +60,6 @@ body, html {
font-family: Arial, Helvetica, sans-serif;
max-width: 100%;
min-width: 600px;
- margin: 5% auto;
}
a, u {
@@ -89,13 +90,6 @@ a:focus {
border: 2px solid var(--focus-color);
}
-.searchBanner {
- background-image: linear-gradient(rgba(0, 0, 0, 0.0), rgba(0, 0, 0, 0.5)), url("search_banner.png");
- background-position: center;
- background-repeat: no-repeat;
- background-size: 90%;
-}
-
.follow {
background-image: url("follow-background.jpg");
background-size: cover;
@@ -198,6 +192,10 @@ input[type=text] {
}
@media screen and (min-width: 400px) {
+ .timeline-banner {
+ width: 98vw;
+ height: var(--search-banner-height);
+ }
.hashtagswarm {
font-size: var(--hashtag-size1);
font-family: Arial, Helvetica, sans-serif;
@@ -245,6 +243,10 @@ input[type=text] {
}
@media screen and (max-width: 1000px) {
+ .timeline-banner {
+ width: 98vw;
+ height: var(--search-banner-height-mobile);
+ }
.hashtagswarm {
font-size: var(--hashtag-size2);
font-family: Arial, Helvetica, sans-serif;
diff --git a/epicyon.py b/epicyon.py
index 343b12447..237cdaa82 100644
--- a/epicyon.py
+++ b/epicyon.py
@@ -114,7 +114,7 @@ parser.add_argument('-p', '--port', dest='port', type=int,
help='Port number to run on')
parser.add_argument('--postsPerSource',
dest='maxNewswirePostsPerSource', type=int,
- default=5,
+ default=4,
help='Maximum newswire posts per feed or account')
parser.add_argument('--maxFeedSize',
dest='maxNewswireFeedSizeKb', type=int,
diff --git a/img/banner_indymediamodern.png b/img/banner_indymediamodern.png
index b7361d6c5..5d1e78a25 100644
Binary files a/img/banner_indymediamodern.png and b/img/banner_indymediamodern.png differ
diff --git a/img/icons/indymediamodern/bookmark.png b/img/icons/indymediamodern/bookmark.png
index 0f790bf07..d7d8e20f7 100644
Binary files a/img/icons/indymediamodern/bookmark.png and b/img/icons/indymediamodern/bookmark.png differ
diff --git a/img/icons/indymediamodern/bookmark_inactive.png b/img/icons/indymediamodern/bookmark_inactive.png
index 49aeff58a..df0ef95d1 100644
Binary files a/img/icons/indymediamodern/bookmark_inactive.png and b/img/icons/indymediamodern/bookmark_inactive.png differ
diff --git a/img/icons/indymediamodern/edit.png b/img/icons/indymediamodern/edit.png
index fc78a5e83..ebb5fc688 100644
Binary files a/img/icons/indymediamodern/edit.png and b/img/icons/indymediamodern/edit.png differ
diff --git a/img/icons/indymediamodern/edit_notify.png b/img/icons/indymediamodern/edit_notify.png
index a26dd4f04..c223a21db 100644
Binary files a/img/icons/indymediamodern/edit_notify.png and b/img/icons/indymediamodern/edit_notify.png differ
diff --git a/img/icons/indymediamodern/like.png b/img/icons/indymediamodern/like.png
index 1f7f20156..f3f399753 100644
Binary files a/img/icons/indymediamodern/like.png and b/img/icons/indymediamodern/like.png differ
diff --git a/img/icons/indymediamodern/like_inactive.png b/img/icons/indymediamodern/like_inactive.png
index 3a019c2bc..c78cd1005 100644
Binary files a/img/icons/indymediamodern/like_inactive.png and b/img/icons/indymediamodern/like_inactive.png differ
diff --git a/img/icons/indymediamodern/repeat.png b/img/icons/indymediamodern/repeat.png
index 485822a9c..3da4feb05 100644
Binary files a/img/icons/indymediamodern/repeat.png and b/img/icons/indymediamodern/repeat.png differ
diff --git a/img/icons/indymediamodern/repeat_inactive.png b/img/icons/indymediamodern/repeat_inactive.png
index 03e9ab250..10f34de63 100644
Binary files a/img/icons/indymediamodern/repeat_inactive.png and b/img/icons/indymediamodern/repeat_inactive.png differ
diff --git a/img/icons/indymediamodern/reply.png b/img/icons/indymediamodern/reply.png
index c4f0f7da6..af32aa0ba 100644
Binary files a/img/icons/indymediamodern/reply.png and b/img/icons/indymediamodern/reply.png differ
diff --git a/img/icons/indymediamodern/vote.png b/img/icons/indymediamodern/vote.png
index c810092b0..bd5256695 100644
Binary files a/img/icons/indymediamodern/vote.png and b/img/icons/indymediamodern/vote.png differ
diff --git a/img/search_banner_indymediamodern.png b/img/search_banner_indymediamodern.png
index 5a28e1f82..5d1e78a25 100644
Binary files a/img/search_banner_indymediamodern.png and b/img/search_banner_indymediamodern.png differ
diff --git a/theme.py b/theme.py
index a54bf0b13..dec93871f 100644
--- a/theme.py
+++ b/theme.py
@@ -526,6 +526,7 @@ def setThemeStarlight(baseDir: str):
setRssIconAtTop(baseDir, True)
setPublishButtonAtTop(baseDir, False)
themeParams = {
+ "search-banner-height-mobile": "15vh",
"column-left-header-background": "#69282c",
"column-left-image-width-mobile": "40vw",
"line-spacing-newswire": "120%",
@@ -1018,6 +1019,8 @@ def setThemeIndymediaModern(baseDir: str):
fontStrItalic = \
"url('./fonts/NimbusSanL-italic.otf') format('opentype')"
themeParams = {
+ "search-banner-height": "15vh",
+ "search-banner-height-mobile": "10vh",
"publish-button-vertical-offset": "10px",
"container-button-padding": "0px",
"container-button-margin": "0px",
diff --git a/translations/ar.json b/translations/ar.json
index 607b7ce40..d0c16cab4 100644
--- a/translations/ar.json
+++ b/translations/ar.json
@@ -324,5 +324,6 @@
"User": "المستعمل",
"Features" : "ميزات",
"Article": "مقال إخباري",
- "Create an article": "قم بإنشاء مقال"
+ "Create an article": "قم بإنشاء مقال",
+ "Settings": "إعدادات"
}
diff --git a/translations/ca.json b/translations/ca.json
index 0b0b702d1..7bb30de20 100644
--- a/translations/ca.json
+++ b/translations/ca.json
@@ -324,5 +324,6 @@
"User": "Usuari",
"Features" : "Article",
"Article": "Reportatge",
- "Create an article": "Creeu un article"
+ "Create an article": "Creeu un article",
+ "Settings": "Configuració"
}
diff --git a/translations/cy.json b/translations/cy.json
index e4f548916..d3c964222 100644
--- a/translations/cy.json
+++ b/translations/cy.json
@@ -324,5 +324,6 @@
"User": "Defnyddiwr",
"Features" : "Nodweddion",
"Article": "Erthygl",
- "Create an article": "Creu erthygl"
+ "Create an article": "Creu erthygl",
+ "Settings": "Gosodiadau"
}
diff --git a/translations/de.json b/translations/de.json
index c486d8444..e2e373907 100644
--- a/translations/de.json
+++ b/translations/de.json
@@ -324,5 +324,6 @@
"User": "Nutzerin",
"Features" : "Eigenschaften",
"Article": "Artikel",
- "Create an article": "Erstellen Sie einen Artikel"
+ "Create an article": "Erstellen Sie einen Artikel",
+ "Settings": "Einstellungen"
}
diff --git a/translations/en.json b/translations/en.json
index 2dcd54fda..c3d6d80ea 100644
--- a/translations/en.json
+++ b/translations/en.json
@@ -324,5 +324,6 @@
"User": "User",
"Features" : "Features",
"Article": "Article",
- "Create an article": "Create an article"
+ "Create an article": "Create an article",
+ "Settings": "Settings"
}
diff --git a/translations/es.json b/translations/es.json
index c3f84bda0..547e1fb11 100644
--- a/translations/es.json
+++ b/translations/es.json
@@ -324,5 +324,6 @@
"User": "Usuaria",
"Features" : "Caracteristicas",
"Article": "Artículo",
- "Create an article": "Crea un articulo"
+ "Create an article": "Crea un articulo",
+ "Settings": "Configuraciones"
}
diff --git a/translations/fr.json b/translations/fr.json
index bb897925f..4d03a9ef9 100644
--- a/translations/fr.json
+++ b/translations/fr.json
@@ -324,5 +324,6 @@
"User": "Utilisatrice",
"Features" : "Traits",
"Article": "Article",
- "Create an article": "Créer un article"
+ "Create an article": "Créer un article",
+ "Settings": "Réglages"
}
diff --git a/translations/ga.json b/translations/ga.json
index 5cd34c5f8..1f683ad04 100644
--- a/translations/ga.json
+++ b/translations/ga.json
@@ -324,5 +324,6 @@
"User": "Úsáideoir",
"Features" : "Gnéithe",
"Article": "Airteagal",
- "Create an article": "Cruthaigh alt"
+ "Create an article": "Cruthaigh alt",
+ "Settings": "Socruithe"
}
diff --git a/translations/hi.json b/translations/hi.json
index a8736813f..c181d5b72 100644
--- a/translations/hi.json
+++ b/translations/hi.json
@@ -324,5 +324,6 @@
"User": "उपयोगकर्ता",
"Features" : "विशेषताएं",
"Article": "लेख",
- "Create an article": "एक लेख बनाएँ"
+ "Create an article": "एक लेख बनाएँ",
+ "Settings": "समायोजन"
}
diff --git a/translations/it.json b/translations/it.json
index 834628eec..0a968746b 100644
--- a/translations/it.json
+++ b/translations/it.json
@@ -324,5 +324,6 @@
"User": "Utente",
"Features" : "Caratteristiche",
"Article": "Articolo",
- "Create an article": "Crea un articolo"
+ "Create an article": "Crea un articolo",
+ "Settings": "impostazioni"
}
diff --git a/translations/ja.json b/translations/ja.json
index 1c85a5de3..6db9ca798 100644
--- a/translations/ja.json
+++ b/translations/ja.json
@@ -324,5 +324,6 @@
"User": "ユーザー",
"Features" : "特徴",
"Article": "論文",
- "Create an article": "記事を作成する"
+ "Create an article": "記事を作成する",
+ "Settings": "設定"
}
diff --git a/translations/oc.json b/translations/oc.json
index 0586b23cd..f8de1d224 100644
--- a/translations/oc.json
+++ b/translations/oc.json
@@ -320,5 +320,6 @@
"User": "User",
"Features" : "Features",
"Article": "Article",
- "Create an article": "Create an article"
+ "Create an article": "Create an article",
+ "Settings": "Settings"
}
diff --git a/translations/pt.json b/translations/pt.json
index 58e95a5bf..87519778c 100644
--- a/translations/pt.json
+++ b/translations/pt.json
@@ -324,5 +324,6 @@
"User": "Do utilizador",
"Features" : "Recursos",
"Article": "Artigo",
- "Create an article": "Crie um artigo"
+ "Create an article": "Crie um artigo",
+ "Settings": "Definições"
}
diff --git a/translations/ru.json b/translations/ru.json
index 75d6c4bd8..faeceb3a9 100644
--- a/translations/ru.json
+++ b/translations/ru.json
@@ -324,5 +324,6 @@
"User": "Пользователь",
"Features" : "особенности",
"Article": "Статья",
- "Create an article": "Создать статью"
+ "Create an article": "Создать статью",
+ "Settings": "Настройки"
}
diff --git a/translations/zh.json b/translations/zh.json
index b848bd20a..8ed04b18f 100644
--- a/translations/zh.json
+++ b/translations/zh.json
@@ -324,5 +324,6 @@
"User": "用户",
"Features" : "特征",
"Article": "文章",
- "Create an article": "建立文章"
+ "Create an article": "建立文章",
+ "Settings": "设定值"
}
diff --git a/webinterface.py b/webinterface.py
index 7e20bf4ff..84b1550b6 100644
--- a/webinterface.py
+++ b/webinterface.py
@@ -1226,12 +1226,12 @@ def scheduledPostsExist(baseDir: str, nickname: str, domain: str) -> bool:
def htmlEditLinks(cssCache: {}, translate: {}, baseDir: str, path: str,
- domain: str, port: int, httpPrefix: str) -> str:
+ domain: str, port: int, httpPrefix: str,
+ defaultTimeline: str) -> str:
"""Shows the edit links screen
"""
if '/users/' not in path:
return ''
- pathOriginal = path
path = path.replace('/inbox', '').replace('/outbox', '')
path = path.replace('/shares', '')
@@ -1253,7 +1253,19 @@ def htmlEditLinks(cssCache: {}, translate: {}, baseDir: str, path: str,
editCSS = \
editCSS.replace('https://', httpPrefix + '://')
+ # filename of the banner shown at the top
+ bannerFile, bannerFilename = getBannerFile(baseDir, nickname, domain)
+
editLinksForm = htmlHeader(cssFilename, editCSS)
+
+ # top banner
+ editLinksForm += \
+ '
\n'
+ editLinksForm += '
\n'
+
editLinksForm += \
'
'
@@ -1295,12 +1309,12 @@ def htmlEditLinks(cssCache: {}, translate: {}, baseDir: str, path: str,
def htmlEditNewswire(cssCache: {}, translate: {}, baseDir: str, path: str,
- domain: str, port: int, httpPrefix: str) -> str:
+ domain: str, port: int, httpPrefix: str,
+ defaultTimeline: str) -> str:
"""Shows the edit newswire screen
"""
if '/users/' not in path:
return ''
- pathOriginal = path
path = path.replace('/inbox', '').replace('/outbox', '')
path = path.replace('/shares', '')
@@ -1322,7 +1336,19 @@ def htmlEditNewswire(cssCache: {}, translate: {}, baseDir: str, path: str,
editCSS = \
editCSS.replace('https://', httpPrefix + '://')
+ # filename of the banner shown at the top
+ bannerFile, bannerFilename = getBannerFile(baseDir, nickname, domain)
+
editNewswireForm = htmlHeader(cssFilename, editCSS)
+
+ # top banner
+ editNewswireForm += \
+ '