diff --git a/Trillo/starter/css/style.css b/Trillo/starter/css/style.css
index c580bac..4d0845d 100644
--- a/Trillo/starter/css/style.css
+++ b/Trillo/starter/css/style.css
@@ -126,6 +126,51 @@ body {
border-radius: 50%;
margin-right: 1rem; }
+.side-nav {
+ font-size: 1.4rem;
+ list-style: none;
+ margin-top: 3.5rem; }
+ .side-nav__item {
+ position: relative; }
+ .side-nav__item:not(:last-child) {
+ margin-bottom: 0.5rem; }
+ .side-nav__item::before {
+ content: "";
+ position: absolute;
+ top: 0;
+ left: 0;
+ height: 100%;
+ width: 3px;
+ background-color: var(--color-primary);
+ transform: scaleY(0);
+ transform-origin: center;
+ transition: transform 0.2s, width 0.4s cubic-bezier(1, 0, 0, 1) 0.2s, background-color 0.1s; }
+ .side-nav__item:hover::before, .side-nav__item--active::before {
+ transform: scaleY(1);
+ width: 100%; }
+ .side-nav__item:active::before {
+ background-color: var(--color-primary-light); }
+ .side-nav__link:link, .side-nav__link:visited {
+ color: var(--color-grey-light-1);
+ text-decoration: none;
+ text-transform: uppercase;
+ display: flex;
+ align-items: center;
+ padding: 1.5rem 3rem;
+ position: relative;
+ z-index: 10; }
+ .side-nav__icon {
+ width: 1.75rem;
+ height: 1.75rem;
+ margin-right: 2rem;
+ fill: currentColor; }
+
+.legal {
+ font-size: 1.2rem;
+ color: var(--color-grey-light-4);
+ text-align: center;
+ padding: 2.5rem; }
+
.container {
max-width: 120rem;
min-height: 50rem;
@@ -147,8 +192,12 @@ body {
.sidebar {
background-color: var(--color-grey-dark-1);
- flex: 0 0 18%; }
+ flex: 0 0 18%;
+ display: flex;
+ flex-direction: column;
+ justify-content: space-between; }
.hotel-view {
flex: 1;
- background-color: #fff; }
+ background-color: #fff;
+ height: 80rem; }
diff --git a/Trillo/starter/index.html b/Trillo/starter/index.html
index f4bcc74..6a44267 100644
--- a/Trillo/starter/index.html
+++ b/Trillo/starter/index.html
@@ -54,7 +54,48 @@
-
+
+
Hotel view
diff --git a/Trillo/starter/sass/_components.scss b/Trillo/starter/sass/_components.scss
index 661f7eb..9d7c38b 100644
--- a/Trillo/starter/sass/_components.scss
+++ b/Trillo/starter/sass/_components.scss
@@ -67,7 +67,7 @@
.user-nav {
display: flex;
align-items: center;
- align-self: stretch; //make it cover the entire height
+ align-self: stretch; //NOTE: make it cover the entire height
& > * {
height: 100%;
@@ -114,3 +114,74 @@
margin-right: 1rem;
}
}
+
+// Side navigation
+.side-nav {
+ font-size: 1.4rem;
+ list-style: none;
+ margin-top: 3.5rem;
+
+ &__item {
+ position: relative;
+
+ &:not(:last-child) {
+ margin-bottom: 0.5rem;
+ }
+ }
+
+ &__item::before {
+ content: "";
+ position: absolute;
+ top: 0;
+ left: 0;
+ height: 100%;
+ width: 3px;
+ background-color: var(--color-primary);
+ transform: scaleY(0);
+
+ transform-origin: center; //NOTE: cool
+ transition:
+ transform 0.2s,
+ width 0.4s cubic-bezier(1, 0, 0, 1) 0.2s,
+ //NOTE: duration timing delay
+ background-color 0.1s;
+ }
+
+ &__item:hover::before,
+ &__item--active::before {
+ transform: scaleY(1);
+ width: 100%;
+ }
+
+ &__item:active::before {
+ background-color: var(--color-primary-light);
+ }
+
+ &__link:link,
+ &__link:visited {
+ color: var(--color-grey-light-1);
+ text-decoration: none;
+ text-transform: uppercase;
+ display: flex;
+ align-items: center;
+ padding: 1.5rem 3rem;
+
+ position: relative;
+ z-index: 10;
+ }
+
+ &__icon {
+ width: 1.75rem;
+ height: 1.75rem;
+ margin-right: 2rem;
+ fill: currentColor; //NOTE: color of current or parent element
+ }
+}
+
+// Legal
+.legal {
+ font-size: 1.2rem;
+ color: var(--color-grey-light-4);
+ text-align: center;
+ padding: 2.5rem;
+}
diff --git a/Trillo/starter/sass/_layout.scss b/Trillo/starter/sass/_layout.scss
index 37a127f..f619e9d 100644
--- a/Trillo/starter/sass/_layout.scss
+++ b/Trillo/starter/sass/_layout.scss
@@ -25,9 +25,14 @@
.sidebar {
background-color: var(--color-grey-dark-1);
flex: 0 0 18%;
+ display: flex;
+ flex-direction: column;
+ justify-content: space-between;
}
.hotel-view {
flex: 1;
background-color: #fff;
+
+ height: 80rem; // temporary
}