@redocly/theme 0.38.2 → 0.38.4

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.
@@ -37,6 +37,12 @@ const FooterCopyrightWrapper = styled_components_1.default.div `
37
37
  @media screen and (min-width: ${utils_1.breakpoints.medium}) {
38
38
  margin-top: 0;
39
39
  }
40
+
41
+ @media screen and (min-width: ${utils_1.breakpoints.max}) {
42
+ max-width: var(--container-max-width);
43
+ margin-left: auto;
44
+ margin-right: auto;
45
+ }
40
46
  `;
41
47
  const FooterColumnsSection = styled_components_1.default.div `
42
48
  display: flex;
@@ -47,6 +53,13 @@ const FooterColumnsSection = styled_components_1.default.div `
47
53
  @media screen and (min-width: ${utils_1.breakpoints.small}) {
48
54
  flex-direction: row;
49
55
  }
56
+
57
+ @media screen and (min-width: ${utils_1.breakpoints.max}) {
58
+ max-width: var(--container-max-width);
59
+ width: 100%;
60
+ margin-left: auto;
61
+ margin-right: auto;
62
+ }
50
63
  `;
51
64
  const FooterWrapper = styled_components_1.default.footer `
52
65
  padding: var(--mobile-footer-padding-vertical) var(--mobile-footer-padding-horizontal);
@@ -90,6 +90,12 @@ const NavbarRow = styled_components_1.default.div `
90
90
  width: 100%;
91
91
  gap: 8px;
92
92
  max-width: var(--navbar-container-max-width);
93
+
94
+ @media screen and (min-width: ${utils_1.breakpoints.max}) {
95
+ max-width: var(--container-max-width);
96
+ margin-left: auto;
97
+ margin-right: auto;
98
+ }
93
99
  `;
94
100
  const MobileMenuButton = (0, styled_components_1.default)(Button_1.Button) `
95
101
  margin-left: 0px !important;
@@ -384,6 +384,7 @@ const sizeAndSpace = (0, styled_components_1.css) `
384
384
  */
385
385
 
386
386
  --container-width: 1200px;
387
+ --container-max-width: 1504px;
387
388
 
388
389
  /**
389
390
  * @tokens Space
@@ -2,5 +2,6 @@ export type Breakpoints = {
2
2
  small: `${number}px`;
3
3
  medium: `${number}px`;
4
4
  large: `${number}px`;
5
+ max: `${number}px`;
5
6
  };
6
7
  export declare const breakpoints: Breakpoints;
@@ -1,5 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.breakpoints = void 0;
4
- exports.breakpoints = { small: '672px', medium: '960px', large: '1280px' };
4
+ exports.breakpoints = {
5
+ small: '672px',
6
+ medium: '960px',
7
+ large: '1280px',
8
+ max: '1504px',
9
+ };
5
10
  //# sourceMappingURL=media-css.js.map
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.PageLayout = void 0;
7
7
  const react_1 = __importDefault(require("react"));
8
8
  const styled_components_1 = __importDefault(require("styled-components"));
9
+ const utils_1 = require("../core/utils");
9
10
  function PageLayout({ sidebar, children, }) {
10
11
  return (react_1.default.createElement(Container, { "data-component-name": "Layout/PageLayout" },
11
12
  sidebar,
@@ -16,6 +17,12 @@ const Container = styled_components_1.default.div `
16
17
  display: flex;
17
18
  flex-direction: row;
18
19
  min-height: calc(100vh - var(--navbar-height));
20
+
21
+ @media screen and (min-width: ${utils_1.breakpoints.max}) {
22
+ max-width: var(--container-max-width);
23
+ margin-left: auto;
24
+ margin-right: auto;
25
+ }
19
26
  `;
20
27
  const ContentContainer = styled_components_1.default.div `
21
28
  flex: 1 0 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redocly/theme",
3
- "version": "0.38.2",
3
+ "version": "0.38.4",
4
4
  "description": "Shared UI components lib",
5
5
  "keywords": [
6
6
  "theme",
@@ -98,7 +98,7 @@
98
98
  "timeago.js": "^4.0.2",
99
99
  "i18next": "^22.4.12",
100
100
  "nprogress": "^0.2.0",
101
- "@redocly/config": "0.6.2"
101
+ "@redocly/config": "0.6.3"
102
102
  },
103
103
  "scripts": {
104
104
  "start": "npm-run-all --parallel storybook storybook:tokens:watch",
@@ -56,6 +56,12 @@ const FooterCopyrightWrapper = styled.div`
56
56
  @media screen and (min-width: ${breakpoints.medium}) {
57
57
  margin-top: 0;
58
58
  }
59
+
60
+ @media screen and (min-width: ${breakpoints.max}) {
61
+ max-width: var(--container-max-width);
62
+ margin-left: auto;
63
+ margin-right: auto;
64
+ }
59
65
  `;
60
66
 
61
67
  const FooterColumnsSection = styled.div`
@@ -67,6 +73,13 @@ const FooterColumnsSection = styled.div`
67
73
  @media screen and (min-width: ${breakpoints.small}) {
68
74
  flex-direction: row;
69
75
  }
76
+
77
+ @media screen and (min-width: ${breakpoints.max}) {
78
+ max-width: var(--container-max-width);
79
+ width: 100%;
80
+ margin-left: auto;
81
+ margin-right: auto;
82
+ }
70
83
  `;
71
84
 
72
85
  const FooterWrapper = styled.footer<{ withColumns?: boolean }>`
@@ -109,6 +109,12 @@ const NavbarRow = styled.div`
109
109
  width: 100%;
110
110
  gap: 8px;
111
111
  max-width: var(--navbar-container-max-width);
112
+
113
+ @media screen and (min-width: ${breakpoints.max}) {
114
+ max-width: var(--container-max-width);
115
+ margin-left: auto;
116
+ margin-right: auto;
117
+ }
112
118
  `;
113
119
 
114
120
  const MobileMenuButton = styled(Button)`
@@ -386,6 +386,7 @@ const sizeAndSpace = css`
386
386
  */
387
387
 
388
388
  --container-width: 1200px;
389
+ --container-max-width: 1504px;
389
390
 
390
391
  /**
391
392
  * @tokens Space
@@ -2,6 +2,12 @@ export type Breakpoints = {
2
2
  small: `${number}px`;
3
3
  medium: `${number}px`;
4
4
  large: `${number}px`;
5
+ max: `${number}px`;
5
6
  };
6
7
 
7
- export const breakpoints: Breakpoints = { small: '672px', medium: '960px', large: '1280px' };
8
+ export const breakpoints: Breakpoints = {
9
+ small: '672px',
10
+ medium: '960px',
11
+ large: '1280px',
12
+ max: '1504px',
13
+ };
@@ -1,6 +1,8 @@
1
1
  import React from 'react';
2
2
  import styled from 'styled-components';
3
3
 
4
+ import { breakpoints } from '@redocly/theme/core/utils';
5
+
4
6
  interface PageLayoutProps {
5
7
  sidebar?: React.ReactNode;
6
8
  }
@@ -21,6 +23,12 @@ const Container = styled.div`
21
23
  display: flex;
22
24
  flex-direction: row;
23
25
  min-height: calc(100vh - var(--navbar-height));
26
+
27
+ @media screen and (min-width: ${breakpoints.max}) {
28
+ max-width: var(--container-max-width);
29
+ margin-left: auto;
30
+ margin-right: auto;
31
+ }
24
32
  `;
25
33
 
26
34
  const ContentContainer = styled.div`