|
3 | 3 |
|
4 | 4 | .sidebar-mobile {
|
5 | 5 | position: fixed;
|
6 |
| - width: 295px; |
| 6 | + width: 300px; |
7 | 7 | height: 100vh;
|
8 | 8 | z-index: 100;
|
9 | 9 | top: 0;
|
|
12 | 12 | -webkit-overflow-scrolling: touch;
|
13 | 13 | transform: translate3D(-100%, 0, 0);
|
14 | 14 | transform: translate3D(calc(-100% + 5px), 0, 0);
|
15 |
| - transition: all 500ms; |
| 15 | + transition: all 500ms cubic-bezier(0.23, 1, 0.32, 1); |
16 | 16 |
|
17 | 17 | @include break {
|
18 | 18 | display: none;
|
19 | 19 | }
|
20 |
| - |
| 20 | + |
21 | 21 | &--visible {
|
22 | 22 | transform: translate3D(0, 0, 0);
|
23 | 23 | }
|
|
40 | 40 | width: 285px;
|
41 | 41 | height: 100vh;
|
42 | 42 | overflow-x: hidden;
|
| 43 | + padding: 12px 0; |
43 | 44 | background: getColor(white);
|
44 |
| - box-shadow: 0 0 5px getColor(emperor); |
| 45 | + box-shadow: 0 0 15px rgba(0, 0, 0, 0.2); |
45 | 46 | }
|
46 | 47 |
|
47 | 48 | .sidebar-mobile__close {
|
48 | 49 | position:absolute;
|
49 |
| - right:16px; |
50 |
| - top:19px; |
51 |
| - font-size:1.5em; |
52 | 50 | cursor:pointer;
|
53 |
| - color:getColor(dusty-grey); |
54 |
| - transition:color 250ms; |
| 51 | + right: 22px; |
| 52 | + top: 22px; |
| 53 | + font-size: 1.3em; |
| 54 | + background: getColor(denim); |
| 55 | + color: getColor(white); |
| 56 | + width: 30px; |
| 57 | + height: 30px; |
| 58 | + display: flex; |
| 59 | + align-items: center; |
| 60 | + justify-content: center; |
| 61 | + border-radius: 50%; |
| 62 | + transition: background 150ms; |
| 63 | + -webkit-tap-highlight-color: transparent; |
55 | 64 |
|
56 | 65 | &:hover {
|
57 |
| - color:getColor(mine-shaft); |
| 66 | + background: darken(getColor(denim), 20%); |
58 | 67 | }
|
59 | 68 | }
|
60 | 69 |
|
61 | 70 | .sidebar-mobile__section {
|
62 |
| - font-size: getFontSize(1); |
63 |
| - text-transform: uppercase; |
64 |
| - color: getColor(mine-shaft); |
65 |
| - margin: 1em 16px 0.25em; |
| 71 | + border-left: 2px solid transparent; |
| 72 | + padding-bottom:0.5em; |
| 73 | + |
| 74 | + &--active { |
| 75 | + border-left: 2px solid getColor(malibu); |
66 | 76 |
|
67 |
| - &--block { |
68 |
| - display: block; |
| 77 | + .sidebar-mobile__section-header { |
| 78 | + color: lighten(getColor(fiord), 15%) |
| 79 | + } |
69 | 80 | }
|
| 81 | +} |
70 | 82 |
|
71 |
| - &:active, |
72 |
| - &--active { |
73 |
| - color: getColor(malibu); |
| 83 | +.sidebar-mobile__section-header { |
| 84 | + text-transform: uppercase; |
| 85 | + color: getColor(elephant); |
| 86 | + padding: 0.75em 16px 0.25em; |
| 87 | + font-weight: 600; |
| 88 | + display: block; |
| 89 | + |
| 90 | + .sidebar-mobile__content div:not(:first-of-type) & { |
| 91 | + border-top: 1px solid getColor(alto); |
74 | 92 | }
|
75 | 93 | }
|
76 | 94 |
|
77 | 95 | .sidebar-mobile__page {
|
78 | 96 | display: block;
|
79 | 97 | padding: 0.5em 17px;
|
80 | 98 | text-transform: capitalize;
|
81 |
| - color: getColor(dusty-grey); |
| 99 | + color: getColor(dove-grey); |
82 | 100 | -webkit-tap-highlight-color: rgba(0,0,0,0);
|
83 | 101 |
|
84 | 102 | &:active,
|
85 | 103 | &--active {
|
86 | 104 | color: getColor(mine-shaft);
|
87 |
| - background: getColor(alto); |
| 105 | + font-weight: 600; |
| 106 | + background: #F1F4F4; |
| 107 | + } |
| 108 | + |
| 109 | + &:hover { |
| 110 | + color: inherit; |
88 | 111 | }
|
89 | 112 | }
|
0 commit comments