diff --git a/calc.html b/calc.html index 8231b1237480a641be4445e0fa65e0efe83591e0..c212bc300884a1a6a4c0d043b2f65ccb473c7c8d 100644 --- a/calc.html +++ b/calc.html @@ -102,19 +102,41 @@ #help-overlay-content { width: 100%; padding: 20px; + font-family: sans; } #help-overlay-content h4 { margin: 0; } - #close-help-overlay { - position: relative; - left: 350px; - } .button-group { width: 100%; display: flex; justify-content: center; } + + /* title with buttons on the right. see ./test-rhs-link-on-title-row.html */ + .title { + display: flex; + /* border: 1px black solid; */ + } + .title h3 { + margin: 8px 16px; + font-size: 1em; + } + .title-button-group { + flex-grow: 1; + display: flex; + justify-content: flex-end; + margin: 8px 1em; + } + .title-button-group a, .title-button-group button { + padding: 0 5px; + } + #help-title { + text-align: center; + } + #copyright { + text-align: center; + } @media only screen and (max-device-width: 480px) { #container { width: 300px; @@ -156,14 +178,11 @@ height: 50px; } #help-overlay-container { - width: 300px; + width: 100%; + margin: 0px auto; } #help-overlay-content { - padding: 10px; - } - #close-help-overlay { - position: relative; - left: 100px; + padding: 5px; } } @@ -172,14 +191,23 @@
Stack Clear Stack Expand Stack
+| in firefox. +* done :entry: +** 2017-01-28 UI tweaks +- DONE about page, HELP should be centered. change "Close" to "Return to calc". + put back button on the rhs. +- DONE about page, add font-family config. +- DONE div title should put buttons across the row. // now links/buttons are + put on the rhs. + + see ./test-rhs-link-on-title-row.html +- ** 2017-01-28 UI tweaks - DONE "refresh page" is for debugging purpose, hide it somewhere. -- div title should put buttons across the row. - I think there is a flex property for this. -- add about dialog. could put "refresh page" in this page. hidden by default. +- DONE add about dialog. could put "refresh page" in this page. hidden by default. - test it in mobile mode. - make scroll work on desktop and mobile when window height is small. @@ -122,21 +150,6 @@ the parent DOM. - move "Help" to center. move "close" button to right. -** 2017-01-27 deploy on https://rpn.emacsos.com/ -- I considered https://www.emacsos.com/rpn-calculator.html, but I don't want - to mess up with sw.js scope issue. - - maybe use calc-sw.js? I still don't like that. - -- just use a standalone domain. - -** 2017-01-27 add some visual feedback when clicking a button. like in material design. -** 2017-01-27 UI problem: when input a very large number, #number-display and keyboard will grow. -should set a max-width on #number-display. - -overflow: auto -doesn't work with | in firefox.
-* done :entry:
** 2017-01-27 add an about dialog.
add "about" button beside "Reset All".
diff --git a/test-rhs-link-on-title-row.html b/test-rhs-link-on-title-row.html
new file mode 100644
index 0000000000000000000000000000000000000000..a58973317a762ec44c63bab9ee3c6da9d85b2846
--- /dev/null
+++ b/test-rhs-link-on-title-row.html
@@ -0,0 +1,53 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ Some Title+ +Here is content + |