modularize
This commit is contained in:
234
webroot/css/main.css
Normal file
234
webroot/css/main.css
Normal file
@@ -0,0 +1,234 @@
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: 'Consolas', 'Courier New', monospace;
|
||||
background-color: #1a1a1a;
|
||||
color: #e0e0e0;
|
||||
line-height: 1.6;
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
/* Header */
|
||||
.header {
|
||||
background-color: #2a2a2a;
|
||||
border-bottom: 2px solid #3a3a3a;
|
||||
padding: 15px 0;
|
||||
}
|
||||
|
||||
.header-content {
|
||||
max-width: 1400px;
|
||||
margin: 0 auto;
|
||||
padding: 0 20px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.logo {
|
||||
font-size: 1.5em;
|
||||
font-weight: bold;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.nav {
|
||||
display: flex;
|
||||
gap: 20px;
|
||||
}
|
||||
|
||||
.nav a {
|
||||
color: #cccccc;
|
||||
text-decoration: none;
|
||||
transition: color 0.2s;
|
||||
}
|
||||
|
||||
.nav a:hover {
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
/* Main Content */
|
||||
.main-content {
|
||||
flex: 1;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.container {
|
||||
max-width: 1400px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
h1 {
|
||||
text-align: center;
|
||||
margin-bottom: 30px;
|
||||
color: #ffffff;
|
||||
font-size: 2.2em;
|
||||
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: 15px 25px;
|
||||
cursor: pointer;
|
||||
background-color: #2a2a2a;
|
||||
border-right: 1px solid #3a3a3a;
|
||||
color: #cccccc;
|
||||
transition: all 0.2s;
|
||||
white-space: nowrap;
|
||||
min-width: 120px;
|
||||
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: 20px;
|
||||
}
|
||||
|
||||
.tab-content.active {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* Sections */
|
||||
.section {
|
||||
background-color: #252525;
|
||||
border-radius: 6px;
|
||||
padding: 20px;
|
||||
margin-bottom: 20px;
|
||||
border: 1px solid #3a3a3a;
|
||||
}
|
||||
|
||||
.section h2 {
|
||||
color: #cccccc;
|
||||
margin-bottom: 15px;
|
||||
border-bottom: 1px solid #3a3a3a;
|
||||
padding-bottom: 8px;
|
||||
font-weight: normal;
|
||||
font-size: 1.3em;
|
||||
}
|
||||
|
||||
.constants {
|
||||
background-color: #202020;
|
||||
}
|
||||
|
||||
.results {
|
||||
background-color: #202020;
|
||||
}
|
||||
|
||||
.formulas {
|
||||
background-color: #1a1a1a;
|
||||
}
|
||||
|
||||
/* Layout */
|
||||
.constants-calculator-container {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 350px;
|
||||
gap: 20px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
@media (max-width: 1024px) {
|
||||
.constants-calculator-container {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 15px;
|
||||
}
|
||||
}
|
||||
|
||||
/* Input Grid */
|
||||
.input-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
|
||||
gap: 15px;
|
||||
margin: 20px 0;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.input-grid {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.constants-calculator-container {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
/* Footer */
|
||||
.footer {
|
||||
background-color: #2a2a2a;
|
||||
border-top: 1px solid #3a3a3a;
|
||||
padding: 20px 0;
|
||||
margin-top: 40px;
|
||||
}
|
||||
|
||||
.footer-content {
|
||||
max-width: 1400px;
|
||||
margin: 0 auto;
|
||||
padding: 0 20px;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
||||
gap: 30px;
|
||||
}
|
||||
|
||||
.footer-section h3 {
|
||||
color: #ffffff;
|
||||
margin-bottom: 10px;
|
||||
font-size: 1.1em;
|
||||
}
|
||||
|
||||
.footer-section p,
|
||||
.footer-section a {
|
||||
color: #cccccc;
|
||||
font-size: 0.9em;
|
||||
text-decoration: none;
|
||||
margin-bottom: 5px;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.footer-section a:hover {
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.footer-bottom {
|
||||
text-align: center;
|
||||
padding-top: 20px;
|
||||
margin-top: 20px;
|
||||
border-top: 1px solid #3a3a3a;
|
||||
color: #888888;
|
||||
font-size: 0.85em;
|
||||
}
|
||||
|
||||
.error {
|
||||
color: #ff8888;
|
||||
font-style: italic;
|
||||
}
|
||||
Reference in New Issue
Block a user