vsgallery/css/style.css

339 lines
5.1 KiB
CSS
Raw Normal View History

2022-01-10 20:27:57 +00:00
/*
Very Simple Image Gallery
CSS Style Version 0.1
(C) seiichiro 2021
*/
/* General Style Settings */
2022-01-08 16:22:16 +00:00
body {
2022-01-10 17:37:49 +00:00
background-color: #000000;
2022-01-10 20:27:57 +00:00
font-family: sans;
padding: 0px;
margin: 0px;
box-sizing: border-box;
2022-01-08 16:22:16 +00:00
}
2022-01-10 17:43:57 +00:00
2022-01-10 20:27:57 +00:00
/* Page Header Styling */
2022-01-10 16:30:03 +00:00
.page-header {
2022-01-10 20:27:57 +00:00
padding: 8px;
margin: 0px 0px 10px 0px;
position: fixed;
top: 0;
left: 0;
right: 0;
2022-01-10 16:51:30 +00:00
background-color: #404040;
2022-01-10 17:01:10 +00:00
color: #c0c0c0;
2022-01-10 20:27:57 +00:00
2022-01-10 17:06:10 +00:00
display: grid;
grid-template-columns: 3fr 1fr;
2022-01-10 17:35:06 +00:00
align-items: center;
2022-01-10 20:27:57 +00:00
height: 3em;
2022-02-07 18:29:00 +00:00
z-index: 10;
2022-01-10 16:40:59 +00:00
}
2022-01-10 20:46:42 +00:00
.page-header a {
2022-01-10 20:46:19 +00:00
font-weight: bold;
color: #ffffff;
text-decoration: none;
}
2022-01-10 20:27:57 +00:00
.page-header .title {
2022-01-10 17:11:45 +00:00
font-size: 2em;
vertical-align: center;
2022-01-10 17:35:06 +00:00
}
2022-07-10 19:30:25 +00:00
.page-header .crumb {
2022-01-11 19:18:35 +00:00
font-size: 0.75em;
2022-07-10 19:30:25 +00:00
}
.page-header li {
list-style: none;
}
.navbar {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0;
margin: 0;
background-color: #404040;
color: #fff;
height: inherit;
}
.nav-links a {
color: #fff;
}
.menu {
display: flex;
gap: 0.25em;
}
.menu li:hover {
background-color: #4c9e9e;
border-radius: 5px;
transition: 0.3s ease;
}
.menu li {
padding: 2px 2px;
}
input[type=checkbox]{
display: none;
}
/*HAMBURGER MENU*/
.hamburger {
display: none;
font-size: 2em;
user-select: none;
}
/* APPLYING MEDIA QUERIES */
@media (max-width: 1000px) {
.menu {
display:none;
position: absolute;
background-color: #404040;
top: 1em;
right: 0;
left: 0;
text-align: center;
padding: 16px 0;
font-size: 2em;
}
.menu li:hover {
display: inline-block;
background-color:#4c9e9e;
transition: 0.3s ease;
}
input[type=checkbox]:checked ~ .menu{
display: block;
}
.hamburger {
font-size: 0.9em;
padding: 24px 24px 24px 0px;
display: block;
}
2022-01-11 19:18:05 +00:00
}
2022-01-10 20:27:57 +00:00
/* Search Form Styling */
.page-header .search {
justify-self: right;
2022-01-10 17:01:10 +00:00
}
2022-01-10 20:27:57 +00:00
.page-header .search form input[type=text] {
padding: 10px;
font-size: 1em;
border: 1px solid grey;
float: left;
width: 70%;
background: #f1f1f1;
2022-01-10 16:30:03 +00:00
}
2022-01-10 20:27:57 +00:00
.page-header .search form button {
float: left;
width: 15%;
padding: 10px;
background: #2196F3;
color: white;
font-size: 1em;
border: 1px solid grey;
border-left: none;
cursor: pointer;
2022-01-08 16:22:16 +00:00
}
2022-01-10 20:27:57 +00:00
.page-header .search form button:hover {
background: #0b7dda;
2022-01-08 16:22:16 +00:00
}
2022-01-10 20:27:57 +00:00
.page-header .search form::after {
content: "";
clear: both;
display: table;
}
/* Gallery Styling */
.content {
padding-top: 4em;
padding-bottom: 4em;
margin: 16px;
display: grid;
gap: 12px;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
grid-template-rows: repeat(auto-fit, minmax(200px, 1fr));
}
.content .multi-image {
margin: 4px;
padding: 0px;
2022-01-08 16:22:16 +00:00
width: 200px;
height: 200px;
2022-01-11 15:43:37 +00:00
position: relative;
2022-01-11 16:35:16 +00:00
word-break: break-all;
2022-01-10 20:27:57 +00:00
}
.content .multi-image img {
object-fit: contain;
width: 200px;
height: 200px;
2022-01-08 16:22:16 +00:00
}
2022-01-10 20:27:57 +00:00
2022-01-11 15:43:37 +00:00
.content .multi-image .dirname {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
2022-01-23 15:36:19 +00:00
color: black;
font-weight: bold;
2022-01-11 15:43:37 +00:00
}
2022-01-10 20:27:57 +00:00
/* Single Image Styling */
.content-single {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 4em;
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-template-rows: repeat(2, 1fr);
}
2022-02-08 19:46:31 +00:00
.content-single.notags {
bottom: 0 !important;
}
2022-01-10 20:40:18 +00:00
.content-single .single-image {
grid-column: 1 / 4;
grid-row: 1 / 3;
}
2022-01-10 20:34:52 +00:00
.content-single .single-image img {
2022-01-10 20:27:57 +00:00
object-fit: contain;
2022-01-10 20:33:07 +00:00
position: relative;
z-index: 1;
2022-01-10 20:37:40 +00:00
width: 100%;
height: 100%;
2022-01-10 20:27:57 +00:00
}
2023-12-06 15:40:43 +00:00
.content-single .single-video {
grid-column: 1 / 4;
2023-12-06 15:48:42 +00:00
grid-row: 1 / 3;
2023-12-06 15:40:43 +00:00
}
.content-single .single-video video {
width: 100%;
height: auto;
max-height: 100%;
}
2022-01-10 20:27:57 +00:00
/* Clickable Areas in Single Image View */
.content-single .clickable {
2022-01-10 20:30:30 +00:00
position: relative;
2022-01-08 16:22:16 +00:00
z-index: 9;
opacity: 0;
}
2022-01-10 20:27:57 +00:00
.content-single .clickable-left {
grid-column: 1 / 2;
grid-row: 1 / 3;
2022-01-08 16:22:16 +00:00
}
2022-01-10 20:27:57 +00:00
.content-single .clickable-center {
grid-column: 2 / 3;
grid-row: 1 / 2;
2022-01-08 16:22:16 +00:00
}
2022-01-10 20:27:57 +00:00
.content-single .clickable-right {
grid-column: 3 / 4;
grid-row: 1 / 3;
2022-01-08 16:22:16 +00:00
}
2022-01-10 20:27:57 +00:00
/* Error Page */
.error {
margin-left: 0.5em;
margin-right: 0.5em;
font-size: 1em;
font-weight: bold;
color: #ffffff;
2022-01-08 16:22:16 +00:00
}
2022-01-10 20:27:57 +00:00
/* Page Footer Styling */
.page-footer {
padding: 8px;
2022-01-10 17:22:44 +00:00
background-color: #404040;
color: #c0c0c0;
2022-01-10 20:27:57 +00:00
position: fixed;
width: 100%;
bottom: 0;
left: 0;
right: 0;
height: 3em;
2022-01-08 16:22:16 +00:00
text-align: center;
2022-01-10 20:27:57 +00:00
display: grid;
grid-template-columns: 8em 1fr 8em;
2022-01-08 16:22:16 +00:00
}
2022-01-10 20:27:57 +00:00
.page-footer a {
2022-01-08 16:22:16 +00:00
margin-left: 0.5em;
margin-right: 0.5em;
2022-01-10 20:27:57 +00:00
font-size: 2em;
2022-01-08 16:22:16 +00:00
font-weight: bold;
color: #ffffff;
2022-01-10 20:27:57 +00:00
text-decoration: none;
2022-01-08 16:22:16 +00:00
}
.page-footer .info-item {
2022-01-08 16:22:16 +00:00
margin-left: 0.5em;
margin-right: 0.5em;
2022-01-10 20:27:57 +00:00
font-size: 2em;
2022-01-08 16:22:16 +00:00
font-weight: bold;
color: #ffffff;
}
.page-footer .tags {
grid-column: 2 / 3;
overflow: auto;
}
2022-01-10 20:27:57 +00:00
.page-footer .tag {
2022-01-08 16:22:16 +00:00
margin-left: 0.5em;
margin-right: 0.5em;
2022-01-10 20:27:57 +00:00
font-size: 0.5em !important;
2022-01-08 16:22:16 +00:00
font-weight: normal !important;
color: #00ff00;
2022-02-07 18:29:00 +00:00
}
.page-footer .footer-nav-left {
grid-column: 1 / 2;
width: 8em;
text-align: left;
}
.page-footer .footer-nav-right {
grid-column: 3 / 4;
width: 8em;
text-align: right;
}
.page-footer .footer-nav-right a {
padding-right: 16px;
}