From d074932259ba45e0486ba0423aa5cfe361837224 Mon Sep 17 00:00:00 2001 From: ville rantanen Date: Fri, 29 Jun 2018 10:10:33 +0300 Subject: [PATCH] Some styling for menus --- code/app.py | 2 +- code/static/css/styles.css | 31 ++++++++++++++++++++++++++++--- code/templates/list.html | 20 ++++++++++++-------- code/utils/utils.py | 4 ++-- 4 files changed, 43 insertions(+), 14 deletions(-) diff --git a/code/app.py b/code/app.py index 8b384f3..73443d1 100644 --- a/code/app.py +++ b/code/app.py @@ -14,7 +14,7 @@ from utils.utils import * from utils.crypt import * -__FLEES_VERSION__ = "20180416.0" +__FLEES_VERSION__ = "20180629.0" app = Flask(__name__) app.config.from_object(__name__) # Read config from json ! diff --git a/code/static/css/styles.css b/code/static/css/styles.css index 37b6ca9..79c2f6c 100644 --- a/code/static/css/styles.css +++ b/code/static/css/styles.css @@ -114,12 +114,37 @@ tr:nth-child(odd) { cursor: pointer; } -#list_info_toggle { +#list_info_toggle_container { margin-top: 24px; - cursor: pointer; + position: relative; text-align: right; - text-decoration: underline; } +#list_info_toggle { + cursor: pointer; + text-decoration: underline; + padding-right: 1.25em; + position: relative; +} + +#list_info_toggle:after { + content: ""; + position: absolute; + right: 0; + top: 0.21em; + bottom: 0.21em; + width: 1em; + background: linear-gradient( + to bottom, + transparent, transparent 5%, + #148F77 5%, #148F77 25%, + transparent 25%, transparent 40%, + #148F77 40%, #148F77 60%, + transparent 60%, transparent 75%, + #148F77 75%, #148F77 95%, + transparent 95%, transparent 100% + ); +} + #list_info { display: none; } diff --git a/code/templates/list.html b/code/templates/list.html index 038ba44..3016bec 100644 --- a/code/templates/list.html +++ b/code/templates/list.html @@ -18,13 +18,14 @@ {% endif %} -
Share tools
+
Share tools

@@ -33,24 +34,27 @@
    {% if public %} -
  • is public +
  • Public {% else %} -
  • is unlisted +
  • Unlisted {% endif %} {% if expire %} -
  • expires {{ expire }} +
  • Expires {{ expire }} {% else %} -
  • never expires +
  • Never expires {% endif %} {% if upload %} {% if overwrite %} -
  • uploads overwrite +
  • Uploads overwrite {% else %} -
  • uploads versioned +
  • Uploads versioned {% endif %} + {% else %} +
  • No uploading {% endif %}
  • Download as zip -
  • Command line info +
  • Command line info +
  • Return to index
  • Logout
diff --git a/code/utils/utils.py b/code/utils/utils.py index f8c78b8..877d297 100644 --- a/code/utils/utils.py +++ b/code/utils/utils.py @@ -82,13 +82,13 @@ def get_script_url(public_url, share, end_point, token = "[TOKEN]"): ) if end_point in ( "download", "direct"): cmd = 'curl -s %s | bash /dev/stdin [-f]'%( url, ) - doc = 'Download all files in the share.' + doc = 'Download all files in the share. -f to force overwrite existing files.' if end_point == "client": cmd = 'python <( curl -s %s )'%( url, ) doc = 'Console client to download and upload files.' if end_point == "upload_split": cmd = 'curl -s %s | python - [-s split_size_in_Mb] file_to_upload.ext [second.file.ext]'%( url, ) - doc = 'Upload files to the share.' + doc = 'Upload files to the share. -s to set splitting size.' return {'cmd': cmd, 'doc': doc}