@xyd-js/components 0.1.0-xyd.7 → 0.1.0-xyd.8

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.
Files changed (223) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/LICENSE +21 -0
  3. package/dist/CTABanner-4FVIoaTR.js +2 -0
  4. package/dist/CTABanner-4FVIoaTR.js.map +1 -0
  5. package/dist/CTABanner-C6afsXoE.js +2 -0
  6. package/dist/CTABanner-C6afsXoE.js.map +1 -0
  7. package/dist/CTABanner-CEKs-Hb-.js +2 -0
  8. package/dist/CTABanner-CEKs-Hb-.js.map +1 -0
  9. package/dist/CTABanner-CUNcTr6s.js +2 -0
  10. package/dist/CTABanner-CUNcTr6s.js.map +1 -0
  11. package/dist/CTABanner-D02aIAsD.js +2 -0
  12. package/dist/CTABanner-D02aIAsD.js.map +1 -0
  13. package/dist/CTABanner-Dm3tUG3I.js +2 -0
  14. package/dist/CTABanner-Dm3tUG3I.js.map +1 -0
  15. package/dist/CTABanner-MCOcVowa.js +2 -0
  16. package/dist/CTABanner-MCOcVowa.js.map +1 -0
  17. package/dist/CTABanner-X6K49gSr.js +2 -0
  18. package/dist/CTABanner-X6K49gSr.js.map +1 -0
  19. package/dist/CodeSample-B9VUhTKF.js +2 -0
  20. package/dist/CodeSample-B9VUhTKF.js.map +1 -0
  21. package/dist/CodeSample-BSXeFy0x.js +2 -0
  22. package/dist/CodeSample-BSXeFy0x.js.map +1 -0
  23. package/dist/CodeSample-BwP208sQ.js +2 -0
  24. package/dist/CodeSample-BwP208sQ.js.map +1 -0
  25. package/dist/CodeSample-CUemtj_W.js +2 -0
  26. package/dist/CodeSample-CUemtj_W.js.map +1 -0
  27. package/dist/CodeSample-D0iKih-A.js +2 -0
  28. package/dist/CodeSample-D0iKih-A.js.map +1 -0
  29. package/dist/CodeSample-D33vTa6M.js +2 -0
  30. package/dist/CodeSample-D33vTa6M.js.map +1 -0
  31. package/dist/CodeSample-DUSx2KBt.js +2 -0
  32. package/dist/CodeSample-DUSx2KBt.js.map +1 -0
  33. package/dist/CodeSample-P4yxkHPW.js +2 -0
  34. package/dist/CodeSample-P4yxkHPW.js.map +1 -0
  35. package/dist/HomeView-ACBdUgyz.js +2 -0
  36. package/dist/HomeView-ACBdUgyz.js.map +1 -0
  37. package/dist/HomeView-B0ATNUF1.js +2 -0
  38. package/dist/HomeView-B0ATNUF1.js.map +1 -0
  39. package/dist/HomeView-COJrg8Ju.js +2 -0
  40. package/dist/HomeView-COJrg8Ju.js.map +1 -0
  41. package/dist/HomeView-Cun4apuy.js +2 -0
  42. package/dist/HomeView-Cun4apuy.js.map +1 -0
  43. package/dist/HomeView-D4DXEOOn.js +2 -0
  44. package/dist/HomeView-D4DXEOOn.js.map +1 -0
  45. package/dist/HomeView-DaH1PSBB.js +2 -0
  46. package/dist/HomeView-DaH1PSBB.js.map +1 -0
  47. package/dist/HomeView-O_lj2c2t.js +2 -0
  48. package/dist/HomeView-O_lj2c2t.js.map +1 -0
  49. package/dist/HomeView-_Nu2RcOM.js +2 -0
  50. package/dist/HomeView-_Nu2RcOM.js.map +1 -0
  51. package/dist/UnderlineNav-BCyB0G5d.js +2 -0
  52. package/dist/UnderlineNav-BCyB0G5d.js.map +1 -0
  53. package/dist/UnderlineNav-BEhDJk0H.js +2 -0
  54. package/dist/UnderlineNav-BEhDJk0H.js.map +1 -0
  55. package/dist/UnderlineNav-BqZ2xAp7.js +2 -0
  56. package/dist/UnderlineNav-BqZ2xAp7.js.map +1 -0
  57. package/dist/UnderlineNav-C2-4Vyj8.js +2 -0
  58. package/dist/UnderlineNav-C2-4Vyj8.js.map +1 -0
  59. package/dist/UnderlineNav-Co08Gykm.js +2 -0
  60. package/dist/UnderlineNav-Co08Gykm.js.map +1 -0
  61. package/dist/UnderlineNav-DC3UVmnZ.js +2 -0
  62. package/dist/UnderlineNav-DC3UVmnZ.js.map +1 -0
  63. package/dist/UnderlineNav-DsRYwuGB.js +2 -0
  64. package/dist/UnderlineNav-DsRYwuGB.js.map +1 -0
  65. package/dist/UnderlineNav-FbclXKUW.js +2 -0
  66. package/dist/UnderlineNav-FbclXKUW.js.map +1 -0
  67. package/dist/{_rollupPluginBabelHelpers-BMmCG_qQ.js → _rollupPluginBabelHelpers-BEouSrrZ.js} +2 -2
  68. package/dist/_rollupPluginBabelHelpers-BEouSrrZ.js.map +1 -0
  69. package/dist/{_rollupPluginBabelHelpers-DsEzE6Ab.js → _rollupPluginBabelHelpers-BHehKRBq.js} +2 -2
  70. package/dist/_rollupPluginBabelHelpers-BHehKRBq.js.map +1 -0
  71. package/dist/_rollupPluginBabelHelpers-Bunpz22T.js +2 -0
  72. package/dist/_rollupPluginBabelHelpers-Bunpz22T.js.map +1 -0
  73. package/dist/_rollupPluginBabelHelpers-CVblpRvU.js +2 -0
  74. package/dist/_rollupPluginBabelHelpers-CVblpRvU.js.map +1 -0
  75. package/dist/_rollupPluginBabelHelpers-CxmswfqM.js +2 -0
  76. package/dist/_rollupPluginBabelHelpers-CxmswfqM.js.map +1 -0
  77. package/dist/_rollupPluginBabelHelpers-DQJTK9EO.js +2 -0
  78. package/dist/_rollupPluginBabelHelpers-DQJTK9EO.js.map +1 -0
  79. package/dist/_rollupPluginBabelHelpers-DuRQdJ01.js +2 -0
  80. package/dist/_rollupPluginBabelHelpers-DuRQdJ01.js.map +1 -0
  81. package/dist/_rollupPluginBabelHelpers-tRAa4O0f.js +2 -0
  82. package/dist/_rollupPluginBabelHelpers-tRAa4O0f.js.map +1 -0
  83. package/dist/brand.d.ts +9 -9
  84. package/dist/brand.js +1 -1
  85. package/dist/brand.js.map +1 -1
  86. package/dist/coder.js +1 -1
  87. package/dist/content.d.ts +4 -3
  88. package/dist/content.js +1 -1
  89. package/dist/content.js.map +1 -1
  90. package/dist/index-B0FncPxO.js +2 -0
  91. package/dist/index-B0FncPxO.js.map +1 -0
  92. package/dist/index-BEm-xkm-.js +2 -0
  93. package/dist/index-BEm-xkm-.js.map +1 -0
  94. package/dist/index-BHwtxG27.js +2 -0
  95. package/dist/index-BHwtxG27.js.map +1 -0
  96. package/dist/index-BTcmIG47.js +2 -0
  97. package/dist/index-BTcmIG47.js.map +1 -0
  98. package/dist/index-CNkHt1r7.js +2 -0
  99. package/dist/index-CNkHt1r7.js.map +1 -0
  100. package/dist/index-D0XuyFm7.js +2 -0
  101. package/dist/index-D0XuyFm7.js.map +1 -0
  102. package/dist/index-DBspcqWq.js +2 -0
  103. package/dist/index-DBspcqWq.js.map +1 -0
  104. package/dist/index-DVBO4gYE.js +2 -0
  105. package/dist/index-DVBO4gYE.js.map +1 -0
  106. package/dist/index.css +217 -216
  107. package/dist/layouts.d.ts +1 -1
  108. package/dist/layouts.js +1 -1
  109. package/dist/layouts.js.map +1 -1
  110. package/dist/pages.js +1 -1
  111. package/dist/pages.js.map +1 -1
  112. package/dist/{tslib.es6-DDIOdJiV.js → tslib.es6-BBkx4Se1.js} +1 -1
  113. package/dist/{tslib.es6-DDIOdJiV.js.map → tslib.es6-BBkx4Se1.js.map} +1 -1
  114. package/dist/{tslib.es6-DUrRPhZd.js → tslib.es6-BF6ZLEXa.js} +1 -1
  115. package/dist/{tslib.es6-DUrRPhZd.js.map → tslib.es6-BF6ZLEXa.js.map} +1 -1
  116. package/dist/tslib.es6-BOZCDgb8.js +2 -0
  117. package/dist/tslib.es6-BOZCDgb8.js.map +1 -0
  118. package/dist/tslib.es6-Cjl5tesf.js +2 -0
  119. package/dist/tslib.es6-Cjl5tesf.js.map +1 -0
  120. package/dist/tslib.es6-DEH7Dkgy.js +2 -0
  121. package/dist/tslib.es6-DEH7Dkgy.js.map +1 -0
  122. package/dist/tslib.es6-DTeJ7dWi.js +2 -0
  123. package/dist/tslib.es6-DTeJ7dWi.js.map +1 -0
  124. package/dist/tslib.es6-U9-f6pA7.js +2 -0
  125. package/dist/tslib.es6-U9-f6pA7.js.map +1 -0
  126. package/dist/tslib.es6-cb69JjeS.js +2 -0
  127. package/dist/tslib.es6-cb69JjeS.js.map +1 -0
  128. package/dist/views.js +1 -1
  129. package/dist/writer.d.ts +4 -3
  130. package/dist/writer.js +1 -1
  131. package/dist/writer.js.map +1 -1
  132. package/package.json +12 -11
  133. package/rollup.config.js +20 -1
  134. package/src/brand/Button/Button.styles.tsx +31 -0
  135. package/src/brand/Button/Button.tsx +3 -35
  136. package/src/brand/CTABanner/CTABanner.styles.tsx +82 -0
  137. package/src/brand/CTABanner/CTABanner.tsx +34 -112
  138. package/src/brand/Footer/Footer.styles.tsx +21 -0
  139. package/src/brand/Footer/Footer.tsx +4 -24
  140. package/src/brand/TODO.md +1 -0
  141. package/src/coder/Code/Code.styles.tsx +45 -48
  142. package/src/coder/Code/Code.tsx +8 -8
  143. package/src/coder/Code/CodeLoader.tsx +2 -2
  144. package/src/coder/Code/annotations.tsx +1 -1
  145. package/src/coder/CodeCopy/CodeCopy.styles.tsx +19 -0
  146. package/src/coder/CodeCopy/CodeCopy.tsx +2 -4
  147. package/src/coder/CodeTabs/CodeTabs.styles.tsx +101 -97
  148. package/src/coder/CodeTabs/CodeTabs.tsx +11 -14
  149. package/src/content/Anchor/Anchor.styles.tsx +5 -0
  150. package/src/content/Anchor/Anchor.tsx +4 -14
  151. package/src/content/Content/Content.styles.tsx +9 -0
  152. package/src/content/Content/Content.tsx +4 -12
  153. package/src/content/Content.tsx +1 -2
  154. package/src/content/Subtitle/Subtitle.styles.ts +8 -0
  155. package/src/content/Subtitle/Subtitle.tsx +1 -10
  156. package/src/layouts/Layout.styles.tsx +135 -131
  157. package/src/layouts/Layout.tsx +21 -23
  158. package/src/layouts/LayoutPrimary/LayoutPrimary.styles.tsx +298 -277
  159. package/src/layouts/LayoutPrimary/LayoutPrimary.tsx +39 -42
  160. package/src/pages/HomePage/HomePage.styles.tsx +16 -0
  161. package/src/pages/HomePage/HomePage.tsx +7 -21
  162. package/src/pages/TODO.md +1 -0
  163. package/src/ui/Loader/Loader.styles.tsx +48 -46
  164. package/src/ui/Loader/Loader.tsx +8 -8
  165. package/src/ui/TODO.md +2 -0
  166. package/src/utils/useStyle.ts +19 -0
  167. package/src/views/HomeView/HomeView.styles.tsx +37 -0
  168. package/src/views/HomeView/HomeView.tsx +5 -45
  169. package/src/views/TODO.md +1 -0
  170. package/src/writer/Badge/Badge.styles.tsx +31 -30
  171. package/src/writer/Badge/Badge.tsx +40 -9
  172. package/src/writer/Blockquote/Blockquote.styles.tsx +6 -8
  173. package/src/writer/Blockquote/Blockquote.tsx +2 -2
  174. package/src/writer/Breadcrumbs/Breadcrumbs.styles.ts +27 -26
  175. package/src/writer/Breadcrumbs/Breadcrumbs.tsx +5 -5
  176. package/src/writer/Callout/Callout.styles.tsx +44 -48
  177. package/src/writer/Callout/Callout.tsx +5 -5
  178. package/src/writer/Code/Code.styles.tsx +11 -13
  179. package/src/writer/Code/Code.tsx +2 -2
  180. package/src/writer/Details/Details.styles.tsx +101 -90
  181. package/src/writer/Details/Details.tsx +32 -33
  182. package/src/writer/GuideCard/GuideCard.styles.tsx +116 -112
  183. package/src/writer/GuideCard/GuideCard.tsx +19 -19
  184. package/src/writer/Heading/Heading.styles.tsx +65 -61
  185. package/src/writer/Heading/Heading.tsx +11 -11
  186. package/src/writer/Hr/Hr.styles.tsx +3 -5
  187. package/src/writer/Hr/Hr.tsx +2 -2
  188. package/src/writer/NavLinks/NavLinks.styles.ts +30 -31
  189. package/src/writer/NavLinks/NavLinks.tsx +6 -6
  190. package/src/writer/Pre/Pre.styles.tsx +8 -10
  191. package/src/writer/Pre/Pre.tsx +2 -2
  192. package/src/writer/Steps/Steps.styles.tsx +30 -31
  193. package/src/writer/Steps/Steps.tsx +3 -4
  194. package/src/writer/Table/Table.styles.tsx +32 -31
  195. package/src/writer/Table/Table.tsx +5 -5
  196. package/src/writer/Tabs/Tabs.styles.tsx +60 -63
  197. package/src/writer/Tabs/Tabs.tsx +11 -16
  198. package/src/writer/UnderlineNav/UnderlineNav.styles.tsx +44 -42
  199. package/src/writer/UnderlineNav/UnderlineNav.tsx +5 -5
  200. package/tsconfig.json +2 -3
  201. package/dist/CTABanner-BrdYlhnD.js +0 -2
  202. package/dist/CTABanner-BrdYlhnD.js.map +0 -1
  203. package/dist/CTABanner-XQNnnpUx.js +0 -2
  204. package/dist/CTABanner-XQNnnpUx.js.map +0 -1
  205. package/dist/CodeSample-Cp42Adjc.js +0 -2
  206. package/dist/CodeSample-Cp42Adjc.js.map +0 -1
  207. package/dist/CodeSample-DxPp80ID.js +0 -2
  208. package/dist/CodeSample-DxPp80ID.js.map +0 -1
  209. package/dist/HomeView-BN9mZXh9.js +0 -2
  210. package/dist/HomeView-BN9mZXh9.js.map +0 -1
  211. package/dist/HomeView-BVaaV0uE.js +0 -2
  212. package/dist/HomeView-BVaaV0uE.js.map +0 -1
  213. package/dist/UnderlineNav-Bs7Ot9Ch.js +0 -2
  214. package/dist/UnderlineNav-Bs7Ot9Ch.js.map +0 -1
  215. package/dist/UnderlineNav-C2aEVraN.js +0 -2
  216. package/dist/UnderlineNav-C2aEVraN.js.map +0 -1
  217. package/dist/_rollupPluginBabelHelpers-BMmCG_qQ.js.map +0 -1
  218. package/dist/_rollupPluginBabelHelpers-DsEzE6Ab.js.map +0 -1
  219. package/dist/index-BVUz77Tm.js +0 -2
  220. package/dist/index-BVUz77Tm.js.map +0 -1
  221. package/dist/index-jxd3nv2J.js +0 -2
  222. package/dist/index-jxd3nv2J.js.map +0 -1
  223. package/src/coder/CodeCopy/CodeCopy.style.tsx +0 -21
