Changeset 1327750
- Timestamp:
- 01/13/2016 07:40:16 PM (10 years ago)
- Location:
- embedded-login-form/trunk
- Files:
-
- 5 edited
-
css/embedded-login-form-style.css (modified) (5 diffs)
-
embedded-login-form.php (modified) (2 diffs)
-
includes/template-login-form.php (modified) (3 diffs)
-
js/embedded-login-form.js (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
embedded-login-form/trunk/css/embedded-login-form-style.css
r1320721 r1327750 303 303 #antonelf-register-div{ 304 304 overflow:hidden; 305 border: solid #0A0A64;305 //border: solid #0A0A64; 306 306 border-radius: 4px; 307 307 border-width: 0 1px 1px 0; 308 308 margin:auto; 309 309 background: rgb(252,252,252); 310 border: 1px solid white; 311 box-shadow: 3px 3px 5px rgb(251,131,37); 310 312 } 311 313 … … 320 322 #antonelf-login-register-fork{ 321 323 display: table; 322 width: 2 5em;324 width: 28em; 323 325 padding: 0.5em 1.5em; 324 font-size: 1 8px;325 font-size: 1 .125em;326 font-size: 16px; 327 font-size: 1em; 326 328 } 327 329 … … 336 338 text-align:center; 337 339 opacity:0.7; 340 font-size: 18px; 341 font-size: 1.125em; 338 342 } 339 343 … … 375 379 } 376 380 381 @keyframes anim2{ 382 from {opacity: 0.3; max-height: 64px; } 383 to {opacity: 1; max-height: 200px; } 384 } 385 386 .appear{ 387 -webkit-animation: anim2 1s forwards; 388 animation: anim2 1s forwards; 389 } 390 391 377 392 /*-------------------------------------------------------------- 378 393 # Login: messages … … 418 433 line-height: 1.26em; 419 434 } 435 436 437 /*-------------------------------------------------------------- 438 # input form tricks 439 --------------------------------------------------------------*/ 440 441 form .antonelf-form-row { 442 margin-bottom: 1rem; 443 position: relative; 444 } 445 form .antonelf-form-row:last-child { 446 margin-bottom: 0; 447 } 448 form .antonelf-form-row input[type="text"], 449 form .antonelf-form-row input[type="password"] { 450 box-sizing: border-box; 451 width: 100%; 452 //padding: 10px; 453 //border: 1px solid #ddd; 454 border-radius: 4px; 455 -webkit-transition: all 0.5s ease-in-out; 456 transition: all 0.5s ease-in-out; 457 outline: 0; 458 } 459 form .antonelf-form-row input[type="text"] + label[data-placeholder], 460 form .antonelf-form-row input[type="password"] + label[data-placeholder] { 461 pointer-events: none; 462 } 463 form .antonelf-form-row input[type="text"] + label[data-placeholder]:after, 464 form .antonelf-form-row input[type="password"] + label[data-placeholder]:after { 465 content: attr(data-placeholder); 466 display: block; 467 position: absolute; 468 top: 50%; 469 left: 0.5rem; 470 -webkit-transform: translate(0%, -50%); 471 transform: translate(0%, -50%); 472 -webkit-transition: all 0.5s ease-in-out; 473 transition: all 0.5s ease-in-out; 474 padding: 0 0.25rem; 475 background-color: rgba(255, 255, 255, 0); 476 } 477 form .antonelf-form-row input[type="text"]:focus, 478 form .antonelf-form-row input[type="text"]:valid, 479 form .antonelf-form-row input[type="password"]:focus, 480 form .antonelf-form-row input[type="password"]:valid { 481 border: 1px solid #7C8AFD; 482 } 483 form .antonelf-form-row input[type="text"]:focus + label[data-placeholder]:after, 484 form .antonelf-form-row input[type="text"]:valid + label[data-placeholder]:after, 485 form .antonelf-form-row input[type="password"]:focus + label[data-placeholder]:after, 486 form .antonelf-form-row input[type="password"]:valid + label[data-placeholder]:after{ 487 -webkit-transform: translate(-0.8em, -2em) scale(0.8); 488 transform: translate(-0.8em, -2em) scale(0.8); 489 color: #7C8AFD; 490 background-color: white; 491 } -
embedded-login-form/trunk/embedded-login-form.php
r1320721 r1327750 1 <?php1 <?php 2 2 3 3 /* … … 5 5 Plugin URI: https://wordpress.org/plugins/ 6 6 Description: This plugin shows a complete login/register form and a author info form and allows to customize where to show them (for instance embedded in front page and author page respectively). 7 Version: 0. 17 Version: 0.2 8 8 Author: Raúl Antón Cuadrado 9 9 Author URI: http://about.me/raulanton -
embedded-login-form/trunk/includes/template-login-form.php
r1320721 r1327750 21 21 </div> 22 22 <div id="antonelf-register-fork"> 23 <?php _e( 'Join ','embedded-login-form'); 24 echo bloginfo('name');?> 23 <?php _e( 'Join ','embedded-login-form');?> 25 24 </div> 26 25 </div> … … 32 31 <p class="antonelf-register-failed-msg"> </p> 33 32 <div class="antonelf-login-form"> 34 <p class="antonelf-login-label"> <?php _e( 'Login Name:','embedded-login-form'); ?> <input class="input" id="user_login" name="user_login" size="20" type="text"></p> 35 <p class="antonelf-login-label"><?php _e( 'e-Mail:','embedded-login-form'); ?> <input class="input" id="user_email" name="user_email" size="20" type="text"></p> 33 <div class="antonelf-form-row antonelf-login-label"> 34 <input class="input" id="user_login" name="user_login" size="20" type="text" required> 35 <label alt="Label Text" data-placeholder="<?php _e( 'Login Name:','embedded-login-form'); ?>"></label> 36 </div> 37 38 <div class="antonelf-form-row antonelf-login-label"> 39 <input class="input" id="user_email" name="user_email" size="20" type="text" required> 40 <label alt="Label Text" data-placeholder="<?php _e( 'e-Mail:','embedded-login-form'); ?>"></label> 41 </div> 42 43 44 36 45 <p class="antonelf-register-comment"> 37 46 <input id="antonelf-agreeTOS" name="agree" value="1" type="checkbox"> 38 47 <?php _e( 'I\'ve read and agree ','embedded-login-form'); 39 echo bloginfo('name');48 40 49 $TOS_link_name = 'antonelf_TOS_link'; 41 50 $TOS_link = get_option ( $TOS_link_name ); … … 68 77 <p class="antonelf-login-failed-msg"></p> 69 78 <div class="antonelf-login-form"> 70 <p class="antonelf-login-label"><?php _e( 'Login Name:','embedded-login-form'); ?> <input class="input" id="user_login" name="log" size="20" type="text"></p> 71 <p class="antonelf-login-label" style="display:inline;"><?php _e( 'Password:','embedded-login-form'); ?> <input class="input" id="user_pass" name="pwd" size="20" value="" type="password"></p> 79 80 <div class="antonelf-form-row antonelf-login-label"> 81 <input class="input" id="user_login" name="log" size="20" type="text" required> 82 <label alt="Label Text" data-placeholder="<?php _e( 'Login Name:','embedded-login-form'); ?>"></label> 83 </div> 84 85 <div class="antonelf-form-row antonelf-login-label"> 86 <input class="input" id="user_pass" name="pwd" size="20" value="" type="password" required> 87 <label alt="Label Text" data-placeholder="<?php _e( 'Password:','embedded-login-form'); ?>"></label> 88 </div> 89 90 72 91 73 92 <div class="antonelf-author-button"> -
embedded-login-form/trunk/js/embedded-login-form.js
r1320721 r1327750 8 8 jQuery('#antonelf-login-fork').click(function() { 9 9 jQuery('#antonelf-login-register-fork').css('display','none'); 10 jQuery('#antonelf-login-div').css('display','table'); 10 jQuery('#antonelf-login-div').css('display','block'); 11 jQuery('#antonelf-login-div').addClass('appear'); 11 12 jQuery('#antonelf-register-div').css('display','none'); 12 13 }); 14 13 15 14 16 jQuery('#antonelf-register-fork').click(function() { 15 17 jQuery('#antonelf-login-register-fork').css('display','none'); 16 18 jQuery('#antonelf-login-div').css('display','none'); 17 jQuery('#antonelf-register-div').css('display','table'); 19 jQuery('#antonelf-register-div').css('display','block'); 20 jQuery('#antonelf-register-div').addClass('appear'); 18 21 }); 19 22 -
embedded-login-form/trunk/readme.txt
r1320726 r1327750 5 5 Requires at least: 4.1.5 6 6 Tested up to: 4.1.5 7 Stable tag: 0. 17 Stable tag: 0.2 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 64 64 == Changelog == 65 65 66 = 0.2 = 67 * Bugs fixed, javascript & css effects to smoothly open forms. 68 66 69 = 0.1 = 67 70 * First version
Note: See TracChangeset
for help on using the changeset viewer.