/* 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; } .page-header a { font-weight: bold; color: #ffffff; text-decoration: none; } .page-header .title { font-size: 2em; vertical-align: center; padding-left: 8px; } .page-header .title .crumb{ font-size: 0.75em; vertical-align: center; padding: 2px; } /* 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%); } /* 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 .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%; } /* 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; margin: 10px 0px 0px 0px; background-color: #404040; color: #c0c0c0; position: fixed; width: 100%; bottom: 0; left: 0; right: 0; height: 3em; text-align: center; overflow: auto; } .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 { margin-left: 0.5em; margin-right: 0.5em; font-size: 2em; font-weight: bold; color: #ffffff; } .page-footer .tag { margin-left: 0.5em; margin-right: 0.5em; font-size: 0.5em !important; font-weight: normal !important; color: #00ff00; }