This commit is contained in:
rodolfomartinez 2026-02-02 00:13:36 -05:00
parent 572552ff13
commit 847ed92c23
10 changed files with 1232 additions and 591 deletions

View file

@ -6,7 +6,17 @@
/* Container */
.mlf-wrap {
max-width: 900px;
max-width: 800px;
}
.mlf-wrap > h1 {
margin-bottom: 0;
}
.mlf-description {
color: #646970;
margin-top: 8px;
margin-bottom: 20px;
}
.mlf-container {
@ -18,14 +28,16 @@
background: #fff;
border: 1px solid #c3c4c7;
border-radius: 4px;
padding: 20px;
padding: 20px 24px;
margin-bottom: 20px;
}
.mlf-section h2 {
margin-top: 0;
padding-bottom: 10px;
border-bottom: 1px solid #c3c4c7;
margin-bottom: 16px;
padding-bottom: 12px;
border-bottom: 1px solid #e0e0e0;
font-size: 1.1em;
}
/* Form */
@ -33,7 +45,11 @@
margin-bottom: 20px;
}
.mlf-form-row label {
.mlf-form-row:last-of-type {
margin-bottom: 0;
}
.mlf-form-row > label {
display: block;
font-weight: 600;
margin-bottom: 8px;
@ -43,126 +59,212 @@
width: 100%;
max-width: 400px;
padding: 8px 12px;
font-size: 14px;
}
.mlf-form-row .description {
margin-top: 8px;
color: #646970;
font-style: italic;
font-size: 13px;
}
/* Checkbox Grid */
.mlf-checkbox-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
gap: 10px;
/* Search Input */
.mlf-search-wrapper {
position: relative;
max-width: 500px;
}
.mlf-checkbox-grid-small {
grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
max-width: 300px;
.mlf-search-icon {
position: absolute;
left: 10px;
top: 50%;
transform: translateY(-50%);
color: #646970;
font-size: 18px;
width: 18px;
height: 18px;
}
.mlf-checkbox-label {
display: flex;
align-items: center;
gap: 8px;
padding: 8px 12px;
background: #f6f7f7;
border: 1px solid #dcdcde;
.mlf-search-input {
width: 100% !important;
max-width: none !important;
padding-left: 36px !important;
padding-right: 36px !important;
}
.mlf-search-spinner {
position: absolute;
right: 8px;
top: 50%;
transform: translateY(-50%);
float: none !important;
margin: 0 !important;
}
/* Search Results */
.mlf-search-results {
margin-top: 12px;
border: 1px solid #c3c4c7;
border-radius: 4px;
max-height: 400px;
overflow-y: auto;
background: #fff;
}
.mlf-results-list {
padding: 0;
}
.mlf-result-item {
padding: 16px;
border-bottom: 1px solid #e0e0e0;
cursor: pointer;
transition: background-color 0.15s ease;
}
.mlf-checkbox-label:hover {
background: #f0f0f1;
.mlf-result-item:last-child {
border-bottom: none;
}
.mlf-checkbox-label input[type="checkbox"] {
margin: 0;
.mlf-result-item:hover {
background: #f0f6fc;
}
.mlf-checkbox-label input[type="checkbox"]:checked + span {
.mlf-result-info {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 8px;
}
.mlf-result-name {
font-weight: 600;
font-size: 15px;
color: #1d2327;
}
/* File Count */
.mlf-form-row-info {
padding: 12px 16px;
.mlf-result-category {
font-size: 12px;
color: #646970;
padding: 2px 8px;
background: #f0f0f1;
border-radius: 3px;
}
.mlf-result-badges {
display: flex;
gap: 6px;
}
.mlf-badge {
font-size: 11px;
padding: 2px 8px;
border-radius: 3px;
font-weight: 500;
}
.mlf-badge-variable {
background: #d4edda;
color: #155724;
}
.mlf-result-preview {
font-size: 22px;
color: #50575e;
line-height: 1.3;
padding-top: 4px;
}
.mlf-no-results {
padding: 24px;
text-align: center;
color: #646970;
font-style: italic;
}
/* Selected Font */
.mlf-selected-font {
margin-top: 16px;
padding: 16px;
background: #f0f6fc;
border: 1px solid #c5d9ed;
border-radius: 4px;
}
.mlf-file-count {
.mlf-selected-font-header {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 16px;
padding-bottom: 12px;
border-bottom: 1px solid #c5d9ed;
}
.mlf-selected-label {
color: #646970;
font-size: 13px;
}
.mlf-selected-name {
font-weight: 600;
font-size: 16px;
color: #1d2327;
flex: 1;
}
.mlf-change-font {
background: none;
border: none;
color: #2271b1;
cursor: pointer;
font-size: 13px;
padding: 4px 8px;
}
.mlf-file-count strong {
font-size: 1.1em;
.mlf-change-font:hover {
color: #135e96;
text-decoration: underline;
}
/* Font Preview */
.mlf-preview-section {
margin-top: 20px;
padding-top: 20px;
border-top: 1px solid #dcdcde;
.mlf-italic-row {
margin-bottom: 16px;
}
.mlf-preview-box {
/* Italic Toggle */
.mlf-italic-toggle {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 10px 16px;
background: #fff;
border: 1px solid #dcdcde;
border-radius: 4px;
padding: 24px;
min-height: 100px;
position: relative;
cursor: pointer;
font-weight: normal !important;
transition: background-color 0.15s ease;
}
.mlf-preview-text {
display: flex;
flex-direction: column;
gap: 16px;
.mlf-italic-toggle:hover {
background: #f6f7f7;
}
.mlf-preview-sample {
display: block;
line-height: 1.4;
}
.mlf-preview-heading {
font-size: 28px;
}
.mlf-preview-paragraph {
font-size: 16px;
color: #50575e;
}
.mlf-preview-loading {
display: flex;
align-items: center;
gap: 10px;
color: #646970;
padding: 20px 0;
}
.mlf-preview-loading .spinner {
float: none;
.mlf-italic-toggle input[type="checkbox"] {
margin: 0;
}
.mlf-preview-error {
color: #b32d2e;
padding: 20px 0;
text-align: center;
}
/* Submit Row */
.mlf-form-row-submit {
display: flex;
align-items: center;
gap: 12px;
margin-top: 0;
padding-top: 0;
border-top: none;
}
.mlf-selected-font .mlf-form-row-submit {
margin-top: 0;
}
.mlf-form-row-submit .spinner {
@ -189,6 +291,28 @@
color: #721c24;
}
/* Info Note */
.mlf-info-note {
display: flex;
align-items: flex-start;
gap: 8px;
margin-top: 20px;
padding: 12px 16px;
background: #f0f6fc;
border: 1px solid #c5d9ed;
border-radius: 4px;
font-size: 13px;
color: #1d2327;
}
.mlf-info-note .dashicons {
color: #2271b1;
font-size: 18px;
width: 18px;
height: 18px;
margin-top: 1px;
}
/* Font List */
.mlf-font-list {
display: flex;
@ -245,10 +369,11 @@
.mlf-no-fonts {
color: #646970;
font-style: italic;
padding: 20px;
padding: 24px;
text-align: center;
background: #f6f7f7;
border-radius: 4px;
margin: 0;
}
/* Info Box */
@ -264,12 +389,18 @@
.mlf-info-box .dashicons {
color: #2271b1;
font-size: 20px;
width: 20px;
height: 20px;
margin-top: 2px;
}
.mlf-info-box p {
margin: 0;
color: #1d2327;
margin: 0 0 8px 0;
}
.mlf-info-box p:last-child {
margin-bottom: 0;
}
.mlf-info-box a {
@ -332,10 +463,6 @@
/* Responsive */
@media screen and (max-width: 782px) {
.mlf-checkbox-grid {
grid-template-columns: repeat(2, 1fr);
}
.mlf-font-item {
flex-direction: column;
align-items: flex-start;
@ -345,10 +472,12 @@
.mlf-font-actions {
margin-left: 0;
}
}
@media screen and (max-width: 480px) {
.mlf-checkbox-grid {
grid-template-columns: 1fr;
.mlf-result-info {
flex-wrap: wrap;
}
.mlf-selected-font-header {
flex-wrap: wrap;
}
}