@@ -1,14 +1,17 @@
1
1
  import {css} from "@linaria/core";
2
2
 
3
3
  const globalPageGutter = '8px';
4
- export const globalHeaderHeight = '46px';
4
+ export const globalHeaderHeight = '50px';
5
5
  const globalHeaderWarningHeight = "0px";
6
6
  const contentTopSpace = "12px";
7
7
 
8
- const globalHeaderHeightWithSub = '90px';
8
+ const globalHeaderHeightWithSub = '94px';
9
9
 
10
10
  const cubicMove = "cubic-bezier(.65, 0, .35, 1)";
11
- const sidebarWidth = "300px";
11
+ const sidebarWidth = "250px";
12
+
13
+ const tabletBreakpoint = '1024px';
14
+ const mobileBreakpoint = '768px';
12
15
 
13
16
  // TODO: better solution - design tokens
14
17
  export const globals = css`
@@ -21,300 +24,318 @@ export const globals = css`
21
24
  }
22
25
  `;
23
26
 
24
- export const $layout = {
25
- host: css`
26
- width: 100%;
27
- overflow-x: hidden;
28
- background: #fff;
29
- `,
30
- header: css`
31
- display: flex;
32
- justify-content: space-between;
33
- align-items: center;
34
- position: fixed;
35
- top: ${globalHeaderWarningHeight};
36
- right: ${globalPageGutter};
37
- left: ${globalPageGutter};
38
- height: ${globalHeaderHeight};
39
- z-index: 20;
40
- background: #fff;
27
+ export const LayoutPrimaryHost = css`
28
+ width: 100%;
29
+ overflow-x: hidden;
30
+ background: #fff;
31
+ `;
41
32
 
