-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Requires jQuery 3, Bootstrap 5, and Font Awesome 5 for best results.
- Loading branch information
1 parent
693b8e0
commit 24f2d57
Showing
9 changed files
with
122 additions
and
2,191 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,133 @@ | ||
#passgrinder form { | ||
width: 100%; | ||
max-width: 400px; | ||
margin: 0 auto; | ||
text-align: center; | ||
} | ||
|
||
#passgrinder h1 { | ||
text-align: center; | ||
max-width: 428px; | ||
} | ||
|
||
#passgrinder small { | ||
max-width: 94%; | ||
margin: 4px auto 0; | ||
line-height: 1em; | ||
font-style: italic; | ||
font-size: 0.8rem; | ||
font-weight: 300; | ||
max-width: 412px; | ||
margin: 0 auto; | ||
} | ||
|
||
#passgrinder input[type="submit"], #passgrinder input[type="reset"] { | ||
width: 100%; | ||
max-width: 200px; | ||
margin: 0 auto; | ||
#passgrinder .toggle-password, | ||
#passgrinder .toggle-copy { | ||
cursor: pointer; | ||
max-width: 44px; | ||
} | ||
|
||
#passgrinder #pg-message #success { | ||
font-style: italic; | ||
width: 100%; | ||
text-align: center; | ||
color: green; | ||
#passgrinder #pg-result { | ||
display: none; | ||
} | ||
|
||
#passgrinder #pg-message #fail { | ||
#passgrinder #pg-message #success, | ||
#passgrinder #pg-message #fail, | ||
#passgrinder #pg-message #reset { | ||
color: #fff; | ||
font-style: italic; | ||
width: 100%; | ||
text-align: center; | ||
color: red; | ||
} | ||
|
||
#passgrinder #pg-message #reset { | ||
font-style: italic; | ||
#passgrinder input[type=text], | ||
#passgrinder input[type=password] { | ||
font-family: 'Source Code Pro', monospace; | ||
} | ||
|
||
#passgrinder input[type="submit"], | ||
#passgrinder input[type="reset"] { | ||
width: 100%; | ||
text-align: center; | ||
color: grey; | ||
max-width: 200px; | ||
margin: 0 auto; | ||
color: #000 !important; | ||
} | ||
|
||
#passgrinder .toggle-password, #passgrinder .toggle-copy { | ||
#passgrinder input[type="submit"] { | ||
background: #6eb981 !important; | ||
border-color: #6eb981 !important; | ||
} | ||
|
||
#passgrinder input[type="reset"] { | ||
background: #ccc !important; | ||
border-color: #ccc !important; | ||
} | ||
|
||
#passgrinder .text-muted { | ||
color: #ddd !important; | ||
} | ||
|
||
#passgrinder .form-text { | ||
display: block; | ||
} | ||
|
||
#passgrinder .form-check { | ||
padding-left: 0; | ||
margin-bottom: 0; | ||
min-height: auto; | ||
} | ||
|
||
#passgrinder .form-check-inline { | ||
margin-right: 0.8rem; | ||
} | ||
|
||
#passgrinder .form-check-inline:last-of-type { | ||
margin-right: 0; | ||
} | ||
|
||
#passgrinder [type="radio"]:checked, | ||
#passgrinder [type="radio"]:not(:checked) { | ||
position: absolute; | ||
left: -9999px; | ||
} | ||
|
||
#passgrinder [type="radio"]:checked + label, | ||
#passgrinder [type="radio"]:not(:checked) + label { | ||
position: relative; | ||
padding-left: 28px; | ||
cursor: pointer; | ||
line-height: 20px; | ||
display: inline-block; | ||
} | ||
|
||
#passgrinder #pg-result { | ||
display: none; | ||
#passgrinder [type="radio"]:checked + label:before, | ||
#passgrinder [type="radio"]:not(:checked) + label:before { | ||
content: ''; | ||
position: absolute; | ||
left: 0; | ||
top: 0px; | ||
width: 18px; | ||
height: 18px; | ||
border: 1px solid #fff; | ||
border-radius: 100%; | ||
background: #fff; | ||
} | ||
|
||
#passgrinder [type="radio"]:checked + label:after, | ||
#passgrinder [type="radio"]:not(:checked) + label:after { | ||
content: ''; | ||
width: 18px; | ||
height: 18px; | ||
background: #6eb981; | ||
position: absolute; | ||
top: 0px; | ||
left: 0px; | ||
border-radius: 100%; | ||
-webkit-transition: all 0.2s ease; | ||
transition: all 0.2s ease; | ||
} | ||
|
||
#passgrinder [type="radio"]:not(:checked) + label:after { | ||
opacity: 0; | ||
-webkit-transform: scale(0); | ||
transform: scale(0); | ||
} | ||
|
||
@media all and (max-width: 767px) { | ||
#passgrinder #pg-message #success { | ||
display: none; | ||
} | ||
#passgrinder [type="radio"]:checked + label:after { | ||
opacity: 1; | ||
-webkit-transform: scale(1); | ||
transform: scale(1); | ||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters