|
1 | 1 | .nhsnotify-pane { |
2 | | - display: flex; |
| 2 | + display: -webkit-box; |
| 3 | + display: -ms-flexbox; // sass-lint:disable-line no-duplicate-properties |
| 4 | + display: flex; // sass-lint:disable-line no-duplicate-properties |
3 | 5 | min-height: 0; |
4 | 6 | overflow: inherit; |
5 | 7 | position: relative; |
6 | 8 | } |
7 | 9 |
|
8 | 10 | .nhsnotify-pane__side-bar { |
| 11 | + -ms-flex: 0 0 auto; |
| 12 | + -webkit-box-flex: 0; |
9 | 13 | flex: 0 0 auto; |
10 | | - width: 280px; |
11 | | - padding: 0; |
| 14 | + width: 220px; |
| 15 | + |
| 16 | + @include mq($until: desktop) { |
| 17 | + display: none; |
| 18 | + } |
12 | 19 | } |
13 | 20 |
|
14 | 21 | .nhsnotify-pane__main-content { |
15 | | - display: flex; |
| 22 | + -ms-flex: 1 1 100%; // sass-lint:disable-line no-duplicate-properties |
| 23 | + -ms-flex-direction: column; |
| 24 | + -webkit-box-direction: normal; |
| 25 | + -webkit-box-flex: 1; |
| 26 | + -webkit-box-orient: vertical; |
| 27 | + display: -webkit-box; |
| 28 | + display: -ms-flexbox; // sass-lint:disable-line no-duplicate-properties |
| 29 | + display: flex; // sass-lint:disable-line no-duplicate-properties |
16 | 30 | flex: 1 1 100%; |
17 | 31 | flex-direction: column; |
18 | 32 | min-width: 0; |
| 33 | + |
| 34 | + @include mq($from: desktop) { |
| 35 | + padding-left: nhsuk-spacing(9); |
| 36 | + } |
| 37 | + |
19 | 38 | } |
20 | 39 |
|
21 | 40 | .nhsnotify-side-nav__list { |
22 | | - font-size: 1em; |
23 | | - line-height: 1.3; |
| 41 | + @include nhsuk-font(16, $line-height: 1.3); |
24 | 42 | margin-bottom: 0; |
| 43 | + |
| 44 | + @include mq($until: desktop) { |
| 45 | + @include nhsuk-font(19, $line-height: 1.3); |
| 46 | + margin-bottom: nhsuk-spacing(2); |
| 47 | + } |
25 | 48 | } |
26 | 49 |
|
27 | 50 | .nhsnotify-side-nav__list-section { |
28 | | - @extend .nhsuk-u-font-weight-bold; |
29 | | - color: #4c6272; |
30 | | - margin-bottom: 8px; |
31 | | - padding-bottom: 4px; |
32 | | - font-size: 1em; |
| 51 | + @include nhsuk-font(19, $line-height: 1.25, $weight: bold); |
| 52 | + color: $nhsuk-secondary-text-color; |
| 53 | + margin-bottom: 12px; |
| 54 | + padding-top: 4px; |
| 55 | + |
| 56 | + @include mq($until: desktop) { |
| 57 | + @include nhsuk-font(24, $line-height: 1.25, $weight: bold); |
| 58 | + color: $nhsuk-text-color; |
| 59 | + } |
33 | 60 | } |
34 | 61 |
|
35 | 62 | .nhsnotify-side-nav__item { |
|
55 | 82 | .nhsnotify-side-nav__link { |
56 | 83 | text-decoration: none; |
57 | 84 |
|
| 85 | + @include mq($until: desktop) { |
| 86 | + text-decoration: underline; |
| 87 | + } |
| 88 | + |
58 | 89 | &:visited { |
59 | 90 | color: $blue-000; |
60 | 91 | } |
|
68 | 99 | color: #212b32; |
69 | 100 | } |
70 | 101 | } |
| 102 | + |
| 103 | +// Hide content on desktop |
| 104 | +.nhsnotify-u-hide-desktop { |
| 105 | + @include mq($from: desktop) { |
| 106 | + display: none; |
| 107 | + } |
| 108 | +} |
| 109 | + |
| 110 | +// Mobile navigation |
| 111 | +.nhsnotify-index-navigation { |
| 112 | + @include nhsuk-responsive-padding(4, 'top'); |
| 113 | +} |
0 commit comments