42
- @media (max-width: 768px) {
43
- padding: 0;
44
- }
45
- `,
46
- primaryHeaderContent: css`
33
+ export const LayoutPrimaryHeader = css`
34
+ display: flex;
35
+ justify-content: space-between;
36
+ align-items: center;
37
+ position: fixed;
38
+ top: ${globalHeaderWarningHeight};
39
+ right: ${globalPageGutter};
40
+ left: ${globalPageGutter};
41
+ height: ${globalHeaderHeight};
42
+ z-index: 20;
43
+ background: #fff;
44
+
45
+ @media (max-width: 768px) {
46
+ padding: 0;
47
+ }
48
+ `;
49
+
50
+ export const LayoutPrimaryHeaderContent = css`
51
+ display: flex;
52
+ align-items: center;
53
+ width: 100%;
54
+ `;
55
+
56
+ export const LayoutPrimaryHeaderSub = css`
57
+ flex-direction: column;
58
+ height: ${globalHeaderHeightWithSub};
59
+ transition: transform 200ms;
60
+ `;
61
+
62
+ export const LayoutPrimaryHeaderHideMain = css`
63
+ transform: translateY(calc(-${globalHeaderHeight} + 3px));
64
+ `;
65
+
66
+ export const LayoutPrimaryHamburgerButton = css`
67
+ display: none;
68
+
69
+ @media (max-width: 768px) {
47
70
  display: flex;
48
71
  align-items: center;
49
- width: 100%;
50
- `,
51
- header$$sub: css`
52
- flex-direction: column;
53
- height: ${globalHeaderHeightWithSub};
54
- transition: transform 200ms;
55
- `,
56
- header$$hideMain: css`
57
- transform: translateY(calc(-${globalHeaderHeight} + 3px));
58
- `,
59
- hamburgerButton: css`
72
+ justify-content: center;
73
+ width: 40px;
74
+ height: 40px;
75
+ border: none;
76
+ background: none;
77
+ cursor: pointer;
78
+ padding: 0;
79
+ }
80
+ `;
81
+
82
+ export const LayoutPrimaryHamburgerIcon = css`
83
+ width: 24px;
84
+ height: 24px;
85
+ position: relative;
86
+ display: flex;
87
+ flex-direction: column;
88
+ justify-content: space-between;
89
+ `;
90
+
91
+ export const LayoutPrimaryHamburgerLine = css`
92
+ width: 100%;
93
+ height: 2px;
94
+ background: #000;
95
+ transition: transform 0.3s ${cubicMove};
96
+ `;
97
+
98
+ export const LayoutPrimaryHamburgerLineOpen = css`
99
+ &:first-child {
100
+ transform: translateY(11px) rotate(45deg);
101
+ }
102
+ &:nth-child(2) {
103
+ opacity: 0;
104
+ }
105
+ &:last-child {
106
+ transform: translateY(-11px) rotate(-45deg);
107
+ }
108
+ `;
109
+
110
+ export const LayoutPrimaryMain = css`
111
+ position: fixed;
112
+ display: flex;
113
+ top: calc(${globalHeaderHeight} + ${globalHeaderWarningHeight});
114
+ bottom: 0;
115
+ left: 0;
116
+ right: 0;
117
+ padding: ${globalPageGutter};
118
+ overflow: hidden;
119
+
120
+ @media (max-width: ${tabletBreakpoint}) {
121
+ padding-top: calc(${globalHeaderHeight} + ${globalHeaderWarningHeight} + ${globalPageGutter});
122
+ }
123
+ `;
124
+
125
+ export const LayoutPrimaryMainSub = css`
126
+ top: calc(${globalHeaderHeightWithSub} + ${globalHeaderWarningHeight});
127
+
128
+ @media (max-width: ${tabletBreakpoint}) {
129
+ padding-top: calc(${globalHeaderHeightWithSub} + ${globalHeaderWarningHeight} + ${globalPageGutter});
130
+ }
131
+ `;
132
+
133
+ export const LayoutPrimaryStaticSidebar = css`
134
+ flex: none;
135
+ width: ${sidebarWidth};
136
+ background: #fff;
137
+ display: flex;
138
+ flex-direction: column;
139
+ position: relative;
140
+ height: 100%;
141
+
142
+ @media (max-width: ${tabletBreakpoint}) {
60
143
  display: none;
144
+ }
145
+ `;
61
146
 
