386 lines
		
	
	
		
			6.5 KiB
		
	
	
	
		
			CSS
		
	
	
	
	
	
			
		
		
	
	
			386 lines
		
	
	
		
			6.5 KiB
		
	
	
	
		
			CSS
		
	
	
	
	
	
/* Calculator Styles */
 | 
						|
.hex-calculator {
 | 
						|
    background-color: #1a1a1a;
 | 
						|
    min-height: fit-content;
 | 
						|
}
 | 
						|
 | 
						|
.calculator-container {
 | 
						|
    display: flex;
 | 
						|
    flex-direction: column;
 | 
						|
    gap: 10px;
 | 
						|
}
 | 
						|
 | 
						|
.calc-display {
 | 
						|
    background-color: #111111;
 | 
						|
    border: 1px solid #404040;
 | 
						|
    border-radius: 6px;
 | 
						|
    padding: 10px;
 | 
						|
}
 | 
						|
 | 
						|
.calc-input input {
 | 
						|
    width: 100%;
 | 
						|
    background-color: #2a2a2a;
 | 
						|
    border: 1px solid #555555;
 | 
						|
    border-radius: 4px;
 | 
						|
    color: #ffffff;
 | 
						|
    font-family: 'Consolas', monospace;
 | 
						|
    font-size: 15px;
 | 
						|
    font-weight: bold;
 | 
						|
    padding: 7px;
 | 
						|
    text-align: right;
 | 
						|
    margin-bottom: 6px;
 | 
						|
}
 | 
						|
 | 
						|
.calc-conversions {
 | 
						|
    display: flex;
 | 
						|
    flex-direction: column;
 | 
						|
    gap: 3px;
 | 
						|
}
 | 
						|
 | 
						|
.conversion-row {
 | 
						|
    display: flex;
 | 
						|
    justify-content: space-between;
 | 
						|
    align-items: center;
 | 
						|
    padding: 2px 0;
 | 
						|
    border-bottom: 1px solid #333333;
 | 
						|
}
 | 
						|
 | 
						|
.conversion-row:last-child {
 | 
						|
    border-bottom: none;
 | 
						|
}
 | 
						|
 | 
						|
.conv-label {
 | 
						|
    color: #888888;
 | 
						|
    font-weight: bold;
 | 
						|
    font-size: 0.75em;
 | 
						|
    min-width: 30px;
 | 
						|
}
 | 
						|
 | 
						|
.conv-value {
 | 
						|
    color: #cccccc;
 | 
						|
    font-family: 'Consolas', monospace;
 | 
						|
    font-size: 0.75em;
 | 
						|
    word-break: break-all;
 | 
						|
    text-align: right;
 | 
						|
    flex: 1;
 | 
						|
    margin-left: 8px;
 | 
						|
}
 | 
						|
 | 
						|
.calc-buttons {
 | 
						|
    display: flex;
 | 
						|
    flex-direction: column;
 | 
						|
    gap: 3px;
 | 
						|
}
 | 
						|
 | 
						|
.calc-row {
 | 
						|
    display: grid;
 | 
						|
    grid-template-columns: repeat(5, 1fr);
 | 
						|
    gap: 3px;
 | 
						|
}
 | 
						|
 | 
						|
.calc-btn {
 | 
						|
    background-color: #2a2a2a;
 | 
						|
    border: 1px solid #4a4a4a;
 | 
						|
    border-radius: 3px;
 | 
						|
    color: #ffffff;
 | 
						|
    cursor: pointer;
 | 
						|
    font-family: 'Consolas', monospace;
 | 
						|
    font-size: 0.75em;
 | 
						|
    font-weight: bold;
 | 
						|
    min-height: 30px;
 | 
						|
    padding: 3px;
 | 
						|
    text-align: center;
 | 
						|
    transition: all 0.2s;
 | 
						|
    user-select: none;
 | 
						|
}
 | 
						|
 | 
						|
.calc-btn:hover {
 | 
						|
    background-color: #3a3a3a;
 | 
						|
    border-color: #666666;
 | 
						|
}
 | 
						|
 | 
						|
.calc-btn:active {
 | 
						|
    background-color: #444444;
 | 
						|
    transform: translateY(1px);
 | 
						|
}
 | 
						|
 | 
						|
.calc-btn.number {
 | 
						|
    background-color: #333333;
 | 
						|
}
 | 
						|
 | 
						|
.calc-btn.number:hover {
 | 
						|
    background-color: #444444;
 | 
						|
}
 | 
						|
 | 
						|
.calc-btn.operation {
 | 
						|
    background-color: #2a4a2a;
 | 
						|
    color: #88cc88;
 | 
						|
}
 | 
						|
 | 
						|
.calc-btn.operation:hover {
 | 
						|
    background-color: #3a5a3a;
 | 
						|
}
 | 
						|
 | 
						|
