mirror of
https://github.com/greflm13/StaticGalleryBuilder.git
synced 2026-02-05 02:59:27 +00:00
changed info display position
This commit is contained in:
212
files/global.css
212
files/global.css
@@ -10,45 +10,6 @@ body {
|
|||||||
height: 100%;
|
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 {
|
.folders {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
display: -ms-flexbox;
|
display: -ms-flexbox;
|
||||||
@@ -93,74 +54,6 @@ figure {
|
|||||||
margin: 0;
|
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 {
|
.caption {
|
||||||
padding-top: 4px;
|
padding-top: 4px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
@@ -192,6 +85,7 @@ figure {
|
|||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
font-size: large;
|
||||||
}
|
}
|
||||||
|
|
||||||
.navbar li {
|
.navbar li {
|
||||||
@@ -211,3 +105,107 @@ figure {
|
|||||||
padding: 14px 16px;
|
padding: 14px 16px;
|
||||||
text-decoration: none;
|
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 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;
|
||||||
|
}
|
||||||
|
|
||||||
|
.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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 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: smaller;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -19,15 +19,14 @@
|
|||||||
{%- if parent %}
|
{%- if parent %}
|
||||||
<li><a href="{{ parent }}">Parent Directory</a></li>
|
<li><a href="{{ parent }}">Parent Directory</a></li>
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
<li class="tooltip"><span class="header">{{ header }}</span>
|
{%- if info %}
|
||||||
{%- if info -%}
|
<li class="tooltip"><a>Info</a><span class="tooltiptext">
|
||||||
<span class="tooltiptext">
|
|
||||||
{%- for infoline in info -%}
|
{%- for infoline in info -%}
|
||||||
{{ infoline }}<br />
|
{{ infoline }}<br />
|
||||||
{%- endfor -%}
|
{%- endfor -%}
|
||||||
</span>
|
</span></li>
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
</li>
|
<li style="position: absolute; left: 50%; transform: translateX(-50%);"><span class="header">{{ header }}</span></li>
|
||||||
{%- if license %}
|
{%- if license %}
|
||||||
<li style="float:right"><a href="{{ license.url }}" target="_blank">License</a></li>
|
<li style="float:right"><a href="{{ license.url }}" target="_blank">License</a></li>
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|||||||
@@ -39,6 +39,7 @@
|
|||||||
|
|
||||||
.tooltiptext {
|
.tooltiptext {
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
|
background-color: #313537;
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
|
|||||||
@@ -39,6 +39,7 @@
|
|||||||
|
|
||||||
.tooltiptext {
|
.tooltiptext {
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
|
background-color: #ddd;
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
|
|||||||
@@ -62,6 +62,7 @@
|
|||||||
|
|
||||||
.tooltiptext {
|
.tooltiptext {
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
|
background-color: #191313;
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
|
|||||||
@@ -40,6 +40,7 @@
|
|||||||
|
|
||||||
.tooltiptext {
|
.tooltiptext {
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
|
background-color: #2c313a;
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
|
|||||||
Reference in New Issue
Block a user