@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.
- package/CHANGELOG.md +6 -0
- package/LICENSE +21 -0
- package/dist/CTABanner-4FVIoaTR.js +2 -0
- package/dist/CTABanner-4FVIoaTR.js.map +1 -0
- package/dist/CTABanner-C6afsXoE.js +2 -0
- package/dist/CTABanner-C6afsXoE.js.map +1 -0
- package/dist/CTABanner-CEKs-Hb-.js +2 -0
- package/dist/CTABanner-CEKs-Hb-.js.map +1 -0
- package/dist/CTABanner-CUNcTr6s.js +2 -0
- package/dist/CTABanner-CUNcTr6s.js.map +1 -0
- package/dist/CTABanner-D02aIAsD.js +2 -0
- package/dist/CTABanner-D02aIAsD.js.map +1 -0
- package/dist/CTABanner-Dm3tUG3I.js +2 -0
- package/dist/CTABanner-Dm3tUG3I.js.map +1 -0
- package/dist/CTABanner-MCOcVowa.js +2 -0
- package/dist/CTABanner-MCOcVowa.js.map +1 -0
- package/dist/CTABanner-X6K49gSr.js +2 -0
- package/dist/CTABanner-X6K49gSr.js.map +1 -0
- package/dist/CodeSample-B9VUhTKF.js +2 -0
- package/dist/CodeSample-B9VUhTKF.js.map +1 -0
- package/dist/CodeSample-BSXeFy0x.js +2 -0
- package/dist/CodeSample-BSXeFy0x.js.map +1 -0
- package/dist/CodeSample-BwP208sQ.js +2 -0
- package/dist/CodeSample-BwP208sQ.js.map +1 -0
- package/dist/CodeSample-CUemtj_W.js +2 -0
- package/dist/CodeSample-CUemtj_W.js.map +1 -0
- package/dist/CodeSample-D0iKih-A.js +2 -0
- package/dist/CodeSample-D0iKih-A.js.map +1 -0
- package/dist/CodeSample-D33vTa6M.js +2 -0
- package/dist/CodeSample-D33vTa6M.js.map +1 -0
- package/dist/CodeSample-DUSx2KBt.js +2 -0
- package/dist/CodeSample-DUSx2KBt.js.map +1 -0
- package/dist/CodeSample-P4yxkHPW.js +2 -0
- package/dist/CodeSample-P4yxkHPW.js.map +1 -0
- package/dist/HomeView-ACBdUgyz.js +2 -0
- package/dist/HomeView-ACBdUgyz.js.map +1 -0
- package/dist/HomeView-B0ATNUF1.js +2 -0
- package/dist/HomeView-B0ATNUF1.js.map +1 -0
- package/dist/HomeView-COJrg8Ju.js +2 -0
- package/dist/HomeView-COJrg8Ju.js.map +1 -0
- package/dist/HomeView-Cun4apuy.js +2 -0
- package/dist/HomeView-Cun4apuy.js.map +1 -0
- package/dist/HomeView-D4DXEOOn.js +2 -0
- package/dist/HomeView-D4DXEOOn.js.map +1 -0
- package/dist/HomeView-DaH1PSBB.js +2 -0
- package/dist/HomeView-DaH1PSBB.js.map +1 -0
- package/dist/HomeView-O_lj2c2t.js +2 -0
- package/dist/HomeView-O_lj2c2t.js.map +1 -0
- package/dist/HomeView-_Nu2RcOM.js +2 -0
- package/dist/HomeView-_Nu2RcOM.js.map +1 -0
- package/dist/UnderlineNav-BCyB0G5d.js +2 -0
- package/dist/UnderlineNav-BCyB0G5d.js.map +1 -0
- package/dist/UnderlineNav-BEhDJk0H.js +2 -0
- package/dist/UnderlineNav-BEhDJk0H.js.map +1 -0
- package/dist/UnderlineNav-BqZ2xAp7.js +2 -0
- package/dist/UnderlineNav-BqZ2xAp7.js.map +1 -0
- package/dist/UnderlineNav-C2-4Vyj8.js +2 -0
- package/dist/UnderlineNav-C2-4Vyj8.js.map +1 -0
- package/dist/UnderlineNav-Co08Gykm.js +2 -0
- package/dist/UnderlineNav-Co08Gykm.js.map +1 -0
- package/dist/UnderlineNav-DC3UVmnZ.js +2 -0
- package/dist/UnderlineNav-DC3UVmnZ.js.map +1 -0
- package/dist/UnderlineNav-DsRYwuGB.js +2 -0
- package/dist/UnderlineNav-DsRYwuGB.js.map +1 -0
- package/dist/UnderlineNav-FbclXKUW.js +2 -0
- package/dist/UnderlineNav-FbclXKUW.js.map +1 -0
- package/dist/{_rollupPluginBabelHelpers-BMmCG_qQ.js → _rollupPluginBabelHelpers-BEouSrrZ.js} +2 -2
- package/dist/_rollupPluginBabelHelpers-BEouSrrZ.js.map +1 -0
- package/dist/{_rollupPluginBabelHelpers-DsEzE6Ab.js → _rollupPluginBabelHelpers-BHehKRBq.js} +2 -2
- package/dist/_rollupPluginBabelHelpers-BHehKRBq.js.map +1 -0
- package/dist/_rollupPluginBabelHelpers-Bunpz22T.js +2 -0
- package/dist/_rollupPluginBabelHelpers-Bunpz22T.js.map +1 -0
- package/dist/_rollupPluginBabelHelpers-CVblpRvU.js +2 -0
- package/dist/_rollupPluginBabelHelpers-CVblpRvU.js.map +1 -0
- package/dist/_rollupPluginBabelHelpers-CxmswfqM.js +2 -0
- package/dist/_rollupPluginBabelHelpers-CxmswfqM.js.map +1 -0
- package/dist/_rollupPluginBabelHelpers-DQJTK9EO.js +2 -0
- package/dist/_rollupPluginBabelHelpers-DQJTK9EO.js.map +1 -0
- package/dist/_rollupPluginBabelHelpers-DuRQdJ01.js +2 -0
- package/dist/_rollupPluginBabelHelpers-DuRQdJ01.js.map +1 -0
- package/dist/_rollupPluginBabelHelpers-tRAa4O0f.js +2 -0
- package/dist/_rollupPluginBabelHelpers-tRAa4O0f.js.map +1 -0
- package/dist/brand.d.ts +9 -9
- package/dist/brand.js +1 -1
- package/dist/brand.js.map +1 -1
- package/dist/coder.js +1 -1
- package/dist/content.d.ts +4 -3
- package/dist/content.js +1 -1
- package/dist/content.js.map +1 -1
- package/dist/index-B0FncPxO.js +2 -0
- package/dist/index-B0FncPxO.js.map +1 -0
- package/dist/index-BEm-xkm-.js +2 -0
- package/dist/index-BEm-xkm-.js.map +1 -0
- package/dist/index-BHwtxG27.js +2 -0
- package/dist/index-BHwtxG27.js.map +1 -0
- package/dist/index-BTcmIG47.js +2 -0
- package/dist/index-BTcmIG47.js.map +1 -0
- package/dist/index-CNkHt1r7.js +2 -0
- package/dist/index-CNkHt1r7.js.map +1 -0
- package/dist/index-D0XuyFm7.js +2 -0
- package/dist/index-D0XuyFm7.js.map +1 -0
- package/dist/index-DBspcqWq.js +2 -0
- package/dist/index-DBspcqWq.js.map +1 -0
- package/dist/index-DVBO4gYE.js +2 -0
- package/dist/index-DVBO4gYE.js.map +1 -0
- package/dist/index.css +217 -216
- package/dist/layouts.d.ts +1 -1
- package/dist/layouts.js +1 -1
- package/dist/layouts.js.map +1 -1
- package/dist/pages.js +1 -1
- package/dist/pages.js.map +1 -1
- package/dist/{tslib.es6-DDIOdJiV.js → tslib.es6-BBkx4Se1.js} +1 -1
- package/dist/{tslib.es6-DDIOdJiV.js.map → tslib.es6-BBkx4Se1.js.map} +1 -1
- package/dist/{tslib.es6-DUrRPhZd.js → tslib.es6-BF6ZLEXa.js} +1 -1
- package/dist/{tslib.es6-DUrRPhZd.js.map → tslib.es6-BF6ZLEXa.js.map} +1 -1
- package/dist/tslib.es6-BOZCDgb8.js +2 -0
- package/dist/tslib.es6-BOZCDgb8.js.map +1 -0
- package/dist/tslib.es6-Cjl5tesf.js +2 -0
- package/dist/tslib.es6-Cjl5tesf.js.map +1 -0
- package/dist/tslib.es6-DEH7Dkgy.js +2 -0
- package/dist/tslib.es6-DEH7Dkgy.js.map +1 -0
- package/dist/tslib.es6-DTeJ7dWi.js +2 -0
- package/dist/tslib.es6-DTeJ7dWi.js.map +1 -0
- package/dist/tslib.es6-U9-f6pA7.js +2 -0
- package/dist/tslib.es6-U9-f6pA7.js.map +1 -0
- package/dist/tslib.es6-cb69JjeS.js +2 -0
- package/dist/tslib.es6-cb69JjeS.js.map +1 -0
- package/dist/views.js +1 -1
- package/dist/writer.d.ts +4 -3
- package/dist/writer.js +1 -1
- package/dist/writer.js.map +1 -1
- package/package.json +12 -11
- package/rollup.config.js +20 -1
- package/src/brand/Button/Button.styles.tsx +31 -0
- package/src/brand/Button/Button.tsx +3 -35
- package/src/brand/CTABanner/CTABanner.styles.tsx +82 -0
- package/src/brand/CTABanner/CTABanner.tsx +34 -112
- package/src/brand/Footer/Footer.styles.tsx +21 -0
- package/src/brand/Footer/Footer.tsx +4 -24
- package/src/brand/TODO.md +1 -0
- package/src/coder/Code/Code.styles.tsx +45 -48
- package/src/coder/Code/Code.tsx +8 -8
- package/src/coder/Code/CodeLoader.tsx +2 -2
- package/src/coder/Code/annotations.tsx +1 -1
- package/src/coder/CodeCopy/CodeCopy.styles.tsx +19 -0
- package/src/coder/CodeCopy/CodeCopy.tsx +2 -4
- package/src/coder/CodeTabs/CodeTabs.styles.tsx +101 -97
- package/src/coder/CodeTabs/CodeTabs.tsx +11 -14
- package/src/content/Anchor/Anchor.styles.tsx +5 -0
- package/src/content/Anchor/Anchor.tsx +4 -14
- package/src/content/Content/Content.styles.tsx +9 -0
- package/src/content/Content/Content.tsx +4 -12
- package/src/content/Content.tsx +1 -2
- package/src/content/Subtitle/Subtitle.styles.ts +8 -0
- package/src/content/Subtitle/Subtitle.tsx +1 -10
- package/src/layouts/Layout.styles.tsx +135 -131
- package/src/layouts/Layout.tsx +21 -23
- package/src/layouts/LayoutPrimary/LayoutPrimary.styles.tsx +298 -277
- package/src/layouts/LayoutPrimary/LayoutPrimary.tsx +39 -42
- package/src/pages/HomePage/HomePage.styles.tsx +16 -0
- package/src/pages/HomePage/HomePage.tsx +7 -21
- package/src/pages/TODO.md +1 -0
- package/src/ui/Loader/Loader.styles.tsx +48 -46
- package/src/ui/Loader/Loader.tsx +8 -8
- package/src/ui/TODO.md +2 -0
- package/src/utils/useStyle.ts +19 -0
- package/src/views/HomeView/HomeView.styles.tsx +37 -0
- package/src/views/HomeView/HomeView.tsx +5 -45
- package/src/views/TODO.md +1 -0
- package/src/writer/Badge/Badge.styles.tsx +31 -30
- package/src/writer/Badge/Badge.tsx +40 -9
- package/src/writer/Blockquote/Blockquote.styles.tsx +6 -8
- package/src/writer/Blockquote/Blockquote.tsx +2 -2
- package/src/writer/Breadcrumbs/Breadcrumbs.styles.ts +27 -26
- package/src/writer/Breadcrumbs/Breadcrumbs.tsx +5 -5
- package/src/writer/Callout/Callout.styles.tsx +44 -48
- package/src/writer/Callout/Callout.tsx +5 -5
- package/src/writer/Code/Code.styles.tsx +11 -13
- package/src/writer/Code/Code.tsx +2 -2
- package/src/writer/Details/Details.styles.tsx +101 -90
- package/src/writer/Details/Details.tsx +32 -33
- package/src/writer/GuideCard/GuideCard.styles.tsx +116 -112
- package/src/writer/GuideCard/GuideCard.tsx +19 -19
- package/src/writer/Heading/Heading.styles.tsx +65 -61
- package/src/writer/Heading/Heading.tsx +11 -11
- package/src/writer/Hr/Hr.styles.tsx +3 -5
- package/src/writer/Hr/Hr.tsx +2 -2
- package/src/writer/NavLinks/NavLinks.styles.ts +30 -31
- package/src/writer/NavLinks/NavLinks.tsx +6 -6
- package/src/writer/Pre/Pre.styles.tsx +8 -10
- package/src/writer/Pre/Pre.tsx +2 -2
- package/src/writer/Steps/Steps.styles.tsx +30 -31
- package/src/writer/Steps/Steps.tsx +3 -4
- package/src/writer/Table/Table.styles.tsx +32 -31
- package/src/writer/Table/Table.tsx +5 -5
- package/src/writer/Tabs/Tabs.styles.tsx +60 -63
- package/src/writer/Tabs/Tabs.tsx +11 -16
- package/src/writer/UnderlineNav/UnderlineNav.styles.tsx +44 -42
- package/src/writer/UnderlineNav/UnderlineNav.tsx +5 -5
- package/tsconfig.json +2 -3
- package/dist/CTABanner-BrdYlhnD.js +0 -2
- package/dist/CTABanner-BrdYlhnD.js.map +0 -1
- package/dist/CTABanner-XQNnnpUx.js +0 -2
- package/dist/CTABanner-XQNnnpUx.js.map +0 -1
- package/dist/CodeSample-Cp42Adjc.js +0 -2
- package/dist/CodeSample-Cp42Adjc.js.map +0 -1
- package/dist/CodeSample-DxPp80ID.js +0 -2
- package/dist/CodeSample-DxPp80ID.js.map +0 -1
- package/dist/HomeView-BN9mZXh9.js +0 -2
- package/dist/HomeView-BN9mZXh9.js.map +0 -1
- package/dist/HomeView-BVaaV0uE.js +0 -2
- package/dist/HomeView-BVaaV0uE.js.map +0 -1
- package/dist/UnderlineNav-Bs7Ot9Ch.js +0 -2
- package/dist/UnderlineNav-Bs7Ot9Ch.js.map +0 -1
- package/dist/UnderlineNav-C2aEVraN.js +0 -2
- package/dist/UnderlineNav-C2aEVraN.js.map +0 -1
- package/dist/_rollupPluginBabelHelpers-BMmCG_qQ.js.map +0 -1
- package/dist/_rollupPluginBabelHelpers-DsEzE6Ab.js.map +0 -1
- package/dist/index-BVUz77Tm.js +0 -2
- package/dist/index-BVUz77Tm.js.map +0 -1
- package/dist/index-jxd3nv2J.js +0 -2
- package/dist/index-jxd3nv2J.js.map +0 -1
- 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 = '
|
|
4
|
+
export const globalHeaderHeight = '50px';
|
|
5
5
|
const globalHeaderWarningHeight = "0px";
|
|
6
6
|
const contentTopSpace = "12px";
|
|
7
7
|
|
|
8
|
-
const globalHeaderHeightWithSub = '
|
|
8
|
+
const globalHeaderHeightWithSub = '94px';
|
|
9
9
|
|
|
10
10
|
const cubicMove = "cubic-bezier(.65, 0, .35, 1)";
|
|
11
|
-
const sidebarWidth = "
|
|
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
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
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
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
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
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
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
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
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
|
-
|
|
102
|
-
|
|
103
|
-
|
|
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
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
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
|
-
|
|
129
|
-
|
|
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
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
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:
|
|
154
|
-
|
|
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:
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
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
|
-
|
|
197
|
-
|
|
198
|
-
|
|
226
|
+
&::before {
|
|
227
|
+
transform: rotate(45deg);
|
|
228
|
+
}
|
|
199
229
|
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
overlay: css`
|
|
205
|
-
display: none;
|
|
230
|
+
&::after {
|
|
231
|
+
transform: rotate(-45deg);
|
|
232
|
+
}
|
|
233
|
+
`;
|
|
206
234
|
|
|
207
|
-
|
|
208
|
-
|
|
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
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
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
|
-
|
|
259
|
-
|
|
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
|
-
|
|
282
|
-
|
|
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
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
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
|
-
|
|
300
|
-
|
|
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
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
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
|
+
`;
|