From f58dc94a9bb800fcd640650e43eb496c150426e9 Mon Sep 17 00:00:00 2001 From: Guillaume Vincent Date: Fri, 25 Nov 2016 15:03:48 +0100 Subject: [PATCH] make version more visible and accessible --- index.html | 14 +++- src/LessPass.vue | 21 ++++- src/api/tooltip.js | 2 +- src/components/Menu.vue | 9 ++- src/store.js | 9 +-- src/views/Login.vue | 13 ++- src/views/PasswordGenerator.vue | 172 +++++++++++++++++++--------------------- 7 files changed, 131 insertions(+), 109 deletions(-) diff --git a/index.html b/index.html index c7fc5df..12b7a8e 100644 --- a/index.html +++ b/index.html @@ -6,9 +6,21 @@ + -
+
+
+
+
diff --git a/src/LessPass.vue b/src/LessPass.vue index 9b3a7f9..99792ac 100644 --- a/src/LessPass.vue +++ b/src/LessPass.vue @@ -3,6 +3,20 @@ color: white; } + #lesspass.card { + border: none; + } + + @media (min-width: 544px) { + #lesspass.v1 { + border: 1px solid #f0ad4e; + } + + #lesspass.v2 { + border: 1px solid #0275d8; + } + } + #lesspass .white-link:hover, #lesspass .white-link:focus, #lesspass .white-link:active { text-decoration: none; color: white; @@ -13,7 +27,8 @@ } + \ No newline at end of file diff --git a/src/api/tooltip.js b/src/api/tooltip.js index 041def9..4ef92ec 100644 --- a/src/api/tooltip.js +++ b/src/api/tooltip.js @@ -1,6 +1,6 @@ export function showTooltip(elem, msg) { var classNames = elem.className; - elem.setAttribute('class', classNames + ' hint--top'); + elem.setAttribute('class', classNames + ' hint--right'); elem.setAttribute('aria-label', msg); setTimeout(function () { elem.setAttribute('class', classNames); diff --git a/src/components/Menu.vue b/src/components/Menu.vue index c2adf7d..d937fe6 100644 --- a/src/components/Menu.vue +++ b/src/components/Menu.vue @@ -24,10 +24,11 @@ diff --git a/src/views/PasswordGenerator.vue b/src/views/PasswordGenerator.vue index 2eb00b6..26556b3 100644 --- a/src/views/PasswordGenerator.vue +++ b/src/views/PasswordGenerator.vue @@ -82,72 +82,76 @@ autocomplete="new-password" autocorrect="off" autocapitalize="off" - v-model="masterPassword"> - + v-model="masterPassword" + v-on:keyup.enter.prevent="generatePassword"> + +
-
- - - +
+
+ + + + +
-
-
- - +
+
+
+
-
-
- -
-
- -
-
- -
-
- -
+
+ Options +
+
+ + + +
-
+
@@ -159,7 +163,7 @@
-
+
@@ -172,38 +176,19 @@
-
-
- - -
-
-
- -
-
-