praiadeseselle/site/templates/css/style.css

685 lines
9.1 KiB
CSS
Raw Normal View History

2022-03-09 18:09:44 +01:00
*, *::before, *::after
{
box-sizing: border-box;
}
body
{
2022-03-10 01:47:18 +01:00
display: flex;
flex-direction: column;
2022-03-09 18:09:44 +01:00
min-height: 100vh;
margin: 0;
color: rgb(var(--color_10));
2022-04-15 12:16:44 +02:00
font-family: 'Source Sans Pro', sans-serif;
2022-03-10 01:47:18 +01:00
font-size: 1rem;
background-color: rgb(var(--color_60));
2022-03-13 21:30:17 +01:00
}
2022-03-10 01:47:18 +01:00
h1, h2, h3, h4, h5, h6
{
margin-top: 0;
2022-03-17 15:56:19 +01:00
color: rgb(var(--color_30));
2022-04-15 12:16:44 +02:00
font-family: 'Libre Baskerville', serif;
font-weight: bold;
2022-03-10 01:47:18 +01:00
}
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;
2022-03-09 18:09:44 +01:00
}
a
{
color: rgb(var(--color_10));
text-decoration-line: underline;
text-decoration-style: dotted;
2022-03-17 15:56:19 +01:00
}
2022-03-09 18:09:44 +01:00
img
{
width: 100%;
2022-03-10 01:47:18 +01:00
}
figure
{
margin: 0;
}
figure figcaption
{
2022-04-15 12:16:44 +02:00
padding: 10px 40px 20px;
color: rgb(var(--color_30));
2022-04-15 12:16:44 +02:00
font-family: 'Source Sans Pro', sans-serif;
font-weight: normal;
font-size: 1rem;
}
2022-04-08 12:32:49 +02:00
figure figcaption
{
text-align: center;
}
figure img
{
display: block;
width: 100%;
2022-04-08 12:32:49 +02:00
height: auto;
object-fit: cover;
background-color: rgb(var(--color_60));
}
2022-04-05 12:43:22 +02:00
picture
{
align-items: center;
display: flex;
justify-content: center;
}
section
2022-03-10 01:47:18 +01:00
{
margin-bottom: 30px;
}
2022-03-10 01:47:18 +01:00
header#cabeceira
{
2022-03-10 01:47:18 +01:00
padding: 0.625rem;
}
2022-03-17 15:56:19 +01:00
div#logo
{
width: 230px !important;
}
div#logo img
{
width: 150px;
}
2022-03-13 21:30:17 +01:00
header#cabeceira input#interruptor
2022-03-10 01:47:18 +01:00
{
display: block;
position: absolute;
top: 1.563rem;
left: 1.563rem;
z-index: 4;
2022-03-10 01:47:18 +01:00
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;
2022-03-10 01:47:18 +01:00
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(--color_10));
2022-03-10 01:47:18 +01:00
}
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#menu
{
left: 0;
position: fixed;
top: 0;
z-index: 2;
2022-03-10 01:47:18 +01:00
height: 100vh;
width: 50%;
2022-03-10 01:47:18 +01:00
padding: 0;
2022-03-10 01:47:18 +01:00
border-right: 2px solid rgb(var(--color_30));
color: rgb(var(--color_30));
background-color: rgb(var(--color_60));
2022-03-10 01:47:18 +01:00
transform: translateX(-100%);
transition: transform 0.5s;
}
nav#menu a
{
color: rgb(var(--color_10));
2022-03-13 21:30:17 +01:00
}
2022-03-10 01:47:18 +01:00
ul#idiomas
{
display: flex;
flex-direction: row;
width: 75%;
margin: 70px 0 0 20px;
2022-03-10 01:47:18 +01:00
padding: 0;
2022-03-10 01:47:18 +01:00
}
ul#idiomas a
{
color: rgb(var(--color_10));
}
2022-03-10 01:47:18 +01:00
ul#paxinas
{
display: flex;
flex-direction: column;
margin: 1.25rem 0 0;
padding: 0;
}
ul#idiomas li, ul#paxinas li
{
list-style: none;
}
ul#idiomas li a
{
display: block;
padding: 0.625rem;
border: 1px solid rgb(var(--color_10));
2022-03-10 01:47:18 +01:00
text-decoration: none;
}
ul#idiomas li.activo a
{
color: rgb(var(--color_60));
2022-03-10 01:47:18 +01:00
background-color: rgb(var(--color_10));
2022-03-10 01:47:18 +01:00
}
nav#menu li a:focus
{
outline: 2px dotted rgb(var(--color_10));
2022-03-10 01:47:18 +01:00
}
ul#paxinas li
{
border-left: 0.625rem solid rgb(var(--color_60));
2022-03-10 01:47:18 +01:00
}
2022-03-17 15:56:19 +01:00
ul#paxinas li.activo
2022-03-10 01:47:18 +01:00
{
border-left: 0.625rem solid rgb(var(--color_30));
2022-03-17 15:56:19 +01:00
}
ul#paxinas li:hover
{
border-left: 0.625rem solid rgb(var(--color_30));
2022-03-10 01:47:18 +01:00
}
ul#paxinas li a
{
display: block;
padding: 1.25rem;
text-decoration: none;
2022-04-15 12:16:44 +02:00
text-transform: capitalize;
2022-03-10 01:47:18 +01:00
}
2022-03-13 21:30:17 +01:00
header#cabeceira input#interruptor:checked ~ nav#menu
2022-03-10 01:47:18 +01:00
{
transform: translateX(0);
}
2022-03-13 21:30:17 +01:00
header#cabeceira input#interruptor:focus ~ .interruptor
2022-03-10 01:47:18 +01:00
{
outline: 2px dotted rgb(var(--color_10));
2022-03-10 01:47:18 +01:00
}
2022-03-13 21:30:17 +01:00
header#cabeceira input#interruptor:checked ~ .interruptor .linna1
2022-03-10 01:47:18 +01:00
{
transform: rotate(45deg) scaleX(1.3);
}
2022-03-13 21:30:17 +01:00
header#cabeceira input#interruptor:checked ~ .interruptor .linna2
2022-03-10 01:47:18 +01:00
{
transform: scaleY(0);
}
2022-03-13 21:30:17 +01:00
header#cabeceira input#interruptor:checked ~ .interruptor .linna3
2022-03-10 01:47:18 +01:00
{
transform: rotate(-45deg) scaleX(1.3);
}
2022-03-13 21:30:17 +01:00
header#cabeceira input#interruptor:checked:focus ~ .interruptor
2022-03-10 01:47:18 +01:00
{
outline: 2px dotted rgb(var(--color_10));
2022-03-10 01:47:18 +01:00
}
header#cabeceira div.contedor
{
align-items: center;
display: flex;
flex-direction: row;
justify-content: center;
}
main#contido
{
flex: 1 0 auto;
}
2022-05-03 12:18:01 +02:00
article header, article header .columna
2022-03-10 15:09:07 +01:00
{
2022-05-03 12:18:01 +02:00
height: 100px;
width: 100%;
}
article header
{
margin-bottom: 30px;
background: linear-gradient(
rgba(255, 255, 255, 0.4),
rgba(255, 255, 255, 0.4)
), var(--imaxe_destacada);
}
article header h2
{
margin: 30px;
text-align: center;
2022-03-10 15:09:07 +01:00
}
footer#pe
2022-03-10 01:47:18 +01:00
{
flex-shrink: 0;
2022-03-10 15:09:07 +01:00
padding: 1.25rem 0.625rem;
color: rgb(var(--color_60));
background-color: rgb(var(--color_30));
2022-03-10 01:47:18 +01:00
}
footer#pe p
{
font-size: .83rem;
text-align: center;
}
footer#pe a
{
color: rgb(var(--color_60));
}
section.swiper
{
width: 100%;
height: auto;
margin-left: auto;
margin-right: auto;
}
div.swiper-slide
2022-03-10 01:47:18 +01:00
{
display: flex;
justify-content: center;
align-items: center;
2022-03-10 01:47:18 +01:00
padding: 10px;
2022-03-10 01:47:18 +01:00
text-align: center;
font-size: 18px;
background: #fff;
2022-03-10 01:47:18 +01:00
}
.swiper-button-prev,
.swiper-button-next
{
bottom: 15px;
top: unset;
color: rgb(var(--color_10));
}
2022-04-08 12:32:49 +02:00
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;
}
2022-05-03 12:18:01 +02:00
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(--color_30));
font-family: 'Libre Baskerville', serif;
font-weight: 700;
text-transform: uppercase;
}
2022-03-10 01:47:18 +01:00
.contedor
{
width: 90%;
2022-03-10 01:47:18 +01:00
2022-04-08 12:32:49 +02:00
margin: 0 auto 20px;
2022-03-10 01:47:18 +01:00
}
2022-05-03 12:18:01 +02:00
.columna
{
align-items: center;
display: flex;
flex-direction: column;
justify-content: center;
}
2022-03-10 01:47:18 +01:00
.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(--color_30));
color: rgb(var(--color_60));
2022-03-10 01:47:18 +01:00
}
2022-04-05 12:43:22 +02:00
@media (min-width:768px)
{
div#logo img
2022-04-05 12:43:22 +02:00
{
width: 230px;
}
}
2022-03-17 15:56:19 +01:00
@media (max-height: 768px) and (orientation: landscape)
2022-03-10 01:47:18 +01:00
{
ul#idiomas
{
margin-top: 20px;
margin-left: 70px;
}
2022-03-17 15:56:19 +01:00
ul#paxinas li a
{
2022-03-17 15:56:19 +01:00
padding: 0.625rem;
2022-03-10 15:09:07 +01:00
}
2022-03-17 15:56:19 +01:00
}
2022-03-10 15:09:07 +01:00
@media (min-width: 1024px)
{
header#cabeceira div.contedor
{
2022-03-17 15:56:19 +01:00
align-items: flex-start;
display: flex;
2022-03-13 21:30:17 +01:00
flex-direction: row;
justify-content: space-between;
}
header#cabeceira input#interruptor,
header#cabeceira .interruptor
2022-03-13 21:30:17 +01:00
{
display: none;
2022-03-13 21:30:17 +01:00
}
2022-03-10 15:09:07 +01:00
nav#menu
{
position: initial;
width: initial;
height: initial;
padding: 0;
border: initial;
background-color: transparent;
transform: initial;
transition: initial;
}
ul#idiomas
{
justify-content: flex-end;
width: 100%;
2022-03-10 15:09:07 +01:00
margin: 0;
}
ul#paxinas
{
flex-direction: row;
justify-content: flex-end;
2022-03-17 15:56:19 +01:00
gap: 20px;
}
ul#paxinas li
{
border-left: 0;
2022-03-10 15:09:07 +01:00
}
2022-04-08 12:32:49 +02:00
ul#paxinas li a
{
padding: 0;
}
2022-03-10 15:09:07 +01:00
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;
2022-03-10 15:09:07 +01:00
}
2022-05-03 12:18:01 +02:00
article header, article header .columna
{
height: 200px;
}
2022-04-08 12:32:49 +02:00
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);
}
2022-03-10 01:47:18 +01:00
.contedor
{
width: 100%;
max-width: 62.5rem;
2022-03-10 01:47:18 +01:00
}
}
@media (min-width: 1025px)
{
header#cabeceira div.contedor > *
{
width: unset;
}
2022-03-09 18:09:44 +01:00
}