Files
esercitazione-http/esercizio.css
Francesco Mancuso 9b71395d09
All checks were successful
Deploy / trigger (push) Successful in 2s
Deploy tramite custom CI/CD Action
2026-01-28 21:50:40 +01:00

192 lines
3.2 KiB
CSS

*,
*::before,
*::after {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
color-scheme: dark;
}
body,
input,
button,
select,
textarea {
font-family: "Outfit", sans-serif;
}
body {
background-color: hsl(219, 62%, 80%);
color: hsl(219, 62%, 10%);
display: flex;
flex-direction: column;
min-height: 100vh;
}
.container {
width: 95%;
max-width: 1200px;
margin-left: auto;
margin-right: auto;
}
img {
width: 100%
}
.page {
flex-grow: 1;
}
section {
margin-top: 4rem;
margin-bottom: 4rem;
text-align: center;
}
section h2 {
margin-bottom: 2rem;
user-select: none;
}
.button {
font-size: 95%;
padding: 0.4rem 0.6rem;
border-radius: 0.5rem;
background-color: hsl(219, 62%, 30%);
color: hsl(219, 62%, 95%);
font-weight: bold;
text-transform: uppercase;
border: none;
cursor: pointer;
text-decoration: none;
user-select: none;
}
.button:hover {
background-color: hsl(219, 62%, 22%);
}
section .boxes {
display: grid;
grid-template-columns: 1fr 1fr 1fr 1fr;
display: flex;
flex-direction: column;
gap: 2rem;
}
section .boxes .box {
display: flex;
flex-direction: row;
flex-wrap: nowrap;
width: 99%;
max-width: 1000px;
margin: 0 auto;
background-color: hsl(219, 62%, 95%);
border-radius: 1rem;
overflow: hidden;
box-shadow: 0px 0px 20px hsla(219, 62%, 70%, 0.4);
}
section .boxes .box .image {
flex-grow: 1;
max-width: 10rem;
min-width: 10rem;
display: flex;
align-items: center;
justify-content: center;
}
section .boxes .box .image img {
width: 60%;
object-fit: contain;
height: 60%;
display: block;
aspect-ratio: 1/1;
user-select: none;
}
section .boxes .box .data {
flex-grow: 2;
text-align: left;
display: flex;
flex-direction: column;
padding: 1rem;
}
section .boxes .box .data h3 {
font-size: 1.8rem;
}
@media only screen and (max-width: 767px) {
section .boxes .box .image {
max-width: 12rem;
min-width: 12rem;
}
section .boxes .box .data h3 {
font-size: 1.5rem;
}
}
@media only screen and (max-width: 600px) {
section .boxes .box .image {
max-width: 100%;
min-width: 12rem;
}
section .boxes .box {
flex-direction: column;
}
}
section .boxes .box .data .meta {
display: flex;
flex-direction: row;
flex-wrap: wrap;
margin: 1rem 0;
justify-content: flex-start;
align-items: center;
gap: 0.5rem;
user-select: none;
}
section .boxes .box .data .meta p {
display: flex;
flex-direction: row;
align-items: center;
gap: 0.5rem;
width: max-content;
padding: 0.2rem 0.4rem;
border-radius: 0.5rem;
background-color: hsl(219, 62%, 70%);
}
section .boxes .box .data .grow {
flex-grow: 1;
}
section .buttons {
display: flex;
flex-direction: row;
flex-wrap: wrap;
gap: 0.5rem;
align-items: center;
justify-content: center;
}
section .boxes .box .data .buttons {
justify-content: flex-end;
margin-top: 1rem;
}
footer {
text-align: center;
background-color: hsl(219, 62%, 70%);
padding: 1rem 0;
}