# HG changeset patch # User Guido Berhoerster # Date 1412596370 -7200 # Node ID 8c2f3e72d5143391d4e8139c55be8a789ae06e90 # Parent b2c9c4fb8d4c1da0a86d61883aebdc2a3394972c Create new view for notifications Create new view for notifications which handles the keyboard shortcuts overlay message and the unsaved changes notification. This ensures that the unsaved changes notification is always visible, even when the save form expander is closed. diff -r b2c9c4fb8d4c -r 8c2f3e72d514 booket.css --- a/booket.css Mon Oct 06 12:19:52 2014 +0200 +++ b/booket.css Mon Oct 06 13:52:50 2014 +0200 @@ -58,6 +58,10 @@ border: none; } +strong { + font-weight: bold; +} + h1 { font-size: 2em; margin: .67em 0 @@ -154,6 +158,15 @@ z-index: 10; } +.unsaved-changes-message { + color: #a40000; + background-color: rgba(239, 41, 41, .25); + border: 1px solid #a40000; + border-radius: .5em; + padding: .5em; + font-size: .75em; +} + #actions { margin: 1em 0 0 0; } @@ -186,16 +199,6 @@ font-size: .75em; } -#save-form .unsaved-changes-message { - margin: 0; - font-size: .75em; -} - -.unsaved-changes-message strong { - font-weight: bold; - color: #a40000; -} - form.bookmark-editor-form img.bookmark-favicon { display: block; padding: 1px 0; diff -r b2c9c4fb8d4c -r 8c2f3e72d514 booket.html --- a/booket.html Mon Oct 06 12:19:52 2014 +0200 +++ b/booket.html Mon Oct 06 13:52:50 2014 +0200 @@ -38,27 +38,32 @@ -
-

Keyboard Shortcuts

-
-
Prefix+i
-
Select bookmark file to load
-
Prefix+l
-
Load selected bookmark file
-
Prefix+s
-
Save bookmark file
-
Prefix+a
-
Focus bookmark editor
-
Prefix+e
-
Select bookmark file to import
-
Prefix+m
-
Import selected file
-
Prefix+x
-
Export selected file
-
Prefix+f
-
Focus search field
-
-
+
+
+

Keyboard Shortcuts

+
+
Prefix+i
+
Select bookmark file to load
+
Prefix+l
+
Load selected bookmark file
+
Prefix+s
+
Save bookmark file
+
Prefix+a
+
Focus bookmark editor
+
Prefix+e
+
Select bookmark file to import
+
Prefix+m
+
Import selected file
+
Prefix+x
+
Export selected file
+
Prefix+f
+
Focus search field
+
+
+ + +