Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Commit

Permalink
Auto-expand page post input when focused, using css.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelchisari authored and The Appleseed Project committed Oct 19, 2010
1 parent 7baaab3 commit 7da986b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/page/views/page.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<form method="post" class="post">
<input type="hidden" name="Task" value="Share">
<input type="hidden" name="Context" value="">
<textarea placeholder="What Is On Your Mind" class="comments" name="Comment"></textarea>
<textarea placeholder="What Is On Your Mind" class="comment" name="Comment"></textarea>
<button class="submit">Submit Post</button>
<section class="privacy">
</section>
Expand Down
3 changes: 2 additions & 1 deletion themes/default/style/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,8 @@

/* profile-page */
#profile-page .post { float:left; width:98%; padding:1%; margin-bottom:20px; border:1px solid #c0d895; }
#profile-page .post .comments { width:590px; height:20px; padding:5px; }
#profile-page .post .comment { width:590px; height:14px; padding:5px; }
#profile-page .post .comment:focus { width:590px; height:28px; padding:5px; }
#profile-page .post .submit { float:right; }

#profile-page .list .item { float:left; clear:both; font-size:110%; list-style-type:none; border-bottom:1px solid #c0d895; padding-bottom:5px; margin-bottom:5px; }
Expand Down

0 comments on commit 7da986b

Please sign in to comment.