67 lines
No EOL
1 KiB
SCSS
67 lines
No EOL
1 KiB
SCSS
@import "template.scss";
|
|
|
|
.ads {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
|
gap: 1rem;
|
|
background-color: $shade3;
|
|
padding: 1rem;
|
|
border: 2px solid $shade2;
|
|
}
|
|
|
|
.ad {
|
|
font-family: var(--header-font);
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
background-color: $white;
|
|
border: 1px solid $shade1;
|
|
padding: 1rem;
|
|
transition: 200ms background-color;
|
|
}
|
|
|
|
.ad:hover {
|
|
background-color: $light-grey;
|
|
}
|
|
|
|
.adText {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.moreInfo {
|
|
display: none;
|
|
}
|
|
|
|
.adContact {
|
|
text-align: right;
|
|
margin-top: 10px;
|
|
font-size: 16px;
|
|
animation: fadeIn 300ms ease-in-out;
|
|
}
|
|
|
|
.adContact a {
|
|
color: $base-color;
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
0% {
|
|
opacity: 0;
|
|
}
|
|
100% {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width: 900px){
|
|
.moreInfo {
|
|
display: block;
|
|
padding: 10px;
|
|
color: $white;
|
|
font-weight: bold;
|
|
font-size: 16px;
|
|
width: 110px;
|
|
text-align: center;
|
|
border-radius: $border-radius;
|
|
background-color: $shade1;
|
|
}
|
|
} |