Stylize galeri.html

This commit is contained in:
Ferit Yiğit BALABAN
2022-07-26 01:36:40 +03:00
parent 435e7c0b4c
commit dadcbf3277
2 changed files with 58 additions and 9 deletions

View File

@@ -5,6 +5,7 @@
@use "views/iletisim.scss";
@use "views/hakkimizda.scss";
@use "views/kamera.scss";
@use "views/galeri.scss";
@use "partials/header.scss";
@use "partials/footer.scss";
@use "sass:math";
@@ -19,6 +20,19 @@ html, body {
font-family: sans-serif;
}
a {
text-decoration: none;
color: variables.$clr_nav_sleep;
&:hover {
color: variables.$clr_nav_active;
}
&:active {
font-style: italic;
}
}
.content-spacing {
padding: math.div(variables.$px_horizontalPadding, 2) variables.$px_horizontalPadding;
@@ -271,16 +285,18 @@ html, body {
filter: invert(100%);
}
&:hover {
width: $px_scroll-to-top_size + 10;
height: $px_scroll-to-top_size + 10;
right: 20px;
bottom: 50px;
transition: 250ms cubic-bezier(0.51, 1.27, 0.18, 0.96);
img {
transform: translateY(-5px);
@media (hover: hover) and (pointer: fine) {
&:hover {
width: $px_scroll-to-top_size + 10;
height: $px_scroll-to-top_size + 10;
right: 20px;
bottom: 50px;
transition: 250ms cubic-bezier(0.51, 1.27, 0.18, 0.96);
img {
transform: translateY(-5px);
transition: 250ms cubic-bezier(0.51, 1.27, 0.18, 0.96);
}
}
}
}

View File

@@ -0,0 +1,33 @@
#fullscreen {
display: none;
align-items: center;
justify-content: center;
width: 99vw;
height: 100vh;
#fullscreen-img {
max-width: 100%;
max-height: 100vh;
object-fit: cover;
cursor: pointer;
}
}
.gallery {
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: center;
align-items: center;
.photo {
margin: 1vh 1vw;
width: 25%;
height: 25%;
cursor: pointer;
&:hover {
filter: brightness(1.3);
}
}
}