Styling and photos

This commit is contained in:
Mateus Cezário Barreto 2025-11-14 12:06:23 -03:00
commit 470a9e299f
5 changed files with 135 additions and 18 deletions

View file

@ -12,7 +12,7 @@
--empty-space-width: calc( 100vw - var(--content-space-width) );
--main-font: "Inconsolata";
--main-font: "Victor Mono";
--border-width: 0.1rem;
@ -30,7 +30,7 @@
--color-text-shadowed: grey;
--color-clickable-normal: #85e80c;
--color-clickable-normal: #FF7700;
--color-clickable-selected: #ffcd5b;
@ -206,6 +206,7 @@ div.line-break > p { overflow-x: auto; }
h1, h2, h3, h4, h5, h6
{
color: var(--color-text-marked);
font-size: 1.4rem;
font-weight: bold;
margin: 0;
@ -231,6 +232,82 @@ button, input[type="submit"], input[type="reset"], input[type="button"]
button svg {pointer-events:none;}
div.ficha
{
display: grid;
grid-template-rows: auto auto;
grid-template-columns: 35% auto;
column-gap: 0;
}
div.ficha h2
{
grid-row: 1;
grid-column: 1 / 3;
}
div.ficha figure
{
grid-row: 2;
grid-column: 1;
margin: 0;
max-width: unset;
text-align: center;
position: relative;
}
div.ficha figure img
{
margin-bottom: 0.5rem;
aspect-ratio: 3 / 4;
animation-name: image-change;
animation-timing-function: ease-in-out;
animation-iteration-count: infinite;
animation-duration: 10s;
}
div.ficha figure figcaption
{
margin: auto;
}
div.ficha div.description
{
grid-row: 2;
grid-column: 2;
max-width: unset;
border: unset;
width: 100%;
}
@keyframes image-change
{
0% { opacity: 0; }
10% { opacity: 1; }
50% { opacity: 1; }
60% { opacity: 0; }
100% { opacity: 0; }
}
div.ficha figure img:nth-of-type(1)
{ animation-delay: 0s;}
div.ficha figure img:nth-of-type(2)
{
animation-delay: 5s;
opacity: 0;
position: absolute;
left: 0rem;
top: 0rem;
width: 100%;;
padding: inherit;
box-sizing: border-box;
}
@media print
{
:root