mirror of
https://github.com/greflm13/StaticGalleryBuilder.git
synced 2026-02-05 02:59:27 +00:00
213 lines
3.2 KiB
CSS
213 lines
3.2 KiB
CSS
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
margin-top: 32px;
|
|
margin-bottom: 56px;
|
|
font-family: Arial;
|
|
height: 100%;
|
|
}
|
|
|
|
.tooltip {
|
|
position: absolute;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
}
|
|
|
|
.tooltip .tooltiptext {
|
|
visibility: hidden;
|
|
width: 300px;
|
|
background-color: #555;
|
|
color: #fff;
|
|
text-align: center;
|
|
border-radius: 6px;
|
|
padding: 5px 0;
|
|
position: absolute;
|
|
z-index: 100;
|
|
top: 40px;
|
|
left: 50%;
|
|
transform: translate(-50%);
|
|
opacity: 0;
|
|
transition: opacity 0.3s;
|
|
}
|
|
|
|
.tooltip .tooltiptext::after {
|
|
content: "";
|
|
position: absolute;
|
|
top: 100%;
|
|
left: 50%;
|
|
margin-left: -5px;
|
|
border-width: 5px;
|
|
border-style: solid;
|
|
border-color: #555 transparent transparent transparent;
|
|
}
|
|
|
|
.tooltip:hover .tooltiptext {
|
|
visibility: visible;
|
|
opacity: 1;
|
|
}
|
|
|
|
.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;
|
|
}
|
|
|
|
/* Create four 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;
|
|
vertical-align: middle;
|
|
width: 100%;
|
|
}
|
|
|
|
/* 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;
|
|
}
|
|
}
|
|
|
|
/* 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;
|
|
}
|
|
}
|
|
|
|
/* 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;
|
|
}
|
|
}
|
|
|
|
.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;
|
|
}
|
|
|
|
.license {
|
|
position: fixed;
|
|
bottom: 0;
|
|
width: 100%;
|
|
padding: 6px;
|
|
min-height: calc(6.75pt + 12px);
|
|
}
|
|
|
|
.navbar {
|
|
list-style-type: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
position: fixed;
|
|
top: 0;
|
|
width: 100%;
|
|
}
|
|
|
|
.navbar li {
|
|
float: left;
|
|
}
|
|
|
|
.navbar li a {
|
|
display: block;
|
|
text-align: center;
|
|
padding: 14px 16px;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.navbar li .header {
|
|
display: block;
|
|
text-align: center;
|
|
padding: 14px 16px;
|
|
text-decoration: none;
|
|
} |