Files
cs2440/music/css/styles.css
T
2025-03-31 12:45:58 -06:00

113 lines
1.4 KiB
CSS
Executable File

* {
margin: 0;
padding: 0;
}
body {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
margin-bottom: 5%;
}
h1 {
padding: 5%;
font-size: clamp(4vw, 6vw, 8vw);
text-align: center;
}
h3 {
font-size: clamp(2vw, 3vw, 4vw);
text-align: center;
}
h4 {
font-size: clamp(1vw, 2vw, 3vw);
text-align: center;
}
h5 {
font-size: clamp(1vw, 1.5vw, 2vw);
text-align: center;
}
a {
color: white;
}
table {
width: 100%;
}
td {
border: 1px solid black;
text-align: center;
width: 400px;
padding: 5%;
}
.center {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
#songs {
display: grid;
grid-template-columns: 20% 20% 20% 20%;
column-gap: 5%;
row-gap: 75px;
width: 80%;
justify-content: center;
}
.song_card {
padding: 5%;
background-color: gray;
border-radius: 18px;
}
.song_card img {
margin: 5%;
width: 60%;
height: auto;
border: 1px solid black;
}
#switcher {
position: absolute;
top: 0;
right: 0;
z-index: 300;
margin: 3%;
padding: 2%;
background-color: #E1341E;
color: white;
font-weight: 1000;
font-size: 1.5vw;
}
#switcher:hover {
background-color: #E75D4B;
}
/**Responsiveness**/
@media screen and (max-width: 900px) {
#songs {
grid-template-columns: 40% 40%;
column-gap: 20%;
row-gap: 75px;
width: 80%;
justify-content: center;
}
}