.calc-btn.clear {
 | 
						|
    background-color: #4a2a4a;
 | 
						|
    color: #cc88cc;
 | 
						|
}
 | 
						|
 | 
						|
.calc-btn.clear:hover {
 | 
						|
    background-color: #5a3a5a;
 | 
						|
}
 | 
						|
 | 
						|
.calc-btn.equals {
 | 
						|
    background-color: #2a2a4a;
 | 
						|
    color: #8888cc;
 | 
						|
}
 | 
						|
 | 
						|
.calc-btn.equals:hover {
 | 
						|
    background-color: #3a3a5a;
 | 
						|
}
 | 
						|
 | 
						|
.calc-btn.backspace {
 | 
						|
    background-color: #4a4a2a;
 | 
						|
    color: #cccc88;
 | 
						|
}
 | 
						|
 | 
						|
.calc-btn.backspace:hover {
 | 
						|
    background-color: #5a5a3a;
 | 
						|
}
 | 
						|
 | 
						|
.calc-btn.wide {
 | 
						|
    grid-column: span 2;
 | 
						|
}
 | 
						|
 | 
						|
/* Input Groups */
 | 
						|
.input-group {
 | 
						|
    display: flex;
 | 
						|
    flex-direction: column;
 | 
						|
    position: relative;
 | 
						|
}
 | 
						|
 | 
						|
.input-group label {
 | 
						|
    margin-bottom: 5px;
 | 
						|
    color: #cccccc;
 | 
						|
    font-weight: normal;
 | 
						|
    font-size: 0.95em;
 | 
						|
    white-space: nowrap;
 | 
						|
    overflow: hidden;
 | 
						|
    text-overflow: ellipsis;
 | 
						|
}
 | 
						|
 | 
						|
.input-group label:hover {
 | 
						|
    white-space: normal;
 | 
						|
    overflow: visible;
 | 
						|
}
 | 
						|
 | 
						|
.unit-indicator {
 | 
						|
    color: #88cc88;
 | 
						|
    font-weight: bold;
 | 
						|
    font-size: 0.85em;
 | 
						|
    white-space: nowrap;
 | 
						|
}
 | 
						|
 | 
						|
.offset-info {
 | 
						|
    color: #8899cc;
 | 
						|
    font-weight: normal;
 | 
						|
    font-size: 0.85em;
 | 
						|
    opacity: 0.8;
 | 
						|
    font-style: italic;
 | 
						|
}
 | 
						|
 | 
						|
.input-group input {
 | 
						|
    padding: 10px;
 | 
						|
    background-color: #333333;
 | 
						|
    border: 1px solid #4a4a4a;
 | 
						|
    border-radius: 4px;
 | 
						|
    color: #ffffff;
 | 
						|
    font-family: 'Consolas', monospace;
 | 
						|
    font-size: 14px;
 | 
						|
    transition: border-color 0.2s;
 | 
						|
}
 | 
						|
 | 
						|
.input-group input:focus {
 | 
						|
    outline: none;
 | 
						|
    border-color: #666666;
 | 
						|
    background-color: #383838;
 | 
						|
}
 | 
						|
 | 
						|
.input-group input.error {
 | 
						|
    border-color: #ff6666;
 | 
						|
    background-color: #332222;
 | 
						|
}
 | 
						|
 | 
						|
.error-message {
 | 
						|
    color: #ff8888;
 | 
						|
    font-size: 0.8em;
 | 
						|
    margin-top: 3px;
 | 
						|
    font-style: italic;
 | 
						|
}
 | 
						|
 | 
						|
/* Result Items */
 | 
						|
.result-item {
 | 
						|
    display: flex;
 | 
						|
    justify-content: space-between;
 | 
						|
    align-items: center;
 | 
						|
    padding: 8px 0;
 | 
						|
    border-bottom: 1px solid #3a3a3a;
 | 
						|
    position: relative;
 | 
						|
}
 | 
						|
 | 
						|
.result-item:last-child {
 | 
						|
    border-bottom: none;
 | 
						|
}
 | 
						|
 | 
						|
.result-item.available {
 | 
						|
    opacity: 1;
 | 
						|
}
 | 
						|
 | 
						|
.result-item.unavailable {
 | 
						|
    opacity: 0.5;
 | 
						|
}
 | 
						|
 | 
						|
.result-label {
 | 
						|
    color: #cccccc;
 | 
						|
    font-weight: normal;
 | 
						|
    flex: 1;
 | 
						|
    cursor: help;
 | 
						|
}
 | 
						|
 | 
						|
.result-value-container {
 | 
						|
    display: flex;
 | 
						|
    align-items: center;
 | 
						|
    gap: 6px;
 | 
						|
}
 | 
						|
 | 
						|
