51 lines
904 B
CSS
Raw Normal View History

/*
Nicola Clark
06APR25
Adapted from https://javascript30.com - Sorting band names without articles
*/
2025-04-06 22:46:26 -05:00
* {
box-sizing: border-box;
margin: 0;
2025-04-06 22:46:26 -05:00
padding: 0;
}
body {
font-family: sans-serif;
2025-04-06 23:07:20 -05:00
font-size: 1.5rem;
2025-04-06 22:48:57 -05:00
background-color: seagreen;
display: flex;
align-items: center;
min-height: 100vh;
}
#bands {
list-style: inside square;
background: white;
2025-04-06 23:09:02 -05:00
/* 80px is 20px on each side of body bg color + 20px each side for shadow */
width: calc(100% - 80px);
margin: auto;
box-shadow: 0 0 0 20px rgba(0, 0, 0, 0.05);
}
#bands li {
border-bottom: 1px solid #efefef;
padding: 20px;
}
2025-04-06 23:06:10 -05:00
#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;
}