praiadeseselle/site/templates/css/style.css

1003 lines
No EOL
13 KiB
CSS

*, *::before, *::after
{
box-sizing: border-box;
}
body
{
display: flex;
flex-direction: column;
min-height: 100vh;
margin: 0;
color: rgb(var(--cor_10));
font-family: 'Source Sans Pro', sans-serif;
font-size: 1rem;
background-color: rgb(var(--cor_60));
}
h1, h2, h3, h4, h5, h6
{
margin-top: 0;
color: rgb(var(--cor_30));
font-family: 'Libre Baskerville', serif;
font-weight: bold;
}
h1
{
font-size: 2rem;
}
h2
{
font-size: 1.5rem;
}
h3
{
font-size: 1.17rem;
}
h4
{
font-size: 1rem;
}
h5
{
font-size: .83rem;
}
h6
{
font-size: .67rem;
}
p
{
margin: 0;
}
a
{
color: rgb(var(--cor_10));
text-decoration-line: underline;
text-decoration-style: dotted;
}
dl
{
display: flex;
flex-direction: row;
flex-wrap: wrap;
gap: 10%;
max-width: 18.75rem;
margin: 0;
}
dt
{
width: 10%;
}
dt::after
{
content: ": ";
}
dd
{
width: 80%;
margin: 0;
padding: 0;
}
figure
{
margin: 0;
}
ul li
{
list-style: none;
}
figure figcaption
{
padding: 10px 40px 20px;
color: rgb(var(--cor_30));
font-family: 'Source Sans Pro', sans-serif;
font-weight: normal;
font-size: 1rem;
}
figure figcaption
{
text-align: center;
}
figure img
{
display: block;
width: 100%;
height: auto;
object-fit: cover;
background-color: rgb(var(--cor_60));
}
picture
{
align-items: center;
display: flex;
justify-content: center;
}
section
{
margin-bottom: 30px;
}
header#cabeceira
{
padding: 0.625rem;
}
div#logo
{
width: 230px !important;
}
div#logo img
{
width: 150px;
}
header#cabeceira input#interruptor
{
display: block;
position: absolute;
top: 1.563rem;
left: 1.563rem;
z-index: 4;
height: 1.875rem;
width: 1.875rem;
opacity: 0;
}
header#cabeceira .interruptor
{
display: flex;
flex-direction: column;
justify-content: space-between;
position: absolute;
top: 1.25rem;
left: 1.25rem;
z-index: 3;
height: 1.875rem;
width: 1.875rem;
margin: 5px;
}
header#cabeceira .interruptor .linna
{
display: block;
height: 4px;
width: 100%;
border-radius: 0.625rem;
background: rgb(var(--cor_10));
}
header#cabeceira .interruptor .linna1
{
transform-origin: 0% 0%;
transition: all 0.4s ease-in-out;
}
header#cabeceira .interruptor .linna2
{
transition: all 0.2s ease-in-out;
}
header#cabeceira .interruptor .linna3
{
transform-origin: 0% 100%;
transition: all 0.4s ease-in-out;
}
nav#menus
{
left: 0;
position: fixed;
top: 0;
z-index: 2;
height: 100vh;
width: 50%;
padding: 0;
border-right: 2px solid rgb(var(--cor_30));
color: rgb(var(--cor_30));
background-color: rgb(var(--cor_60));
transform: translateX(-100%);
transition: transform 0.5s;
}
nav#menus a
{
color: rgb(var(--cor_10));
}
ul#idiomas,
ul#usuario
{
display: flex;
flex-direction: row;
width: 75%;
margin: 20px;
padding: 0;
}
ul#idiomas
{
margin: 70px 20px 0;
}
ul#paxinas
{
display: flex;
flex-direction: column;
margin: 1.25rem 0 0;
padding: 0;
}
ul#idiomas li,
ul#paxinas li,
ul#usuario li
{
list-style: none;
}
ul#idiomas li a,
ul#usuario li a
{
display: block;
padding: 0.625rem;
border: 1px solid rgb(var(--cor_10));
border-left: 0;
text-decoration: none;
}
ul#idiomas li:first-child a,
ul#usuario li:first-child a
{
border-left: 1px solid rgb(var(--cor_10));
}
ul#idiomas li.activo a
{
color: rgb(var(--cor_60));
background-color: rgb(var(--cor_10));
}
nav#menus li a:focus
{
outline: 2px dotted rgb(var(--cor_10));
}
ul#paxinas li
{
border-left: 0.625rem solid rgb(var(--cor_60));
}
ul#paxinas li.activo
{
border-left: 0.625rem solid rgb(var(--cor_30));
}
ul#paxinas li:hover
{
border-left: 0.625rem solid rgb(var(--cor_30));
}
ul#paxinas li a
{
display: block;
padding: 1.25rem;
letter-spacing: 1px;
text-decoration: none;
text-transform: capitalize;
}
header#cabeceira input#interruptor:checked ~ nav#menus
{
transform: translateX(0);
}
header#cabeceira input#interruptor:focus ~ .interruptor
{
outline: 2px dotted rgb(var(--cor_10));
}
header#cabeceira input#interruptor:checked ~ .interruptor .linna1
{
transform: rotate(45deg) scaleX(1.3);
}
header#cabeceira input#interruptor:checked ~ .interruptor .linna2
{
transform: scaleY(0);
}
header#cabeceira input#interruptor:checked ~ .interruptor .linna3
{
transform: rotate(-45deg) scaleX(1.3);
}
header#cabeceira input#interruptor:checked:focus ~ .interruptor
{
outline: 2px dotted rgb(var(--cor_10));
}
header#cabeceira div.contedor
{
align-items: center;
display: flex;
flex-direction: row;
justify-content: center;
}
main#contido
{
flex: 1 0 auto;
}
article header
{
height: 100px;
width: 100%;
}
header.publicacion-info
{
display: flex;
flex-direction: row;
gap: 0.625rem;
}
header.publicacion-info time
{
display: block;
position: relative;
height: 5rem;
overflow: hidden;
width: 5rem;
border-radius: 0.6em;
box-shadow: 0 1px 0 #bdbdbd, 0 2px 0 #fff, 0 3px 0 #bdbdbd, 0 4px 0 #fff, 0 5px 0 #bdbdbd, 0 0 0 1px #bdbdbd;
font-size: 0.75rem;
background-color: #fff;
}
header.publicacion-info time *
{
display: block;
width: 100%;
font-size: 1em;
font-style: normal;
font-weight: bold;
text-align: center;
}
header.publicacion-info time em
{
position: absolute;
bottom: 0.3em;
color: rgb(var(--cor_30));
}
header.publicacion-info time strong
{
position: absolute;
top: 0;
padding: 0.4em 0;
box-shadow: 0 2px 0 rgb(var(--cor_30));
color: white;
background-color: rgb(var(--cor_30));
}
header.publicacion-info time span
{
padding-top: 0.8em;
color: black;
font-size: 2.8em;
letter-spacing: -0.05em;
}
article#noticias div.contedor,
section#publicacions
{
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: center;
}
article#noticias section#categorias,
article#noticias section#etiquetas,
article#noticias section#publicacions,
section#publicacions article
{
width: 100%;
}
section#publicacions article
{
margin: 0.5rem;
}
article section > h3
{
text-align: center;
}
footer#pe
{
flex-shrink: 0;
padding: 1.25rem 0.625rem;
color: rgb(var(--cor_60));
background-color: rgb(var(--cor_30));
}
footer#pe div.contedor
{
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: space-between;
}
footer#pe p
{
font-size: .83rem;
text-align: center;
}
footer#pe a
{
color: rgb(var(--cor_60));
}
section.swiper
{
width: 100%;
height: auto;
margin-left: auto;
margin-right: auto;
}
div.swiper-slide
{
display: flex;
justify-content: center;
align-items: center;
padding: 10px;
text-align: center;
font-size: 18px;
background: #fff;
}
.swiper-button-prev,
.swiper-button-next
{
bottom: 15px;
top: unset;
color: rgb(var(--cor_10));
}
div.celda
{
display: flex;
flex-direction: column;
gap: 20px;
justify-content: center;
margin-bottom: 30px;
}
div.celda.superior
{
align-items: flex-start;
flex-direction: column;
}
div.celda.superior p
{
padding-block: 20px;
}
div.reixa
{
display: grid;
gap: 20px;
grid-template-columns: 1fr;
}
figure.enlace
{
position: relative;
overflow: hidden;
cursor: pointer;
}
figure.enlace img
{
min-height: 100%;
max-width: 100%;
transition: all .3s ease-in-out;
}
figure.enlace:hover img
{
transform: scale(1.15);
transition: all .3s ease-in-out;
}
figure.enlace figcaption
{
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(
rgba(255, 255, 255, 0.4),
rgba(255, 255, 255, 0.4)
);
}
figure.enlace figcaption a
{
color: rgb(var(--cor_30));
font-family: 'Libre Baskerville', serif;
font-weight: 700;
text-transform: uppercase;
}
div.artigo
{
padding: 10px;
}
form#inicio-sesion
{
display: flex;
flex-direction: column;
width: 80%;
margin: 0 auto;
padding: 10px;
border: 1px solid rgb(var(--cor_10));
border-radius: 0.625rem;
text-align: center;
}
form#inicio-sesion div#notificacions
{
margin-bottom: 10px;
border: 1px solid;
border-radius: 0.625rem;
}
form#inicio-sesion div#notificacions.erro
{
color: #D8000C;
background-color: #FFBABA;
}
form#inicio-sesion div#notificacions.alerta
{
color: #9f6000;
background-color: #feefb3;
}
form#inicio-sesion div#notificacions.exito
{
color: #4f8a10;
background-color: #dff2bf;
}
form#inicio-sesion div#notificacions.info
{
color: #00529b;
background-color: #bde5f8;
}
form#inicio-sesion div#notificacions h3
{
margin: 0;
padding: 10px;
color: inherit;
}
form#inicio-sesion div.elemento
{
display: flex;
flex-direction: row;
margin-bottom: 10px;
}
form#inicio-sesion div.elemento > *
{
width: 50%;
}
.contedor
{
width: 90%;
margin: 0 auto 20px;
}
.fila
{
align-items: center;
display: flex;
flex-direction: row;
flex-wrap: nowrap;
gap: 0.625rem;
justify-content: center;
margin-bottom: 1rem;
}
.columna
{
align-items: center;
display: flex;
flex-direction: column;
justify-content: center;
}
.info
{
color: rgb(var(--cor_30));
font-size: 0.875rem;
}
.info a
{
color: rgb(var(--cor_30));
font-size: 0.875rem;
text-decoration: none;
}
.artigo p
{
margin-bottom: 1rem;
}
ul.lista
{
margin: 1rem 0;
padding-left: 1rem;
text-align: center;
}
ul.nube
{
display: flex;
flex-direction: row;
flex-wrap: wrap;
gap: 1rem;
justify-content: center;
margin: 1rem 0;
padding-left: 1rem;
}
div.resumo
{
padding: 0.625rem;
}
.oculto-movil
{
display: none;
}
.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:768px)
{
div#logo img
{
width: 230px;
}
}
@media (max-height: 768px) and (orientation: landscape)
{
ul#idiomas
{
margin-top: 20px;
margin-left: 70px;
}
ul#paxinas li a
{
padding: 0.625rem;
}
}
@media (min-width: 1024px)
{
dl
{
gap: 0;
}
dt
{
width: 50%;
}
dd
{
width: 50%;
}
header#cabeceira div.contedor
{
align-items: flex-start;
display: flex;
flex-direction: row;
justify-content: space-between;
}
header#cabeceira input#interruptor,
header#cabeceira .interruptor
{
display: none;
}
nav#menus
{
position: initial;
width: initial;
height: initial;
padding: 0;
border: initial;
background-color: transparent;
transform: initial;
transition: initial;
}
nav#menus > div
{
display: flex;
flex-direction: row-reverse;
}
ul#idiomas,
ul#usuario
{
justify-content: flex-end;
width: initial;
margin: 0 10px;
}
ul#paxinas
{
flex-direction: row;
justify-content: flex-end;
gap: 20px;
}
ul#paxinas li
{
border-left: 0;
}
ul#paxinas li a
{
padding: 0;
}
ul#paxinas li:hover, ul#paxinas li.activo
{
border-left: 0;
}
ul#paxinas li:hover a, ul#paxinas li.activo a
{
text-decoration: underline dotted;
}
article header, article header .columna
{
height: 100px;
}
article#noticias section#categorias,
article#noticias section#etiquetas
{
width: 50%;
}
section#publicacions article
{
width: calc(50% - 1rem);
}
form#inicio-sesion
{
width: 50%;
}
div.celda.esquerda
{
flex-direction: row;
}
div.celda.dereita
{
flex-direction: row-reverse;
}
div.celda.esquerda > *, div.celda.dereita > *
{
width: 50%;
}
div.celda.esquerda p
{
padding-left: 20px;
}
div.celda.dereita p
{
padding-right: 20px;
}
div.reixa
{
grid-template-columns: repeat(3, 1fr);
}
.contedor
{
width: 100%;
max-width: 62.5rem;
}
.oculto-escritorio
{
display: none;
}
.oculto-movil
{
display: initial;
}
}
@media (min-width: 1025px)
{
header#cabeceira div.contedor > *
{
width: unset;
}
}