Fix open photo position
This commit is contained in:
parent
eb6f3f08ed
commit
9cab7a69f7
3 changed files with 54 additions and 41 deletions
|
|
@ -133,48 +133,59 @@
|
|||
|
||||
#open-image {
|
||||
display: none;
|
||||
position: fixed;
|
||||
top: 2rem;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: 999;
|
||||
width: 100%;
|
||||
height: 100vh;
|
||||
|
||||
.close {
|
||||
cursor: pointer;
|
||||
font-family: AtomicAge-Regular;
|
||||
font-size: 2rem;
|
||||
.wrapper {
|
||||
position: absolute;
|
||||
right: 5px;
|
||||
top: 0;
|
||||
}
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
width: 75%;
|
||||
height: 75%;
|
||||
|
||||
img {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
#details {
|
||||
display: block;
|
||||
height: auto;
|
||||
padding: 1rem 1rem;
|
||||
|
||||
background-color: colors.$computerBorder;
|
||||
|
||||
p {
|
||||
margin: 0;
|
||||
.close {
|
||||
cursor: pointer;
|
||||
font-family: AtomicAge-Regular;
|
||||
font-size: 2rem;
|
||||
position: absolute;
|
||||
right: 5px;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
#caption {
|
||||
font-size: 1.5rem;
|
||||
padding-bottom: 1rem;
|
||||
|
||||
img {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
#location, #date, #equipment {
|
||||
font-size: 1.25rem;
|
||||
|
||||
#details {
|
||||
display: block;
|
||||
height: auto;
|
||||
padding: 1rem 1rem;
|
||||
|
||||
background-color: colors.$computerBorder;
|
||||
|
||||
p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#caption {
|
||||
font-size: 1.5rem;
|
||||
padding-bottom: 1rem;
|
||||
}
|
||||
|
||||
#location, #date, #equipment {
|
||||
font-size: 1.25rem;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
&.open {
|
||||
display: block;
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue