From d316e6ed30e1bf5fae9afdadb51020a476c62238 Mon Sep 17 00:00:00 2001 From: Calin Crisan Date: Sun, 22 Feb 2015 20:44:23 +0200 Subject: [PATCH] added tooltips for sections --- static/css/main.css | 2 +- static/css/ui.css | 15 ++++++++++++--- templates/main.html | 41 ++++++++++++++++++++++++++--------------- 3 files changed, 39 insertions(+), 19 deletions(-) diff --git a/static/css/main.css b/static/css/main.css index 946e5ec..9b3d87d 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -280,7 +280,7 @@ div.settings-section-title { position: relative; text-align: right; background-color: rgba(100, 100, 100, 0.3); - padding: 5px; + padding: 5px 0.5em 5px 5px; } table.settings { diff --git a/static/css/ui.css b/static/css/ui.css index 8663315..bb155a8 100644 --- a/static/css/ui.css +++ b/static/css/ui.css @@ -442,12 +442,21 @@ span.help-mark { background-color: #414141; color: #3498db; font-size: 0.75em; - width: 1.1em; - height: 1.1em; - border-radius: 0.5em; + font-family: monospace; + width: 1.2em; + height: 1.2em; + border-radius: 100em; cursor: pointer; + vertical-align: middle; + position: relative; + top: -0.1em; +} + +div.settings-section-title > span.help-mark { + background-color: #515151; } +div.settings-section-title:HOVER > span.help-mark, tr:HOVER span.help-mark { visibility: visible; } diff --git a/templates/main.html b/templates/main.html index 0913623..314347d 100644 --- a/templates/main.html +++ b/templates/main.html @@ -90,7 +90,8 @@
-
General Settings
+
General Settings + ?
@@ -148,8 +149,9 @@ {% for section in main_sections.values() %} {% if section.get('label') and section.get('configs') %} -
{% if section.get('onoff') %} - {% endif %}{{section['label']}}
+
{% if section.get('onoff') %} + {% endif %}{{section['label']}} + {% if section.get('description') %}?{% endif %}
Show Advanced Settings
{% for config in section['configs'] %} {{config_item(config)}} @@ -158,7 +160,8 @@ {% endif %} {% endfor %} -
Video Device
+
Video Device + ?
@@ -235,7 +238,8 @@ {% endfor %}
Camera Name
-
File Storage
+
File Storage + ?
@@ -285,7 +289,8 @@ {% endfor %}
Storage Device
-
Text Overlay
+
Text Overlay + ?
@@ -326,7 +331,8 @@ {% endfor %}
Left Text
-
Video Streaming
+
Video Streaming + ?
@@ -378,7 +384,8 @@ {% endfor %}
Streaming Frame Rate
-
Still Images
+
Still Images + ?
@@ -430,7 +437,8 @@ {% endfor %}
Image File Name
-
Motion Detection
+
Motion Detection + ?
@@ -480,7 +488,8 @@ {% endfor %}
Show Frame Changes
-
Motion Movies
+
Motion Movies + ?
@@ -515,8 +524,8 @@ {{config_item(config)}} {% endfor %}
Movie File Name
- -
Motion Notifications
+
Motion Notifications + ?
@@ -599,7 +608,8 @@ {% endfor %}
Email Notifications
-
Working Schedule
+
Working Schedule + ?
@@ -681,8 +691,9 @@ {% for section in camera_sections.values() %} {% if section.get('label') and section.get('configs') %} -
{% if section.get('onoff') %} - {% endif %}{{section['label']}}
+
{% if section.get('onoff') %} + {% endif %}{{section['label']}} + {% if section.get('description') %}?{% endif %}
Monday
{% for config in section['configs'] %} {{config_item(config)}} -- 2.39.5