midigen / style.css
R-Kentaren's picture
Update style.css
5d92638 verified
/* Reset and base styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Arial', sans-serif;
line-height: 1.6;
color: #333;
background-color: #f5f5f5;
padding: 20px;
}
.container {
max-width: 1200px;
margin: 0 auto;
background-color: #fff;
border-radius: 10px;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
padding: 30px;
}
header {
text-align: center;
margin-bottom: 40px;
}
.badge-container {
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
gap: 15px;
margin-bottom: 20px;
}
.badge-container img {
height: 30px;
}
.github-logo {
height: 40px;
}
h1 {
font-size: 2.5em;
margin-bottom: 10px;
color: #2c3e50;
}
.description {
font-size: 1.1em;
color: #7f8c8d;
}
/* Main content area */
main {
margin-top: 30px;
}
section {
margin-bottom: 50px;
}
h3 {
font-size: 1.5em;
margin-bottom: 20px;
padding-bottom: 10px;
border-bottom: 2px solid #eee;
color: #2c3e50;
}
/* MIDI player and visualizer */
.midi-container {
display: flex;
flex-direction: column;
align-items: center;
margin-bottom: 30px;
}
.midi-player {
width: 100%;
max-width: 600px;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
midi-visualizer {
width: 100%;
max-width: 800px;
height: 200px;
margin-bottom: 20px;
border-radius: 8px;
overflow: hidden;
background-color: #f0f0f0;
}
.html-midi-player-link {
text-align: right;
margin-top: 10px;
font-size: 0.9em;
}
.html-midi-player-link a {
color: #3498db;
text-decoration: none;
}
.html-midi-player-link a:hover {
text-decoration: underline;
}
/* Code blocks */
pre {
background-color: #f7f7f7;
border-radius: 8px;
padding: 20px;
margin-bottom: 30px;
overflow-x: auto;
font-family: 'Courier New', Courier, monospace;
font-size: 0.9em;
line-height: 1.5;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
code {
color: #333;
}
/* Responsive adjustments */
@media (max-width: 768px) {
.container {
padding: 20px;
}
.badge-container {
gap: 10px;
}
.badge-container img {
height: 25px;
}
.github-logo {
height: 35px;
}
h1 {
font-size: 2em;
}
midi-visualizer {
height: 150px;
}
}