my-projects-website/app/application/resources/home/scss/app.scss

73 lines
1.4 KiB
SCSS
Raw Permalink Normal View History

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');
@import "reset";
body {
margin: 0 20px;
font-family: "Roboto", sans-serif;
}
.projects-list {
padding: 0;
list-style: none;
a {
display: block;
text-decoration: none;
}
a:hover .projects-list__title {
box-shadow: 0px -1px 4px rgba(0, 0, 0, 0.7);
}
li {
padding-bottom: 20px;
}
}
.projects-list__img {
display: block;
background: #ddd;
height: 150px;
img {
object-fit: contain;
max-width: 100%;
max-height: 100%;
margin: auto;
}
}
.projects-list__title {
background: #ccc;
font-size: 18px;
font-weight: bold;
display: block;
padding: 10px;
box-shadow: 0px -1px 4px rgba(0, 0, 0, 0.3);
transition: box-shadow 0.3s ease-out;
}
@media (min-width: 600px) {
.projects-list {
display: grid;
margin-left: -20px;
li {
margin-left: 20px;
}
}
}
@media (min-width: 600px) and (max-width: 899px) {
.projects-list {
grid-template-columns: 1fr 1fr;
}
}
@media (min-width: 900px) and (max-width: 1100px) {
.projects-list {
grid-template-columns: 1fr 1fr 1fr;
}
}
@media (min-width: 1001px) {
body {
max-width: 1200px;
margin: 0 auto;
}
.projects-list {
grid-template-columns: 1fr 1fr 1fr 1fr;
}
}