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

+5 -2
View File
@@ -33,8 +33,11 @@ Grey dark 3: #999
--line: 1px solid var(--color-grey-light-2);
}
$bp-largest: 75em;
$bp-large: 68.75em;
$bp-largest: 75em; // 1200px
$bp-large: 68.75em; // 1100px
$bp-medium: 56.25em; // 900px
$bp-small: 37.5em; // 600px
$bp-smallest: 31.25em; // 500px
* {
margin: 0;
+69 -4
View File
@@ -11,6 +11,11 @@
justify-content: center;
flex: 0 0 40%;
@media only screen and (max-width: $bp-smallest) {
order: 1; // NOTE: changes html order
flex-basis: 100%; // flex: 0 0 100%;
}
&__input {
font-family: inherit;
font-size: inherit;
@@ -121,11 +126,23 @@
list-style: none;
margin-top: 3.5rem;
@media only screen and (max-width: $bp-medium) {
display: flex;
margin: 0;
}
&__item {
position: relative;
&:not(:last-child) {
margin-bottom: 0.5rem;
@media only screen and (max-width: $bp-medium) {
margin-bottom: 0;
}
}
@media only screen and (max-width: $bp-medium) {
flex: 1;
}
}
@@ -168,6 +185,16 @@
position: relative;
z-index: 10;
@media only screen and (max-width: $bp-medium) {
justify-content: center;
padding: 2rem;
}
@media only screen and (max-width: $bp-small) {
flex-direction: column;
padding: 1rem;
}
}
&__icon {
@@ -175,6 +202,13 @@
height: 1.75rem;
margin-right: 2rem;
fill: currentColor; //NOTE: color of current or parent element
@media only screen and (max-width: $bp-small) {
margin-right: 0;
margin-bottom: 0.7rem;
width: 1.5rem;
height: 1.5rem;
}
}
}
@@ -184,6 +218,10 @@
color: var(--color-grey-light-4);
text-align: center;
padding: 2.5rem;
@media only screen and (max-width: $bp-medium) {
display: none;
}
}
// Gallery
@@ -209,6 +247,10 @@
letter-spacing: 1px;
padding: 1.5rem 3rem;
@media only screen and (max-width: $bp-small) {
font-size: 1.8rem;
padding: 1.25rem 2rem;
}
}
&__stars {
@@ -243,17 +285,27 @@
flex-direction: column;
align-items: center;
justify-content: center;
@media only screen and (max-width: $bp-small) {
padding: 0 1.5rem;
}
}
&__rating-average {
font-size: 2.25rem;
font-weight: 300;
margin-bottom: -3px;
@media only screen and (max-width: $bp-small) {
font-size: 1.8rem;
}
}
&__rating-count {
font-weight: 0.8rem;
text-transform: uppercase;
@media only screen and (max-width: $bp-small) {
font-size: 0.5rem;
}
}
}
@@ -400,9 +452,12 @@
// NOTE: Newer browsers - masks
// icon mask that lets you see the background color
background-color: var(--color-primary);
mask-image: url("../img/chevron-thin-right.svg");
mask-size: cover;
// NOTE: feature query (requires a value)
@supports (-webkit-mask-image: url()) or (mask-image: url()) {
background-color: var(--color-primary);
mask-image: url("../img/chevron-thin-right.svg");
mask-size: cover;
}
}
}
}
@@ -420,6 +475,7 @@
}
&__friends {
display: flex;
}
&__photo {
@@ -446,6 +502,11 @@
position: relative;
overflow: hidden;
@media only screen and (max-width: $bp-medium) {
padding: 2rem;
margin-bottom: 3rem;
}
&::before {
content: "\201C"; // NOTE: html entity
position: absolute;
@@ -503,9 +564,13 @@
// cta
.cta {
padding: 3.5rem;
padding: 3.5rem 0;
text-align: center;
@media only screen and (max-width: $bp-medium) {
padding: 2.5rem 0;
}
&__book-now {
font-size: 2rem;
font-weight: 300;
+25
View File
@@ -22,10 +22,19 @@
align-items: center;
font-size: 1.4rem;
@media only screen and (max-width: $bp-large) {
flex-wrap: wrap;
align-content: space-around;
height: 11rem;
}
}
.content {
display: flex;
@media only screen and (max-width: $bp-medium) {
flex-direction: column;
}
}
.sidebar {
@@ -50,6 +59,16 @@
border-bottom: 1px solid var(--color-grey-light-2);
font-size: 1.4rem;
@media only screen and (max-width: $bp-medium) {
padding: 3rem;
gap: 3rem;
}
@media only screen and (max-width: $bp-small) {
flex-direction: column;
gap: 0;
}
}
.description {
@@ -57,6 +76,12 @@
box-shadow: var(--shadow-light);
padding: 3rem;
flex: 0 0 60%;
@media only screen and (max-width: $bp-medium) {
padding: 2rem;
}
@media only screen and (max-width: $bp-small) {
margin-bottom: 3rem;
}
}
.user-reviews {