@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 +1 -1
- package/package.json +1 -1
- package/src/css/components.scss +26 -0
- package/src/theme/Layout/index.js +2 -2
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@defra/docusaurus-theme-govuk",
|
|
3
|
-
"version": "0.0.
|
|
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",
|
package/src/css/components.scss
CHANGED
|
@@ -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
|
|
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
|
+
}
|