482 lines
9.6 KiB
CSS
482 lines
9.6 KiB
CSS
/* --- CSS Variables for Theming --- */
|
|
:root {
|
|
--font-family: 'Poppins', sans-serif;
|
|
--bg-color: #1e1e1e;
|
|
--sidebar-bg: #252526;
|
|
--card-bg: #2d2d30;
|
|
--text-color: #d4d4d4;
|
|
--text-color-dark: #888;
|
|
--primary-color: #007acc;
|
|
--primary-color-hover: #009bff;
|
|
--secondary-color: #3e3e42;
|
|
--secondary-color-hover: #505054;
|
|
--border-color: #444444;
|
|
--success-color: #28a745;
|
|
--error-color: #dc3545;
|
|
--shadow-color: rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
/* --- General Styles & Reset --- */
|
|
* {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
body {
|
|
font-family: var(--font-family);
|
|
background-color: var(--bg-color);
|
|
color: var(--text-color);
|
|
font-size: 14px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
h1, h2 {
|
|
font-weight: 600;
|
|
color: #ffffff;
|
|
}
|
|
|
|
h1 { font-size: 24px; }
|
|
h2 { font-size: 16px; }
|
|
|
|
/* --- App Layout --- */
|
|
.app-container {
|
|
display: flex;
|
|
height: 100vh;
|
|
}
|
|
|
|
.sidebar {
|
|
width: 320px;
|
|
background-color: var(--sidebar-bg);
|
|
padding: 20px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 20px;
|
|
overflow-y: auto;
|
|
border-right: 1px solid var(--border-color);
|
|
}
|
|
|
|
.sidebar-header {
|
|
text-align: center;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.main-content {
|
|
flex-grow: 1;
|
|
padding: 20px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
/* --- Card System --- */
|
|
.card {
|
|
background-color: var(--card-bg);
|
|
border-radius: 8px;
|
|
padding: 20px;
|
|
border: 1px solid var(--border-color);
|
|
opacity: 0;
|
|
transform: translateY(10px);
|
|
transition: opacity 0.5s ease, transform 0.5s ease;
|
|
display: none; /* Hidden by default */
|
|
}
|
|
|
|
.card.active {
|
|
display: block;
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.card-header {
|
|
margin-bottom: 15px;
|
|
padding-bottom: 10px;
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
/* --- Forms & Controls --- */
|
|
form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 15px;
|
|
}
|
|
|
|
input[type="file"] {
|
|
color: var(--text-color);
|
|
font-family: var(--font-family);
|
|
}
|
|
input[type="file"]::file-selector-button {
|
|
font-family: var(--font-family);
|
|
padding: 8px 12px;
|
|
border-radius: 4px;
|
|
border: none;
|
|
background-color: var(--secondary-color);
|
|
color: var(--text-color);
|
|
cursor: pointer;
|
|
transition: background-color 0.2s ease;
|
|
}
|
|
input[type="file"]::file-selector-button:hover {
|
|
background-color: var(--secondary-color-hover);
|
|
}
|
|
|
|
select {
|
|
width: 100%;
|
|
padding: 8px 12px;
|
|
background-color: var(--secondary-color);
|
|
color: var(--text-color);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 4px;
|
|
font-family: var(--font-family);
|
|
}
|
|
|
|
.button-primary, .button-secondary {
|
|
padding: 10px 15px;
|
|
border: none;
|
|
border-radius: 5px;
|
|
font-family: var(--font-family);
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease-in-out;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.button-primary {
|
|
background-color: var(--primary-color);
|
|
color: white;
|
|
}
|
|
.button-primary:hover {
|
|
background-color: var(--primary-color-hover);
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 8px var(--shadow-color);
|
|
}
|
|
.button-primary:active {
|
|
transform: translateY(0);
|
|
box-shadow: none;
|
|
}
|
|
|
|
.button-secondary {
|
|
background-color: var(--secondary-color);
|
|
color: var(--text-color);
|
|
}
|
|
.button-secondary:hover {
|
|
background-color: var(--secondary-color-hover);
|
|
}
|
|
|
|
|
|
#controls {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px; /* Gap between control sections */
|
|
}
|
|
|
|
.control-section {
|
|
padding-top: 15px;
|
|
border-top: 1px solid var(--border-color);
|
|
}
|
|
.control-section:first-child {
|
|
padding-top: 0;
|
|
border-top: none;
|
|
}
|
|
|
|
.control-section-header {
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
color: var(--text-color-dark);
|
|
text-transform: uppercase;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.control-group {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 8px 12px; /* row-gap column-gap */
|
|
margin-bottom: 15px;
|
|
}
|
|
.control-group:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.control-group label {
|
|
flex-shrink: 0;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.control-group select,
|
|
.control-group input[type="number"],
|
|
.control-group .button-secondary {
|
|
flex-grow: 1; /* Allow items to grow */
|
|
min-width: 80px; /* Prevent items from becoming too small */
|
|
}
|
|
|
|
.control-group .btn-group {
|
|
display: flex;
|
|
flex-grow: 1;
|
|
}
|
|
.btn-group .button-secondary {
|
|
border-radius: 0;
|
|
}
|
|
.btn-group .button-secondary:first-child {
|
|
border-top-left-radius: 5px;
|
|
border-bottom-left-radius: 5px;
|
|
}
|
|
.btn-group .button-secondary:last-child {
|
|
border-top-right-radius: 5px;
|
|
border-bottom-right-radius: 5px;
|
|
}
|
|
.btn-group .button-secondary.active {
|
|
background-color: var(--primary-color);
|
|
color: white;
|
|
}
|
|
|
|
|
|
.control-group.vertical {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
gap: 12px;
|
|
}
|
|
|
|
.inset-control-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
.inset-control-row label {
|
|
width: 50px; /* Fixed width for alignment */
|
|
flex-shrink: 0;
|
|
}
|
|
.inset-control-row select,
|
|
.inset-control-row input {
|
|
width: 100%;
|
|
}
|
|
|
|
.control-group-divider {
|
|
height: 1px;
|
|
background-color: var(--border-color);
|
|
width: 100%;
|
|
margin: 5px 0;
|
|
}
|
|
|
|
.control-group-grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 10px;
|
|
}
|
|
.control-group-grid.four-cols {
|
|
grid-template-columns: 1fr 1fr;
|
|
}
|
|
.control-group-grid .button-primary,
|
|
.control-group-grid .button-secondary {
|
|
width: 100%;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.hint-text {
|
|
font-size: 12px;
|
|
color: var(--text-color-dark);
|
|
text-align: left;
|
|
padding: 0 5px;
|
|
}
|
|
.hint-text strong {
|
|
color: var(--text-color);
|
|
font-weight: 600;
|
|
}
|
|
|
|
|
|
/* --- Bin Definition --- */
|
|
#bin-map-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
}
|
|
.bin-item {
|
|
display: grid;
|
|
grid-template-columns: 1fr 2fr;
|
|
align-items: center;
|
|
}
|
|
.bin-item label {
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* --- Main Editor Area --- */
|
|
#editor-section, #viewer-section, #comparison-result-section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
width: 100%;
|
|
}
|
|
|
|
#welcome-message {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
height: 100%;
|
|
color: var(--text-color-dark);
|
|
text-align: center;
|
|
}
|
|
|
|
.counts-container {
|
|
margin-bottom: 15px;
|
|
padding: 10px;
|
|
background-color: var(--card-bg);
|
|
border-radius: 4px;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: center;
|
|
gap: 20px;
|
|
font-size: 14px;
|
|
border: 1px solid var(--border-color);
|
|
}
|
|
.count-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-weight: 600;
|
|
}
|
|
.count-item span {
|
|
font-weight: 400;
|
|
padding: 3px 8px;
|
|
border-radius: 4px;
|
|
color: white;
|
|
min-width: 30px;
|
|
display: inline-block;
|
|
text-align: center;
|
|
}
|
|
#result-legend .count-item span {
|
|
width: 20px;
|
|
height: 20px;
|
|
border: 1px solid rgba(255,255,255,0.2);
|
|
}
|
|
|
|
|
|
#map-container, #result-map-container {
|
|
flex-grow: 1;
|
|
position: relative;
|
|
cursor: grab;
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
border: 1px solid var(--border-color);
|
|
background-color: var(--card-bg);
|
|
}
|
|
#map-container:active, #result-map-container:active {
|
|
cursor: grabbing;
|
|
}
|
|
|
|
#wafer-map-canvas, #result-map-canvas {
|
|
display: block;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.map-viewer-controls {
|
|
display: flex;
|
|
gap: 15px;
|
|
align-items: center;
|
|
margin-bottom: 15px;
|
|
}
|
|
.map-viewer-controls label {
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* --- Comparison Page Specifics --- */
|
|
.reference-item {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 8px;
|
|
border-radius: 4px;
|
|
background-color: var(--secondary-color);
|
|
gap: 10px;
|
|
}
|
|
.reference-item .filename {
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
flex-grow: 1;
|
|
}
|
|
.reference-item .ref-details {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
flex-shrink: 0;
|
|
}
|
|
.ref-status {
|
|
font-weight: 500;
|
|
color: var(--text-color-dark);
|
|
}
|
|
.ref-status.set {
|
|
color: var(--primary-color);
|
|
font-weight: 600;
|
|
}
|
|
.clear-ref-btn {
|
|
background: none;
|
|
border: none;
|
|
color: var(--text-color-dark);
|
|
font-size: 16px;
|
|
font-weight: bold;
|
|
cursor: pointer;
|
|
padding: 0 5px;
|
|
display: none; /* Hidden by default */
|
|
}
|
|
.clear-ref-btn:hover {
|
|
color: var(--error-color);
|
|
}
|
|
|
|
/* --- Tooltip --- */
|
|
.map-tooltip {
|
|
position: absolute;
|
|
display: none;
|
|
background-color: rgba(0, 0, 0, 0.85);
|
|
color: white;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 4px;
|
|
padding: 8px 12px;
|
|
font-size: 12px;
|
|
pointer-events: none; /* So it doesn't interfere with mouse events */
|
|
white-space: pre; /* To respect newlines */
|
|
z-index: 100;
|
|
transition: opacity 0.1s ease;
|
|
}
|
|
.reference-item.has-ref .clear-ref-btn {
|
|
display: inline-block; /* Show only when ref is set */
|
|
}
|
|
|
|
|
|
|
|
/* --- Status & Spinner --- */
|
|
.status {
|
|
margin-top: 15px;
|
|
padding: 10px;
|
|
border-radius: 4px;
|
|
font-weight: 500;
|
|
text-align: center;
|
|
display: none; /* Use classes to show */
|
|
}
|
|
.status.success {
|
|
background-color: rgba(40, 167, 69, 0.8);
|
|
color: white;
|
|
display: block;
|
|
}
|
|
.status.error {
|
|
background-color: rgba(220, 53, 69, 0.8);
|
|
color: white;
|
|
display: block;
|
|
}
|
|
|
|
.spinner-border {
|
|
display: inline-block;
|
|
width: 16px;
|
|
height: 16px;
|
|
vertical-align: text-bottom;
|
|
border: 2px solid currentColor;
|
|
border-right-color: transparent;
|
|
border-radius: 50%;
|
|
animation: spinner-border .75s linear infinite;
|
|
}
|
|
|
|
@keyframes spinner-border {
|
|
to { transform: rotate(360deg); }
|
|
}
|