site-accueil-insa/assets/css/photos.css

298 lines
5.1 KiB
CSS
Raw Normal View History

2019-07-23 18:30:18 +02:00
#photoContainer {
2019-07-23 18:17:17 +02:00
margin: 0 5%;
}
2019-07-23 18:30:18 +02:00
.photos-folder-container {
2018-03-25 13:22:28 +02:00
width: 100%;
2018-03-29 17:20:05 +02:00
border: 1px solid #5a5a5a;
border-radius: 5px;
2018-03-25 13:22:28 +02:00
}
2019-07-23 18:30:18 +02:00
.photos-folder-container a:hover, .photos-path a:hover, #downloadAlbum:hover {
2018-03-25 14:19:53 +02:00
box-shadow: 0 0 10px #000;
2018-04-23 18:20:39 +02:00
background-color: #635247;
2018-03-25 13:22:28 +02:00
}
2019-07-23 18:30:18 +02:00
.photos-folder-container a {
2018-03-25 13:22:28 +02:00
text-decoration: none;
2018-03-29 17:20:05 +02:00
border-radius: 5px;
2019-07-23 18:30:18 +02:00
width: 200px;
height: 120px;
2018-03-25 13:22:28 +02:00
padding: 10px;
margin: 5px;
2018-04-23 18:20:39 +02:00
position: relative;
2018-04-21 15:20:18 +02:00
display: inline-flex;
2018-03-25 13:22:28 +02:00
align-items: center;
justify-content: center;
2018-03-29 17:20:05 +02:00
background-color: #1a1a1a;
box-shadow: 0 0 4px #000;
2018-03-25 13:22:28 +02:00
transition: 0.3s;
2018-04-23 18:20:39 +02:00
}
2019-07-23 18:17:17 +02:00
#folderTitle {
2018-04-23 18:20:39 +02:00
position: absolute;
top: 10px;
color: #73b795;
font-size: 25px;
text-shadow: 0 0 5px #1c1c1c;
}
2019-07-23 18:17:17 +02:00
#folderPhotos, #folderAlbums {
2018-04-23 18:20:39 +02:00
color: #808080;
font-size: 18px;
text-shadow: 0 0 5px #1c1c1c;
}
2019-07-23 18:17:17 +02:00
#folderPhotos {
2018-04-23 18:20:39 +02:00
position: absolute;
bottom: 30px;
}
2019-07-23 18:17:17 +02:00
#folderAlbums {
2018-04-23 18:20:39 +02:00
position: absolute;
bottom: 0;
2018-03-25 13:22:28 +02:00
}
.photos img {
display: inline-flex;
2019-07-23 18:17:17 +02:00
width: 200px;
2018-03-25 13:22:28 +02:00
opacity: 1;
cursor: pointer;
transition: 0.3s;
2018-03-29 17:20:05 +02:00
padding: 0;
2018-04-24 00:15:37 +02:00
margin: 10px 2px 0 2px;
2019-07-23 18:17:17 +02:00
border-radius: 0.5rem;
2018-03-25 13:22:28 +02:00
}
.photos img:hover {
2018-03-29 17:20:05 +02:00
box-shadow: 0 0 5px #000;
2018-04-24 00:15:37 +02:00
-webkit-filter: blur(1px); /* Safari 6.0 - 9.0 */
filter: blur(1px);
2019-07-23 18:17:17 +02:00
opacity: 0.5;
border-radius: 1rem;
2018-03-25 13:22:28 +02:00
}
.photos img:active {
2018-03-29 17:20:05 +02:00
box-shadow: 0 0 10px #000;
2018-03-25 13:22:28 +02:00
}
2018-06-05 20:03:33 +02:00
.photos-path {
2018-03-25 13:22:28 +02:00
width: 100%;
display: flex;
list-style: none;
2018-04-21 15:20:18 +02:00
padding: 0;
2019-07-23 18:30:18 +02:00
line-height: 15px;
2018-03-25 13:22:28 +02:00
}
2018-06-05 20:03:33 +02:00
.photos-path a {
2018-03-25 13:22:28 +02:00
font-size: 15px;
text-decoration: none;
2019-07-23 18:30:18 +02:00
border-radius: 2px;
2018-03-25 13:22:28 +02:00
padding: 5px;
margin: 5px;
2018-04-21 15:20:18 +02:00
display: inline-flex;
2018-03-25 13:22:28 +02:00
align-items: center;
justify-content: center;
2018-03-29 17:20:05 +02:00
background-color: #1a1a1a;
box-shadow: 0 0 4px #000;
2018-04-24 00:15:37 +02:00
text-shadow: 0 0 5px #1c1c1c;
2018-03-25 13:22:28 +02:00
transition: 0.3s;
2018-03-29 17:20:05 +02:00
color: #e0e0e0;
2018-03-25 13:22:28 +02:00
}
2019-07-23 18:17:17 +02:00
#imgBig {
2018-04-21 15:20:18 +02:00
margin: 0;
padding: 0;
2018-03-25 13:22:28 +02:00
position: fixed;
2018-04-21 15:20:18 +02:00
z-index: 6;
2018-03-25 13:22:28 +02:00
left: 50%;
top: 50%;
max-width: none;
max-height: none;
2018-03-25 13:22:28 +02:00
transform: translate(-50%, -50%);
box-shadow: 0 0 5px #000;
2018-03-25 13:22:28 +02:00
}
2019-07-23 18:17:17 +02:00
#photoButtonsContainer {
position: fixed;
display: block;
z-index: 10;
/* Block selection of buttons (useful for mobile devices) */
-webkit-user-select: none; /* Chrome all / Safari all */
-moz-user-select: none; /* Firefox all */
-ms-user-select: none; /* IE 10+ */
2018-03-25 13:22:28 +02:00
}
2019-07-23 18:17:17 +02:00
#rightButton, #leftButton {
transition: 0.2s;
2018-04-21 15:20:18 +02:00
position: fixed;
2019-07-23 18:17:17 +02:00
top: 0;
width: 10%;
background-color: rgba(255, 255, 255, 0.05);
2018-04-21 15:20:18 +02:00
height: 100%;
2019-07-23 18:17:17 +02:00
display: flex;
font-size: 5rem;
cursor: pointer;
2018-03-25 13:22:28 +02:00
}
2019-07-23 18:17:17 +02:00
#rightButton {
right: 0;
2018-03-25 13:22:28 +02:00
}
2019-07-23 18:17:17 +02:00
#leftButton {
2018-04-21 15:20:18 +02:00
left: 0;
}
2019-07-23 18:17:17 +02:00
#closeButton, #downloadButton {
transition: 0.2s;
position: fixed;
color: white;
display: flex;
font-size: 3rem;
top: 0;
width: 80px;
height: 80px;
background-color: rgba(255, 255, 255, 0.05);
cursor: pointer;
}
2019-07-23 18:17:17 +02:00
#closeButton {
right: 10%;
2018-04-21 15:20:18 +02:00
}
2019-07-23 18:17:17 +02:00
#downloadButton {
right: calc(10% + 80px);
2018-04-21 15:20:18 +02:00
}
2019-07-23 18:17:17 +02:00
#rightButton:hover, #leftButton:hover, #closeButton:hover, #downloadButton:hover {
background-color: rgba(255, 255, 255, 0.2);
2018-04-21 15:20:18 +02:00
}
2019-07-23 18:17:17 +02:00
#rightButton i, #leftButton i, #closeButton i, #downloadButton i {
margin: auto;
2018-04-21 15:20:18 +02:00
}
2019-07-23 18:17:17 +02:00
#rightButton:active, #leftButton:active, #closeButton:active, #downloadButton:active {
background-color: rgba(255, 255, 255, 0.4);
2018-04-21 15:20:18 +02:00
}
2019-07-23 18:17:17 +02:00
#loadingIconContainer {
2018-04-23 12:04:40 +02:00
color: white;
width: 100%;
height: 100%;
z-index: 8;
2018-04-21 15:20:18 +02:00
position: fixed;
2019-07-23 18:17:17 +02:00
display: flex;
font-size: 5rem;
2018-04-21 15:20:18 +02:00
}
2019-07-23 18:17:17 +02:00
#loadingIconContainer i {
margin: auto;
2018-04-21 15:20:18 +02:00
}
2018-03-25 13:22:28 +02:00
2019-07-23 18:17:17 +02:00
#closeBack {
2018-03-25 13:22:28 +02:00
position: fixed;
width: 100%;
height: 100%;
2019-07-23 18:17:17 +02:00
background-color: #1c1c1c;
2018-03-25 13:22:28 +02:00
}
2019-07-23 18:17:17 +02:00
#photoOverlay {
2018-04-21 15:20:18 +02:00
top: 0;
left: 0;
position: fixed;
width: 100%;
height: 100%;
z-index: 5;
2018-03-25 13:22:28 +02:00
}
2019-07-23 18:17:17 +02:00
#downloadAlbum {
height: 70px;
width: 200px;
display: inline-flex;
position: relative;
align-items: center;
justify-content: center;
background-color: #1a1a1a;
box-shadow: 0 0 4px #000;
2018-04-24 00:15:37 +02:00
text-shadow: 0 0 5px #1c1c1c;
transition: 0.3s;
color: #28ca2a;
cursor: pointer;
margin: 5px;
}
2019-07-23 18:17:17 +02:00
#downloadText {
margin-top: 5px;
position: absolute;
top: 0;
}
2019-07-23 18:17:17 +02:00
#albumPhotoCount {
color: #929ba8;
margin-bottom: 5px;
position: absolute;
bottom: 0;
}
2019-07-23 18:17:17 +02:00
#downloadText svg {
width: 24px;
height: 24px;
margin-right: 5px;
}
2019-07-23 18:17:17 +02:00
@media screen and (max-width: 768px) {
#rightButton, #leftButton {
width: 80px;
font-size: 3rem;
}
#closeButton {
right: 50%;
transform: translateX(100%);
}
#downloadButton {
right: 50%;
}
}
@media screen and (max-width: 576px) {
2019-07-23 18:30:18 +02:00
.photos-folder-container a {
min-width: 100px;
height: 70px;
2018-03-25 13:22:28 +02:00
}
2019-07-23 18:17:17 +02:00
#folderTitle {
2018-04-23 18:20:39 +02:00
position: absolute;
top: 5px;
color: #73b795;
2018-04-23 18:20:39 +02:00
font-size: 15px;
text-shadow: 0 0 5px #1c1c1c;
2018-04-23 18:20:39 +02:00
}
2019-07-23 18:17:17 +02:00
#folderPhotos, #folderAlbums {
2018-04-23 18:20:39 +02:00
color: #808080;
font-size: 10px;
}
2019-07-23 18:17:17 +02:00
#folderPhotos {
2018-04-23 18:20:39 +02:00
position: absolute;
bottom: 20px;
}
2019-07-23 18:17:17 +02:00
#folderAlbums {
2018-04-23 18:20:39 +02:00
position: absolute;
bottom: 0;
}
2019-07-23 18:17:17 +02:00
.photos img {
width: 140px;
}
2018-03-25 13:22:28 +02:00
}