62
- @media (max-width: 768px) {
63
- display: flex;
64
- align-items: center;
65
- justify-content: center;
66
- width: 40px;
67
- height: 40px;
68
- border: none;
69
- background: none;
70
- cursor: pointer;
71
- padding: 0;
72
- }
73
- `,
74
- hamburgerIcon: css`
75
- width: 24px;
76
- height: 24px;
77
- position: relative;
147
+ export const LayoutPrimaryMobileSidebar = css`
148
+ display: none;
149
+
150
+ @media (max-width: ${tabletBreakpoint}) {
78
151
  display: flex;
79
- flex-direction: column;
80
- justify-content: space-between;
81
- `,
82
- hamburgerLine: css`
83
- width: 100%;
84
- height: 2px;
85
- background: #000;
86
- transition: transform 0.3s ${cubicMove};
87
- `,
88
- hamburgerLine$$open: css`
89
- &:first-child {
90
- transform: translateY(11px) rotate(45deg);
91
- }
92
- &:nth-child(2) {
93
- opacity: 0;
94
- }
95
- &:last-child {
96
- transform: translateY(-11px) rotate(-45deg);
97
- }
98
- `,
99
- main: css`
100
152
  position: fixed;
101
- display: flex;
102
- top: calc(${globalHeaderHeight} + ${globalHeaderWarningHeight});
103
- bottom: ${globalPageGutter};
104
- left: ${globalPageGutter};
105
- right: ${globalPageGutter};
106
- margin-top: ${globalPageGutter};
107
- `,
108
- main$$sub: css`
109
- top: calc(${globalHeaderHeightWithSub} + ${globalHeaderWarningHeight});
110
- transition: top 200ms;
111
- `,
112
- staticSidebar: css`
113
- flex: none;
153
+ top: 0;
154
+ bottom: 0;
155
+ left: 0;
114
156
  width: ${sidebarWidth};
115
157
  background: #fff;
116
- display: flex;
117
158
  flex-direction: column;
118
- overflow: hidden;
119
- position: relative;
120
-
121
- @media (max-width: 768px) {
122
- display: none;
123
- }
124
- `,
125
- mobileSidebar: css`
126
- display: none;
159
+ z-index: 50;
160
+ transform: translateX(-100%);
161
+ transition: transform .3s ${cubicMove};
162
+ box-shadow: 4px 0 8px rgba(0, 0, 0, 0.1);
163
+ }
164
+ `;
127
165
 
