Trillo project done
This commit is contained in:
1 parent
25aaf4ff94
commit
3f85b26c2f
4 files changed
+176
-6
No files matched your search
@@ -66,6 +66,10 @@ body {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
flex: 0 0 40%; }
|
flex: 0 0 40%; }
|
||||||
|
@media only screen and (max-width: 31.25em) {
|
||||||
|
.search {
|
||||||
|
order: 1;
|
||||||
|
flex-basis: 100%; } }
|
||||||
.search__input {
|
.search__input {
|
||||||
font-family: inherit;
|
font-family: inherit;
|
||||||
font-size: inherit;
|
font-size: inherit;
|
||||||
@@ -138,10 +142,20 @@ body {
|
|||||||
font-size: 1.4rem;
|
font-size: 1.4rem;
|
||||||
list-style: none;
|
list-style: none;
|
||||||
margin-top: 3.5rem; }
|
margin-top: 3.5rem; }
|
||||||
|
@media only screen and (max-width: 56.25em) {
|
||||||
|
.side-nav {
|
||||||
|
display: flex;
|
||||||
|
margin: 0; } }
|
||||||
.side-nav__item {
|
.side-nav__item {
|
||||||
position: relative; }
|
position: relative; }
|
||||||
.side-nav__item:not(:last-child) {
|
.side-nav__item:not(:last-child) {
|
||||||
margin-bottom: 0.5rem; }
|
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 {
|
.side-nav__item::before {
|
||||||
content: "";
|
content: "";
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@@ -167,17 +181,34 @@ body {
|
|||||||
padding: 1.5rem 3rem;
|
padding: 1.5rem 3rem;
|
||||||
position: relative;
|
position: relative;
|
||||||
z-index: 10; }
|
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 {
|
.side-nav__icon {
|
||||||
width: 1.75rem;
|
width: 1.75rem;
|
||||||
height: 1.75rem;
|
height: 1.75rem;
|
||||||
margin-right: 2rem;
|
margin-right: 2rem;
|
||||||
fill: currentColor; }
|
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 {
|
.legal {
|
||||||
font-size: 1.2rem;
|
font-size: 1.2rem;
|
||||||
color: var(--color-grey-light-4);
|
color: var(--color-grey-light-4);
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding: 2.5rem; }
|
padding: 2.5rem; }
|
||||||
|
@media only screen and (max-width: 56.25em) {
|
||||||
|
.legal {
|
||||||
|
display: none; } }
|
||||||
|
|
||||||
.gallery {
|
.gallery {
|
||||||
display: flex; }
|
display: flex; }
|
||||||
@@ -195,6 +226,10 @@ body {
|
|||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
letter-spacing: 1px;
|
letter-spacing: 1px;
|
||||||
padding: 1.5rem 3rem; }
|
padding: 1.5rem 3rem; }
|
||||||
|
@media only screen and (max-width: 37.5em) {
|
||||||
|
.overview__heading {
|
||||||
|
font-size: 1.8rem;
|
||||||
|
padding: 1.25rem 2rem; } }
|
||||||
.overview__stars {
|
.overview__stars {
|
||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
display: flex; }
|
display: flex; }
|
||||||
@@ -218,13 +253,22 @@ body {
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center; }
|
justify-content: center; }
|
||||||
|
@media only screen and (max-width: 37.5em) {
|
||||||
|
.overview__rating {
|
||||||
|
padding: 0 1.5rem; } }
|
||||||
.overview__rating-average {
|
.overview__rating-average {
|
||||||
font-size: 2.25rem;
|
font-size: 2.25rem;
|
||||||
font-weight: 300;
|
font-weight: 300;
|
||||||
margin-bottom: -3px; }
|
margin-bottom: -3px; }
|
||||||
|
@media only screen and (max-width: 37.5em) {
|
||||||
|
.overview__rating-average {
|
||||||
|
font-size: 1.8rem; } }
|
||||||
.overview__rating-count {
|
.overview__rating-count {
|
||||||
font-weight: 0.8rem;
|
font-weight: 0.8rem;
|
||||||
text-transform: uppercase; }
|
text-transform: uppercase; }
|
||||||
|
@media only screen and (max-width: 37.5em) {
|
||||||
|
.overview__rating-count {
|
||||||
|
font-size: 0.5rem; } }
|
||||||
|
|
||||||
.btn {
|
.btn {
|
||||||
position: relative;
|
position: relative;
|
||||||
@@ -310,10 +354,12 @@ body {
|
|||||||
display: inline-block;
|
display: inline-block;
|
||||||
height: 1rem;
|
height: 1rem;
|
||||||
width: 1rem;
|
width: 1rem;
|
||||||
margin-right: 0.7rem;
|
margin-right: 0.7rem; }
|
||||||
|
@supports (-webkit-mask-image: url()) or (mask-image: url()) {
|
||||||
|
.list__item::before {
|
||||||
background-color: var(--color-primary);
|
background-color: var(--color-primary);
|
||||||
mask-image: url("../img/chevron-thin-right.svg");
|
mask-image: url("../img/chevron-thin-right.svg");
|
||||||
mask-size: cover; }
|
mask-size: cover; } }
|
||||||
|
|
||||||
.recommend {
|
.recommend {
|
||||||
font-size: 1.3rem;
|
font-size: 1.3rem;
|
||||||
@@ -322,6 +368,8 @@ body {
|
|||||||
align-items: center; }
|
align-items: center; }
|
||||||
.recommend__count {
|
.recommend__count {
|
||||||
margin-right: auto; }
|
margin-right: auto; }
|
||||||
|
.recommend__friends {
|
||||||
|
display: flex; }
|
||||||
.recommend__photo {
|
.recommend__photo {
|
||||||
box-sizing: content-box;
|
box-sizing: content-box;
|
||||||
height: 4rem;
|
height: 4rem;
|
||||||
@@ -338,6 +386,10 @@ body {
|
|||||||
margin-bottom: 3.5rem;
|
margin-bottom: 3.5rem;
|
||||||
position: relative;
|
position: relative;
|
||||||
overflow: hidden; }
|
overflow: hidden; }
|
||||||
|
@media only screen and (max-width: 56.25em) {
|
||||||
|
.review {
|
||||||
|
padding: 2rem;
|
||||||
|
margin-bottom: 3rem; } }
|
||||||
.review::before {
|
.review::before {
|
||||||
content: "\201C";
|
content: "\201C";
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@@ -376,8 +428,11 @@ body {
|
|||||||
color: var(--color-primary); }
|
color: var(--color-primary); }
|
||||||
|
|
||||||
.cta {
|
.cta {
|
||||||
padding: 3.5rem;
|
padding: 3.5rem 0;
|
||||||
text-align: center; }
|
text-align: center; }
|
||||||
|
@media only screen and (max-width: 56.25em) {
|
||||||
|
.cta {
|
||||||
|
padding: 2.5rem 0; } }
|
||||||
.cta__book-now {
|
.cta__book-now {
|
||||||
font-size: 2rem;
|
font-size: 2rem;
|
||||||
font-weight: 300;
|
font-weight: 300;
|
||||||
@@ -404,9 +459,17 @@ body {
|
|||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
font-size: 1.4rem; }
|
font-size: 1.4rem; }
|
||||||
|
@media only screen and (max-width: 68.75em) {
|
||||||
|
.header {
|
||||||
|
flex-wrap: wrap;
|
||||||
|
align-content: space-around;
|
||||||
|
height: 11rem; } }
|
||||||
|
|
||||||
.content {
|
.content {
|
||||||
display: flex; }
|
display: flex; }
|
||||||
|
@media only screen and (max-width: 56.25em) {
|
||||||
|
.content {
|
||||||
|
flex-direction: column; } }
|
||||||
|
|
||||||
.sidebar {
|
.sidebar {
|
||||||
background-color: var(--color-grey-dark-1);
|
background-color: var(--color-grey-dark-1);
|
||||||
@@ -426,12 +489,26 @@ body {
|
|||||||
background-color: var(--color-grey-light-1);
|
background-color: var(--color-grey-light-1);
|
||||||
border-bottom: 1px solid var(--color-grey-light-2);
|
border-bottom: 1px solid var(--color-grey-light-2);
|
||||||
font-size: 1.4rem; }
|
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 {
|
.description {
|
||||||
background-color: white;
|
background-color: white;
|
||||||
box-shadow: var(--shadow-light);
|
box-shadow: var(--shadow-light);
|
||||||
padding: 3rem;
|
padding: 3rem;
|
||||||
flex: 0 0 60%; }
|
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 {
|
.user-reviews {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
|||||||
@@ -33,8 +33,11 @@ Grey dark 3: #999
|
|||||||
--line: 1px solid var(--color-grey-light-2);
|
--line: 1px solid var(--color-grey-light-2);
|
||||||
}
|
}
|
||||||
|
|
||||||
$bp-largest: 75em;
|
$bp-largest: 75em; // 1200px
|
||||||
$bp-large: 68.75em;
|
$bp-large: 68.75em; // 1100px
|
||||||
|
$bp-medium: 56.25em; // 900px
|
||||||
|
$bp-small: 37.5em; // 600px
|
||||||
|
$bp-smallest: 31.25em; // 500px
|
||||||
|
|
||||||
* {
|
* {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
|||||||
@@ -11,6 +11,11 @@
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
flex: 0 0 40%;
|
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 {
|
&__input {
|
||||||
font-family: inherit;
|
font-family: inherit;
|
||||||
font-size: inherit;
|
font-size: inherit;
|
||||||
@@ -121,11 +126,23 @@
|
|||||||
list-style: none;
|
list-style: none;
|
||||||
margin-top: 3.5rem;
|
margin-top: 3.5rem;
|
||||||
|
|
||||||
|
@media only screen and (max-width: $bp-medium) {
|
||||||
|
display: flex;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
&__item {
|
&__item {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
&:not(:last-child) {
|
&:not(:last-child) {
|
||||||
margin-bottom: 0.5rem;
|
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;
|
position: relative;
|
||||||
z-index: 10;
|
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 {
|
&__icon {
|
||||||
@@ -175,6 +202,13 @@
|
|||||||
height: 1.75rem;
|
height: 1.75rem;
|
||||||
margin-right: 2rem;
|
margin-right: 2rem;
|
||||||
fill: currentColor; //NOTE: color of current or parent element
|
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);
|
color: var(--color-grey-light-4);
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding: 2.5rem;
|
padding: 2.5rem;
|
||||||
|
|
||||||
|
@media only screen and (max-width: $bp-medium) {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Gallery
|
// Gallery
|
||||||
@@ -209,6 +247,10 @@
|
|||||||
letter-spacing: 1px;
|
letter-spacing: 1px;
|
||||||
|
|
||||||
padding: 1.5rem 3rem;
|
padding: 1.5rem 3rem;
|
||||||
|
@media only screen and (max-width: $bp-small) {
|
||||||
|
font-size: 1.8rem;
|
||||||
|
padding: 1.25rem 2rem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&__stars {
|
&__stars {
|
||||||
@@ -243,17 +285,27 @@
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|
||||||
|
@media only screen and (max-width: $bp-small) {
|
||||||
|
padding: 0 1.5rem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&__rating-average {
|
&__rating-average {
|
||||||
font-size: 2.25rem;
|
font-size: 2.25rem;
|
||||||
font-weight: 300;
|
font-weight: 300;
|
||||||
margin-bottom: -3px;
|
margin-bottom: -3px;
|
||||||
|
@media only screen and (max-width: $bp-small) {
|
||||||
|
font-size: 1.8rem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&__rating-count {
|
&__rating-count {
|
||||||
font-weight: 0.8rem;
|
font-weight: 0.8rem;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
|
@media only screen and (max-width: $bp-small) {
|
||||||
|
font-size: 0.5rem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -400,12 +452,15 @@
|
|||||||
|
|
||||||
// NOTE: Newer browsers - masks
|
// NOTE: Newer browsers - masks
|
||||||
// icon mask that lets you see the background color
|
// icon mask that lets you see the background color
|
||||||
|
// NOTE: feature query (requires a value)
|
||||||
|
@supports (-webkit-mask-image: url()) or (mask-image: url()) {
|
||||||
background-color: var(--color-primary);
|
background-color: var(--color-primary);
|
||||||
mask-image: url("../img/chevron-thin-right.svg");
|
mask-image: url("../img/chevron-thin-right.svg");
|
||||||
mask-size: cover;
|
mask-size: cover;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Recommend
|
// Recommend
|
||||||
.recommend {
|
.recommend {
|
||||||
@@ -420,6 +475,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
&__friends {
|
&__friends {
|
||||||
|
display: flex;
|
||||||
}
|
}
|
||||||
|
|
||||||
&__photo {
|
&__photo {
|
||||||
@@ -446,6 +502,11 @@
|
|||||||
position: relative;
|
position: relative;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
||||||
|
@media only screen and (max-width: $bp-medium) {
|
||||||
|
padding: 2rem;
|
||||||
|
margin-bottom: 3rem;
|
||||||
|
}
|
||||||
|
|
||||||
&::before {
|
&::before {
|
||||||
content: "\201C"; // NOTE: html entity
|
content: "\201C"; // NOTE: html entity
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@@ -503,9 +564,13 @@
|
|||||||
|
|
||||||
// cta
|
// cta
|
||||||
.cta {
|
.cta {
|
||||||
padding: 3.5rem;
|
padding: 3.5rem 0;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
||||||
|
@media only screen and (max-width: $bp-medium) {
|
||||||
|
padding: 2.5rem 0;
|
||||||
|
}
|
||||||
|
|
||||||
&__book-now {
|
&__book-now {
|
||||||
font-size: 2rem;
|
font-size: 2rem;
|
||||||
font-weight: 300;
|
font-weight: 300;
|
||||||
|
|||||||
@@ -22,10 +22,19 @@
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
font-size: 1.4rem;
|
font-size: 1.4rem;
|
||||||
|
|
||||||
|
@media only screen and (max-width: $bp-large) {
|
||||||
|
flex-wrap: wrap;
|
||||||
|
align-content: space-around;
|
||||||
|
height: 11rem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.content {
|
.content {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@media only screen and (max-width: $bp-medium) {
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar {
|
.sidebar {
|
||||||
@@ -50,6 +59,16 @@
|
|||||||
border-bottom: 1px solid var(--color-grey-light-2);
|
border-bottom: 1px solid var(--color-grey-light-2);
|
||||||
|
|
||||||
font-size: 1.4rem;
|
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 {
|
.description {
|
||||||
@@ -57,6 +76,12 @@
|
|||||||
box-shadow: var(--shadow-light);
|
box-shadow: var(--shadow-light);
|
||||||
padding: 3rem;
|
padding: 3rem;
|
||||||
flex: 0 0 60%;
|
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 {
|
.user-reviews {
|
||||||
|
|||||||
Reference in new issue
Block a user