Design updates

This commit is contained in:
Thomas Günther 2024-02-21 16:07:03 +01:00
parent ba736ef661
commit 69322d64f3
5 changed files with 441 additions and 78 deletions

View File

@ -3,13 +3,11 @@
width: 85%; width: 85%;
margin: auto; margin: auto;
padding: 10px; padding: 10px;
border-style: solid; border-color: #d0d0d0; border-radius: 10px; padding: 15px; border-width: 1px;
box-shadow: 2px 2px 5px #c0c0c0;
} }
.bdp_security_inner { .bdp_security_inner {
border-style: solid; border-color: #d0d0d0; border-radius: 10px; padding: 15px; border-width: 1px;
box-shadow: 2px 2px 5px #c0c0c0;
width: 80%; width: 80%;
margin: 0 auto 40px; margin: 0 auto 40px;
} }

View File

@ -1,87 +1,457 @@
#adminmenu, body {
#wpadminbar, background: #fff;
}
/* Admin Menu */
#adminmenuback,
#adminmenuwrap, #adminmenuwrap,
#adminmenuback { #adminmenu {
background-color: #ffcb04 !important; margin-top: 12px;
background: #f0f0f0;
width: 300px;
} }
#toplevel_page_limit-login-attempts, #adminmenu {
#wp-admin-bar-llar-root { background-color: #ffffff;
display: none; border-radius: 10px;
} }
.wp-submenu-wrap, #adminmenu a {
.wp-submenu-head { color: #1d4899 !important;
color: #FFFFFF !important;
}
.wp-has-submenu,
.wp-not-current-submenu,
.menu-top,
#collapse-button,
#wp-submenu ul,
#wp-admin-bar-site-name,
.ab-item
{
color: #46484d !important;
font-weight: bold !important; font-weight: bold !important;
margin-left: 30px !important;
} }
.wp-menu-open ,
.wp-has-current-submenu li,
#adminmenu ul #wpbody {
background-color: #f0f0f0;
position: relative;
padding-left: 150px;
padding-top: 25px;
}
#wpfooter, #wpwrap
{ {
background-color: #3163bd !important; background-color: #f0f0f0;
color: #FFFFFF !important;
} }
.wp-not-current-submenu:hover, #wpfooter {
#wpadminbar .ab-item:hover padding-left: 150px;
{ }
background-color: #3163bd !important; #wpbody-content {
color: #FFFFFF !important; background-color: #ffffff;
width: 95%;
padding-left: 50px;
box-shadow: 10px 10px 10px #c0c0c0;
border-radius: 10px;
border-width: 1px;
border-style: solid;
border-color: #c0c0c0;
} }
.ab-submenu {
background-color: #ffcb04 !important;
#adminmenu div.wp-menu-image:before {
color: #f1f3f3;
} }
#wp-admin-bar-updates, #adminmenu a:hover,
#wp-admin-bar-comments, #adminmenu li.menu-top:hover,
#wp-admin-bar-new-content, #adminmenu li.opensub > a.menu-top,
#wp-admin-bar-wp-logo #adminmenu li > a.menu-top:focus {
{ color: #1d4899;
font-weight: bold;
background: linear-gradient(to right, #efefef, rgba(255, 203, 4, 0.45));
border-radius: 10px;
border-width: 0 !important;
}
#adminmenu li.menu-top:hover div.wp-menu-image:before,
#adminmenu li.opensub > a.menu-top div.wp-menu-image:before {
color: #1d4899;
font-weight: bold;
background: linear-gradient(to right, #efefef, rgba(255, 203, 4, 0.45));
border-radius: 10px;
border-width: 0;}
/* Active tabs use a bottom border color that matches the page background color. */
.about-wrap .nav-tab-active,
.nav-tab-active,
.nav-tab-active:hover {
background-color: #fff;
border-bottom-color: #fff;
}
/* Admin Menu: submenu */
#adminmenu .wp-submenu,
#adminmenu .wp-has-current-submenu .wp-submenu,
#adminmenu .wp-has-current-submenu.opensub .wp-submenu,
.folded #adminmenu .wp-has-current-submenu .wp-submenu,
#adminmenu a.wp-has-current-submenu:focus + .wp-submenu {
background: #ffffff;
width: 300px;
}
#adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after {
display: none; display: none;
} }
.bdp_submit:hover { #adminmenu .wp-submenu .wp-submenu-head {
color: #ffffff; color: #ccdbe0;
background-color: #3163bd;
cursor: pointer;
border-radius: 5px;
} }
.bdp_submit { #adminmenu .wp-submenu a,
background-color: #ffffff; #adminmenu .wp-has-current-submenu .wp-submenu a,
padding: 5px 25px; .folded #adminmenu .wp-has-current-submenu .wp-submenu a,
border-style: solid; #adminmenu a.wp-has-current-submenu:focus + .wp-submenu a,
border-width: 1px; #adminmenu .wp-has-current-submenu.opensub .wp-submenu a {
border-color: #769be7; color: #ccdbe0;
cursor: pointer;
border-radius: 5px;
box-shadow: 2px 2px 2px #d0d0d0;
} }
#bdp_success { #adminmenu .wp-submenu a:focus, #adminmenu .wp-submenu a:hover,
background-color: #ffffff; #adminmenu .wp-has-current-submenu .wp-submenu a:focus,
border-color: #c3c4c7; #adminmenu .wp-has-current-submenu .wp-submenu a:hover,
border-left-color: #00a32a; .folded #adminmenu .wp-has-current-submenu .wp-submenu a:focus,
padding: 10px 12px; .folded #adminmenu .wp-has-current-submenu .wp-submenu a:hover,
margin: 5px 0 15px; #adminmenu a.wp-has-current-submenu:focus + .wp-submenu a:focus,
border-width: 1px; #adminmenu a.wp-has-current-submenu:focus + .wp-submenu a:hover,
border-style: solid; #adminmenu .wp-has-current-submenu.opensub .wp-submenu a:focus,
border-left-width: 4px; #adminmenu .wp-has-current-submenu.opensub .wp-submenu a:hover {
width: 97%; color: #f0f0f0;
}
} /* Admin Menu: current */
#adminmenu .wp-submenu li.current a,
#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a,
#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a {
color: #f2fcff;
}
#adminmenu .wp-submenu li.current a:hover, #adminmenu .wp-submenu li.current a:focus,
#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:hover,
#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:focus,
#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:hover,
#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:focus {
color: #e0e0e0;
}
ul#adminmenu a.wp-has-current-submenu:after,
ul#adminmenu > li.current > a.current:after {
border-right-color: #fff;
display: none;
}
#adminmenu li.current a.menu-top,
#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu,
#adminmenu li.wp-has-current-submenu .wp-submenu .wp-submenu-head,
.folded #adminmenu li.current.menu-top {
color: #000000;
background: linear-gradient(to right, #efefef, rgba(255, 203, 4, 0.45));
border-radius: 10px;
}
#adminmenu li.wp-has-current-submenu div.wp-menu-image:before,
#adminmenu a.current:hover div.wp-menu-image:before,
#adminmenu li.wp-has-current-submenu a:focus div.wp-menu-image:before,
#adminmenu li.wp-has-current-submenu.opensub div.wp-menu-image:before,
#adminmenu li:hover div.wp-menu-image:before,
#adminmenu li a:focus div.wp-menu-image:before,
#adminmenu li.opensub div.wp-menu-image:before,
.ie8 #adminmenu li.opensub div.wp-menu-image:before {
color: #f2fcff;
}
.wp-menu-open .wp-submenu li {
padding-left: 30px !important;
color: #1d4899 !important;
font-weight: bold;
}
/* Admin Menu: bubble */
#adminmenu .awaiting-mod,
#adminmenu .update-plugins {
color: #f2fcff;
background: #aa9d88;
}
#adminmenu li.current a .awaiting-mod,
#adminmenu li a.wp-has-current-submenu .update-plugins,
#adminmenu li:hover a .awaiting-mod,
#adminmenu li.menu-top:hover > a .update-plugins {
color: #f2fcff;
background: #627c83;
}
/* Admin Menu: collapse button */
#collapse-button {
display: none;
color: #1d4899;
font-weight: bold;
border-radius: 10px;
border-width: 0;
}
#collapse-button:hover,
#collapse-button:focus {
color: rgba(255, 203, 4, 0.45);
}
/* Admin Bar */
#wpadminbar {
color: #f2fcff;
background: #738e96;
}
#wpadminbar .ab-item,
#wpadminbar a.ab-item,
#wpadminbar > #wp-toolbar span.ab-label,
#wpadminbar > #wp-toolbar span.noticon {
color: #f2fcff;
}
#wpadminbar .ab-icon,
#wpadminbar .ab-icon:before,
#wpadminbar .ab-item:before,
#wpadminbar .ab-item:after {
color: #f1f3f3;
}
#wpadminbar:not(.mobile) .ab-top-menu > li:hover > .ab-item,
#wpadminbar:not(.mobile) .ab-top-menu > li > .ab-item:focus,
#wpadminbar.nojq .quicklinks .ab-top-menu > li > .ab-item:focus,
#wpadminbar.nojs .ab-top-menu > li.menupop:hover > .ab-item,
#wpadminbar .ab-top-menu > li.menupop.hover > .ab-item {
color: #9ebaa0;
background: #627c83;
}
#wpadminbar:not(.mobile) > #wp-toolbar li:hover span.ab-label,
#wpadminbar:not(.mobile) > #wp-toolbar li.hover span.ab-label,
#wpadminbar:not(.mobile) > #wp-toolbar a:focus span.ab-label {
color: #9ebaa0;
}
#wpadminbar:not(.mobile) li:hover .ab-icon:before,
#wpadminbar:not(.mobile) li:hover .ab-item:before,
#wpadminbar:not(.mobile) li:hover .ab-item:after,
#wpadminbar:not(.mobile) li:hover #adminbarsearch:before {
color: #f2fcff;
}
/* Admin Bar: submenu */
#wpadminbar .menupop .ab-sub-wrapper {
background: #627c83;
}
#wpadminbar .quicklinks .menupop ul.ab-sub-secondary,
#wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu {
background: #8f9a9e;
}
#wpadminbar .ab-submenu .ab-item,
#wpadminbar .quicklinks .menupop ul li a,
#wpadminbar .quicklinks .menupop.hover ul li a,
#wpadminbar.nojs .quicklinks .menupop:hover ul li a {
color: #ccdbe0;
}
#wpadminbar .quicklinks li .blavatar,
#wpadminbar .menupop .menupop > .ab-item:before {
color: #f1f3f3;
}
#wpadminbar .quicklinks .menupop ul li a:hover,
#wpadminbar .quicklinks .menupop ul li a:focus,
#wpadminbar .quicklinks .menupop ul li a:hover strong,
#wpadminbar .quicklinks .menupop ul li a:focus strong,
#wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover > a,
#wpadminbar .quicklinks .menupop.hover ul li a:hover,
#wpadminbar .quicklinks .menupop.hover ul li a:focus,
#wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover,
#wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus,
#wpadminbar li:hover .ab-icon:before,
#wpadminbar li:hover .ab-item:before,
#wpadminbar li a:focus .ab-icon:before,
#wpadminbar li .ab-item:focus:before,
#wpadminbar li .ab-item:focus .ab-icon:before,
#wpadminbar li.hover .ab-icon:before,
#wpadminbar li.hover .ab-item:before,
#wpadminbar li:hover #adminbarsearch:before,
#wpadminbar li #adminbarsearch.adminbar-focused:before {
color: #9ebaa0;
}
#wpadminbar .quicklinks li a:hover .blavatar,
#wpadminbar .quicklinks li a:focus .blavatar,
#wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover > a .blavatar,
#wpadminbar .menupop .menupop > .ab-item:hover:before,
#wpadminbar.mobile .quicklinks .ab-icon:before,
#wpadminbar.mobile .quicklinks .ab-item:before {
color: #9ebaa0;
}
#wpadminbar.mobile .quicklinks .hover .ab-icon:before,
#wpadminbar.mobile .quicklinks .hover .ab-item:before {
color: #f1f3f3;
}
/* Admin Bar: search */
#wpadminbar #adminbarsearch:before {
color: #f1f3f3;
}
#wpadminbar > #wp-toolbar > #wp-admin-bar-top-secondary > #wp-admin-bar-search #adminbarsearch input.adminbar-input:focus {
color: #f2fcff;
background: #879ea5;
}
/* Admin Bar: recovery mode */
#wpadminbar #wp-admin-bar-recovery-mode {
color: #f2fcff;
background-color: #aa9d88;
}
#wpadminbar #wp-admin-bar-recovery-mode .ab-item,
#wpadminbar #wp-admin-bar-recovery-mode a.ab-item {
color: #f2fcff;
}
#wpadminbar .ab-top-menu > #wp-admin-bar-recovery-mode.hover > .ab-item,
#wpadminbar.nojq .quicklinks .ab-top-menu > #wp-admin-bar-recovery-mode > .ab-item:focus,
#wpadminbar:not(.mobile) .ab-top-menu > #wp-admin-bar-recovery-mode:hover > .ab-item,
#wpadminbar:not(.mobile) .ab-top-menu > #wp-admin-bar-recovery-mode > .ab-item:focus {
color: #f2fcff;
background-color: #998d7a;
}
/* Admin Bar: my account */
#wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar > a img {
border-color: #879ea5;
background-color: #ff0000;
width: 250px;
}
#wpadminbar #wp-admin-bar-user-info .display-name {
color: #f2fcff;
}
#wpadminbar #wp-admin-bar-user-info a:hover .display-name {
color: #9ebaa0;
}
#wpadminbar #wp-admin-bar-user-info .username {
color: #ccdbe0;
}
/* Pointers */
.wp-pointer .wp-pointer-content h3 {
background-color: #9ebaa0;
border-color: #8faf91;
}
.wp-pointer .wp-pointer-content h3:before {
color: #9ebaa0;
}
.wp-pointer.wp-pointer-top .wp-pointer-arrow,
.wp-pointer.wp-pointer-top .wp-pointer-arrow-inner,
.wp-pointer.wp-pointer-undefined .wp-pointer-arrow,
.wp-pointer.wp-pointer-undefined .wp-pointer-arrow-inner {
border-bottom-color: #9ebaa0;
}
/* Media */
.media-item .bar,
.media-progress-bar div {
background-color: #9ebaa0;
}
.details.attachment {
box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 7px #9ebaa0;
}
.attachment.details .check {
background-color: #9ebaa0;
box-shadow: 0 0 0 1px #fff, 0 0 0 2px #9ebaa0;
}
.media-selection .attachment.selection.details .thumbnail {
box-shadow: 0 0 0 1px #fff, 0 0 0 3px #9ebaa0;
}
/* Themes */
.theme-browser .theme.active .theme-name,
.theme-browser .theme.add-new-theme a:hover:after,
.theme-browser .theme.add-new-theme a:focus:after {
background: #9ebaa0;
}
.theme-browser .theme.add-new-theme a:hover span:after,
.theme-browser .theme.add-new-theme a:focus span:after {
color: #9ebaa0;
}
.theme-section.current,
.theme-filter.current {
border-bottom-color: #738e96;
}
body.more-filters-opened .more-filters {
color: #f2fcff;
background-color: #738e96;
}
body.more-filters-opened .more-filters:before {
color: #f2fcff;
}
body.more-filters-opened .more-filters:hover,
body.more-filters-opened .more-filters:focus {
background-color: #9ebaa0;
color: #f2fcff;
}
body.more-filters-opened .more-filters:hover:before,
body.more-filters-opened .more-filters:focus:before {
color: #f2fcff;
}
/* Widgets */
.widgets-chooser li.widgets-chooser-selected {
background-color: #9ebaa0;
color: #f2fcff;
}
.widgets-chooser li.widgets-chooser-selected:before,
.widgets-chooser li.widgets-chooser-selected:focus:before {
color: #f2fcff;
}
/* Responsive Component */
div#wp-responsive-toggle a:before {
color: #f1f3f3;
}
.wp-responsive-open div#wp-responsive-toggle a {
border-color: transparent;
background: #9ebaa0;
}
.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a {
background: #627c83;
}
.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before {
color: #f1f3f3;
}
/* TinyMCE */
.mce-container.mce-menu .mce-menu-item:hover,
.mce-container.mce-menu .mce-menu-item.mce-selected,
.mce-container.mce-menu .mce-menu-item:focus,
.mce-container.mce-menu .mce-menu-item-normal.mce-active,
.mce-container.mce-menu .mce-menu-item-preview.mce-active {
background: #9ebaa0;
}

