'],
raw => <<'EOT',
<style>
-table {
- width: 100%;
-}
-th {
- width: 1%; /* min-content */
-}
-td {
- width: 15%; /* 1fr */
- vertical-align: top;
-}
figure[hidden] {
+ opacity: 0; /* secret */
transition: opacity 1s 0s;
- display: inline;
- opacity: 0;
+ display: block;
}
figure[hidden]:hover {
opacity: 1;
transition-delay: 1s;
}
+figure[hidden]:hover > figcaption {
+ transition-delay: 2s;
+}
@media (max-width: 60em) {
- figcaption {
- position: static;
- padding: 0;
+ td, th {
font-size: 50%;
}
figcaption small {
th:first-child {
display: none;
}
- th {
- font-size: 50%;
- }
}
</style>
EOT
}
}
-say '<table>';
+say '<table class="gallery">';
while (my $name = shift @table) {
if ($name =~ s/^#// and !$pageinfo->{prefix}) {
while ($name = shift @table) {