128
- @media (max-width: 768px) {
129
- display: flex;
130
- position: fixed;
131
- top: 0;
132
- bottom: 0;
133
- left: 0;
134
- width: ${sidebarWidth};
135
- background: #fff;
136
- flex-direction: column;
137
- overflow: hidden;
138
- z-index: 50;
139
- transform: translateX(-100%);
140
- transition: transform .3s ${cubicMove};
141
- box-shadow: 4px 0 8px rgba(0, 0, 0, 0.1);
142
- }
143
- `,
144
- mobileSidebar$$open: css`
166
+ export const LayoutPrimaryMobileSidebarOpen = css`
167
+ @media (max-width: ${tabletBreakpoint}) {
145
168
  transform: translateX(0);
146
- `,
147
- sidebarContent: css`
148
- flex: 1;
149
- overflow-y: auto;
150
- `,
151
- closeButton: css`
169
+ }
170
+ `;
171
+
172
+ export const LayoutPrimarySidebarContent = css`
173
+ flex: 1;
174
+ overflow-y: auto;
175
+ -webkit-overflow-scrolling: touch;
176
+ height: 100%;
177
+ `;
178
+
179
+ export const LayoutPrimaryCloseButton = css`
180
+ position: absolute;
181
+ top: 12px;
182
+ right: 12px;
183
+ width: 32px;
184
+ height: 32px;
185
+ border: none;
186
+ background: none;
187
+ padding: 0;
188
+ cursor: pointer;
189
+ display: flex;
190
+ align-items: center;
191
+ justify-content: center;
192
+ `;
193
+
194
+ export const LayoutPrimarySearchInput = css`
195
+ width: 100%;
196
+ height: 40px;
197
+ padding: 0 12px;
198
+ border: 1px solid #eaeaea;
199
+ border-radius: 6px;
200
+ font-size: 14px;
201
+ outline: none;
202
+ transition: border-color 0.2s;
203
+
204
+ &:focus {
205
+ border-color: #666;
206
+ }
207
+ `;
208
+
209
+ export const LayoutPrimaryCloseIcon = css`
210
+ width: 20px;
211
+ height: 20px;
212
+ position: relative;
213
+
214
+ &::before,
215
+ &::after {
216
+ content: '';
152
217
  position: absolute;
153
- top: 12px;
154
- right: 12px;
155
- width: 32px;
156
- height: 32px;
157
- border: none;
158
- background: none;
159
- padding: 0;
160
- cursor: pointer;
161
- display: flex;
162
- align-items: center;
163
- justify-content: center;
164
- `,
165
- searchInput: css`
218
+ top: 50%;
219
+ left: 0;
166
220
  width: 100%;
167
- height: 40px;
168
- padding: 0 12px;
169
- border: 1px solid #eaeaea;
170
- border-radius: 6px;
171
- font-size: 14px;
172
- outline: none;
173
- transition: border-color 0.2s;
174
-
175
- &:focus {
176
- border-color: #666;
177
- }
178
- `,
179
- closeIcon: css`
180
- width: 20px;
181
- height: 20px;
182
- position: relative;
183
-
184
- &::before,
185
- &::after {
186
- content: '';
187
- position: absolute;
188
- top: 50%;
189
- left: 0;
190
- width: 100%;
191
- height: 2px;
192
- background: #666;
193
- transform-origin: center;
194
- }
221
+ height: 2px;
222
+ background: #666;
223
+ transform-origin: center;
224
+ }
195
225
 
196
- &::before {
197
- transform: rotate(45deg);
198
- }
226
+ &::before {
227
+ transform: rotate(45deg);
228
+ }
199
229
 
200
- &::after {
201
- transform: rotate(-45deg);
202
- }
203
- `,
204
- overlay: css`
205
- display: none;
230
+ &::after {
231
+ transform: rotate(-45deg);
232
+ }
233
+ `;
206
234
 
