praiadeseselle/site/templates/css/style.css

522 lines
No EOL
7.5 KiB
CSS

*, *::before, *::after
{
box-sizing: border-box;
}
:root
{
font-size: 16px;
--color_principal: 255, 255, 255;
--color_realce: 43, 44, 38;
--color-pe: 43, 44, 38;
--texto_realce: 189, 186, 178;
}
body
{
display: flex;
flex-direction: column;
min-height: 100vh;
margin: 0;
color: rgb(var(--color_realce));
font-family: 'DejaVu Sans', sans-serif;
font-size: 1rem;
background-color: rgb(var(--color_principal));
}
h1, h2, h3, h4, h5, h6
{
margin-top: 0;
}
h1
{
font-family: 'Ambarella', cursive;
font-size: 2rem;
}
h2
{
font-size: 1.5rem;
font-weight: normal;
font-style: oblique;
}
h3
{
font-size: 1.17rem;
font-weight: normal;
font-style: oblique;
}
h4
{
font-size: 1rem;
font-weight: normal;
font-style: oblique;
}
h5
{
font-size: .83rem;
font-weight: normal;
font-style: oblique;
}
h6
{
font-size: .67rem;
font-weight: normal;
font-style: oblique;
}
p
{
margin: 0;
}
img
{
width: 100%;
}
header#cabeceira
{
margin-bottom: 1.125rem;
padding: 0.625rem;
box-shadow: 0px 16px 24px 2px rgba(0, 0, 0, 0.14),
0px 6px 30px 5px rgba(0, 0, 0, 0.12),
0px 8px 10px -5px rgba(0, 0, 0, 0.2);
}
header#cabeceira input#interruptor
{
display: block;
position: absolute;
top: 1.563rem;
left: 1.563rem;
z-index: 5;
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: 2;
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_realce));
}
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;
height: 100vh;
width: 50%;
padding: 0;
border-right: 2px solid rgb(var(--color_realce));
color: rgb(var(--color_realce));
background-color: rgb(var(--color_principal));
transform: translateX(-100%);
transition: transform 0.5s;
}
nav#menu a
{
color: rgb(var(--color_realce));
}
ul#idiomas
{
display: flex;
flex-direction: row;
width: 75%;
margin: 70px 0 0 20px;
padding: 0;
}
ul#paxinas
{
display: flex;
flex-direction: column;
margin: 1.25rem 0 0;
padding: 0;
}
ul#idiomas li, ul#paxinas li
{
list-style: none;
text-transform: uppercase;
}
ul#idiomas li a
{
display: block;
padding: 0.625rem;
border: 1px solid rgb(var(--color_realce));
text-decoration: none;
}
ul#idiomas li.activo a
{
color: rgb(var(--color_principal));
background-color: rgb(var(--color_realce));
}
nav#menu li a:focus
{
outline: 2px dotted rgb(var(--color_realce));
}
ul#paxinas li
{
border-left: 0.625rem solid rgb(var(--color_principal));
}
ul#paxinas li:hover, ul#paxinas li.activo
{
border-left: 0.625rem solid rgb(var(--color_realce));
}
ul#paxinas li a
{
display: block;
padding: 1.25rem;
text-decoration: none;
}
header#cabeceira input#interruptor:checked ~ nav#menu
{
transform: translateX(0);
}
header#cabeceira input#interruptor:focus ~ .interruptor
{
outline: 2px dotted rgb(var(--color_realce));
}
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(--color_realce));
}
header#cabeceira div.contedor
{
align-items: center;
display: flex;
flex-direction: row;
justify-content: center;
}
main#contido
{
flex: 1 0 auto;
}
section#mantemento
{
align-items: center;
display: flex;
flex-direction: column;
justify-content: center;
}
section#mantemento img
{
max-width: 800px;
padding: 0.625rem;
}
section#mantemento div
{
align-items: center;
display: flex;
flex-direction: column;
justify-content: center;
width: 75%;
margin: 1.25rem auto 0;
text-align: center;
}
footer#pe
{
flex-shrink: 0;
padding: 1.25rem 0.625rem;
color: rgb(var(--texto_realce));
background-color: rgb(var(--color-pe));
}
footer#pe p
{
font-size: .83rem;
text-align: center;
}
footer#pe a
{
color: rgb(var(--texto_realce));
}
.contedor
{
width: 100%;
margin-left: auto;
margin-right: auto;
}
.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: #333;
color: #fff;
}
@media (max-height: 767px) and (orientation: landscape)
{
nav#menu
{
height: 50vh;
width: 100%;
border-right: none;
border-bottom: 2px solid rgb(var(--color_realce));
transform: translateX(0%);
transform: translateY(-100%);
transition: transform 0.5s;
}
ul#idiomas
{
margin-top: 20px;
margin-left: 70px;
}
ul#paxinas
{
flex-direction: row;
flex-wrap: wrap;
justify-content: center;
gap: 20px;
}
ul#paxinas li
{
border-left: 0;
}
ul#paxinas li:hover, ul#paxinas li.activo
{
border-left: 0;
}
ul#paxinas li a
{
padding: 0;
}
ul#paxinas li:hover a, ul#paxinas li.activo a
{
text-decoration: underline;
}
}
@media (min-width: 1024px)
{
header#cabeceira div.contedor
{
align-items: center;
display: flex;
flex-direction: row;
justify-content: space-between;
}
header#cabeceira div.contedor > *
{
width: 50%;
}
header#cabeceira input#interruptor,
header#cabeceira .interruptor
{
display: none;
}
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%;
margin: 0;
}
ul#paxinas
{
flex-direction: row;
justify-content: flex-end;
flex-wrap: wrap;
}
ul#paxinas li
{
border-left: 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;
}
.contedor
{
max-width: 70.5rem;
}
}
@media (min-width: 1025px)
{
header#cabeceira div.contedor > *
{
width: unset;
}
}