Index: src/bp-core/admin/css/common-rtl.css =================================================================== --- src/bp-core/admin/css/common-rtl.css (revision 11905) +++ src/bp-core/admin/css/common-rtl.css (working copy) @@ -18,7 +18,9 @@ 2.1 Top level menus 2.2 Settings - Components 2.3 Tools -3.0 User's Lists +3.0 Users + 3.1 Users List + 3.2 All Members Notices 4.0 Emails - Edit page 5.0 Tools - BuddyPress 6.0 Plugins page @@ -569,8 +571,12 @@ /*------------------------------------------------------------------------------ - * 3.0 User's Lists + * 3.0 Users *----------------------------------------------------------------------------*/ + +/* + * 3.1 Users List + */ body.site-users-php th#role, body.users-php th#role, body.users_page_bp-signups th#count_sent { @@ -607,6 +613,95 @@ font-weight: 700; } +/* + * 3.2 All Members Notices + */ +.bp-new-notice-panel { + background: #fff; + border: 1px solid #e5e5e5; + box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04); + font-size: 13px; + line-height: 2.1; + margin: 16px 0; + overflow: auto; + padding: 25px; + position: relative; +} + +.bp-new-notice-panel label { + clear: both; + float: right; + margin-left: 3%; + width: 20%; +} + +.bp-new-notice-panel input, +.bp-new-notice-panel textarea { + clear: none; + margin-bottom: 1em; + width: 75%; +} + +.bp-new-notice-panel input[type="text"]:after, +.bp-new-notice-panel textarea:after { + clear: both; + content: " "; + display: table; +} + +.bp-new-notice-panel input.cancel { + background: #fafafa; + border: 1px solid #ccc; + float: right; + font-size: 13px; + line-height: 26px; + margin-right: 23%; + padding: 0 10px 1px; + vertical-align: top; +} + +.bp-new-notice-panel input.cancel:focus, +.bp-new-notice-panel input.cancel:hover { + border: 1px solid #ccc; + color: #222; + padding: 0 10px 1px; +} + +.bp-new-notice-panel .button-primary { + margin-left: 2%; + width: auto; +} + +@media screen and (max-width: 782px) { + + .bp-new-notice-panel input, + .bp-new-notice-panel textarea { + margin-right: 0; + width: 100%; + } + + .bp-new-notice-panel input.cancel { + margin-right: 0; + padding: 5px 10px; + } + + .bp-new-notice-panel input.cancel:focus, + .bp-new-notice-panel input.cancel:hover { + margin-right: 0; + padding: 5px 10px; + } + + .bp-new-notice-panel .button-primary { + margin-left: 0; + width: auto; + } + + .bp-new-notice-panel .button { + max-width: 45%; + word-wrap: break-word; + } +} + /*------------------------------------------------------------------------------ * 4.0 Emails - Edit Page *----------------------------------------------------------------------------*/ Index: src/bp-core/admin/css/common.css =================================================================== --- src/bp-core/admin/css/common.css (revision 11905) +++ src/bp-core/admin/css/common.css (working copy) @@ -18,7 +18,9 @@ 2.1 Top level menus 2.2 Settings - Components 2.3 Tools -3.0 User's Lists +3.0 Users + 3.1 Users List + 3.2 All Members Notices 4.0 Emails - Edit page 5.0 Tools - BuddyPress 6.0 Plugins page @@ -569,8 +571,12 @@ /*------------------------------------------------------------------------------ - * 3.0 User's Lists + * 3.0 Users *----------------------------------------------------------------------------*/ + +/* + * 3.1 Users List + */ body.site-users-php th#role, body.users-php th#role, body.users_page_bp-signups th#count_sent { @@ -607,6 +613,95 @@ font-weight: 700; } +/* + * 3.2 All Members Notices + */ +.bp-new-notice-panel { + background: #fff; + border: 1px solid #e5e5e5; + box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04); + font-size: 13px; + line-height: 2.1; + margin: 16px 0; + overflow: auto; + padding: 25px; + position: relative; +} + +.bp-new-notice-panel label { + clear: both; + float: left; + margin-right: 3%; + width: 20%; +} + +.bp-new-notice-panel input, +.bp-new-notice-panel textarea { + clear: none; + margin-bottom: 1em; + width: 75%; +} + +.bp-new-notice-panel input[type="text"]:after, +.bp-new-notice-panel textarea:after { + clear: both; + content: " "; + display: table; +} + +.bp-new-notice-panel input.cancel { + background: #fafafa; + border: 1px solid #ccc; + float: left; + font-size: 13px; + line-height: 26px; + margin-left: 23%; + padding: 0 10px 1px; + vertical-align: top; +} + +.bp-new-notice-panel input.cancel:focus, +.bp-new-notice-panel input.cancel:hover { + border: 1px solid #ccc; + color: #222; + padding: 0 10px 1px; +} + +.bp-new-notice-panel .button-primary { + margin-right: 2%; + width: auto; +} + +@media screen and (max-width: 782px) { + + .bp-new-notice-panel input, + .bp-new-notice-panel textarea { + margin-left: 0; + width: 100%; + } + + .bp-new-notice-panel input.cancel { + margin-left: 0; + padding: 5px 10px; + } + + .bp-new-notice-panel input.cancel:focus, + .bp-new-notice-panel input.cancel:hover { + margin-left: 0; + padding: 5px 10px; + } + + .bp-new-notice-panel .button-primary { + margin-right: 0; + width: auto; + } + + .bp-new-notice-panel .button { + max-width: 45%; + word-wrap: break-word; + } +} + /*------------------------------------------------------------------------------ * 4.0 Emails - Edit Page *----------------------------------------------------------------------------*/ Index: src/bp-messages/classes/class-bp-messages-notices-admin.php =================================================================== --- src/bp-messages/classes/class-bp-messages-notices-admin.php (revision 11905) +++ src/bp-messages/classes/class-bp-messages-notices-admin.php (working copy) @@ -36,8 +36,8 @@ * @var object */ public $list_table = ''; - + /** * Create a new instance or access the current instance of this class. * @@ -154,7 +154,7 @@ case 'delete': $notice = new BP_Messages_Notice( $notice_id ); $success = $notice->delete(); - break; + break; } if ( $success ) { $redirect_to = add_query_arg( 'success', 'update', $this->url ); @@ -200,26 +200,28 @@ -