Skip to content
This repository has been archived by the owner on Nov 14, 2020. It is now read-only.

Commit

Permalink
moved hamburger icon to top left corner
Browse files Browse the repository at this point in the history
  • Loading branch information
rasmusmerzin committed Apr 27, 2020
1 parent 845969b commit 8edf3ee
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions src/components/Dock.scss
Original file line number Diff line number Diff line change
@@ -1,30 +1,31 @@
#dock {
--ctrl-width: 30rem;
--door-size: 2.4rem;
--transition-time: .05s;
$door-size: 2.4rem;
$ctrl-width: 30rem;
$transition-time: .05s;

#dock {
position: absolute;
right: 0;
left: 0;
top: 0;
height: 100%;
width: 0;

.ctrl {
position: absolute;
top: 0;
right: 0;
left: 0;
max-width: 80vw;
width: var(--ctrl-width);
width: $ctrl-width;
height: 100%;
background: var(--bg-ha1);
box-sizing: border-box;
padding: 1rem;
padding-top: calc(1rem +#{$door-size});

display: grid;
grid-template-columns: minmax(10rem, auto) 1fr;
align-content: start;
grid-gap: 1rem;
transition: all var(--transition-time);
transition: all $transition-time;

label {
text-transform: capitalize;
Expand All @@ -37,23 +38,23 @@

&.closed {
background: var(--bg-ha2);
width: var(--door-size);
width: $door-size;

* { display: none; }
}
}

.door {
position: absolute;
bottom: 0;
right: 0;
top: 0;
left: 0;
font-size: 2rem;
max-width: 80vw;
width: var(--door-size);
height: var(--door-size);
width: $door-size;
height: $door-size;
background: var(--bg-h);
transition: all var(--transition-time);
transition: all $transition-time;

&.open { width: var(--ctrl-width); }
&.open { width: $ctrl-width; }
}
}

0 comments on commit 8edf3ee

Please sign in to comment.