Changeset 10295
- Timestamp:
- 10/21/2015 11:36:04 PM (9 years ago)
- Location:
- trunk/src/bp-templates/bp-legacy
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-templates/bp-legacy/css/buddypress-rtl.css
r10291 r10295 126 126 #buddypress form#whats-new-form textarea { 127 127 background: #fff; 128 box-sizing: border-box; 128 129 color: #555; 129 130 font-family: inherit; 130 131 font-size: medium; 131 height: 20px; 132 height: 2.2em; 133 line-height: 1.4; 132 134 padding: 6px; 133 width: 98%;135 width: 100%; 134 136 } 135 137 body.no-js #buddypress form#whats-new-form textarea { … … 144 146 margin-top: 12px; 145 147 } 146 #buddypress #whats-new-options { 147 overflow: auto; 148 height: 0; 148 #buddypress #whats-new-options:after { 149 clear: both; 150 content: ""; 151 display: table; 149 152 } 150 153 body.no-js #buddypress #whats-new-options { -
trunk/src/bp-templates/bp-legacy/css/buddypress.css
r10290 r10295 126 126 #buddypress form#whats-new-form textarea { 127 127 background: #fff; 128 box-sizing: border-box; 128 129 color: #555; 129 130 font-family: inherit; 130 131 font-size: medium; 131 height: 20px; 132 height: 2.2em; 133 line-height: 1.4; 132 134 padding: 6px; 133 width: 98%;135 width: 100%; 134 136 } 135 137 body.no-js #buddypress form#whats-new-form textarea { … … 144 146 margin-top: 12px; 145 147 } 146 #buddypress #whats-new-options { 147 overflow: auto; 148 height: 0; 148 #buddypress #whats-new-options:after { 149 clear: both; 150 content: ""; 151 display: table; 149 152 } 150 153 body.no-js #buddypress #whats-new-options { -
trunk/src/bp-templates/bp-legacy/css/twentyfifteen-rtl.css
r10292 r10295 458 458 } 459 459 460 #buddypress form#whats-new-form textarea {461 width: 100%;462 }463 464 460 @media screen and (max-width: 30em) { 465 461 #buddypress form#whats-new-form #whats-new-post-in-box select { … … 492 488 order: 1; 493 489 } 494 }495 496 #buddypress form#whats-new-form #whats-new-options[style] {497 min-height: 6rem;498 overflow: visible;499 490 } 500 491 -
trunk/src/bp-templates/bp-legacy/css/twentyfifteen.css
r10292 r10295 458 458 } 459 459 460 #buddypress form#whats-new-form textarea {461 width: 100%;462 }463 464 460 @media screen and (max-width: 30em) { 465 461 #buddypress form#whats-new-form #whats-new-post-in-box select { … … 492 488 order: 1; 493 489 } 494 }495 496 #buddypress form#whats-new-form #whats-new-options[style] {497 min-height: 6rem;498 overflow: visible;499 490 } 500 491 -
trunk/src/bp-templates/bp-legacy/css/twentyfifteen.scss
r10292 r10295 652 652 } 653 653 654 textarea {width: 100%;}655 654 // corrective measure for clipped elements due to JS inline styling 656 655 … … 687 686 688 687 #whats-new-options[style] { 689 min-height: 6rem;690 overflow: visible;691 692 688 #whats-new-post-in-box { 693 689 border: 1px solid rgba($border-color, 0.5); -
trunk/src/bp-templates/bp-legacy/css/twentyfourteen-rtl.css
r10155 r10295 425 425 } 426 426 427 #buddypress form#whats-new-form textarea#whats-new {428 width: 100%;429 }430 431 #buddypress form#whats-new-form #whats-new-content #whats-new-options[style] {432 height: auto !important;433 }434 435 427 @media screen and (max-width: 594px) { 436 428 #buddypress form#whats-new-form #whats-new-content #whats-new-options { -
trunk/src/bp-templates/bp-legacy/css/twentyfourteen.css
r10155 r10295 425 425 } 426 426 427 #buddypress form#whats-new-form textarea#whats-new {428 width: 100%;429 }430 431 #buddypress form#whats-new-form #whats-new-content #whats-new-options[style] {432 height: auto !important;433 }434 435 427 @media screen and (max-width: 594px) { 436 428 #buddypress form#whats-new-form #whats-new-content #whats-new-options { -
trunk/src/bp-templates/bp-legacy/css/twentyfourteen.scss
r10155 r10295 673 673 } 674 674 675 textarea#whats-new {676 width: 100%;677 }678 679 675 #whats-new-content { 680 681 #whats-new-options[style] {682 // Have to override the BP fixed height683 height: auto !important;684 }685 686 676 @media screen and (max-width: 594px) { 687 677 #whats-new-options { -
trunk/src/bp-templates/bp-legacy/css/twentysixteen-rtl.css
r10285 r10295 571 571 } 572 572 573 #buddypress form#whats-new-form textarea {574 width: 100%;575 }576 577 573 @media screen and (max-width: 46.25em) { 578 574 #buddypress form#whats-new-form #whats-new-content { … … 581 577 padding: 10px 0 0; 582 578 } 583 }584 585 #buddypress form#whats-new-form #whats-new-content.active #whats-new-options[style] {586 min-height: 6rem;587 overflow: visible;588 579 } 589 580 -
trunk/src/bp-templates/bp-legacy/css/twentysixteen.css
r10285 r10295 571 571 } 572 572 573 #buddypress form#whats-new-form textarea {574 width: 100%;575 }576 577 573 @media screen and (max-width: 46.25em) { 578 574 #buddypress form#whats-new-form #whats-new-content { … … 581 577 padding: 10px 0 0; 582 578 } 583 }584 585 #buddypress form#whats-new-form #whats-new-content.active #whats-new-options[style] {586 min-height: 6rem;587 overflow: visible;588 579 } 589 580 -
trunk/src/bp-templates/bp-legacy/css/twentysixteen.scss
r10285 r10295 873 873 } 874 874 875 textarea {width: 100%;}876 875 // corrective measure for clipped elements due to JS inline styling 877 876 … … 886 885 #whats-new-content.active { 887 886 #whats-new-options[style] { 888 min-height: 6rem; // unit open to debate px value might be better.889 overflow: visible;890 891 887 #whats-new-post-in-box { 892 888 border: 1px solid rgba($border-color, 0.5); -
trunk/src/bp-templates/bp-legacy/css/twentythirteen-rtl.css
r10283 r10295 523 523 } 524 524 525 #buddypress form#whats-new-form textarea {526 width: 100%;527 }528 529 525 @media screen and (max-width: 46.25em) { 530 526 #buddypress form#whats-new-form #whats-new-content { … … 533 529 padding: 10px 0 0; 534 530 } 535 }536 537 #buddypress form#whats-new-form #whats-new-content.active #whats-new-options[style] {538 min-height: 6rem;539 overflow: visible;540 531 } 541 532 -
trunk/src/bp-templates/bp-legacy/css/twentythirteen.css
r10283 r10295 523 523 } 524 524 525 #buddypress form#whats-new-form textarea {526 width: 100%;527 }528 529 525 @media screen and (max-width: 46.25em) { 530 526 #buddypress form#whats-new-form #whats-new-content { … … 533 529 padding: 10px 0 0; 534 530 } 535 }536 537 #buddypress form#whats-new-form #whats-new-content.active #whats-new-options[style] {538 min-height: 6rem;539 overflow: visible;540 531 } 541 532 -
trunk/src/bp-templates/bp-legacy/css/twentythirteen.scss
r10283 r10295 782 782 } 783 783 784 textarea {width: 100%;}785 784 // corrective measure for clipped elements due to JS inline styling 786 785 … … 795 794 #whats-new-content.active { 796 795 #whats-new-options[style] { 797 min-height: 6rem; // unit open to debate px value might be better.798 overflow: visible;799 800 796 #whats-new-post-in-box { 801 797 border: 1px solid rgba($border-color, 0.5); -
trunk/src/bp-templates/bp-legacy/js/buddypress.js
r10294 r10295 33 33 var $member_nicename = $whats_new.val(); 34 34 35 jq('#whats-new-options').animate({ 36 height:'50px' 37 }); 35 jq('#whats-new-options').slideDown(); 38 36 39 37 $whats_new.animate({ 40 height:' 50px'38 height:'3.8em' 41 39 }); 42 40 … … 47 45 48 46 $whats_new.val('').focus().val( $member_nicename ); 47 } else { 48 jq('#whats-new-options').hide(); 49 49 } 50 50 … … 53 53 /* Textarea focus */ 54 54 $whats_new.focus( function(){ 55 jq( '#whats-new-options').animate({56 height:'50px' 57 });58 jq('#whats-new-form textarea').animate({59 height:'50px'60 }); 55 jq( '#whats-new-options' ).slideDown(); 56 57 jq( this ).animate({ 58 height:'3.8em' 59 }); 60 61 61 jq('#aw-whats-new-submit').prop('disabled', false); 62 62 63 jq( this ).parent().addClass( 'active' ); 63 64 jq( '#whats-new-content' ).addClass( 'active' ); 64 65 … … 84 85 }); 85 86 86 /* On blur, shrink if it's empty */ 87 $whats_new.blur( function(){ 88 if ( document.activeElement !== this ) { 89 if (!this.value.match(/\S+/)) { 90 this.value = ''; 91 jq('#whats-new-options').animate({ 92 height:'0' 87 /* For the "What's New" form, do the following on focusout. */ 88 jq( '#whats-new-form' ).on( 'focusout', function( e ) { 89 var elem = jq( this ); 90 91 // Let child hover actions passthrough. 92 // This allows click events to go through without focusout. 93 setTimeout( function () { 94 if ( ! elem.find(':hover').length ) { 95 // Do not slide up if textarea has content. 96 if ( '' !== $whats_new.val() ) { 97 return; 98 } 99 100 $whats_new.animate({ 101 height:'2.2em' 93 102 }); 94 jq('form#whats-new-form textarea').animate({ 95 height:'20px' 96 }); 97 jq('#aw-whats-new-submit').prop('disabled', true); 103 104 jq( '#whats-new-options' ).slideUp(); 105 106 jq('#aw-whats-new-submit').prop( 'disabled', true ); 107 98 108 jq( '#whats-new-content' ).removeClass( 'active' ); 99 } 100 } 101 }); 109 $whats_new.parent().removeClass( 'active' ); 110 } 111 }, 0 ); 112 } ); 102 113 103 114 /* New posts */ … … 231 242 } 232 243 233 jq('#whats-new-options').animate({ 234 height:'0px' 235 }); 244 jq('#whats-new-options').slideUp(); 236 245 jq('#whats-new-form textarea').animate({ 237 height:'2 0px'246 height:'2.2em' 238 247 }); 239 248 jq('#aw-whats-new-submit').prop('disabled', true).removeClass('loading');
Note: See TracChangeset
for help on using the changeset viewer.