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