Photos/css/styles.css

349 lines
8.9 KiB
CSS
Raw Permalink Normal View History

2020-07-21 01:39:55 +02:00
body, html {
scroll-behavior: smooth;
background-color: black;
2024-01-05 12:02:54 +01:00
/* Disable text selection */
-webkit-user-select: none; /* Safari */
2024-01-05 12:12:11 +01:00
-moz-user-select: none; /* Firefox */
-ms-user-select: none; /* Internet Explorer/Edge */
user-select: none; /* Non-prefixed version, currently supported by Chrome, Opera and Safari */
2020-07-21 01:39:55 +02:00
}
2024-01-05 12:17:01 +01:00
* {
padding: 0;
margin: 0;
}
2020-07-21 01:39:55 +02:00
body {
margin: auto;
max-width: 1080px;
box-sizing: content-box;
padding: 0 1em;
2020-07-21 01:39:55 +02:00
}
2020-07-21 04:00:26 +02:00
/* #grid:target.button, #list:target.button {
2020-07-21 03:52:47 +02:00
filter: invert(52%) sepia(2%) saturate(23%) hue-rotate(328deg) brightness(97%) contrast(82%);
2020-07-21 04:00:26 +02:00
} */
2020-07-21 03:52:47 +02:00
2020-07-21 01:39:55 +02:00
#list:target + .photos {
margin: auto;
padding: 0;
box-sizing: content-box;
}
#list:target + .photos ul {
margin: auto;
padding: 0;
width: 100%;
margin-top: -1.25em;
}
#list:target + .photos .photo {
float: none;
background-color: white;
position: relative;
padding: 1em;
2020-07-21 02:26:11 +02:00
margin: 1em auto 2em auto;
2020-07-21 01:39:55 +02:00
box-sizing: border-box;
}
2020-07-22 15:01:53 +02:00
#list:target + .photos .photo:last-child {
margin-bottom: 0;
}
2020-07-21 01:39:55 +02:00
#list:target + .photos .content {
position: relative;
height: auto;
padding: 0;
}
#list:target + .photos .link {
cursor: default;
pointer-events: none;
position: relative;
padding: 0;
margin: 0;
}
#list:target + .photos img {
position: relative;
padding: 0;
margin: 0;
}
#list:target + .photos .link:hover > .content img {
opacity: 1;
}
#list:target + .photos .description {
opacity: 1;
background-color: white;
color: black;
text-shadow: none;
box-sizing: border-box;
display: inline-block;
position: relative;
padding: 1em;
margin: 0;
transform: none;
}
.photo:target .overlay {
display: block;
}
.photo:target {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 2;
}
#list:target + .photos .photo,
.photo:target .link {
width: 65vh;
max-width: 90vw;
}
.photo:target .link {
position: absolute;
cursor: default;
text-decoration: none;
top: 50%;
left: 50%;
box-sizing: border-box;
box-shadow: 0 0 .1em black;
2020-07-21 01:39:55 +02:00
transform: translate(-50%, -50%);
opacity: 1;
z-index: 3;
background-color: white;
padding: 1em;
}
.photo:target .link:active {
pointer-events: none;
}
.overlay {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
cursor: default;
pointer-events: auto;
z-index: 1;
background-color: rgba(0, 0, 0, .5);
2020-07-21 01:39:55 +02:00
color: white;
text-shadow: 0 0 .1em black;
text-decoration: none;
padding-left: .25em;
2020-07-21 22:16:49 +02:00
font-size: calc(1.5em + 1vw);
2020-07-21 01:39:55 +02:00
font-weight: bold;
}
2020-07-21 14:05:53 +02:00
.overlay:hover {
color: #e5e5e5;
}
2020-07-21 01:39:55 +02:00
.photo:target .content {
display: inline-block;
padding: 0;
position: relative;
}
.photo:target .description .title, .location, .date {
display: block;
}
.photo:target img {
position: relative;
display: inline-block;
margin-bottom: 1em;
overflow: hidden;
}
.photo:target .description {
display: inline-block;
position: relative;
opacity: 1;
background-color: white;
color: black;
text-shadow: none;
transform: none;
}
.photo:target .link:hover > .content img {
opacity: 1;
}
.photos {
width: 100%;
margin: 0 auto;
box-sizing: border-box;
}
.photos ul {
display: inline-block;
list-style-type: none;
margin: 0;
margin-top: -1.25em;
}
.photo {
float: left;
width: 33.33%;
position: relative;
box-sizing: border-box;
padding: 1em;
}
.photo .link:hover > .content .description {
opacity: 1;
}
.photo .link:hover > .content img {
opacity: .5;
}
.photo img {
width: 100%;
}
.photo .content {
display: block;
position: relative;
width: 100%;
height: 0;
padding-bottom: 100%;
}
.description {
opacity: 0;
color: white;
text-align: center;
text-decoration: none;
text-shadow: 0 0 .1em black;
width: 100%;
top: 50%;
-ms-transform: translateY(-50%);
transform: translateY(-50%);
position: absolute;
font-style: normal;
}
.description .title {
font-family: serif;
font-size: calc(1em + .25vw);
font-style: italic;
margin: .5em;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
}
.description .location {
font-family: monospace;
2020-07-21 01:39:55 +02:00
font-size: calc(.75em + .25vw);
margin: .25em;
overflow: hidden;
text-overflow: ellipsis;
}
.description .date {
font-family: monospace;
2020-07-21 01:39:55 +02:00
font-size: calc(.75em + .25vw);
margin: .25em;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
@media (max-width: 720px) {
body {
padding: 0 .1em .1em .1em;
}
.photos {
width: 100%;
}
.photos ul {
margin-top: -.35em;
}
.photo {
padding: .1em;
}
2020-07-22 15:01:53 +02:00
#list:target + .photos .photo {
max-width: 100%;
2020-07-21 01:39:55 +02:00
}
}
.button {
filter: invert(100%) drop-shadow(0 0 .1em black);
2021-06-21 12:39:33 +02:00
background-repeat: no-repeat;
background-position: center;
width: 100%;
height: 100%;
}
.nav:hover > .button{
filter: invert(90%) drop-shadow(0 0 .1em black);
}
.nav {
position: sticky;
top: 0;
2020-07-21 01:39:55 +02:00
display: inline-block;
font-family: sans-serif;
2021-06-21 13:34:25 +02:00
font-size: calc(0.75em + 0.05vw);
2020-07-21 01:39:55 +02:00
outline: 0;
text-decoration: none;
text-align: center;
width: 33.33%;
2021-06-21 13:34:25 +02:00
height: 3.4em;
2021-06-21 13:54:18 +02:00
padding: .9em;
2020-07-21 22:33:19 +02:00
z-index: 1;
2021-06-21 12:39:33 +02:00
background-color: black;
-webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
-moz-box-sizing: border-box; /* Firefox, other Gecko */
box-sizing: border-box; /* Opera/IE 8+ */
2020-07-21 01:39:55 +02:00
}
#footer {
background-color: black;
text-align: center;
2020-07-21 22:22:47 +02:00
padding: 1em;
2020-07-21 01:39:55 +02:00
}
#footer .text {
font-size: .75em;
2020-07-21 01:39:55 +02:00
font-weight: normal;
text-align: center;
color: gray;
display: block;
}
/* Icons */
2021-06-21 12:39:33 +02:00
.home {
2020-07-21 01:39:55 +02:00
background-image: url("data:image/svg+xml;base64,PHN2ZyBhcmlhLWhpZGRlbj0idHJ1ZSIgZm9jdXNhYmxlPSJmYWxzZSIgZGF0YS1wcmVmaXg9ImZhcyIgZGF0YS1pY29uPSJob21lIiBjbGFzcz0ic3ZnLWlubGluZS0tZmEgZmEtaG9tZSBmYS13LTE4IiByb2xlPSJpbWciIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDU3NiA1MTIiPjxwYXRoIGZpbGw9ImN1cnJlbnRDb2xvciIgZD0iTTI4MC4zNyAxNDguMjZMOTYgMzAwLjExVjQ2NGExNiAxNiAwIDAgMCAxNiAxNmwxMTIuMDYtLjI5YTE2IDE2IDAgMCAwIDE1LjkyLTE2VjM2OGExNiAxNiAwIDAgMSAxNi0xNmg2NGExNiAxNiAwIDAgMSAxNiAxNnY5NS42NGExNiAxNiAwIDAgMCAxNiAxNi4wNUw0NjQgNDgwYTE2IDE2IDAgMCAwIDE2LTE2VjMwMEwyOTUuNjcgMTQ4LjI2YTEyLjE5IDEyLjE5IDAgMCAwLTE1LjMgMHpNNTcxLjYgMjUxLjQ3TDQ4OCAxODIuNTZWNDQuMDVhMTIgMTIgMCAwIDAtMTItMTJoLTU2YTEyIDEyIDAgMCAwLTEyIDEydjcyLjYxTDMxOC40NyA0M2E0OCA0OCAwIDAgMC02MSAwTDQuMzQgMjUxLjQ3YTEyIDEyIDAgMCAwLTEuNiAxNi45bDI1LjUgMzFBMTIgMTIgMCAwIDAgNDUuMTUgMzAxbDIzNS4yMi0xOTMuNzRhMTIuMTkgMTIuMTkgMCAwIDEgMTUuMyAwTDUzMC45IDMwMWExMiAxMiAwIDAgMCAxNi45LTEuNmwyNS41LTMxYTEyIDEyIDAgMCAwLTEuNy0xNi45M3oiPjw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