Skip to content

Commit

Permalink
Merge pull request #52 from WPWhiteSecurity/develop
Browse files Browse the repository at this point in the history
1.2 Release
  • Loading branch information
DannyWPWS authored Aug 9, 2021
2 parents 221c74a + 8d3b03b commit 3e0d6f9
Show file tree
Hide file tree
Showing 16 changed files with 19,137 additions and 103 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,4 @@ assets/bower_components/*
.idea/
library/vendors/composer
assets/img/.DS_Store
.vscode/
31 changes: 31 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Listen for Xdebug (Local)",
"type": "php",
"request": "launch",
"port": 9000,
"xdebugSettings": {
"max_children": 128,
"max_data": 1024,
"max_depth": 3,
"show_hidden": 1
}
},
{
"name": "Launch currently open script",
"type": "php",
"request": "launch",
"program": "${file}",
"cwd": "${fileDirname}",
"port": 9000,
"xdebugSettings": {
"max_children": 128,
"max_data": 1024,
"max_depth": 3,
"show_hidden": 1
}
}
]
}
14 changes: 8 additions & 6 deletions admin-notices-manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Description: Better manage admin notices & never miss an important WordPress and developer message.
* Author: WP White Security
* Author URI: https://www.wpwhitesecurity.com/
* Version: 1.1.0
* Version: 1.2.0
* Text Domain: admin-notices-manager
* Domain Path: /languages
* License: GPL2
Expand All @@ -16,7 +16,7 @@

/*
Admin Notices Manager
Copyright(c) 2020 WP White Security (email : info@wpwhitesecurity.com)
Copyright(c) 2021 WP White Security (email : info@wpwhitesecurity.com)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2, as
Expand All @@ -33,10 +33,12 @@
*/

// Useful global constants.
define( 'ADMIN_NOTICES_MANAGER_VERSION', '1.1.0' );
define( 'ADMIN_NOTICES_MANAGER_URL', plugin_dir_url( __FILE__ ) );
define( 'ADMIN_NOTICES_MANAGER_PATH', plugin_dir_path( __FILE__ ) );
define( 'ADMIN_NOTICES_MANAGER_INC', ADMIN_NOTICES_MANAGER_PATH . 'includes/' );
if ( ! defined( 'ADMIN_NOTICES_MANAGER_VERSION' ) ) {
define( 'ADMIN_NOTICES_MANAGER_VERSION', '1.2.0' );
define( 'ADMIN_NOTICES_MANAGER_URL', plugin_dir_url( __FILE__ ) );
define( 'ADMIN_NOTICES_MANAGER_PATH', plugin_dir_path( __FILE__ ) );
define( 'ADMIN_NOTICES_MANAGER_INC', ADMIN_NOTICES_MANAGER_PATH . 'includes/' );
}

// Include files.
require_once ADMIN_NOTICES_MANAGER_INC . 'functions/core.php';
Expand Down
95 changes: 95 additions & 0 deletions assets/css/admin/admin-style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,17 @@
padding: 4px 7px 4px 6px !important;
color: #fff;
margin-left: 7px !important;
opacity: 0;
transition: all 0.2s ease-in-out !important;

> span {
line-height: 100% !important;
}

&.display {
opacity: 1;
transition: all 0.2s ease-in-out !important;
}
}

.anm-pointer {
Expand All @@ -40,3 +47,91 @@
margin-left: -7px;
}
}


#anm-container-slide-in {
padding-top: 34px;
height: 100vh;
position: fixed;
background: #222;
right: -620px;
z-index: 1000;
top: 0;
transition: all 0.3s ease-in-out;
width: 620px;

&.show {
right: 0px;
transition: all 0.2s ease-in-out;
}
.notice, div.error, div.updated {
padding: 1px 12px !important;
}
}

@media all and (max-width: 540px) {
#anm-container-slide-in {
right: -330px;
width: 330px;
}
}

.anm-notice-timestap {
border-top: 1px solid #eee;
padding: 9px 0 10px;
font-size: 11px;
margin-top: 14px;
display: block;

span {
font-style: italic;
}

a {
float: right;
}
}

#anm-slide-in-content {
max-height: calc( 100vh - 100px );
overflow-y: auto;
direction: ltr;
scrollbar-color:#333;
scrollbar-width: thin;

&::-webkit-scrollbar {
width: 20px;
}

&::-webkit-scrollbar-track {
background-color: #222;
border-radius: 100px;
}

&::-webkit-scrollbar-thumb {
border-radius: 100px;
border: none;
border-left: 0;
border-right: 0;
background-color: #333;
}
}

#anm-system-notices, #anm-error-notices, #anm-warning-notices, #anm-success-notices, #anm-information-notices {
.notice {
margin-bottom: 15px;

p {
width: calc( 100% - 38px);
font-size: 13px;
line-height: 22px;
}

&.is-dismissible {
padding-right: 12px !important;
}
}
.notice-addon-available {
display: block;
}
}
36 changes: 34 additions & 2 deletions assets/dist/css/admin-style.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 19 additions & 2 deletions assets/dist/css/admin-style.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 3e0d6f9

Please sign in to comment.