praiadeseselle/site/templates/css/main.css

747 lines
No EOL
12 KiB
CSS

*, *::before, *::after
{
box-sizing: border-box;
}
.grella
{
display: grid;
grid-template-columns:
[completo-start] minmax(var(--separacion), 1fr)
[destacado-start] minmax(0, var(--destacado))
[contido-start] min(100% - (var(--separacion) * 2), var(--contido-max)) [contido-end]
minmax(0, var(--destacado)) [destacado-end]
minmax(var(--separacion), 1fr) [completo-end]
;
}
.grella > :not(.destacado, .completo),
.completo > :not(.destacado, .completo)
{
grid-column: contido;
}
.grella > .completo
{
display: grid;
grid-column: completo;
grid-template-columns: inherit;
}
.completo > .completo
{
display: grid;
grid-column: completo;
grid-template-columns: inherit;
}
.grella > .destacado,
.completo > .destacado
{
grid-column: destacado;
}
html, body
{
height: 100%;
}
body
{
display: grid;
grid-template-rows: auto 1fr auto;
color: rgb(var(--cor_10));
font-family: Avenir, Montserrat, Corbel, 'URW Gothic', source-sans-pro, sans-serif;
font-size: 1rem;
font-weight: normal;
background-color: rgb(var(--cor_60));
}
a
{
color: rgb(var(--cor_30));
text-decoration-line: underline;
text-decoration-style: dotted;
}
h1, h2, h3, h4, h5, h6
{
color: rgb(var(--cor_30));
font-family: ui-rounded, 'Hiragino Maru Gothic ProN', Quicksand, Comfortaa, Manjari, 'Arial Rounded MT', 'Arial Rounded MT Bold', Calibri, source-sans-pro, sans-serif;
font-weight: bold;
text-wrap: balance;
}
figure
{
margin: 0;
}
figure img
{
width: 100%;
}
ul,
ol
{
display: flex;
flex-direction: row;
margin: 0;
padding: 0;
list-style: none;
}
ul a,
ol a
{
text-decoration: none;
}
section h3,
section p
{
margin: 0;
}
header#cabeceira
{
grid-template-rows: auto 1fr auto;
margin-bottom: var(--separacion);
padding-bottom: var(--separacion);
border-bottom: 1px solid rgba(var(--cor_10), 0.5);
}
div#cabeceira-superior
{
margin-bottom: var(--separacion);
padding-block: 0.5rem;
border-bottom: 1px solid rgba(var(--cor_10), 0.5);
background-color: #eeeeee;
}
nav#menu-usuario
{
display: grid;
grid-template-columns: auto auto;
justify-content: space-between;
}
nav#menu-usuario ul
{
grid-column: 2;
justify-content: flex-end;
}
div#cabeceira-inferior
{
display: grid;
grid-template-columns: minmax(0, 1fr) auto var(--separacion) auto minmax(0, 1fr);
justify-content: center;
align-items: center;
gap: var(--separacion) 0;
}
div#cabeceira-inferior a#logo
{
grid-column: 1 / span 5;
}
form#atopar
{
grid-column: 2;
position: relative;
}
form#atopar input
{
display: block;
appearance: none;
width: 100%;
padding: 0.5rem 0.75rem;
border: 1px solid rgb(var(--cor_10));
border-radius: 0;
color: rgb(var(--cor_10));
transition: border-color 0.15s ease-in-out,
}
form#atopar label
{
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
overflow: hidden;
padding: 0.5rem 0.75rem;
border: 1PX solid transparent;
text-align: start;
text-overflow: ellipsis;
white-space: nowrap;
pointer-events: none;
transform-origin: 0 0;
transition: opacity 0.1s ease-in-out,
transform 0.1s ease-in-out;
}
form#atopar input:focus
{
border-color: rgb(var(--cor_30));
outline: 0;
color: var(--bs-body-color);
}
form#atopar input:focus ~ label
{
height: unset;
width: unset;
padding: 0;
background-color: rgb(var(--cor_60));
opacity: unset;
transform: scale(0.85) translateY(-0.8rem) translateX(0.15rem);
}
form#atopar .boton
{
position: absolute;
top: 0;
right: 0;
}
nav#menu-idiomas
{
grid-column: 4;
}
nav#menu-principal
{
grid-column: 1 / 6;
}
nav#menu-principal div#menu-despregable
{
position: fixed;
top: 0;
left: 0;
bottom: 0;
z-index: 99;
max-width: 100%;
width: 50%;
border-right: 2px solid rgb(var(--cor_30));
background-color: rgb(var(--cor_60));
transform: translateX(-100%);
transition: transform 0.3s ease-in-out;
}
nav#menu-principal div#menu-despregable.despregado
{
transform: translateX(0);
}
nav#menu-principal button.pechar
{
margin: 0.5rem var(--separacion);
}
nav#menu-principal ul
{
flex-direction: column;
}
div#menu-despregable li
{
border-left: 0.625rem solid rgb(var(--cor_60))
}
div#menu-despregable li:has(.activo),
div#menu-despregable li:hover
{
border-left: 0.625rem solid rgb(var(--cor_30));
text-decoration-line: underline;
text-decoration-style: dotted;
}
div#menu-despregable li a
{
display: block;
padding: 0.5rem;
color: rgb(var(--cor_10));
font-size: 1rem;
font-weight: var(--bs-nav-link-font-weight);
text-decoration: none;
transition: color 0.15s ease-in-out,
background-color 0.15s ease-in-out,
border-color 0.15s ease-in-out;
}
nav#migas
{
margin-bottom: var(--separacion);
}
article section
{
margin-bottom: var(--separacion);
}
section#mantemento img
{
margin-bottom: 1.5rem;
padding: 3rem;
border: 1px solid rgba(var(--cor_10), 0.3);
border-radius: 8px;
box-shadow: 0 1rem 3rem rgba(var(--cor_10), 0.3);
}
section[id^="galeria-"]
{
grid-column: destacado;
width: 100%;
height: auto;
margin-inline: auto;
}
section[id^="galeria-"] div.swiper-wrapper
{
height: auto;
}
section[id^="galeria-"] figure img
{
display: block;
width: 100%;
height: auto;
object-fit: contain;
background-color: rgb(var(--cor_60));
}
section[id^="galeria-"] figure figcaption
{
padding: 10px 40px 20px;
color: rgb(var(--cor_30));
font-family: ui-rounded, 'Hiragino Maru Gothic ProN', Quicksand, Comfortaa, Manjari, 'Arial Rounded MT', 'Arial Rounded MT Bold', Calibri, source-sans-pro, sans-serif;
font-weight: normal;
font-size: 1rem;
text-align: center;
}
section[id^="galeria-"] p.controis
{
display: flex;
justify-content: center;
margin: 0 auto;
}
section[id^="galeria-"] .swiper-button-prev,
section[id^="galeria-"] .swiper-button-next
{
padding: var(--separacion);
}
section[id^="galeria-"] .swiper-pagination
{
padding: var(--separacion) 0;
}
section[id^="galeria-"] .swiper-button-prev,
section[id^="galeria-"] .swiper-button-next,
section[id^="galeria-"] .swiper-pagination
{
display: inline;
position: relative;
bottom: initial;
top: initial;
left: initial;
right: initial;
width: fit-content;
height: auto;
margin: -20px 0 0;
color: rgb(var(--cor_10));
}
section[id^="galeria-"] .swiper-button-next::after,
section[id^="galeria-"] .swiper-button-prev::after
{
font-family: 'icomoon' !important;;
font-size: 1.5rem;
text-transform: none !important;
letter-spacing: 0;
font-variant: initial;
line-height: 1.5;
}
section[id^="galeria-"] .swiper-button-prev::after,
section[id^="galeria-"] .swiper-rtl .swiper-button-next::after
{
content: '\e91c';
}
section[id^="galeria-"] .swiper-button-next::after,
section[id^="galeria-"] .swiper-rtl .swiper-button-prev::after
{
content: '\e91d';
}
section[id^="galeria-"] .swiper-pagination-bullet
{
display: inline;
width: fit-content;
margin: 0;
padding: var(--separacion);
background-color: transparent;
}
section[id^="galeria-"] .swiper-pagination-bullet:after
{
font-family: 'icomoon' !important;;
font-size: 1.5rem;
text-transform: none !important;
letter-spacing: 0;
font-variant: initial;
line-height: 1.5;
content: "\e91e";
}
section[id^="galeria-"] .swiper-pagination-bullet-active:after
{
content: "\e91b";
}
section[id^="imaxe-"],
div[id^="imaxe-"]
{
display: grid;
align-items: center;
gap: var(--separacion);
}
section[id^="imaxe-"] div.artigo
{
align-self: start;
}
footer#pe
{
padding-block: 1.5rem;
border-top: 1px solid ;
color: rgb(var(--cor_60));
font-size: 0.875rem;
background-color: rgb(var(--cor_30));
}
footer#pe a
{
color: rgb(var(--cor_60));
}
footer#pe div#info
{
display: grid;
grid-template-columns: auto var(--separacion) auto
}
footer#pe p#copy
{
grid-column: 3;
}
footer#pe ul#redes
{
grid-column: 1 / 4;
}
footer#pe p#banners
{
grid-column: 1 / 4;
}
footer#pe p#desenrolo
{
grid-column: 1 / 4;
}
footer#pe p#banners img
{
padding: var(--separacion);
}
footer#pe ul#redes
{
justify-content: center;
}
footer#pe ul#redes li a
{
padding: var(--separacion);
font-size: 2rem;
}
footer#pe p#desenrolo
{
grid-column: 1 / 7;
}
footer#pe p#desenrolo span
{
font-size: 0.75rem;
}
.boton
{
display: inline-block;
padding: 0.5rem;
border: 1px solid rgb(var(--cor_10));
color: rgb(var(--cor_10));
background-color: transparent;
cursor: pointer;
}
.boton.primario
{
border-color: transparent;
color: rgb(var(--cor_60));
background-color: rgb(var(--cor_30));
}
.boton.activo
{
color: rgb(var(--cor_60));
background-color: rgb(var(--cor_10));
}
.centrado
{
text-align: center;
}
.visually-hidden
{
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
white-space: nowrap;
overflow: hidden;
clip: rect(1px, 1px, 1px, 1px);
border: 0;
}
.element-focusable:focus
{
clip: auto;
overflow: visible;
height: auto;
}
.bypass-to-main:focus
{
top: 0;
left: 0;
width: 100%;
height: 40px;
line-height: 40px;
text-align: center;
background: rgb(var(--cor_30));
color: rgb(var(--cor_60));
}
@media (min-width: 640px)
{
footer#pe div#info
{
grid-template-columns: auto var(--separacion) auto 1fr auto;
}
footer#pe ul#redes
{
grid-column: 5;
}
footer#pe p#banners
{
grid-column: 1 / 6;
}
footer#pe p#desenrolo
{
grid-column: 1 / 6;
}
}
@media (min-width: 768px)
{
div#cabeceira-inferior
{
grid-template-columns: auto 1fr auto var(--separacion) auto;
}
div#cabeceira-inferior a#logo
{
grid-column: 1;
}
form#atopar
{
grid-column: 3;
}
nav#menu-idiomas
{
grid-column: 5;
}
section[id^="imaxe-"],
div[id^="imaxe-"]
{
grid-template-columns: 1fr 1fr;
}
section[id^="imaxe-"].superior,
div[id^="imaxe-"].superior
{
grid-template-columns: 1fr;
}
section[id^="imaxe-"].esquerda figure,
div[id^="imaxe-"].esquerda figure
{
grid-column: 1;
grid-row: 2;
}
section[id^="imaxe-"].esquerda div.artigo,
div[id^="imaxe-"].esquerda figure div.artigo
{
grid-column: 2;
grid-row: 2;
}
section[id^="imaxe-"].dereita figure,
div[id^="imaxe-"].dereita figure
{
grid-column: 2;
grid-row: 2;
}
section[id^="imaxe-"].dereita div.artigo,
div[id^="imaxe-"].dereita div.artigo
{
grid-column: 1;
grid-row: 2;
}
section[id^="imaxe-"] h3
{
grid-column: 1 / 3;
grid-row: 1;
}
}
@media (min-width: 1024px)
{
nav#menu-usuario button.boton,
nav#menu-principal div#menu-despregable button.boton
{
display: none;
}
nav#menu-principal div#menu-despregable
{
flex-grow: 1;
position: static;
z-index: auto;
width: auto;
height: auto;
border: 0;
background-color: transparent;
transform: none;
transition: none;
}
nav#menu-principal ul
{
flex-direction: row;
justify-content: center;
}
nav#menu-principal ul li,
nav#menu-principal ul li:has(.activo),
nav#menu-principal ul li:hover
{
border-left: 0;
}
}