ver 2
This commit is contained in:
@@ -163,21 +163,109 @@ select {
|
||||
background-color: var(--secondary-color-hover);
|
||||
}
|
||||
|
||||
|
||||
#controls {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 15px;
|
||||
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%;
|
||||
@@ -187,10 +275,8 @@ select {
|
||||
.hint-text {
|
||||
font-size: 12px;
|
||||
color: var(--text-color-dark);
|
||||
text-align: center;
|
||||
margin-top: 15px;
|
||||
padding-top: 15px;
|
||||
border-top: 1px solid var(--border-color);
|
||||
text-align: left;
|
||||
padding: 0 5px;
|
||||
}
|
||||
.hint-text strong {
|
||||
color: var(--text-color);
|
||||
@@ -214,7 +300,7 @@ select {
|
||||
}
|
||||
|
||||
/* --- Main Editor Area --- */
|
||||
#editor-section {
|
||||
#editor-section, #viewer-section, #comparison-result-section {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
@@ -244,6 +330,9 @@ select {
|
||||
border: 1px solid var(--border-color);
|
||||
}
|
||||
.count-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
font-weight: 600;
|
||||
}
|
||||
.count-item span {
|
||||
@@ -255,8 +344,14 @@ select {
|
||||
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 {
|
||||
|
||||
#map-container, #result-map-container {
|
||||
flex-grow: 1;
|
||||
position: relative;
|
||||
cursor: grab;
|
||||
@@ -265,31 +360,107 @@ select {
|
||||
border: 1px solid var(--border-color);
|
||||
background-color: var(--card-bg);
|
||||
}
|
||||
#map-container:active {
|
||||
#map-container:active, #result-map-container:active {
|
||||
cursor: grabbing;
|
||||
}
|
||||
|
||||
#wafer-map-canvas {
|
||||
#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;
|
||||
display: none;
|
||||
font-weight: 500;
|
||||
text-align: center;
|
||||
display: none; /* Use classes to show */
|
||||
}
|
||||
.status.success {
|
||||
background-color: var(--success-color);
|
||||
background-color: rgba(40, 167, 69, 0.8);
|
||||
color: white;
|
||||
display: block;
|
||||
}
|
||||
.status.error {
|
||||
background-color: var(--error-color);
|
||||
background-color: rgba(220, 53, 69, 0.8);
|
||||
color: white;
|
||||
display: block;
|
||||
}
|
||||
@@ -307,4 +478,4 @@ select {
|
||||
|
||||
@keyframes spinner-border {
|
||||
to { transform: rotate(360deg); }
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user