🎨 Refine UI styles for improved responsiveness, consistency, and readability across components

This commit is contained in:
2026-01-28 20:21:16 +00:00
parent b4b1c77f49
commit feaa990ea0

View File

@@ -930,38 +930,43 @@ onMounted(() => {
.settings-panel { .settings-panel {
background: #f8f9fa; background: #f8f9fa;
border: 1px solid #e9ecef; border: 1px solid #e9ecef;
border-radius: 8px; border-radius: 6px;
padding: 1.5rem; padding: 1rem;
margin-bottom: 1rem; margin-bottom: 1rem;
font-size: 0.95rem;
} }
.help-panel h3, .help-panel h3,
.settings-panel h3 { .settings-panel h3 {
margin-top: 0; margin-top: 0;
margin-bottom: 1rem;
color: #495057; color: #495057;
font-size: 1.1rem;
} }
.help-panel ul { .help-panel ul {
list-style: none; list-style: none;
padding: 0; padding: 0;
margin: 0;
} }
.help-panel li { .help-panel li {
padding: 0.5rem 0; padding: 0.4rem 0;
} }
.help-panel kbd { .help-panel kbd {
background: #fff; background: #fff;
border: 1px solid #ccc; border: 1px solid #ccc;
border-radius: 4px; border-radius: 3px;
padding: 2px 6px; padding: 2px 5px;
font-family: monospace; font-family: monospace;
font-size: 0.9em; font-size: 0.85em;
} }
.settings-panel label { .settings-panel label {
display: block; display: block;
margin: 0.75rem 0; margin: 0.75rem 0;
font-size: 0.95rem;
} }
/* File Selector */ /* File Selector */
@@ -1063,14 +1068,19 @@ onMounted(() => {
/* Property Filter */ /* Property Filter */
.property-filter { .property-filter {
display: flex; display: flex;
align-items: center; flex-direction: column;
gap: 0.5rem; gap: 0.5rem;
margin-bottom: 1rem; margin-bottom: 1rem;
flex-wrap: wrap; }
.property-filter label {
font-weight: 600;
font-size: 0.95rem;
} }
.property-filter select, .property-filter select,
.filter-value-input { .filter-value-input {
width: 100%;
padding: 0.5rem; padding: 0.5rem;
border: 1px solid #ccc; border: 1px solid #ccc;
border-radius: 4px; border-radius: 4px;
@@ -1248,9 +1258,9 @@ onMounted(() => {
/* Action Bar */ /* Action Bar */
.action-bar { .action-bar {
display: flex; display: grid;
gap: 0.5rem; grid-template-columns: 1fr;
flex-wrap: wrap; gap: 0.75rem;
margin-bottom: 1rem; margin-bottom: 1rem;
} }
@@ -1261,10 +1271,11 @@ onMounted(() => {
border: none; border: none;
border-radius: 6px; border-radius: 6px;
cursor: pointer; cursor: pointer;
font-size: 1rem; font-size: 0.95rem;
font-weight: 600; font-weight: 600;
min-height: 44px; min-height: 44px;
transition: all 0.3s ease; transition: all 0.3s ease;
width: 100%;
} }
.btn-action:hover { .btn-action:hover {
@@ -1283,13 +1294,15 @@ onMounted(() => {
/* Toast */ /* Toast */
.toast { .toast {
position: fixed; position: fixed;
bottom: 2rem; bottom: 1rem;
right: 2rem; right: 1rem;
padding: 1rem 1.5rem; left: 1rem;
border-radius: 8px; padding: 1rem;
border-radius: 6px;
font-weight: bold; font-weight: bold;
z-index: 1000; z-index: 1000;
animation: slideIn 0.3s ease-out; animation: slideIn 0.3s ease-out;
font-size: 0.95rem;
} }
.toast.success { .toast.success {
@@ -1315,6 +1328,16 @@ onMounted(() => {
/* Responsive */ /* Responsive */
@media (min-width: 769px) { @media (min-width: 769px) {
.gamemaster-explorer {
padding: 2rem 1rem;
}
.explorer-container {
padding: 2rem;
border-radius: 12px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.explorer-header { .explorer-header {
align-items: center; align-items: center;
gap: 1rem; gap: 1rem;
@@ -1340,24 +1363,95 @@ onMounted(() => {
height: 44px; height: 44px;
font-size: 1.25rem; font-size: 1.25rem;
} }
.help-panel,
.settings-panel {
padding: 1.5rem;
border-radius: 8px;
}
.file-selector {
flex-direction: row;
align-items: center;
gap: 1rem;
flex-wrap: wrap;
}
.file-selector label {
margin: 0;
}
.file-selector select {
width: auto;
flex: 1;
min-width: 200px;
}
.file-info {
color: #666;
font-size: 0.9rem;
white-space: nowrap;
}
.search-input {
border-radius: 8px;
} }
@media (max-width: 768px) {
.file-selector,
.property-filter { .property-filter {
flex-direction: column; flex-direction: row;
align-items: stretch; align-items: center;
gap: 0.5rem;
flex-wrap: wrap;
}
.property-filter label {
margin: 0;
}
.property-filter select,
.filter-value-input {
width: auto;
} }
.action-bar { .action-bar {
flex-direction: column; display: flex;
grid-template-columns: unset;
gap: 0.5rem;
flex-wrap: wrap;
} }
.btn-action { .btn-action {
width: 100%; width: auto;
font-size: 1rem;
}
.content-viewer {
max-height: 70vh;
border-radius: 8px;
}
.scroller {
height: 70vh;
}
.lines-container {
padding: 1rem;
}
.line-number {
width: 4rem;
}
.toast {
bottom: 2rem;
right: 2rem;
left: auto;
width: auto;
} }
} }
@media (max-width: 768px) {
/* Primary button styles */ /* Primary button styles */
.btn-primary, .btn-primary,
.btn-retry { .btn-retry {