brutal-legends/css/brutal.css

264 lines
4 KiB
CSS
Raw Normal View History

2019-12-28 13:18:52 +01:00
/* === Base === */
body {
background-color: #111;
color: #aaa;
font-size: large;
2020-03-05 21:48:45 +01:00
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto,
Helvetica Neue, Arial, sans-serif;
2019-12-28 13:18:52 +01:00
padding: 0;
margin: 0 auto;
max-width: 80em;
}
a:link {
color: #a83;
}
a:visited {
color: #a83;
text-decoration: line-through;
}
2020-03-05 21:48:45 +01:00
a:hover,
a:focus {
2019-12-28 13:18:52 +01:00
color: #fff;
}
a:active {
transform: translate(2px, 2px);
}
header {
border-bottom: 3px solid #a83;
padding: 0.5em 0.5em;
margin-bottom: 0.5em;
align-items: center;
}
@media (min-width: 500px) {
header {
display: flex;
justify-content: space-between;
padding: 0.5em;
margin: 0;
}
}
@media (min-width: 1200px) {
header {
margin: 0.5em 0;
}
}
h1 {
text-transform: uppercase;
margin: 0;
font-size: 1.5em;
}
p:first-child {
margin-top: 0;
}
p:last-child {
margin-bottom: 0;
}
2020-03-05 21:48:45 +01:00
/* === /Base === */
/* === Field === */
.field {
2019-12-28 13:18:52 +01:00
background-color: #333;
color: #fff;
border-width: 0;
border-radius: 5px;
font-size: large;
2020-03-05 21:48:45 +01:00
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto,
Helvetica Neue, Arial, sans-serif;
padding: 0.5rem 1rem;
2019-12-28 13:18:52 +01:00
display: block;
width: 100%;
box-sizing: border-box;
margin-top: 0.5em;
}
2020-03-05 21:48:45 +01:00
.field:hover {
2019-12-28 13:18:52 +01:00
background-color: #444;
}
2020-03-05 21:48:45 +01:00
.field:focus {
2019-12-28 13:18:52 +01:00
background-color: #fff;
color: #000;
}
@media (min-width: 500px) {
2020-03-05 21:48:45 +01:00
.field {
2019-12-28 13:18:52 +01:00
margin-top: 0;
}
2020-03-05 21:48:45 +01:00
input.field {
min-width: 17em;
}
2019-12-28 13:18:52 +01:00
}
2020-03-05 21:48:45 +01:00
/* === /Field === */
2019-12-28 13:18:52 +01:00
/* === Helpers === */
.blur {
filter: blur(25px);
}
2020-03-05 21:48:45 +01:00
.visuallyhidden {
position: absolute;
left: -9999em;
}
2019-12-28 13:18:52 +01:00
/* === /Helpers === */
/* === Albums === */
.album {
display: flex;
align-items: start;
padding: 0.5em;
margin: 0.8em 0;
}
@media (min-width: 500px) {
.album {
flex-direction: column;
margin: 0;
}
}
@media (min-width: 1200px) {
.album {
flex-direction: row;
align-items: center;
}
}
.album:hover {
background: #333;
color: #fff;
}
.album__cover {
margin: 0 0.5em 0 0;
padding-top: 7px;
}
@media (min-width: 500px) {
.album__cover {
margin: 0 0 0.5em;
2020-03-05 21:48:45 +01:00
width: 100%;
2019-12-28 13:18:52 +01:00
padding-top: 0;
}
}
@media (min-width: 1200px) {
.album__cover {
margin: 0 1em 0 0;
2020-03-05 21:48:45 +01:00
width: auto;
2019-12-28 13:18:52 +01:00
padding-top: 0;
}
}
.album__cover__media {
width: 25vw;
height: 25vw;
position: relative;
}
.album__cover__media:after {
position: absolute;
2020-03-05 21:48:45 +01:00
content: "";
2019-12-28 13:18:52 +01:00
top: 0;
right: 0;
bottom: 0;
left: 0;
background-color: #fff;
z-index: 10;
}
@media (min-width: 500px) {
.album__cover__media {
width: 100%;
height: 100%;
}
}
@media (min-width: 1200px) {
.album__cover__media {
width: 10vw;
height: 10vw;
}
}
@media (min-width: 500px) {
.albums {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
grid-gap: 0.5em;
text-transform: uppercase;
padding-bottom: 2em;
}
}
/* === /Albums === */
/* === Selected album === */
.selected-album {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
2020-03-05 21:48:45 +01:00
display: flex;
align-items: center;
justify-content: center;
2019-12-28 13:18:52 +01:00
}
.selected-album__inner {
overflow: auto;
2020-03-05 21:48:45 +01:00
border: 3px solid #a83;
background: black;
padding: 2em;
max-height: 80%;
display: flex;
2019-12-28 13:18:52 +01:00
flex-direction: column;
align-items: center;
}
.selected-album__summary {
text-transform: uppercase;
padding: 0.5em;
margin-bottom: 0.5em;
}
.selected-album__description {
color: #fff;
2020-03-05 21:48:45 +01:00
padding: 0 0.5rem 2em;
margin: 0 auto;
2019-12-28 13:18:52 +01:00
max-width: 40em;
2020-03-05 21:48:45 +01:00
}
.selected-album__cover {
display: none;
}
@media (min-width: 1200px) {
.selected-album__cover {
display: block;
width: 75vh;
max-width: 900px;
height: auto;
}
.selected-album__media {
width: 100%;
height: auto;
}
2019-12-28 13:18:52 +01:00
}
/* === /Selected album === */