207
- @media (max-width: 768px) {
208
- display: block;
209
- position: fixed;
210
- top: 0;
211
- right: 0;
212
- bottom: 0;
213
- left: 0;
214
- background: rgba(0, 0, 0, 0.6);
215
- transition: opacity .3s;
216
- opacity: 0;
217
- pointer-events: none;
218
- z-index: 40;
219
- }
220
- `,
221
- overlay$$visible: css`
222
- opacity: 1;
223
- pointer-events: auto;
224
- `
225
- }
226
-
227
- export const $page = {
228
- host: css`
229
- position: relative;
230
- top: ${contentTopSpace};
231
- flex: 1;
232
- background: #fff;
233
- overflow: hidden;
234
- min-width: 0;
235
- `,
236
- scroll: css`
237
- overflow-y: auto;
238
- height: 100%;
239
- -webkit-overflow-scrolling: touch;
240
- padding: 0 48px;
241
-
242
- @media (max-width: 1024px) {
243
- padding: 0 32px;
244
- }
235
+ export const LayoutPrimaryOverlay = css`
236
+ display: none;
245
237
 
246
- @media (max-width: 768px) {
247
- padding: 0 24px;
248
- }
249
- `,
250
- container: css`
251
- padding: 40px 0;
252
- width: 100%;
253
- max-width: 965px;
254
- margin: 0 auto;
255
- font-size: 15px;
256
- line-height: 24px;
238
+ @media (max-width: ${tabletBreakpoint}) {
239
+ display: block;
240
+ position: fixed;
241
+ top: 0;
242
+ right: 0;
243
+ bottom: 0;
244
+ left: 0;
245
+ background: rgba(0, 0, 0, 0.6);
246
+ transition: opacity .3s;
247
+ opacity: 0;
248
+ pointer-events: none;
249
+ z-index: 40;
250
+ height: 100vh;
251
+ }
252
+ `;
257
253
 
