From 3777e4d9bdbddbaf320126e338e66c3a00a13f40 Mon Sep 17 00:00:00 2001 From: djosh34 <35622390+djosh34@users.noreply.github.com> Date: Mon, 22 Jun 2020 13:00:43 +0200 Subject: [PATCH] New version for html code (#38) * * Improved readability javascript * Added new styling based on bootstrap css (Only some css to make it readable for everyone) * Better responsive support * Some styling bug fixes * removed unnecessary comment Co-authored-by: Joshua Azimullah --- html/essential_bootstrap.css | 98 +++++++++++ html/index.html | 328 +++++++++++++++++++---------------- 2 files changed, 272 insertions(+), 154 deletions(-) create mode 100644 html/essential_bootstrap.css diff --git a/html/essential_bootstrap.css b/html/essential_bootstrap.css new file mode 100644 index 0000000..9c94204 --- /dev/null +++ b/html/essential_bootstrap.css @@ -0,0 +1,98 @@ +/* took only the essential parts of the bootstrap css library to ensure that it is possible for everyone to read the code */ + +body { + font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; + font-size: 14px; + line-height: 1.42857143; + color: #333333; +} + +p { + margin: 0 0 10px; +} + +a { + color: #337ab7; + text-decoration: none; +} + +.form-control { + display: block; + width: 100%; + padding: 6px 12px; + font-size: 14px; + line-height: 1.42857143; + color: #555555; + background-color: #fff; + background-image: none; + border: 1px solid #ccc; + border-radius: 4px; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); + -webkit-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; + -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; + -webkit-transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s; + transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s; + transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; + transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s, -webkit-box-shadow ease-in-out .15s; +} + + +.btn { + display: inline-block; + margin-bottom: 0; + font-weight: normal; + text-align: center; + white-space: nowrap; + vertical-align: middle; + -ms-touch-action: manipulation; + touch-action: manipulation; + cursor: pointer; + background-image: none; + border: 1px solid transparent; + padding: 6px 12px; + font-size: 14px; + line-height: 1.42857143; + border-radius: 4px; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; +} + +.btn-success { + color: #fff; + background-color: #5cb85c; + border-color: #4cae4c; +} + +button, html input[type="button"], input[type="reset"], input[type="submit"] { + -webkit-appearance: button; + cursor: pointer; +} + +button, select { + text-transform: none; +} + +button { + overflow: visible; +} + +button, input, optgroup, select, textarea { + color: inherit; + font: inherit; + margin: 0; +} + +*:before, *:after { + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; +} + +.form-inline .form-control { + display: inline-block; + width: auto; + vertical-align: middle; +} diff --git a/html/index.html b/html/index.html index 4600366..96f7003 100644 --- a/html/index.html +++ b/html/index.html @@ -1,166 +1,186 @@ - - - - Pwned Password API lookup. - - - - -
-? - - -
-

-
+ + + Pwned Password API lookup. + + -
-The inspiration! - - + Source code on github + + +