React app with Redux state, mostly based around the todo example in the Redux documentation. It's a list of items (albums) which can be filtered by a string. * A list of albums that is mapped from state to props. * A filter input is controlled by redux state.
98 lines
No EOL
1.6 KiB
CSS
98 lines
No EOL
1.6 KiB
CSS
body {
|
|
background-color: #111;
|
|
color: #aaa;
|
|
font-size: large;
|
|
font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;
|
|
padding: 5rem 10rem;
|
|
}
|
|
|
|
a:link {
|
|
color: #a83;
|
|
}
|
|
|
|
a:visited {
|
|
color: #a83;
|
|
text-decoration: line-through;
|
|
}
|
|
|
|
a:hover, a:focus {
|
|
color: #fff;
|
|
}
|
|
|
|
a:active {
|
|
transform: translate(2px, 2px);
|
|
}
|
|
|
|
header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
border-bottom: 3px solid #a83;
|
|
padding: 1.25rem 0;
|
|
margin: 1rem 0;
|
|
}
|
|
|
|
h1 {
|
|
text-transform: uppercase;
|
|
margin: 0;
|
|
}
|
|
|
|
input {
|
|
background-color: #333;
|
|
color: #fff;
|
|
border-width: 0;
|
|
border-bottom: 3px solid #555;
|
|
font-size: large;
|
|
font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;
|
|
padding: .5rem 1rem;
|
|
min-width: 17em;
|
|
}
|
|
|
|
input:hover {
|
|
background-color: #444;
|
|
border-color: #777;
|
|
}
|
|
|
|
input:focus {
|
|
background-color: #fff;
|
|
color: #000;
|
|
border-color: #a83;
|
|
}
|
|
|
|
footer {
|
|
color: #888;
|
|
font-size: small;
|
|
position: fixed;
|
|
transform: rotate(45deg) translate(2em, 3em);
|
|
top: 0;
|
|
right: 0;
|
|
}
|
|
|
|
#albums {
|
|
display: grid;
|
|
grid-template-columns: auto auto auto;
|
|
grid-gap: 10px;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
article {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
figure {
|
|
margin: 1rem;
|
|
}
|
|
|
|
article:hover,
|
|
article:focus {
|
|
background: #333;
|
|
color: #fff;
|
|
}
|
|
|
|
figure img {
|
|
width: 100px;
|
|
height: 100px;
|
|
padding: 5px;
|
|
display: block;
|
|
border: 1px solid #a83;
|
|
} |