.result-value {
 | 
						|
    color: #ffffff;
 | 
						|
    font-family: 'Consolas', monospace;
 | 
						|
    text-align: right;
 | 
						|
    font-weight: bold;
 | 
						|
    min-width: 100px;
 | 
						|
    cursor: help;
 | 
						|
}
 | 
						|
 | 
						|
.copy-btn {
 | 
						|
    background: none;
 | 
						|
    border: none;
 | 
						|
    color: #888888;
 | 
						|
    cursor: pointer;
 | 
						|
    padding: 3px;
 | 
						|
    border-radius: 3px;
 | 
						|
    transition: all 0.2s;
 | 
						|
    font-size: 13px;
 | 
						|
}
 | 
						|
 | 
						|
.copy-btn:hover {
 | 
						|
    color: #ffffff;
 | 
						|
    background-color: #404040;
 | 
						|
}
 | 
						|
 | 
						|
.copy-btn:active {
 | 
						|
    color: #88cc88;
 | 
						|
}
 | 
						|
 | 
						|
/* Result Groups */
 | 
						|
.result-group {
 | 
						|
    margin-bottom: 15px;
 | 
						|
    border: 1px solid #3a3a3a;
 | 
						|
    border-radius: 6px;
 | 
						|
    padding: 12px;
 | 
						|
    background-color: #2a2a2a;
 | 
						|
}
 | 
						|
 | 
						|
.result-group h3 {
 | 
						|
    color: #ffffff;
 | 
						|
    margin-bottom: 8px;
 | 
						|
    font-size: 1.05em;
 | 
						|
    border-bottom: 1px solid #3a3a3a;
 | 
						|
    padding-bottom: 4px;
 | 
						|
}
 | 
						|
 | 
						|
/* Formula Styles */
 | 
						|
.formula-box {
 | 
						|
    background-color: #151515;
 | 
						|
    border: 1px solid #404040;
 | 
						|
    border-radius: 4px;
 | 
						|
    padding: 12px;
 | 
						|
    margin: 8px 0;
 | 
						|
    font-family: 'Consolas', monospace;
 | 
						|
    font-size: 0.9em;
 | 
						|
}
 | 
						|
 | 
						|
.formula {
 | 
						|
    margin: 6px 0;
 | 
						|
    color: #d0d0d0;
 | 
						|
    word-wrap: break-word;
 | 
						|
}
 | 
						|
 | 
						|
.calculated {
 | 
						|
    color: #ffffff;
 | 
						|
    font-weight: bold;
 | 
						|
}
 | 
						|
 | 
						|
/* Tooltip */
 | 
						|
.tooltip {
 | 
						|
    position: absolute;
 | 
						|
    background-color: #1a1a1a;
 | 
						|
    color: #ffffff;
 | 
						|
    padding: 6px 10px;
 | 
						|
    border-radius: 4px;
 | 
						|
    font-size: 0.85em;
 | 
						|
    border: 1px solid #555555;
 | 
						|
    z-index: 1000;
 | 
						|
    max-width: 400px;
 | 
						|
    word-wrap: break-word;
 | 
						|
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
 | 
						|
    font-family: 'Consolas', monospace;
 | 
						|
    line-height: 1.4;
 | 
						|
}
 | 
						|
 | 
						|
/* Info Toast */
 | 
						|
.info-toast {
 | 
						|
    background: linear-gradient(135deg, #2c5aa0 0%, #1e4077 100%);
 | 
						|
    border-bottom: 2px solid #4a7bc8;
 | 
						|
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
 | 
						|
    padding: 10px 0;
 | 
						|
}
 | 
						|
 | 
						|
.toast-content {
 | 
						|
    max-width: 1400px;
 | 
						|
    margin: 0 auto;
 | 
						|
    padding: 0 15px;
 | 
						|
    color: #ffffff;
 | 
						|
    font-size: 0.95em;
 | 
						|
    text-align: center;
 | 
						|
    line-height: 1.5;
 | 
						|
}
 | 
						|
 | 
						|
.toast-content a {
 | 
						|
    color: #ffd700;
 | 
						|
    text-decoration: none;
 | 
						|
    border-bottom: 1px solid transparent;
 | 
						|
    transition: border-color 0.2s;
 | 
						|
}
 | 
						|
 | 
						|
.toast-content a:hover {
 | 
						|
    border-bottom-color: #ffd700;
 | 
						|
}
 | 
						|
 | 
						|
.toast-content strong {
 | 
						|
    font-weight: bold;
 | 
						|
}
 | 
						|
 | 
						|
/* Mobile Responsive */
 | 
						|
@media (max-width: 768px) {
 | 
						|
    .result-item {
 | 
						|
        flex-direction: column;
 | 
						|
        align-items: flex-start;
 | 
						|
        gap: 4px;
 | 
						|
    }
 | 
						|
 | 
						|
    .result-value {
 | 
						|
        text-align: left;
 | 
						|
        min-width: auto;
 | 
						|
    }
 | 
						|
} |