font management fixes

This commit is contained in:
rodolfomartinez 2026-02-02 08:31:36 -05:00
parent 847ed92c23
commit d5ecb31dad
8 changed files with 728 additions and 99 deletions

View file

@ -71,33 +71,26 @@
/* Search Input */
.mlf-search-wrapper {
position: relative;
display: flex;
align-items: center;
gap: 8px;
max-width: 500px;
}
.mlf-search-icon {
position: absolute;
left: 10px;
top: 50%;
transform: translateY(-50%);
color: #646970;
font-size: 18px;
width: 18px;
height: 18px;
.mlf-search-input {
flex: 1;
padding: 6px 12px !important;
font-size: 14px;
}
.mlf-search-input {
width: 100% !important;
max-width: none !important;
padding-left: 36px !important;
padding-right: 36px !important;
.mlf-search-btn {
flex-shrink: 0;
height: 36px;
padding: 0 16px !important;
}
.mlf-search-spinner {
position: absolute;
right: 8px;
top: 50%;
transform: translateY(-50%);
flex-shrink: 0;
float: none !important;
margin: 0 !important;
}
@ -183,6 +176,14 @@
font-style: italic;
}
.mlf-search-error {
padding: 16px 24px;
text-align: center;
color: #8b6914;
background: #fcf9e8;
border-bottom: 1px solid #f0e6c8;
}
/* Selected Font */
.mlf-selected-font {
margin-top: 16px;
@ -313,6 +314,26 @@
margin-top: 1px;
}
/* Section Header */
.mlf-section-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 16px;
padding-bottom: 12px;
border-bottom: 1px solid #e0e0e0;
}
.mlf-section-header h2 {
margin: 0;
padding: 0;
border: none;
}
.mlf-check-updates-btn {
flex-shrink: 0;
}
/* Font List */
.mlf-font-list {
display: flex;
@ -334,17 +355,61 @@
flex: 1;
}
.mlf-font-header {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 4px;
}
.mlf-font-name {
margin: 0 0 4px 0;
margin: 0;
font-size: 1.1em;
}
.mlf-update-badge {
display: inline-block;
padding: 2px 8px;
background: #fcf9e8;
border: 1px solid #d4b106;
border-radius: 3px;
color: #8b6914;
font-size: 11px;
font-weight: 500;
}
.mlf-font-variants {
margin: 0;
margin: 0 0 4px 0;
color: #646970;
font-size: 0.9em;
}
.mlf-font-meta {
margin: 0;
color: #8c8f94;
font-size: 0.8em;
display: flex;
gap: 12px;
}
.mlf-font-version {
font-family: monospace;
background: #f0f0f1;
padding: 1px 6px;
border-radius: 3px;
}
.mlf-update-btn {
color: #2271b1;
border-color: #2271b1;
}
.mlf-update-btn:hover {
background: #2271b1;
color: #fff;
border-color: #2271b1;
}
.mlf-font-actions {
margin-left: 20px;
}