Files
StaticGalleryBuilder/files/global.css

270 lines
3.8 KiB
CSS

* {
box-sizing: border-box;
-ms-overflow-style: none;
}
*::-webkit-scrollbar {
display: none;
}
body {
margin: 0;
margin-top: 40px;
margin-bottom: 56px;
font-family: Arial;
height: 100%;
}
.folders {
text-align: center;
display: -ms-flexbox;
display: flex;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
justify-content: space-evenly;
overflow: hidden;
}
.folders figure {
margin-bottom: 32px;
margin-top: 50px;
}
.header h1 {
font-size: 2.5em;
font-weight: bold;
text-align: center;
}
.folders img {
width: 100px;
vertical-align: middle;
}
.folders figcaption {
width: 120px;
font-size: smaller;
text-align: center;
}
.row {
display: -ms-flexbox;
display: flex;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
padding: 0 2px;
}
figure {
margin: 0;
}
.caption {
padding-top: 4px;
text-align: center;
font-size: 12px;
width: 100%;
display: block;
}
.attribution {
position: absolute;
bottom: 0;
right: 0;
font-size: xx-small;
padding: 6px;
}
.footer {
position: fixed;
bottom: 0;
width: 100%;
padding: 6px;
min-height: calc(6.75pt + 12px);
}
.footer a {
display: inline-block;
}
.footer a img {
height: 22px !important;
margin-left: 3px;
vertical-align: text-bottom
}
.navbar {
list-style-type: none;
margin: 0;
padding: 0;
position: fixed;
left: 0;
top: 0;
width: 100%;
-webkit-app-region: drag;
font-size: large;
}
.navbar li {
float: left;
}
.navbar li a {
display: block;
text-align: center;
padding: 14px 16px;
text-decoration: none;
}
.navbar .title {
position: absolute;
left: 50%;
transform: translateX(-50%);
}
.navbar .license {
float: right;
}
.navbar li .header {
display: block;
text-align: center;
padding: 14px 16px;
text-decoration: none;
}
.tooltip {
position: relative;
}
.tooltip .tooltiptext {
display: none;
width: max-content;
position: absolute;
z-index: 100;
opacity: 0;
transition: opacity 0.3s;
padding: 12px;
}
.tooltip:hover .tooltiptext {
display: block;
opacity: 1;
}
.tooltip:active .tooltiptext {
display: block;
opacity: 1;
}
/* Create eight equal columns that sits next to each other */
.column {
-ms-flex: 12.5%;
flex: 12.5%;
max-width: 12.5%;
padding: 0 4px;
}
.column img {
margin-top: 20px;
width: 100%;
display: block;
overflow: hidden;
aspect-ratio: 1 / 1;
object-fit: contain;
cursor: pointer;
}
#totop {
display: none;
position: fixed;
bottom: 40px;
right: 30px;
z-index: 99;
cursor: pointer;
padding: 14px;
border-radius: 10px;
border-style: none;
}
/* Responsive layout - makes a four column-layout instead of eight columns */
@media screen and (max-width: 1000px) {
.column {
-ms-flex: 25%;
flex: 25%;
max-width: 25%;
}
.folders img {
width: 80px;
}
.folders figcaption {
width: 100px;
font-size: small;
}
.navbar {
font-size: medium;
}
}
/* Responsive layout - makes a two column-layout instead of four columns */
@media screen and (max-width: 800px) {
.column {
-ms-flex: 50%;
flex: 50%;
max-width: 50%;
}
.folders img {
width: 60px;
}
.folders figcaption {
width: 80px;
font-size: x-small;
}
.navbar {
font-size: small;
}
.navbar li a {
padding: 10px 8px;
}
.navbar li .header {
padding: 10px 8px;
}
}
/* Responsive layout - makes the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 600px) {
.column {
-ms-flex: 100%;
flex: 100%;
max-width: 100%;
}
.folders img {
width: 40px;
}
.folders figcaption {
width: 60px;
font-size: xx-small;
}
.navbar {
font-size: xx-small;
}
.navbar li a {
padding: 8px 7px;
}
.navbar li .header {
padding: 8px 7px;
}
}