sitewww/styles/projects.css
vinicius 925f5ba1ee
All checks were successful
Deploy para Servidor de Produção / Determinar ambiente de destino (push) Successful in 2s
Deploy para Servidor de Produção / Deploy para (push) Successful in 24s
versao inicial do site
2025-06-23 22:19:55 -03:00

175 lines
2.9 KiB
CSS
Executable file

body {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 2.5rem 0;
box-sizing: border-box;
height: auto;
}
main {
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
width: 100%;
gap: 1.25rem;
}
header,
section {
display: flex;
flex-direction: column;
gap: 0.5rem;
width: 60%;
h1 {
font-size: 2.5rem;
}
h2 {
font-size: 2rem;
}
p {
font-size: 1.5rem;
margin-bottom: 1rem;
}
}
header {
img {
width: 100%;
height: auto;
aspect-ratio: 4/3;
}
}
img {
width: 100%;
height: auto;
align-self: center;
border-radius: 1.25rem;
background-color: var(--card);
border: solid 0.125rem #20202040;
box-sizing: border-box;
object-fit: cover;
object-position: center;
}
div {
display: flex;
flex-direction: row;
width: 100%;
overflow-x: scroll;
gap: 0.625rem;
scroll-snap-type: x mandatory;
scroll-padding: 20%;
img {
width: auto;
height: 42rem;
flex-shrink: 0;
scroll-snap-align: start;
scroll-snap-stop: always;
&:first-child {
margin-left: 20%;
}
&:last-child {
margin-right: 20%;
}
}
}
footer {
display: flex;
width: 100%;
justify-content: center;
align-items: center;
padding-top: 1rem;
button {
display: flex;
height: auto;
width: auto;
padding: 0.5rem 1rem;
font-size: 1rem;
border-radius: 4rem;
background-color: var(--background);
border: solid 0.125rem transparent;
color: var(--icone-texto);
&:hover {
border: solid 0.125rem var(--icone-texto);
cursor: pointer;
transform: scale(1.05);
}
&:active {
transform: scale(0.975);
opacity: 0.75;
filter: blur(0.125rem);
}
}
}
@media (orientation: portrait) {
body {
padding: 0;
}
main {
width: 100%;
&:first-child {
padding-top: 1rem;
}
&:last-child {
padding-bottom: 1rem;
}
}
header,
section {
width: 100%;
padding-left: 1rem;
padding-right: 1rem;
box-sizing: border-box;
h1 {
font-size: 3rem;
}
h2 {
font-size: 2rem;
}
p {
font-size: 1.25rem;
margin-bottom: 1rem;
}
}
div {
scroll-padding: 1rem;
img {
width: 80%;
height: auto;
&:first-child {
margin-left: 1rem;
}
&:last-child {
margin-right: 1rem;
}
}
}
}