Skip to content

Commit

Permalink
feat: Upgrade to v3.0.0 (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
dr5hn authored Feb 2, 2023
1 parent 7caa0d8 commit 51c60b5
Show file tree
Hide file tree
Showing 51 changed files with 1,814 additions and 3,697 deletions.
19 changes: 14 additions & 5 deletions kinsta-mu-plugins.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: Kinsta Must-use Plugins
* Plugin URI: https://kinsta.com/knowledgebase/kinsta-mu-plugin/
* Description: The plugin designed to work on Kinsta's managed WordPress hosting platform.
* Version: 2.4.8
* Version: 3.0.0
* Author: Kinsta Team
* Author URI: https://kinsta.com/about-us/
* Text Domain: kinsta-mu-plugins
Expand All @@ -16,12 +16,21 @@
die( 'No script kiddies please!' );
}

define( 'KINSTAMU_VERSION', '2.4.8' );
define( 'KINSTAMU_VERSION', '3.0.0' );
define( 'KMP_DOCS_URL', 'https://kinsta.com/help/kinsta-mu-plugin/' );

if ( ! defined( 'KINSTAMU_WHITELABEL' ) ) {
define( 'KINSTAMU_WHITELABEL', false );
}

require_once plugin_dir_path( __FILE__ ) . 'kinsta-mu-plugins/shared/class-shared.php';
require_once plugin_dir_path( __FILE__ ) . 'kinsta-mu-plugins/utils/utils.php';

require_once plugin_dir_path( __FILE__ ) . 'kinsta-mu-plugins/admin/class-kmp-admin.php';
require_once plugin_dir_path( __FILE__ ) . 'kinsta-mu-plugins/cache/class-cache.php';
require_once plugin_dir_path( __FILE__ ) . 'kinsta-mu-plugins/cache/class-cache-purge.php';
require_once plugin_dir_path( __FILE__ ) . 'kinsta-mu-plugins/security/class-banned-plugins.php';
require_once plugin_dir_path( __FILE__ ) . 'kinsta-mu-plugins/wp-cli/class-kmp-wpcli.php';

require_once plugin_dir_path( __FILE__ ) . 'kinsta-mu-plugins/class-kmp.php';

require_once plugin_dir_path( __FILE__ ) . 'kinsta-mu-plugins/compat/compat.php';
require_once plugin_dir_path( __FILE__ ) . 'kinsta-mu-plugins/cache/cache.php';
require_once plugin_dir_path( __FILE__ ) . 'kinsta-mu-plugins/cdn/cdn.php';
165 changes: 165 additions & 0 deletions kinsta-mu-plugins/admin/assets/css/common.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,165 @@
/**
* BASIC LINK STYLE
* Link styles to match the website
*/

.kinsta-wrap {
padding: 24px 16px 16px 16px;
}

.kinsta-page-wrapper * {
box-sizing: border-box;
}

.kinsta-page-wrapper {
padding: 24px 32px 48px;
border-radius: 4px;
background: #fff;
color: #0A0A0A;
font-size: 14px;
line-height: 1.5;
}

@media screen and (max-width: 1280px) {
.kinsta-page-wrapper {
padding: 16px 24px;
font-size: 12px;
}
}

.kinsta-content-section-header {
margin-bottom: 24px;
}

.kinsta-content-section-body {
display: grid;
grid-template-columns: 2fr 1fr;
justify-content: space-between;
grid-gap: 24px;
}

@media screen and (max-width: 700px) {
.kinsta-content-section-body {
grid-template-columns: 2fr;
}
}

.kinsta-content-section-body.no-grid {
display: block;
}

.kinsta-button {
box-shadow: 0 4px 12px 0 rgb(83 51 237 / 32%), 0 0 0 2px #2a0fab;
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: 12px;
height: 40px;
padding: 0 32px;
outline: none;
border: none;
white-space: nowrap;
cursor: pointer;
transition: all .25s;
background-image: linear-gradient(99deg, #336aed 0%, #5333ED 50%, #5333ED 100%);
background-position: center center;
background-size: 200% auto;
color: white;
justify-self: end;
text-decoration: none;
}

.kinsta-button:hover {
background-position: left center;
box-shadow: 0 4px 8px 0 rgb(83 51 237 / 32%);
color: white;
}

.kinsta-button-disabled {
border: 1px solid #D1D6DF;
color: #8f97a3;
cursor: not-allowed;
box-shadow: none !important;
background: transparent !important;
}

.kinsta-checkbox {

}

.kinsta-content-section-split {
width: calc(100% + 2 * 32px);
margin: 32px -24px 24px -32px;
border: solid 1px #F2F4F9;
box-sizing: border-box;
height: 0;
overflow: visible;
}

#kinsta-custom-url-form-fields {
display: flex;
align-items: center;
}

@media screen and (max-width: 800px) {
#kinsta-custom-url-form-fields {
flex-wrap: wrap;
}
}

#kinsta-custom-url-form-fields > .prefix, #kinsta-custom-url-form-fields .kinsta-button {
margin-left: 12px;
}

#kinsta-custom-url-form-fields span {
font-size: 14px;
}

#kinsta-custom-url-form-fields .kinsta-button {
padding-top: 0;
padding-bottom: 0;
height: 30px;
}

.kinsta-table {
min-width: 100%;
border-collapse: collapse;
display: grid;
overflow-x: auto;
align-items: center;
border-radius: 0 0 16px 16px;
font-size: 14px;
grid-template-columns: repeat(3, minmax(auto, 1fr));
margin-top: 20px;
}

.kinsta-table thead, .kinsta-table tbody, .kinsta-table tr {
display: contents;
}

.kinsta-table th {
padding: 16px;
height: 100%;
color: #5A6372;
text-align: left;
position: sticky;
background-color: #f8fafc;
}

.kinsta-table th:first-of-type {
border-radius: 12px 0 0 12px;
padding-left: 24px;
}

.kinsta-table th:last-of-type {
border-radius: 0 12px 12px 0;
}

.kinsta-table td {
padding: 16px;
}

.kinsta-table td:first-of-type {
border-radius: 12px 0 0 12px;
padding-left: 24px;
}
File renamed without changes
File renamed without changes
Binary file not shown.
Loading

0 comments on commit 51c60b5

Please sign in to comment.