258
- @media (max-width: 768px) {
259
- padding: 24px 0;
260
- }
261
- `,
262
- container$$large: css`
263
- max-width: 1200px;
264
- `,
265
- articleContainer: css`
266
- width: 100%;
267
- max-width: 100%;
268
- margin: 0 auto;
269
- box-sizing: border-box;
270
- `,
271
- }
272
-
273
- export const $article = {
274
- host: css`
275
- display: flex;
276
- gap: 64px;
277
- width: 100%;
278
- align-items: flex-start;
279
- box-sizing: border-box;
254
+ export const LayoutPrimaryOverlayVisible = css`
255
+ opacity: 1;
256
+ pointer-events: auto;
257
+ `;
280
258
 
281
- @media (max-width: 1024px) {
282
- gap: 48px;
283
- }
259
+ export const LayoutPrimaryPageHost = css`
260
+ position: relative;
261
+ flex: 1;
262
+ background: #fff;
263
+ overflow: hidden;
264
+ min-width: 0;
265
+ height: 100%;
266
+ `;
284
267
 
285
- @media (max-width: 768px) {
286
- flex-direction: column;
287
- gap: 32px;
288
- }
289
- `,
290
- content: css`
291
- flex: 1;
292
- min-width: 0;
293
- max-width: 100%;
294
- `,
295
- nav: css`
296
- position: sticky;
297
- top: 24px;
268
+ export const LayoutPrimaryPageScroll = css`
269
+ overflow-y: auto;
270
+ height: 100%;
271
+ -webkit-overflow-scrolling: touch;
272
+ padding: 0 48px;
273
+
274
+ @media (max-width: ${tabletBreakpoint}) {
275
+ padding: 0 32px;
276
+ }
277
+
278
+ @media (max-width: ${mobileBreakpoint}) {
279
+ padding: 0 24px;
280
+ }
281
+ `;
282
+
283
+ export const LayoutPrimaryPageContainer = css`
284
+ max-width: 1000px;
285
+ margin: 0 auto;
286
+ padding: 0 ${globalPageGutter};
287
+ `;
288
+
289
+ export const LayoutPrimaryPageContainerLarge = css`
290
+ max-width: 1200px;
291
+ `;
292
+
293
+ export const LayoutPrimaryPageArticleContainer = css`
294
+ display: flex;
295
+ gap: 48px;
296
+ padding: 48px 0;
297
+ min-height: 100%;
298
+
299
+ @media (max-width: ${tabletBreakpoint}) {
300
+ gap: 32px;
301
+ }
302
+
303
+ @media (max-width: ${mobileBreakpoint}) {
304
+ flex-direction: column;
305
+ padding: 24px 0;
306
+ gap: 24px;
307
+ }
308
+ `;
309
+
310
+ export const LayoutPrimaryArticleHost = css`
311
+ flex: 1;
312
+ min-width: 0;
313
+ `;
314
+
315
+ export const LayoutPrimaryArticleContent = css`
316
+ width: 100%;
317
+ `;
318
+
319
+ export const LayoutPrimaryArticleNav = css`
320
+ flex: none;
321
+ width: 256px;
322
+ position: sticky;
323
+ top: 0;
324
+ height: fit-content;
325
+ max-height: 100vh;
326
+ overflow-y: auto;
327
+ padding-right: 24px;
328
+ padding-top: ${contentTopSpace};
329
+
330
+ @media (max-width: ${tabletBreakpoint}) {
298
331
  width: 200px;
299
- min-width: 200px;
300
- flex: none;
301
- padding-left: 24px;
302
-
303
- @media (max-width: 1024px) {
304
- display: none;
305
- width: 180px;
306
- min-width: 180px;
307
- padding-left: 16px;
308
- }
332
+ padding-right: 16px;
333
+ }
309
334
 
310
- @media (max-width: 768px) {
311
- display: block;
312
- position: static;
313
- width: 100%;
314
- min-width: 100%;
315
- padding-left: 0;
316
- padding-top: 24px;
317
- border-top: 1px solid #eaeaea;
318
- }
319
- `
320
- }
335
+ @media (max-width: ${mobileBreakpoint}) {
336
+ width: 100%;
337
+ position: static;
338
+ max-height: none;
339
+ padding-right: 0;
340
+ }
341
+ `;