@defra/docusaurus-theme-govuk 0.0.10-alpha → 0.0.12-alpha

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -380,7 +380,7 @@ module.exports = function themeGovuk(context, options) {
380
380
  path.resolve(__dirname, 'node_modules'),
381
381
  ],
382
382
  quietDeps: true,
383
- silenceDeprecations: ['import', 'if-function'],
383
+ silenceDeprecations: ['import'],
384
384
  },
385
385
  },
386
386
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defra/docusaurus-theme-govuk",
3
- "version": "0.0.10-alpha",
3
+ "version": "0.0.12-alpha",
4
4
  "description": "A Docusaurus theme implementing the GOV.UK Design System for consistent, accessible documentation sites",
5
5
  "main": "index.js",
6
6
  "license": "MIT",
@@ -290,3 +290,29 @@
290
290
  }
291
291
  }
292
292
 
293
+ @media (max-width: 767px) {
294
+ .app-layout-sidebar {
295
+ flex-direction: column;
296
+ gap: 0;
297
+ }
298
+
299
+ .app-layout-sidebar__nav {
300
+ width: 100%;
301
+ padding-left: 0;
302
+ flex-shrink: 0;
303
+ position: static;
304
+ top: auto;
305
+ max-height: none;
306
+ overflow: visible;
307
+ }
308
+
309
+ .app-layout-sidebar__content {
310
+ width: 100%;
311
+ min-width: 0;
312
+ }
313
+
314
+ .app-header-search .autocomplete__wrapper {
315
+ width: 180px;
316
+ }
317
+ }
318
+
@@ -1,4 +1,4 @@
1
- import React, {useState, useEffect} from 'react';
1
+ import {useState, useEffect} from 'react';
2
2
  import '../../css/theme.scss';
3
3
  import {SkipLink, Footer, PhaseBanner, ServiceNavigation} from '@not-govuk/simple-components';
4
4
  import Header from '../Header';
@@ -300,4 +300,4 @@ export default function Layout(props) {
300
300
  </div>
301
301
  </LayoutProvider>
302
302
  );
303
- }
303
+ }