vsgallery/css/style.css

339 lines
No EOL
5.1 KiB
CSS

/*
Very Simple Image Gallery
CSS Style Version 0.1
(C) seiichiro 2021
*/
/* General Style Settings */
body {
background-color: #000000;
font-family: sans;
padding: 0px;
margin: 0px;
box-sizing: border-box;
}
/* Page Header Styling */
.page-header {
padding: 8px;
margin: 0px 0px 10px 0px;
position: fixed;
top: 0;
left: 0;
right: 0;
background-color: #404040;
color: #c0c0c0;
display: grid;
grid-template-columns: 3fr 1fr;
align-items: center;
height: 3em;
z-index: 10;
}
.page-header a {
font-weight: bold;
color: #ffffff;
text-decoration: none;
}
.page-header .title {
font-size: 2em;
vertical-align: center;
}
.page-header .crumb {
font-size: 0.75em;
}
.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;
}
}
/* Search Form Styling */
.page-header .search {
justify-self: right;
}
.page-header .search form input[type=text] {
padding: 10px;
font-size: 1em;
border: 1px solid grey;
float: left;
width: 70%;
background: #f1f1f1;
}
.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;
}
.page-header .search form button:hover {
background: #0b7dda;
}
.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;
width: 200px;
height: 200px;
position: relative;
word-break: break-all;
}
.content .multi-image img {
object-fit: contain;
width: 200px;
height: 200px;
}
.content .multi-image .dirname {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: black;
font-weight: bold;
}
/* 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);
}
.content-single.notags {
bottom: 0 !important;
}
.content-single .single-image {
grid-column: 1 / 4;
grid-row: 1 / 3;
}
.content-single .single-image img {
object-fit: contain;
position: relative;
z-index: 1;
width: 100%;
height: 100%;
}
.content-single .single-video {
grid-column: 1 / 4;
grid-row: 1 / 3;
}
.content-single .single-video video {
width: 100%;
height: auto;
max-height: 100%;
}
/* Clickable Areas in Single Image View */
.content-single .clickable {
position: relative;
z-index: 9;
opacity: 0;
}
.content-single .clickable-left {
grid-column: 1 / 2;
grid-row: 1 / 3;
}
.content-single .clickable-center {
grid-column: 2 / 3;
grid-row: 1 / 2;
}
.content-single .clickable-right {
grid-column: 3 / 4;
grid-row: 1 / 3;
}
/* Error Page */
.error {
margin-left: 0.5em;
margin-right: 0.5em;
font-size: 1em;
font-weight: bold;
color: #ffffff;
}
/* Page Footer Styling */
.page-footer {
padding: 8px;
background-color: #404040;
color: #c0c0c0;
position: fixed;
width: 100%;
bottom: 0;
left: 0;
right: 0;
height: 3em;
text-align: center;
display: grid;
grid-template-columns: 8em 1fr 8em;
}
.page-footer a {
margin-left: 0.5em;
margin-right: 0.5em;
font-size: 2em;
font-weight: bold;
color: #ffffff;
text-decoration: none;
}
.page-footer .info-item {
margin-left: 0.5em;
margin-right: 0.5em;
font-size: 2em;
font-weight: bold;
color: #ffffff;
}
.page-footer .tags {
grid-column: 2 / 3;
overflow: auto;
}
.page-footer .tag {
margin-left: 0.5em;
margin-right: 0.5em;
font-size: 0.5em !important;
font-weight: normal !important;
color: #00ff00;
}
.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;
}