View File

@ -1,4 +1,3 @@
<div id="wpbody-content">
<h1>Über dieses Plugin</h1> <h1>Über dieses Plugin</h1>

View File

@ -1,5 +1,4 @@
<?php <?php
echo '<div id="wpbody-content">';
echo '<h1>Kalender-Einstellungen</h1>'; echo '<h1>Kalender-Einstellungen</h1>';
if (isset($_POST['submit'])) { if (isset($_POST['submit'])) {
echo '<div id="bdp_success">Die Einstellungen wurden gespeichert.</div>'; echo '<div id="bdp_success">Die Einstellungen wurden gespeichert.</div>';
@ -22,7 +21,6 @@ if (null !== $categories) {
} }
?> ?>
<form method="post" action="admin.php?page=bdp-kompass%2Fmodules%2Findex.php&loadmodule=calendar"> <form method="post" action="admin.php?page=bdp-kompass%2Fmodules%2Findex.php&loadmodule=calendar">
<div class="bdp_cal_outer">
<fieldset class="bdp_cal_inner"> <fieldset class="bdp_cal_inner">
<legend>Datenabfrage</legend> <legend>Datenabfrage</legend>
@ -84,8 +82,5 @@ if (null !== $categories) {
<td class="bdp_cal_event_grey"></td> <td class="bdp_cal_event_grey"></td>
</tr> </tr>
</table> </table>
</fieldset> <input class="button" type="submit" name="submit" value="Einstellungen speichern">
<input class="bdp_submit" type="submit" name="submit" value="Einstellungen speichern">
</form> </form>
</div>
</div>

View File

@ -10,12 +10,13 @@ class Security
{ {
public const required_security_plugins = [ public const required_security_plugins = [
'wps_hide_login' => ['downloadUrl' => 'https://downloads.wordpress.org/plugin/wps-hide-login.1.9.10.zip'], 'wps_hide_login' => ['downloadUrl' => 'https://downloads.wordpress.org/plugin/wps-hide-login.1.9.10.zip'],
'limit-login-attempts-reloaded' => ['downloadUrl' => 'https://downloads.wordpress.org/plugin/limit-login-attempts-reloaded.2.25.27.zip']]; ];
public const delete_plugins = [ public const delete_plugins = [
'akismet/akismet.php', 'akismet/akismet.php',
'hello.php' 'hello.php',
'limit-login-attempts-reloaded'
]; ];
public static function setup() public static function setup()