site-accueil-insa/assets/css/photos.css
2018-04-21 15:20:18 +02:00

195 lines
3.2 KiB
CSS

.photos_folder {
width: 100%;
border: 1px solid #5a5a5a;
border-radius: 5px;
}
.photos_folder a:hover, .photos_path a:hover {
box-shadow: 0 0 10px #000;
background-color: #e0e0e0;
color: black;
}
.photos_folder a {
font-size: 25px;
text-decoration: none;
border-radius: 5px;
min-width: 100px;
height: 100px;
padding: 10px;
margin: 5px;
display: inline-flex;
align-items: center;
justify-content: center;
background-color: #1a1a1a;
box-shadow: 0 0 4px #000;
transition: 0.3s;
color: #e0e0e0;
}
.photos img {
display: inline-flex;
width: 25%;
opacity: 1;
cursor: pointer;
transition: 0.3s;
padding: 0;
}
.photos img:hover {
box-shadow: 0 0 5px #000;
opacity: 0.7;
}
.photos img:active {
box-shadow: 0 0 10px #000;
}
.no_photo {
font-size: 25px;
text-decoration: none;
border-radius: 10px;
width: 100%;
display: flex;
align-items: center;
justify-content: center;
}
.photos_path {
width: 100%;
display: flex;
list-style: none;
padding: 0;
}
.photos_path a {
font-size: 15px;
text-decoration: none;
border-radius: 5px;
padding: 5px;
margin: 5px;
display: inline-flex;
align-items: center;
justify-content: center;
background-color: #1a1a1a;
box-shadow: 0 0 4px #000;
transition: 0.3s;
color: #e0e0e0;
}
#img_big {
margin: 0;
padding: 0;
position: fixed;
max-width: 100%;
max-height: 100%;
z-index: 6;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
}
#close, #right, #left, #fullscreen {
color: white;
width: 25px;
height: 25px;
transition: 0.3s;
cursor: pointer;
z-index: 7;
}
#right {
position: fixed;
height: 100%;
right: 0;
top: 50%;
transform: translateY(-50%);
background: linear-gradient(to left, #1c1c1c, transparent 90%);
}
#left {
position: fixed;
height: 100%;
left: 0;
top: 50%;
transform: translateY(-50%);
background: linear-gradient(to right, #1c1c1c, transparent 90%);
}
#close {
color: #ca0600;
position: absolute;
left: 0;
bottom: 0;
}
#fullscreen {
color: #2377c6;
position: absolute;
right: 0;
bottom: 0;
}
#right:hover, #left:hover {
width: 50px;
}
#right:active, #left:active {
width: 40px;
}
#close:hover, #fullscreen:hover {
height: 50px;
width: 50px;
}
#close:active, #fullscreen:active {
height: 40px;
width: 40px;
}
#photo_control {
position: fixed;
bottom: 0;
right: 50%;
transform: translateX(50%);
background: #1c1c1c;
height: 25px;
width: 75px;
border-radius: 5px;
transition: 0.3s;
}
#photo_control:hover {
height: 50px;
}
#photo_buttons{
position: fixed;
display: block;
z-index: 10;
}
#close_back {
position: fixed;
width: 100%;
height: 100%;
}
#photo_overlay {
top: 0;
left: 0;
position: fixed;
width: 100%;
height: 100%;
background-color: #212121;
z-index: 5;
}
@media screen and (max-width: 480px) {
.photos_folder a {
font-size: 15px;
min-width: 50px;
height: 50px;
}
}