Added multiline "placeholder" to 3rd step of setup

Closes #5459
- added a PNG background with 2 emails addresses as a "placeholder"
- added a `required` attribute for textarea in 3rd step of the setup
- taking an advantage of `:valid` pseudo-class to hide the background
  picture with email addresses
This commit is contained in:
Łukasz Kliś 2015-07-01 10:07:29 +02:00
parent 5dd186dd70
commit e5978eee52
3 changed files with 11 additions and 1 deletions

View File

@ -384,6 +384,16 @@
line-height: 1.4em;
}
.gh-flow-invite textarea {
background: url(img/invite-placeholder.png) 8px 10px no-repeat;
background-size: 202px 48px;
box-shadow: none; /* Remove some default styling for Firefox (required attribute) */
}
.gh-flow-invite textarea:valid {
background: none;
}
@media (max-width: 460px) {
.gh-flow-content .gh-flow-invite label i {
display: none;

View File

@ -8,7 +8,7 @@
<form class="gh-flow-invite">
<label>Enter one email address per line, well handle the rest! <i class="icon-mail"></i></label>
{{textarea class="gh-input" name="users" placeholder="john@example.com" value=users}}
{{textarea class="gh-input" name="users" value=users required="required"}}
</form>
<button {{action 'invite'}} class="btn btn-default btn-lg btn-block {{buttonClass}}">

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB