336 lines
5.6 KiB
CSS
336 lines
5.6 KiB
CSS
/* Calculator Styles */
|
|
.hex-calculator {
|
|
background-color: #1a1a1a;
|
|
min-height: fit-content;
|
|
}
|
|
|
|
.calculator-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.calc-display {
|
|
background-color: #111111;
|
|
border: 1px solid #404040;
|
|
border-radius: 6px;
|
|
padding: 12px;
|
|
}
|
|
|
|
.calc-input input {
|
|
width: 100%;
|
|
background-color: #2a2a2a;
|
|
border: 1px solid #555555;
|
|
border-radius: 4px;
|
|
color: #ffffff;
|
|
font-family: 'Consolas', monospace;
|
|
font-size: 16px;
|
|
font-weight: bold;
|
|
padding: 8px;
|
|
text-align: right;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.calc-conversions {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.conversion-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 3px 0;
|
|
border-bottom: 1px solid #333333;
|
|
}
|
|
|
|
.conversion-row:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.conv-label {
|
|
color: #888888;
|
|
font-weight: bold;
|
|
font-size: 0.8em;
|
|
min-width: 30px;
|
|
}
|
|
|
|
.conv-value {
|
|
color: #cccccc;
|
|
font-family: 'Consolas', monospace;
|
|
font-size: 0.8em;
|
|
word-break: break-all;
|
|
text-align: right;
|
|
flex: 1;
|
|
margin-left: 10px;
|
|
}
|
|
|
|
.calc-buttons {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.calc-row {
|
|
display: grid;
|
|
grid-template-columns: repeat(5, 1fr);
|
|
gap: 4px;
|
|
}
|
|
|
|
.calc-btn {
|
|
background-color: #2a2a2a;
|
|
border: 1px solid #4a4a4a;
|
|
border-radius: 3px;
|
|
color: #ffffff;
|
|
cursor: pointer;
|
|
font-family: 'Consolas', monospace;
|
|
font-size: 0.8em;
|
|
font-weight: bold;
|
|
min-height: 32px;
|
|
padding: 4px;
|
|
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: 6px;
|
|
color: #cccccc;
|
|
font-weight: normal;
|
|
font-size: 0.95em;
|
|
}
|
|
|
|
.unit-indicator {
|
|
color: #88cc88;
|
|
font-weight: bold;
|
|
font-size: 0.85em;
|
|
}
|
|
|
|
.input-group input {
|
|
padding: 12px;
|
|
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: 4px;
|
|
font-style: italic;
|
|
}
|
|
|
|
/* Result Items */
|
|
.result-item {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 10px 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: 8px;
|
|
}
|
|
|
|
.result-value {
|
|
color: #ffffff;
|
|
font-family: 'Consolas', monospace;
|
|
text-align: right;
|
|
font-weight: bold;
|
|
min-width: 120px;
|
|
cursor: help;
|
|
}
|
|
|
|
.copy-btn {
|
|
background: none;
|
|
border: none;
|
|
color: #888888;
|
|
cursor: pointer;
|
|
padding: 4px;
|
|
border-radius: 3px;
|
|
transition: all 0.2s;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.copy-btn:hover {
|
|
color: #ffffff;
|
|
background-color: #404040;
|
|
}
|
|
|
|
.copy-btn:active {
|
|
color: #88cc88;
|
|
}
|
|
|
|
/* Result Groups */
|
|
.result-group {
|
|
margin-bottom: 20px;
|
|
border: 1px solid #3a3a3a;
|
|
border-radius: 6px;
|
|
padding: 15px;
|
|
background-color: #2a2a2a;
|
|
}
|
|
|
|
.result-group h3 {
|
|
color: #ffffff;
|
|
margin-bottom: 10px;
|
|
font-size: 1.1em;
|
|
border-bottom: 1px solid #3a3a3a;
|
|
padding-bottom: 5px;
|
|
}
|
|
|
|
/* Formula Styles */
|
|
.formula-box {
|
|
background-color: #151515;
|
|
border: 1px solid #404040;
|
|
border-radius: 4px;
|
|
padding: 15px;
|
|
margin: 10px 0;
|
|
font-family: 'Consolas', monospace;
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
.formula {
|
|
margin: 8px 0;
|
|
color: #d0d0d0;
|
|
word-wrap: break-word;
|
|
}
|
|
|
|
.calculated {
|
|
color: #ffffff;
|
|
font-weight: bold;
|
|
}
|
|
|
|
/* Tooltip */
|
|
.tooltip {
|
|
position: absolute;
|
|
background-color: #1a1a1a;
|
|
color: #ffffff;
|
|
padding: 8px 12px;
|
|
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;
|
|
}
|
|
|
|
/* Mobile Responsive */
|
|
@media (max-width: 768px) {
|
|
.result-item {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: 5px;
|
|
}
|
|
|
|
.result-value {
|
|
text-align: left;
|
|
min-width: auto;
|
|
}
|
|
} |