237 lines
3.8 KiB
CSS
237 lines
3.8 KiB
CSS
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Consolas', 'Courier New', monospace;
|
|
background-color: #1a1a1a;
|
|
color: #e0e0e0;
|
|
line-height: 1.5;
|
|
min-height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
/* Header */
|
|
.header {
|
|
background-color: #2a2a2a;
|
|
border-bottom: 2px solid #3a3a3a;
|
|
padding: 10px 0;
|
|
}
|
|
|
|
.header-content {
|
|
max-width: 1400px;
|
|
margin: 0 auto;
|
|
padding: 0 15px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.logo {
|
|
font-size: 1.3em;
|
|
font-weight: bold;
|
|
color: #ffffff;
|
|
}
|
|
|
|
.nav {
|
|
display: flex;
|
|
gap: 15px;
|
|
}
|
|
|
|
.nav a {
|
|
color: #cccccc;
|
|
text-decoration: none;
|
|
transition: color 0.2s;
|
|
}
|
|
|
|
.nav a:hover {
|
|
color: #ffffff;
|
|
}
|
|
|
|
/* Main Content */
|
|
.main-content {
|
|
flex: 1;
|
|
padding: 12px;
|
|
}
|
|
|
|
.container {
|
|
max-width: 1400px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
h1 {
|
|
text-align: center;
|
|
margin-bottom: 15px;
|
|
color: #ffffff;
|
|
font-size: 1.8em;
|
|
font-weight: normal;
|
|
}
|
|
|
|
/* Tabs */
|
|
.tabs {
|
|
display: flex;
|
|
background-color: #2a2a2a;
|
|
border-radius: 6px 6px 0 0;
|
|
border: 1px solid #3a3a3a;
|
|
border-bottom: none;
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.tab {
|
|
padding: 10px 20px;
|
|
cursor: pointer;
|
|
background-color: #2a2a2a;
|
|
border-right: 1px solid #3a3a3a;
|
|
color: #cccccc;
|
|
transition: all 0.2s;
|
|
white-space: nowrap;
|
|
min-width: 100px;
|
|
text-align: center;
|
|
}
|
|
|
|
.tab:last-child {
|
|
border-right: none;
|
|
}
|
|
|
|
.tab:hover {
|
|
background-color: #353535;
|
|
}
|
|
|
|
.tab.active {
|
|
background-color: #3a3a3a;
|
|
color: #ffffff;
|
|
border-bottom: 2px solid #666666;
|
|
}
|
|
|
|
.tab-content {
|
|
display: none;
|
|
background-color: #2a2a2a;
|
|
border: 1px solid #3a3a3a;
|
|
border-radius: 0 0 6px 6px;
|
|
padding: 12px;
|
|
}
|
|
|
|
.tab-content.active {
|
|
display: block;
|
|
}
|
|
|
|
/* Sections */
|
|
.section {
|
|
background-color: #252525;
|
|
border-radius: 6px;
|
|
padding: 12px;
|
|
margin-bottom: 12px;
|
|
border: 1px solid #3a3a3a;
|
|
}
|
|
|
|
.section h2 {
|
|
color: #cccccc;
|
|
margin-bottom: 10px;
|
|
border-bottom: 1px solid #3a3a3a;
|
|
padding-bottom: 6px;
|
|
font-weight: normal;
|
|
font-size: 1.2em;
|
|
}
|
|
|
|
/* Merged constant and result sections - same background */
|
|
.constants, .results {
|
|
background-color: #202020;
|
|
}
|
|
|
|
.formulas {
|
|
background-color: #1a1a1a;
|
|
}
|
|
|
|
/* Layout */
|
|
.constants-calculator-container {
|
|
display: grid;
|
|
grid-template-columns: 1fr 320px;
|
|
gap: 12px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
@media (max-width: 1024px) {
|
|
.constants-calculator-container {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
/* Input Grid */
|
|
.input-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
|
|
gap: 10px;
|
|
margin: 12px 0;
|
|
}
|
|
|
|
.constants .input-grid {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
max-width: 100%;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.input-grid {
|
|
grid-template-columns: 1fr;
|
|
gap: 10px;
|
|
}
|
|
|
|
.constants-calculator-container {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
/* Footer */
|
|
.footer {
|
|
background-color: #2a2a2a;
|
|
border-top: 1px solid #3a3a3a;
|
|
padding: 15px 0;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.footer-content {
|
|
max-width: 1400px;
|
|
margin: 0 auto;
|
|
padding: 0 15px;
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
|
gap: 20px;
|
|
}
|
|
|
|
.footer-section h3 {
|
|
color: #ffffff;
|
|
margin-bottom: 8px;
|
|
font-size: 1.05em;
|
|
}
|
|
|
|
.footer-section p,
|
|
.footer-section a {
|
|
color: #cccccc;
|
|
font-size: 0.9em;
|
|
text-decoration: none;
|
|
margin-bottom: 4px;
|
|
display: block;
|
|
}
|
|
|
|
.footer-section a:hover {
|
|
color: #ffffff;
|
|
}
|
|
|
|
.footer-bottom {
|
|
text-align: center;
|
|
padding-top: 15px;
|
|
margin-top: 15px;
|
|
border-top: 1px solid #3a3a3a;
|
|
color: #888888;
|
|
font-size: 0.85em;
|
|
}
|
|
|
|
.error {
|
|
color: #ff8888;
|
|
font-style: italic;
|
|
} |