From 57d665795635c8e757ce055f0ff8137e6b9f073c Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 2 Nov 2020 18:41:09 +0000 Subject: [PATCH] Button which only appears on desktop --- epicyon-profile.css | 23 +++++++++++++++++++++++ webinterface.py | 2 +- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/epicyon-profile.css b/epicyon-profile.css index fcf6e3745..629ff504a 100644 --- a/epicyon-profile.css +++ b/epicyon-profile.css @@ -1337,6 +1337,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); @@ -1986,6 +2004,11 @@ 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; + } .publishbtn { border-radius: var(--button-corner-radius); background-color: var(--publish-button-background); diff --git a/webinterface.py b/webinterface.py index d76c0c134..82aef88bb 100644 --- a/webinterface.py +++ b/webinterface.py @@ -6448,7 +6448,7 @@ def headerButtonsTimeline(defaultTimeline: str, '' + translate['User'] + '\n' tlStr += \ ' ' + \ - '\n' # the newswire button to show right column links