Teumbleur/style.css

97 lines
1.4 KiB
CSS
Raw Normal View History

2022-09-16 17:14:51 +00:00
body {
background-color: #0A0A0A;
}
p {
font-family: 'Terminal Dosis Light', sans-serif;
color: #F4F4F4;
}
a {
color: #BD0235;
text-decoration: none;
}
div {
font-family: 'Terminal Dosis Light', sans-serif;
}
img {
max-width: 600px;
2022-09-16 17:14:51 +00:00
height: auto;
border-radius: 12px;
}
#scrollUp {
position: fixed;
bottom : 10px;
right: -100px;
opacity: 0.5;
}
.grid-container {
display: grid;
max-width: 1000px;
margin-left: auto;
margin-right: auto;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
grid-gap: 1em;
}
/* hover styles */
.location-listing {
position: relative;
}
.location-image {
line-height: 0;
overflow: hidden;
2022-09-27 21:02:38 +00:00
border-radius: 5px;
}
.location-image img {
filter: blur(0px);
transition: filter 0.3s ease-in;
transform: scale(1.1);
}
.location-title {
font-size: 1.5em;
font-weight: bold;
text-decoration: none;
z-index: 1;
position: absolute;
height: 100%;
width: 100%;
top: 0;
left: 0;
opacity: 0;
transition: opacity .5s;
background: rgba(90,0,10,0.4);
color: white;
/* position the text in t middle*/
display: flex;
align-items: center;
justify-content: center;
}
.location-listing:hover .location-title {
opacity: 1;
}
.location-listing:hover .location-image img {
filter: blur(2px);
}
/* for touch screen devices */
@media (hover: none) {
.location-title {
opacity: 1;
}
.location-image img {
filter: blur(2px);
}
}