Trillo project done

This commit is contained in:
dqnid committed 2024-06-04 23:11:55 +02:00
1 parent 25aaf4ff94
commit 3f85b26c2f
4 files changed
+181 -11

No files matched your search

+82 -5
View File
@@ -66,6 +66,10 @@ body {
align-items: center;
justify-content: center;
flex: 0 0 40%; }
@media only screen and (max-width: 31.25em) {
.search {
order: 1;
flex-basis: 100%; } }
.search__input {
font-family: inherit;
font-size: inherit;
@@ -138,10 +142,20 @@ body {
font-size: 1.4rem;
list-style: none;
margin-top: 3.5rem; }
@media only screen and (max-width: 56.25em) {
.side-nav {
display: flex;
margin: 0; } }
.side-nav__item {
position: relative; }
.side-nav__item:not(:last-child) {
margin-bottom: 0.5rem; }
@media only screen and (max-width: 56.25em) {
.side-nav__item:not(:last-child) {
margin-bottom: 0; } }
@media only screen and (max-width: 56.25em) {
.side-nav__item {
flex: 1; } }
.side-nav__item::before {
content: "";
position: absolute;
@@ -167,17 +181,34 @@ body {
padding: 1.5rem 3rem;
position: relative;
z-index: 10; }
@media only screen and (max-width: 56.25em) {
.side-nav__link:link, .side-nav__link:visited {
justify-content: center;
padding: 2rem; } }
@media only screen and (max-width: 37.5em) {
.side-nav__link:link, .side-nav__link:visited {
flex-direction: column;
padding: 1rem; } }
.side-nav__icon {
width: 1.75rem;
height: 1.75rem;
margin-right: 2rem;
fill: currentColor; }
@media only screen and (max-width: 37.5em) {
.side-nav__icon {
margin-right: 0;
margin-bottom: 0.7rem;
width: 1.5rem;
height: 1.5rem; } }
.legal {
font-size: 1.2rem;
color: var(--color-grey-light-4);
text-align: center;
padding: 2.5rem; }
@media only screen and (max-width: 56.25em) {
.legal {
display: none; } }
.gallery {
display: flex; }
@@ -195,6 +226,10 @@ body {
text-transform: uppercase;
letter-spacing: 1px;
padding: 1.5rem 3rem; }
@media only screen and (max-width: 37.5em) {
.overview__heading {
font-size: 1.8rem;
padding: 1.25rem 2rem; } }
.overview__stars {
margin-right: auto;
display: flex; }
@@ -218,13 +253,22 @@ body {
flex-direction: column;
align-items: center;
justify-content: center; }
@media only screen and (max-width: 37.5em) {
.overview__rating {
padding: 0 1.5rem; } }
.overview__rating-average {
font-size: 2.25rem;
font-weight: 300;
margin-bottom: -3px; }
@media only screen and (max-width: 37.5em) {
.overview__rating-average {
font-size: 1.8rem; } }
.overview__rating-count {
font-weight: 0.8rem;
text-transform: uppercase; }
@media only screen and (max-width: 37.5em) {
.overview__rating-count {
font-size: 0.5rem; } }
.btn {
position: relative;
@@ -310,10 +354,12 @@ body {
display: inline-block;
height: 1rem;
width: 1rem;
margin-right: 0.7rem;
background-color: var(--color-primary);
mask-image: url("../img/chevron-thin-right.svg");
mask-size: cover; }
margin-right: 0.7rem; }
@supports (-webkit-mask-image: url()) or (mask-image: url()) {
.list__item::before {
background-color: var(--color-primary);
mask-image: url("../img/chevron-thin-right.svg");
mask-size: cover; } }
.recommend {
font-size: 1.3rem;
@@ -322,6 +368,8 @@ body {
align-items: center; }
.recommend__count {
margin-right: auto; }
.recommend__friends {
display: flex; }
.recommend__photo {
box-sizing: content-box;
height: 4rem;
@@ -338,6 +386,10 @@ body {
margin-bottom: 3.5rem;
position: relative;
overflow: hidden; }
@media only screen and (max-width: 56.25em) {
.review {
padding: 2rem;
margin-bottom: 3rem; } }
.review::before {
content: "\201C";
position: absolute;
@@ -376,8 +428,11 @@ body {
color: var(--color-primary); }
.cta {
padding: 3.5rem;
padding: 3.5rem 0;
text-align: center; }
@media only screen and (max-width: 56.25em) {
.cta {
padding: 2.5rem 0; } }
.cta__book-now {
font-size: 2rem;
font-weight: 300;
@@ -404,9 +459,17 @@ body {
justify-content: space-between;
align-items: center;
font-size: 1.4rem; }
@media only screen and (max-width: 68.75em) {
.header {
flex-wrap: wrap;
align-content: space-around;
height: 11rem; } }
.content {
display: flex; }
@media only screen and (max-width: 56.25em) {
.content {
flex-direction: column; } }
.sidebar {
background-color: var(--color-grey-dark-1);
@@ -426,12 +489,26 @@ body {
background-color: var(--color-grey-light-1);
border-bottom: 1px solid var(--color-grey-light-2);
font-size: 1.4rem; }
@media only screen and (max-width: 56.25em) {
.detail {
padding: 3rem;
gap: 3rem; } }
@media only screen and (max-width: 37.5em) {
.detail {
flex-direction: column;
gap: 0; } }
.description {
background-color: white;
box-shadow: var(--shadow-light);
padding: 3rem;
flex: 0 0 60%; }
@media only screen and (max-width: 56.25em) {
.description {
padding: 2rem; } }
@media only screen and (max-width: 37.5em) {
.description {
margin-bottom: 3rem; } }
.user-reviews {
flex: 1;