Der eigene Divi-Reiter entfällt. DiviAdminExtras behält Admin-Hinweis, Orphan-Bereinigung vor der Ausgabe (lit_mcp_compat_profile_load), Hinweis zum nächsten Schritt und zur privaten Testseite (lit_mcp_compat_profile_intro), Zustandstexte mit Quelle (lit_mcp_compat_explanation), Automatik-Notiz und Visual-Builder-Hinweis (lit_mcp_compat_profile_extra) sowie die Spalten Quelle, Probleme und Betroffene Tools über die neue, gegen fehlerhafte Callbacks abgesicherte Erweiterung lit_mcp_compat_capability_columns. Texte, Doku, CSS (lit-mcp-compat-*) und Smoke auf den neuen Reiter umgestellt, tote divi_*-Hinweise entfernt. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
570 lines
10 KiB
CSS
570 lines
10 KiB
CSS
/* Einstellungen → LIT MCP. Only small additions to WordPress' own admin styles. */
|
||
|
||
/* Header: title left, logo right; wraps instead of overlapping on narrow screens. */
|
||
.lit-mcp-header {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
gap: 8px 16px;
|
||
}
|
||
|
||
.lit-mcp-logo-link {
|
||
display: inline-block;
|
||
padding: 4px 0;
|
||
}
|
||
|
||
.lit-mcp-logo {
|
||
display: block;
|
||
height: 30px;
|
||
width: auto;
|
||
}
|
||
|
||
@media screen and (max-width: 782px) {
|
||
.lit-mcp-logo {
|
||
height: 22px;
|
||
}
|
||
}
|
||
|
||
.lit-mcp .nav-tab-wrapper {
|
||
margin-bottom: 1em;
|
||
}
|
||
|
||
/*
|
||
* Phones: the tabs form an even grid instead of ragged wrapped lines, each at least 44 px high
|
||
* (core's tab is about 34 px). The active tab keeps core's look, marked by its colour and underline.
|
||
*/
|
||
@media screen and (max-width: 782px) {
|
||
.lit-mcp .nav-tab-wrapper {
|
||
display: grid;
|
||
grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
|
||
gap: 4px;
|
||
padding-bottom: 0;
|
||
border-bottom: 0;
|
||
}
|
||
|
||
.lit-mcp .nav-tab-wrapper .nav-tab {
|
||
float: none;
|
||
margin: 0;
|
||
padding: 12px 8px;
|
||
text-align: center;
|
||
border: 1px solid #c3c4c7;
|
||
}
|
||
|
||
.lit-mcp .nav-tab-wrapper .nav-tab-active {
|
||
border-color: #2271b1;
|
||
box-shadow: inset 0 -2px 0 #2271b1;
|
||
}
|
||
}
|
||
|
||
/* Muted secondary text (tool names, client URLs). */
|
||
.lit-mcp-muted,
|
||
.lit-mcp-tool-name {
|
||
color: #646970;
|
||
font-size: 12px;
|
||
overflow-wrap: anywhere;
|
||
}
|
||
|
||
.lit-mcp-tool-name {
|
||
font-family: Consolas, Monaco, monospace;
|
||
}
|
||
|
||
/* Tab "Verbindung". */
|
||
.lit-mcp-steps {
|
||
max-width: 50rem;
|
||
}
|
||
|
||
.lit-mcp-steps li {
|
||
margin-bottom: 0.75em;
|
||
}
|
||
|
||
/* Label and field share a line; the field takes the rest and wraps below on narrow screens. */
|
||
.lit-mcp-url-line {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
align-items: center;
|
||
gap: 6px 8px;
|
||
}
|
||
|
||
.lit-mcp-url-line .lit-mcp-copy-row {
|
||
flex: 1 1 22rem;
|
||
margin-top: 0;
|
||
}
|
||
|
||
.lit-mcp-copy-row {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
align-items: center;
|
||
gap: 6px 8px;
|
||
margin-top: 6px;
|
||
}
|
||
|
||
.lit-mcp-copy-row input.large-text {
|
||
flex: 1 1 22rem;
|
||
width: auto;
|
||
}
|
||
|
||
.lit-mcp-copy-row .success {
|
||
color: #007017;
|
||
}
|
||
|
||
.lit-mcp-status {
|
||
margin: 0 0 1em;
|
||
}
|
||
|
||
.lit-mcp-status li {
|
||
display: flex;
|
||
align-items: baseline;
|
||
flex-wrap: wrap;
|
||
gap: 0 6px;
|
||
margin-bottom: 8px;
|
||
}
|
||
|
||
.lit-mcp-status .dashicons {
|
||
align-self: center;
|
||
}
|
||
|
||
.lit-mcp-status-detail {
|
||
color: #50575e;
|
||
}
|
||
|
||
.lit-mcp-state .dashicons {
|
||
vertical-align: text-bottom;
|
||
}
|
||
|
||
/* Tab "Compatibility": the report is a plain list, the icon replaces the bullet. */
|
||
.lit-mcp-compat-report {
|
||
list-style: none;
|
||
margin-left: 0;
|
||
}
|
||
|
||
.lit-mcp-compat-report ul {
|
||
list-style: disc;
|
||
margin-left: 2em;
|
||
}
|
||
|
||
.lit-mcp-status-yes-alt .dashicons {
|
||
color: #008a20;
|
||
}
|
||
|
||
.lit-mcp-status-warning .dashicons {
|
||
color: #996800;
|
||
}
|
||
|
||
.lit-mcp-status-dismiss .dashicons {
|
||
color: #d63638;
|
||
}
|
||
|
||
/* Folded help ("Wo finde ich das?") and the Divi detail table. */
|
||
.lit-mcp-hint,
|
||
.lit-mcp-compat-details {
|
||
margin-top: 6px;
|
||
}
|
||
|
||
.lit-mcp-hint summary,
|
||
.lit-mcp-compat-details summary {
|
||
cursor: pointer;
|
||
}
|
||
|
||
.lit-mcp-hint p {
|
||
max-width: 40rem;
|
||
}
|
||
|
||
.lit-mcp-compat-details summary {
|
||
font-size: 14px;
|
||
font-weight: 600;
|
||
margin: 1em 0 0.5em;
|
||
}
|
||
|
||
/* Only on phones: text that replaces a hidden column. */
|
||
.lit-mcp-phone-only {
|
||
display: none;
|
||
}
|
||
|
||
/* Tab "Zugriff". */
|
||
.lit-mcp-connections + .description {
|
||
margin-top: 8px;
|
||
}
|
||
|
||
.lit-mcp-connections .column-actions {
|
||
width: 8em;
|
||
text-align: right;
|
||
}
|
||
|
||
@media screen and (max-width: 782px) {
|
||
.lit-mcp-connections .column-created {
|
||
display: none;
|
||
}
|
||
|
||
.lit-mcp-phone-only {
|
||
display: inline;
|
||
}
|
||
|
||
.lit-mcp-connections .column-actions {
|
||
width: auto;
|
||
}
|
||
|
||
.lit-mcp-copy-row input.large-text {
|
||
font-size: 13px;
|
||
}
|
||
}
|
||
|
||
/* Tab "Tools": search and open/close above the groups, legend, collapsible groups (WordPress postboxes). */
|
||
.lit-mcp-toolbar {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
align-items: center;
|
||
gap: 6px 12px;
|
||
margin: 0 0 12px;
|
||
}
|
||
|
||
.lit-mcp-tool-search {
|
||
min-width: 16rem;
|
||
}
|
||
|
||
.lit-mcp-filter-status {
|
||
color: #50575e;
|
||
}
|
||
|
||
.lit-mcp-groups [hidden] {
|
||
display: none !important;
|
||
}
|
||
|
||
.lit-mcp-group-reset {
|
||
font-size: 13px;
|
||
}
|
||
|
||
/* Phones: touch targets of at least 24 px (WCAG 2.5.8) for the reset link and the folded help. */
|
||
@media screen and (max-width: 782px) {
|
||
.lit-mcp-group-reset {
|
||
min-height: 32px;
|
||
}
|
||
|
||
.lit-mcp-hint summary,
|
||
.lit-mcp-compat-details summary {
|
||
padding: 6px 0;
|
||
}
|
||
}
|
||
|
||
/* Explains the icons that replace the "Art" words on phones. */
|
||
.lit-mcp-kind-legend {
|
||
display: none;
|
||
}
|
||
|
||
.lit-mcp-legend {
|
||
display: grid;
|
||
grid-template-columns: max-content 1fr;
|
||
gap: 2px 12px;
|
||
margin: 1em 0;
|
||
}
|
||
|
||
.lit-mcp-legend dt {
|
||
font-weight: 600;
|
||
}
|
||
|
||
.lit-mcp-legend dd {
|
||
margin: 0;
|
||
}
|
||
|
||
.lit-mcp-groups .postbox-header {
|
||
flex-wrap: wrap;
|
||
gap: 0 12px;
|
||
padding-left: 12px;
|
||
}
|
||
|
||
/*
|
||
* The title keeps room of its own (12rem): when title, arrow and controls do not fit one line, the controls
|
||
* drop to the next line instead of squeezing the title into a narrow column or sending the arrow alone below it.
|
||
*/
|
||
.lit-mcp-groups .postbox .hndle {
|
||
flex: 1 1 12rem;
|
||
min-width: 0;
|
||
cursor: pointer;
|
||
justify-content: flex-start;
|
||
gap: 6px;
|
||
padding: 8px 0;
|
||
margin: 0;
|
||
font-size: 14px;
|
||
line-height: 1.4;
|
||
}
|
||
|
||
.lit-mcp-groups .hndle .count {
|
||
color: #646970;
|
||
font-weight: 400;
|
||
}
|
||
|
||
.lit-mcp-group-summary {
|
||
color: #646970;
|
||
font-size: 13px;
|
||
font-weight: 400;
|
||
}
|
||
|
||
.lit-mcp-group-summary::before {
|
||
content: "– ";
|
||
}
|
||
|
||
.lit-mcp-groups .postbox:not(.closed) .lit-mcp-group-summary {
|
||
display: none;
|
||
}
|
||
|
||
.lit-mcp-group-controls {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
align-items: center;
|
||
gap: 4px 16px;
|
||
padding: 6px 0;
|
||
}
|
||
|
||
.lit-mcp-group-controls .description {
|
||
font-style: italic;
|
||
}
|
||
|
||
.lit-mcp-groups .handle-actions {
|
||
padding-right: 6px;
|
||
}
|
||
|
||
/* Same arrow indicator as WordPress' own meta boxes (core scopes it to .meta-box-sortables). */
|
||
.lit-mcp-groups .postbox .toggle-indicator::before {
|
||
content: "\f142";
|
||
content: "\f142" / '';
|
||
display: inline-block;
|
||
font: normal 20px/1 dashicons;
|
||
-webkit-font-smoothing: antialiased;
|
||
-moz-osx-font-smoothing: grayscale;
|
||
text-decoration: none;
|
||
}
|
||
|
||
.lit-mcp-groups .postbox.closed .toggle-indicator::before {
|
||
content: "\f140";
|
||
content: "\f140" / '';
|
||
}
|
||
|
||
.lit-mcp-groups .postbox .inside {
|
||
margin: 0;
|
||
padding: 0;
|
||
}
|
||
|
||
.lit-mcp-tools-table {
|
||
table-layout: fixed;
|
||
border: 0;
|
||
box-shadow: none;
|
||
}
|
||
|
||
.lit-mcp-tools-table .column-tool {
|
||
width: 55%;
|
||
}
|
||
|
||
.lit-mcp-tools-table .column-kind {
|
||
width: 15%;
|
||
}
|
||
|
||
.lit-mcp-tools-table .column-mode {
|
||
width: 30%;
|
||
}
|
||
|
||
.lit-mcp-tools-table td {
|
||
vertical-align: middle;
|
||
}
|
||
|
||
.lit-mcp-tools-table select {
|
||
max-width: 100%;
|
||
}
|
||
|
||
.lit-mcp-tools-table .description {
|
||
margin: 4px 0 0;
|
||
}
|
||
|
||
.lit-mcp-kind {
|
||
color: #50575e;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.lit-mcp-kind .dashicons {
|
||
font-size: 16px;
|
||
width: 16px;
|
||
height: 16px;
|
||
vertical-align: text-bottom;
|
||
color: #787c82;
|
||
}
|
||
|
||
@media screen and (max-width: 782px) {
|
||
/* No "order": title, toggle, controls read the same for the eye and for Tab. */
|
||
.lit-mcp-groups .lit-mcp-group-controls {
|
||
flex-basis: 100%;
|
||
padding-bottom: 10px;
|
||
}
|
||
|
||
.lit-mcp-kind-legend {
|
||
display: block;
|
||
}
|
||
|
||
/* Room for "Standard (indirekt)" in the select on phones. */
|
||
.lit-mcp-tools-table .column-tool {
|
||
width: 40%;
|
||
}
|
||
|
||
.lit-mcp-tools-table .column-kind {
|
||
width: 10%;
|
||
}
|
||
|
||
.lit-mcp-tools-table .column-mode {
|
||
width: 50%;
|
||
}
|
||
|
||
.lit-mcp-tools-table th,
|
||
.lit-mcp-tools-table td {
|
||
padding-left: 6px;
|
||
padding-right: 6px;
|
||
}
|
||
|
||
/* Icon only on phones; the word stays for screen readers (and as tooltip-free fallback). */
|
||
.lit-mcp-kind-text {
|
||
position: absolute;
|
||
width: 1px;
|
||
height: 1px;
|
||
overflow: hidden;
|
||
clip-path: inset(50%);
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.lit-mcp-tools-table select {
|
||
width: 100%;
|
||
font-size: 14px;
|
||
padding-right: 20px;
|
||
background-position: right 2px top 55%;
|
||
}
|
||
}
|
||
|
||
/* Tab "Compatibility": on phones each row of the feature table becomes a card named by data-label. */
|
||
@media screen and (max-width: 782px) {
|
||
.lit-mcp-compat-features thead {
|
||
position: absolute;
|
||
width: 1px;
|
||
height: 1px;
|
||
overflow: hidden;
|
||
clip-path: inset(50%);
|
||
}
|
||
|
||
.lit-mcp-compat-features tr,
|
||
.lit-mcp-compat-features td {
|
||
display: block;
|
||
}
|
||
|
||
/* One card per row: a rule and room between them, the feature name first and bold. */
|
||
.lit-mcp-compat-features tr {
|
||
padding: 8px 0;
|
||
border-bottom: 1px solid #c3c4c7;
|
||
}
|
||
|
||
.lit-mcp-compat-features td:first-child {
|
||
font-weight: 600;
|
||
}
|
||
|
||
.lit-mcp-compat-features code {
|
||
overflow-wrap: anywhere;
|
||
}
|
||
|
||
.lit-mcp-compat-features td::before {
|
||
content: attr(data-label) ": ";
|
||
font-weight: 600;
|
||
}
|
||
|
||
.lit-mcp-compat-features ul {
|
||
margin: 0;
|
||
}
|
||
}
|
||
|
||
/* Tab "Protokoll": filters in their own block above the table (core hides ".tablenav .actions"
|
||
on phones); a core-style list table whose change is the wide primary column. */
|
||
.lit-mcp-log-filters {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
align-items: center;
|
||
gap: 6px 8px;
|
||
margin: 8px 0;
|
||
}
|
||
|
||
.lit-mcp-log-filters select {
|
||
max-width: 14rem;
|
||
}
|
||
|
||
.lit-mcp-dates {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
align-items: center;
|
||
gap: 6px 8px;
|
||
}
|
||
|
||
.lit-mcp-date {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 4px;
|
||
}
|
||
|
||
.lit-mcp-log-filters .lit-mcp-reset {
|
||
line-height: 2.30769231;
|
||
}
|
||
|
||
/* "Protokoll leeren": a destructive action, kept apart from the data it removes. */
|
||
.lit-mcp-clear-log {
|
||
margin-top: 1em;
|
||
text-align: right;
|
||
}
|
||
|
||
.lit-mcp .lit_mcp_log_entries .column-object {
|
||
width: 24%;
|
||
}
|
||
|
||
.lit-mcp .lit_mcp_log_entries .column-user {
|
||
width: 12em;
|
||
}
|
||
|
||
.lit-mcp .lit_mcp_log_entries .column-created_at {
|
||
width: 11em;
|
||
}
|
||
|
||
.lit-mcp .lit_mcp_log_entries .column-object,
|
||
.lit-mcp .lit_mcp_log_entries .column-user .lit-mcp-muted {
|
||
overflow-wrap: anywhere;
|
||
}
|
||
|
||
.lit-mcp-summary {
|
||
margin-bottom: 2px;
|
||
}
|
||
|
||
/* Non-ok results: a notice-coloured badge and a marked row (like core's unapproved comments);
|
||
#the-list beats core's "no shadow on the last row". */
|
||
.lit-mcp-badge {
|
||
display: inline-block;
|
||
padding: 0 6px;
|
||
border-radius: 2px;
|
||
font-size: 12px;
|
||
font-weight: 600;
|
||
line-height: 1.7;
|
||
}
|
||
|
||
.lit-mcp-badge-warning {
|
||
background: #fcf9e8;
|
||
color: #614a19;
|
||
box-shadow: inset 0 0 0 1px #dba617;
|
||
}
|
||
|
||
.lit-mcp-badge-error {
|
||
background: #fcf0f1;
|
||
color: #8a2424;
|
||
box-shadow: inset 0 0 0 1px #d63638;
|
||
}
|
||
|
||
.lit-mcp #the-list tr.lit-mcp-row-warning > :first-child {
|
||
box-shadow: inset 4px 0 0 #dba617;
|
||
}
|
||
|
||
.lit-mcp #the-list tr.lit-mcp-row-error > :first-child {
|
||
box-shadow: inset 4px 0 0 #d63638;
|
||
}
|
||
|
||
/* Tab "Limits". */
|
||
.lit-mcp-unit {
|
||
margin-left: 4px;
|
||
}
|