51 lines
825 B
CSS

/*
Nicola Clark
06APR25
Adapted from https://javascript30.com - Sorting band names without articles
*/
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: sans-serif;
background-color: seagreen;
display: flex;
align-items: center;
min-height: 100vh;
}
#bands {
list-style: inside square;
font-size: 20px;
background: white;
width: 500px;
margin: auto;
padding: 0;
box-shadow: 0 0 0 20px rgba(0, 0, 0, 0.05);
}
#bands li {
border-bottom: 1px solid #efefef;
padding: 20px;
}
#bands li::marker {
/*
* wanted the list marker to match the border color
* MDN to the rescue: https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/color-mix
* voila:
*/
color: color-mix(in srgb, black 5%, seagreen);
}
#bands li:last-child {
border-bottom: 0;
}