Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Nicer view for copying the salt. Currently the Copy button doesn't ac…

…tually do anything.
  • Loading branch information...
commit f3821b806a3061577b8d7cd0795f6687e9c7f512 1 parent a517b0c
@mattslack mattslack authored
Showing with 7 additions and 4 deletions.
  1. +3 −3 public/stylesheets/mkpassword.css
  2. +4 −1 views/salt.erb
View
6 public/stylesheets/mkpassword.css
@@ -3,7 +3,7 @@
margin: 0;
}
-body, form {
+body, form, #salt {
display: -webkit-box;
display: -moz-box;
display: box;
@@ -50,7 +50,7 @@ input {
box-shadow: 0 0 4px rgba(64,128,255,.9);
}
- input[type="submit"] {
+ input[type="submit"], input[type=button] {
color: #fff;
background: rgb(206,220,231); /* Old browsers */
background: -moz-linear-gradient(top, rgba(206,220,231,1) 0%, rgba(89,106,114,1) 100%); /* FF3.6+ */
@@ -62,7 +62,7 @@ input {
text-shadow: 0 1px 1px rgba(0,0,0,.5);
}
- input[type="submit"]:active {
+ input[type="submit"]:active, input[type=button]:active {
background: -moz-linear-gradient(bottom, rgba(206,220,231,1) 0%, rgba(89,106,114,1) 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left bottom, left top, color-stop(0%,rgba(206,220,231,1)), color-stop(100%,rgba(89,106,114,1))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(bottom, rgba(206,220,231,1) 0%,rgba(89,106,114,1) 100%); /* Chrome10+,Safari5.1+ */
View
5 views/salt.erb
@@ -9,6 +9,9 @@
<a href="https://github.com/gaffneyc/mkpasswd-heroku">
<img style="position: absolute; top: 0; right: 0; border: 0;" src="https://a248.e.akamai.net/assets.github.com/img/4c7dc970b89fd04b81c8e221ba88ff99a06c6b61/687474703a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f77686974655f6666666666662e706e67" alt="Fork me on GitHub">
</a>
- <div id="salt"><%= salt %></div>
+ <div id="salt">
+ <input type="text" value="<%= salt %>" size="20">
+ <input type="button" value="Copy">
+ </div>
</body>
</html>
Please sign in to comment.
Something went wrong with that request. Please try again.