wp-multi-kategorie.php aktualisiert
This commit is contained in:
parent
e37fd6278a
commit
4505999060
@ -73,92 +73,96 @@ function wpmkategorie_admin_menu() {
|
||||
}
|
||||
|
||||
// CSS für modernes Design
|
||||
// CSS nur für die Seite des Plugins
|
||||
function wpmkategorie_enqueue_styles() {
|
||||
echo '<style>
|
||||
.wrap {
|
||||
background-color: #f9f9f9;
|
||||
padding: 20px;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
// Überprüfen, ob wir auf der Seite des Plugins sind
|
||||
if (isset($_GET['page']) && $_GET['page'] === 'wp-multi-kategorie') {
|
||||
echo '<style>
|
||||
.wrap {
|
||||
background-color: #f9f9f9;
|
||||
padding: 20px;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
|
||||
font-size: 1.8rem;
|
||||
color: #333;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
h1 {
|
||||
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
|
||||
font-size: 1.8rem;
|
||||
color: #333;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.button {
|
||||
background-color: #0073aa;
|
||||
color: white;
|
||||
border: none;
|
||||
padding: 8px 15px;
|
||||
border-radius: 5px;
|
||||
cursor: pointer;
|
||||
font-size: 14px;
|
||||
}
|
||||
.button {
|
||||
background-color: #0073aa;
|
||||
color: white;
|
||||
border: none;
|
||||
padding: 8px 15px;
|
||||
border-radius: 5px;
|
||||
cursor: pointer;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.button-primary {
|
||||
background-color: #00a0d2;
|
||||
}
|
||||
.button-primary {
|
||||
background-color: #00a0d2;
|
||||
}
|
||||
|
||||
.button:hover {
|
||||
background-color: #006e8a;
|
||||
}
|
||||
.button:hover {
|
||||
background-color: #006e8a;
|
||||
}
|
||||
|
||||
.widefat th, .widefat td {
|
||||
padding: 12px;
|
||||
text-align: center;
|
||||
font-size: 14px;
|
||||
border-bottom: 1px solid #ddd;
|
||||
}
|
||||
.widefat th, .widefat td {
|
||||
padding: 12px;
|
||||
text-align: center;
|
||||
font-size: 14px;
|
||||
border-bottom: 1px solid #ddd;
|
||||
}
|
||||
|
||||
.widefat tr.alternate {
|
||||
background-color: #f1f1f1;
|
||||
}
|
||||
.widefat tr.alternate {
|
||||
background-color: #f1f1f1;
|
||||
}
|
||||
|
||||
.submit {
|
||||
margin-top: 20px;
|
||||
}
|
||||
.submit {
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
.notice-success, .notice-error {
|
||||
font-size: 16px;
|
||||
background-color: #e7f9e7;
|
||||
border: 1px solid #6ecf6e;
|
||||
padding: 15px;
|
||||
margin-bottom: 20px;
|
||||
border-radius: 5px;
|
||||
}
|
||||
.notice-success, .notice-error {
|
||||
font-size: 16px;
|
||||
background-color: #e7f9e7;
|
||||
border: 1px solid #6ecf6e;
|
||||
padding: 15px;
|
||||
margin-bottom: 20px;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
.notice-error {
|
||||
background-color: #fbe9e9;
|
||||
border-color: #f57c7c;
|
||||
}
|
||||
.notice-error {
|
||||
background-color: #fbe9e9;
|
||||
border-color: #f57c7c;
|
||||
}
|
||||
|
||||
.wp-multi-kategorie-form input[type="checkbox"] {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
margin: 0;
|
||||
}
|
||||
.wp-multi-kategorie-form input[type="checkbox"] {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* Banner mit Blauem Hintergrund und Logo zentriert */
|
||||
.wp-multi-kategorie-banner {
|
||||
background-color: #0073aa; /* Blaues Banner */
|
||||
color: white;
|
||||
height: 150px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
/* Banner mit Blauem Hintergrund und Logo zentriert */
|
||||
.wp-multi-kategorie-banner {
|
||||
background-color: #0073aa; /* Blaues Banner */
|
||||
color: white;
|
||||
height: 150px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.wp-multi-kategorie-banner img {
|
||||
max-height: 100px;
|
||||
max-width: 100%;
|
||||
object-fit: contain;
|
||||
}
|
||||
</style>';
|
||||
.wp-multi-kategorie-banner img {
|
||||
max-height: 100px;
|
||||
max-width: 100%;
|
||||
object-fit: contain;
|
||||
}
|
||||
</style>';
|
||||
}
|
||||
}
|
||||
add_action('admin_head', 'wpmkategorie_enqueue_styles');
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user