Changeset 12814
- Timestamp:
- 12/04/2020 06:13:48 PM (4 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Gruntfile.js
r12751 r12814 33 33 '!bp-templates/bp-legacy/css/twenty*.css', 34 34 '!bp-templates/bp-nouveau/css/buddypress.css', 35 '!bp-templates/bp-nouveau/css/twenty*.css', 35 36 '!bp-core/admin/css/hello.css', 36 37 '!bp-members/css/blocks/member.css', … … 118 119 ext: '.css', 119 120 flatten: true, 120 src: ['bp-templates/bp-nouveau/sass/buddypress.scss' ],121 src: ['bp-templates/bp-nouveau/sass/buddypress.scss', 'bp-templates/bp-nouveau/sass/twenty*.scss'], 121 122 dest: SOURCE_DIR + 'bp-templates/bp-nouveau/css/' 122 123 }, … … 403 404 */ 404 405 grunt.registerTask( 'src', ['checkDependencies', 'jsvalidate:src', 'jshint', 'stylelint', 'sass', 'postcss', 'rtlcss'] ); 406 grunt.registerTask( 'style', ['stylelint', 'sass', 'postcss', 'rtlcss'] ); 405 407 grunt.registerTask( 'makepot', ['exec:makepot'] ); 406 408 grunt.registerTask( 'commit', ['src', 'checktextdomain', 'imagemin', 'phplint', 'exec:phpcompat'] ); -
trunk/src/bp-templates/bp-nouveau/buddypress-functions.php
r12595 r12814 284 284 } 285 285 } 286 287 // Compatibility stylesheets for specific themes. 288 $theme = get_template(); 289 $companion_stylesheet = bp_locate_template_asset( sprintf( 'css/%1$s%2$s.css', $theme, $min ) ); 290 $companion_handle = 'bp-' . $theme; 291 292 if ( ! is_rtl() && isset( $companion_stylesheet['uri'] ) && $companion_stylesheet['uri'] ) { 293 wp_enqueue_style( $companion_handle, $companion_stylesheet['uri'], array(), $this->version, 'screen' ); 294 295 if ( $min ) { 296 wp_style_add_data( $companion_handle, 'suffix', $min ); 297 } 298 } 299 300 // Compatibility stylesheet for specific themes, RTL-version. 301 if ( is_rtl() ) { 302 $rtl_companion_stylesheet = bp_locate_template_asset( sprintf( 'css/%1$s-rtl%2$s.css', $theme, $min ) ); 303 304 if ( isset( $rtl_companion_stylesheet['uri'] ) ) { 305 $companion_handle .= '-rtl'; 306 wp_enqueue_style( $companion_handle, $rtl_companion_stylesheet['uri'], array(), $this->version, 'screen' ); 307 308 if ( $min ) { 309 wp_style_add_data( $companion_handle, 'suffix', $min ); 310 } 311 } 312 } 286 313 } 287 314 -
trunk/src/bp-templates/bp-nouveau/buddypress/groups/single/admin/group-cover-image.php
r12156 r12814 4 4 * 5 5 * @since 3.0.0 6 * @version 3.1.06 * @version 7.0.0 7 7 */ 8 8 ?> … … 10 10 <?php if ( bp_is_group_create() ) : ?> 11 11 12 <h 2class="bp-screen-title creation-step-name">12 <h3 class="bp-screen-title creation-step-name"> 13 13 <?php esc_html_e( 'Upload Cover Image', 'buddypress' ); ?> 14 </h 2>14 </h3> 15 15 16 16 <div id="header-cover-image"></div> -
trunk/src/bp-templates/bp-nouveau/common-styles/_bp_forms.scss
r12398 r12814 1 1 // BP Forms Elements Global Styles 2 2 // @since 3.0.0 3 // @version 5.0.03 // @version 7.0.0 4 4 5 5 // Some essential classes used for forms elements: … … 88 88 .groups-members-search input[type="search"], 89 89 .groups-members-search input[type="text"] { 90 background : $off-white;90 background-color: $off-white; 91 91 border: 1px solid $form-border-color; 92 92 border-radius: 0; … … 164 164 textarea:focus, 165 165 select:focus { 166 background : $off-white;166 background-color: $off-white; 167 167 color: $bp-text; 168 168 outline: 0; -
trunk/src/bp-templates/bp-nouveau/common-styles/_bp_generic_and_typography.scss
r12537 r12814 1 1 // BP Generic elements, Typography and Images. 2 2 // @since 3.0.0 3 // @version 5.0.03 // @version 7.0.0 4 4 5 5 // ========= Generic Sitewide elements ======== … … 60 60 .site-content .entry-header, 61 61 .entry-content { 62 max-width: none; 62 63 &:not(.alignwide):not(.alignfull) { 64 max-width: none; 65 } 63 66 } 64 67 … … 167 170 padding: 0; 168 171 169 .entry-title {172 &:not(.alignwide):not(.alignfull) .entry-title { 170 173 171 174 @include responsive-font(34); -
trunk/src/bp-templates/bp-nouveau/common-styles/_bp_info_messages.scss
r12734 r12814 29 29 display: block; 30 30 } 31 32 // Error message boxes33 &.error {34 35 p {36 // oh linter you're too boringly pedantic, there will be properties!37 }38 }39 40 // Warning boxes41 // &.warning {42 43 // p {44 // }45 // }46 47 31 } // close .bp-messages 48 32 -
trunk/src/bp-templates/bp-nouveau/common-styles/_bp_layouts.scss
r12582 r12814 4 4 // The sheet also adds layout properties such as border-box 5 5 // @since 3.0.0 6 // @version 6.0.06 // @version 7.0.0 7 7 8 8 #item-body, … … 433 433 } 434 434 435 .grid.members-list ,{435 .grid.members-list { 436 436 437 437 .list-wrap { … … 440 440 } 441 441 442 .grid.blogs-list ,{442 .grid.blogs-list { 443 443 444 444 .list-wrap { -
trunk/src/bp-templates/bp-nouveau/common-styles/_bp_navigation.scss
r12582 r12814 1 1 // BP primary & secondary navigation - directory and single screens 2 // @version 3.0.0 2 // @since 3.0.0 3 // @version 7.0.0 3 4 4 5 // all devices & generic styles sitewide … … 101 102 102 103 li:not(.current), 103 li:not(.selected) ,{104 li:not(.selected) { 104 105 105 106 a:focus, … … 252 253 } 253 254 } 254 255 255 } // close .buddypress-wrap 256 256 … … 422 422 423 423 } // close @media 424 425 424 } // close .buddypress-wrap 426 425 … … 441 440 } 442 441 } 443 444 442 } 445 443 } -
trunk/src/bp-templates/bp-nouveau/common-styles/_bp_search.scss
r12405 r12814 1 1 // BP Directory Search elements 2 2 // @since 3.0.0 3 // @version 5.0.03 // @version 7.0.0 4 4 5 5 .buddypress-wrap { // the ID is required to add weight to rules … … 31 31 input[type="text"] { 32 32 float: left; 33 line-height: 1.5;33 line-height: 2; 34 34 padding: 3px 10px; 35 width: 80%;35 width: 78%; 36 36 } 37 37 -
trunk/src/bp-templates/bp-nouveau/common-styles/_bp_tables.scss
r12082 r12814 1 1 // BP default/generic Table styles. 2 // @version 3.0.0 2 // @since 3.0.0 3 // @version 7.0.0 3 4 .buddypress-wrap { 4 5 … … 59 60 60 61 .bp-tables-user, 61 table.wp-profile-fields ,{62 table.wp-profile-fields { 62 63 63 64 tr.alt { -
trunk/src/bp-templates/bp-nouveau/css/buddypress-rtl.css
r12797 r12814 84 84 85 85 @media screen and (min-width: 46.8em) { 86 body.buddypress .entry-header ,87 body.buddypress .site-content .entry-header ,88 body.buddypress .entry-content {86 body.buddypress .entry-header:not(.alignwide):not(.alignfull), 87 body.buddypress .site-content .entry-header:not(.alignwide):not(.alignfull), 88 body.buddypress .entry-content:not(.alignwide):not(.alignfull) { 89 89 max-width: none; 90 90 } … … 143 143 } 144 144 145 body.buddypress article.page > .entry-header .entry-title {145 body.buddypress article.page > .entry-header:not(.alignwide):not(.alignfull) .entry-title { 146 146 font-size: 28px; 147 147 font-weight: inherit; … … 150 150 151 151 @media screen and (min-width: 46.8em) { 152 body.buddypress article.page > .entry-header .entry-title {152 body.buddypress article.page > .entry-header:not(.alignwide):not(.alignfull) .entry-title { 153 153 font-size: 34px; 154 154 } … … 3482 3482 .buddypress-wrap .standard-form .groups-members-search input[type="search"], 3483 3483 .buddypress-wrap .standard-form .groups-members-search input[type="text"] { 3484 background : #fafafa;3484 background-color: #fafafa; 3485 3485 border: 1px solid #d6d6d6; 3486 3486 border-radius: 0; … … 3553 3553 .buddypress-wrap .standard-form textarea:focus, 3554 3554 .buddypress-wrap .standard-form select:focus { 3555 background : #fafafa;3555 background-color: #fafafa; 3556 3556 color: #555; 3557 3557 outline: 0; … … 3792 3792 .buddypress-wrap form#group-members-search input[type="text"] { 3793 3793 float: right; 3794 line-height: 1.5;3794 line-height: 2; 3795 3795 padding: 3px 10px; 3796 width: 80%;3796 width: 78%; 3797 3797 } 3798 3798 -
trunk/src/bp-templates/bp-nouveau/css/buddypress.css
r12797 r12814 84 84 85 85 @media screen and (min-width: 46.8em) { 86 body.buddypress .entry-header ,87 body.buddypress .site-content .entry-header ,88 body.buddypress .entry-content {86 body.buddypress .entry-header:not(.alignwide):not(.alignfull), 87 body.buddypress .site-content .entry-header:not(.alignwide):not(.alignfull), 88 body.buddypress .entry-content:not(.alignwide):not(.alignfull) { 89 89 max-width: none; 90 90 } … … 143 143 } 144 144 145 body.buddypress article.page > .entry-header .entry-title {145 body.buddypress article.page > .entry-header:not(.alignwide):not(.alignfull) .entry-title { 146 146 font-size: 28px; 147 147 font-weight: inherit; … … 150 150 151 151 @media screen and (min-width: 46.8em) { 152 body.buddypress article.page > .entry-header .entry-title {152 body.buddypress article.page > .entry-header:not(.alignwide):not(.alignfull) .entry-title { 153 153 font-size: 34px; 154 154 } … … 3482 3482 .buddypress-wrap .standard-form .groups-members-search input[type="search"], 3483 3483 .buddypress-wrap .standard-form .groups-members-search input[type="text"] { 3484 background : #fafafa;3484 background-color: #fafafa; 3485 3485 border: 1px solid #d6d6d6; 3486 3486 border-radius: 0; … … 3553 3553 .buddypress-wrap .standard-form textarea:focus, 3554 3554 .buddypress-wrap .standard-form select:focus { 3555 background : #fafafa;3555 background-color: #fafafa; 3556 3556 color: #555; 3557 3557 outline: 0; … … 3792 3792 .buddypress-wrap form#group-members-search input[type="text"] { 3793 3793 float: left; 3794 line-height: 1.5;3794 line-height: 2; 3795 3795 padding: 3px 10px; 3796 width: 80%;3796 width: 78%; 3797 3797 } 3798 3798 -
trunk/src/bp-templates/bp-nouveau/includes/activity/functions.php
r12595 r12814 4 4 * 5 5 * @since 3.0.0 6 * @version 5.0.06 * @version 7.0.0 7 7 */ 8 8 … … 539 539 ) ); 540 540 } 541 542 /** 543 * Remove brackets around the "Read more" text. 544 * 545 * @since 7.0.0 546 * 547 * @param string $read_more The read more text. 548 * @return string The read more text without brackets. 549 */ 550 function bp_nouveau_activity_excerpt_append_text( $read_more = '' ) { 551 /** 552 * As this was added during a string freeze period, we 553 * are using the `str_replace()` function. 554 */ 555 return str_replace( array( '[', ']' ), '', $read_more ); 556 } 557 add_filter( 'bp_activity_excerpt_append_text', 'bp_nouveau_activity_excerpt_append_text', 10, 1 ); -
trunk/src/bp-templates/bp-nouveau/includes/template-tags.php
r12774 r12814 1449 1449 * 1450 1450 * @since 3.0.0 1451 * @since 7.0.0 Add a class to inform about the active Theme. 1451 1452 * 1452 1453 * @return string CSS classes 1453 1454 */ 1454 1455 function bp_nouveau_get_container_classes() { 1455 $classes = array( 'buddypress-wrap' );1456 $classes = array( 'buddypress-wrap', get_template() ); 1456 1457 $component = bp_current_component(); 1457 1458 $bp_nouveau = bp_nouveau();
Note: See TracChangeset
for help on using the changeset viewer.