From 3a7f0a0f99651180badb448ae3f0be1e60b714b4 Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Tue, 23 Aug 2022 11:32:57 +0200 Subject: add styling to buttons and file input --- .../proxy/web_ui/templates/base.html.jinja | 18 ++++++++++++++++- .../templates/packages__load_from_disk.html.jinja | 23 ++++++++++++++++------ .../proxy/web_ui/templates/repos.html.jinja | 2 +- .../proxy/web_ui/templates/repos__add.html.jinja | 4 +++- 4 files changed, 38 insertions(+), 9 deletions(-) diff --git a/src/hydrilla/proxy/web_ui/templates/base.html.jinja b/src/hydrilla/proxy/web_ui/templates/base.html.jinja index eb9680f..b41a106 100644 --- a/src/hydrilla/proxy/web_ui/templates/base.html.jinja +++ b/src/hydrilla/proxy/web_ui/templates/base.html.jinja @@ -56,6 +56,22 @@ in a proprietary work, I am not going to enforce this in court. background-color: #fcc; } + .green-button { + background-color: #4caf50; + border: none; + border-radius: 2px; + color: white; + text-align: center; + text-decoration: none; + display: inline-block; + padding: 5px 10px; + -moz-user-select: none; + user-select: none; + cursor: pointer; + font: 400 0.9em sans-serif; + margin: 2px; + } + .hide { display: none !important; } @@ -70,7 +86,7 @@ in a proprietary work, I am not going to enforce this in court. ul#nav > li { list-style-type: none; - background-color: #70AF70; + background-color: #70af70; font-size: 115%; padding: 10px; display: inline-block; diff --git a/src/hydrilla/proxy/web_ui/templates/packages__load_from_disk.html.jinja b/src/hydrilla/proxy/web_ui/templates/packages__load_from_disk.html.jinja index 0eb5149..1f3c246 100644 --- a/src/hydrilla/proxy/web_ui/templates/packages__load_from_disk.html.jinja +++ b/src/hydrilla/proxy/web_ui/templates/packages__load_from_disk.html.jinja @@ -21,19 +21,30 @@ in a proprietary work, I am not going to enforce this in court. #} {%- extends "base.html.jinja" %} {% block title %} {{ _('web_ui.packages.load_from_disk.title') }} {% endblock %} +{% block style %} + {{ super() }} + + input[type="file"]::-webkit-file-selector-button, + input[type="file"]::file-selector-button { + display: none; + } +{% endblock %} {% block main %} +

{{ _('web_ui.packages.load_from_disk.heading') }}

- +
- +
- +
{%- endblock %} diff --git a/src/hydrilla/proxy/web_ui/templates/repos.html.jinja b/src/hydrilla/proxy/web_ui/templates/repos.html.jinja index 05c948e..3e61a83 100644 --- a/src/hydrilla/proxy/web_ui/templates/repos.html.jinja +++ b/src/hydrilla/proxy/web_ui/templates/repos.html.jinja @@ -29,7 +29,7 @@ in a proprietary work, I am not going to enforce this in court. {% block main %}

{{ _('web_ui.repos.heading') }}

- + {{ _('web_ui.repos.add_repo_button') }}
diff --git a/src/hydrilla/proxy/web_ui/templates/repos__add.html.jinja b/src/hydrilla/proxy/web_ui/templates/repos__add.html.jinja index cbe7105..3fdcbd3 100644 --- a/src/hydrilla/proxy/web_ui/templates/repos__add.html.jinja +++ b/src/hydrilla/proxy/web_ui/templates/repos__add.html.jinja @@ -56,7 +56,9 @@ in a proprietary work, I am not going to enforce this in court.
- +
{% endblock %} -- cgit v1.2.3