@san-siva/blogkit 1.1.21 → 1.1.22

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 (31) hide show
  1. package/dist/cjs/components/BlogSection.js +2 -2
  2. package/dist/cjs/components/BlogSection.js.map +1 -1
  3. package/dist/cjs/dynamicComponents/BlogSectionDynamic.js +6 -7
  4. package/dist/cjs/dynamicComponents/BlogSectionDynamic.js.map +1 -1
  5. package/dist/cjs/index.css +1 -1
  6. package/dist/cjs/index.css.map +1 -1
  7. package/dist/cjs/staticComponents/BlogSectionStatic.js +2 -5
  8. package/dist/cjs/staticComponents/BlogSectionStatic.js.map +1 -1
  9. package/dist/cjs/styles/BlogSection.module.scss.js +1 -1
  10. package/dist/esm/components/BlogSection.js +2 -2
  11. package/dist/esm/components/BlogSection.js.map +1 -1
  12. package/dist/esm/dynamicComponents/BlogSectionDynamic.js +6 -7
  13. package/dist/esm/dynamicComponents/BlogSectionDynamic.js.map +1 -1
  14. package/dist/esm/index.css +1 -1
  15. package/dist/esm/index.css.map +1 -1
  16. package/dist/esm/staticComponents/BlogSectionStatic.js +2 -5
  17. package/dist/esm/staticComponents/BlogSectionStatic.js.map +1 -1
  18. package/dist/esm/styles/BlogSection.module.scss.js +1 -1
  19. package/dist/types/components/BlogSection.d.ts +0 -1
  20. package/dist/types/components/BlogSection.d.ts.map +1 -1
  21. package/dist/types/dynamicComponents/BlogSectionDynamic.d.ts +0 -1
  22. package/dist/types/dynamicComponents/BlogSectionDynamic.d.ts.map +1 -1
  23. package/dist/types/staticComponents/BlogSectionStatic.d.ts +1 -2
  24. package/dist/types/staticComponents/BlogSectionStatic.d.ts.map +1 -1
  25. package/package.json +1 -1
  26. package/src/components/BlogSection.tsx +0 -4
  27. package/src/dynamicComponents/BlogSectionDynamic.tsx +24 -21
  28. package/src/staticComponents/BlogSectionStatic.tsx +2 -13
  29. package/src/styles/BlogHeader.module.scss +6 -5
  30. package/src/styles/BlogSection.module.scss +19 -37
  31. package/src/styles/BlogSection.module.scss.d.ts +1 -2
@@ -2,13 +2,10 @@ import { jsxs, jsx } from 'react/jsx-runtime';
2
2
  import styles from '../styles/BlogSection.module.scss.js';
3
3
  import { generateIdForBlogTitle } from '../utils/index.js';
4
4
 
5
- const BlogSectionStatic = ({ title = '', category = '', children = null, increaseMarginBottom = false, }) => {
5
+ const BlogSectionStatic = ({ title = '', category = '', children = null, }) => {
6
6
  const titleWithCategory = category ? `${category} - ${title}` : title;
7
7
  const id = generateIdForBlogTitle(titleWithCategory);
8
- return (jsxs("div", { className: `${styles['blog-section']}
9
- ${increaseMarginBottom
10
- ? styles['margin-bottom--9']
11
- : styles['margin-bottom--6']}`, "data-title": title, "data-id": id, children: [title ? (jsx("h4", { className: styles['blog-section__title'], children: title })) : null, children] }));
8
+ return (jsxs("div", { className: styles['blog-section'], "data-title": title, "data-id": id, children: [title ? (jsx("h3", { className: styles['blog-section__title'], children: title })) : null, children] }));
12
9
  };
13
10
 
14
11
  export { BlogSectionStatic as default };
@@ -1 +1 @@
1
- {"version":3,"file":"BlogSectionStatic.js","sources":["../../../src/staticComponents/BlogSectionStatic.tsx"],"sourcesContent":["import type { ReactNode } from 'react';\nimport styles from '../styles/BlogSection.module.scss';\nimport { generateIdForBlogTitle } from '../utils';\n\ninterface BlogSectionStaticProperties {\n\ttitle?: string;\n\tcategory?: string;\n\tchildren?: ReactNode;\n\tincreaseMarginBottom?: boolean;\n}\n\nconst BlogSectionStatic = ({\n\ttitle = '',\n\tcategory = '',\n\tchildren = null,\n\tincreaseMarginBottom = false,\n}: BlogSectionStaticProperties) => {\n\tconst titleWithCategory = category ? `${category} - ${title}` : title;\n\tconst id = generateIdForBlogTitle(titleWithCategory);\n\n\treturn (\n\t\t<div\n\t\t\tclassName={`${styles['blog-section']}\n\t\t\t\t${\n\t\t\t\t\tincreaseMarginBottom\n\t\t\t\t\t\t? styles['margin-bottom--9']\n\t\t\t\t\t\t: styles['margin-bottom--6']\n\t\t\t\t}`}\n\t\t\tdata-title={title}\n\t\t\tdata-id={id}\n\t\t>\n\t\t\t{title ? (\n\t\t\t\t<h4 className={styles['blog-section__title']}>{title}</h4>\n\t\t\t) : null}\n\t\t\t{children}\n\t\t</div>\n\t);\n};\n\nexport default BlogSectionStatic;\n"],"names":["_jsxs","_jsx"],"mappings":";;;;AAWA,MAAM,iBAAiB,GAAG,CAAC,EAC1B,KAAK,GAAG,EAAE,EACV,QAAQ,GAAG,EAAE,EACb,QAAQ,GAAG,IAAI,EACf,oBAAoB,GAAG,KAAK,GACC,KAAI;AACjC,IAAA,MAAM,iBAAiB,GAAG,QAAQ,GAAG,CAAA,EAAG,QAAQ,CAAA,GAAA,EAAM,KAAK,CAAA,CAAE,GAAG,KAAK;AACrE,IAAA,MAAM,EAAE,GAAG,sBAAsB,CAAC,iBAAiB,CAAC;IAEpD,QACCA,cACC,SAAS,EAAE,GAAG,MAAM,CAAC,cAAc,CAAC;MAElC;AACC,cAAE,MAAM,CAAC,kBAAkB;AAC3B,cAAE,MAAM,CAAC,kBAAkB,CAC7B,CAAA,CAAE,EAAA,YAAA,EACS,KAAK,EAAA,SAAA,EACR,EAAE,EAAA,QAAA,EAAA,CAEV,KAAK,IACLC,GAAA,CAAA,IAAA,EAAA,EAAI,SAAS,EAAE,MAAM,CAAC,qBAAqB,CAAC,EAAA,QAAA,EAAG,KAAK,EAAA,CAAM,IACvD,IAAI,EACP,QAAQ,CAAA,EAAA,CACJ;AAER;;;;"}
1
+ {"version":3,"file":"BlogSectionStatic.js","sources":["../../../src/staticComponents/BlogSectionStatic.tsx"],"sourcesContent":["import type { ReactNode } from 'react';\nimport styles from '../styles/BlogSection.module.scss';\nimport { generateIdForBlogTitle } from '../utils';\n\ninterface BlogSectionStaticProperties {\n\ttitle?: string;\n\tcategory?: string;\n\tchildren?: ReactNode;\n}\n\nconst BlogSectionStatic = ({\n\ttitle = '',\n\tcategory = '',\n\tchildren = null,\n}: BlogSectionStaticProperties) => {\n\tconst titleWithCategory = category ? `${category} - ${title}` : title;\n\tconst id = generateIdForBlogTitle(titleWithCategory);\n\n\treturn (\n\t\t<div className={styles['blog-section']} data-title={title} data-id={id}>\n\t\t\t{title ? (\n\t\t\t\t<h3 className={styles['blog-section__title']}>{title}</h3>\n\t\t\t) : null}\n\t\t\t{children}\n\t\t</div>\n\t);\n};\n\nexport default BlogSectionStatic;\n"],"names":["_jsxs","_jsx"],"mappings":";;;;AAUA,MAAM,iBAAiB,GAAG,CAAC,EAC1B,KAAK,GAAG,EAAE,EACV,QAAQ,GAAG,EAAE,EACb,QAAQ,GAAG,IAAI,GACc,KAAI;AACjC,IAAA,MAAM,iBAAiB,GAAG,QAAQ,GAAG,CAAA,EAAG,QAAQ,CAAA,GAAA,EAAM,KAAK,CAAA,CAAE,GAAG,KAAK;AACrE,IAAA,MAAM,EAAE,GAAG,sBAAsB,CAAC,iBAAiB,CAAC;AAEpD,IAAA,QACCA,IAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAE,MAAM,CAAC,cAAc,CAAC,EAAA,YAAA,EAAc,KAAK,aAAW,EAAE,EAAA,QAAA,EAAA,CACpE,KAAK,IACLC,GAAA,CAAA,IAAA,EAAA,EAAI,SAAS,EAAE,MAAM,CAAC,qBAAqB,CAAC,YAAG,KAAK,EAAA,CAAM,IACvD,IAAI,EACP,QAAQ,CAAA,EAAA,CACJ;AAER;;;;"}
@@ -1,4 +1,4 @@
1
- var styles = {"margin-bottom--6":"BlogSection-module_margin-bottom--6__-hlAO","margin-bottom--9":"BlogSection-module_margin-bottom--9__xU5rE","blog-section__title":"BlogSection-module_blog-section__title__5-4Oy","blog-section__title-link":"BlogSection-module_blog-section__title-link__Q4R5T","blog-section":"BlogSection-module_blog-section__NTDM4"};
1
+ var styles = {"blog-section":"BlogSection-module_blog-section__NTDM4","blog-section__title":"BlogSection-module_blog-section__title__5-4Oy","blog-section__title--empty":"BlogSection-module_blog-section__title--empty__-di-F","blog-section__title-link":"BlogSection-module_blog-section__title-link__Q4R5T"};
2
2
 
3
3
  export { styles as default };
4
4
  //# sourceMappingURL=BlogSection.module.scss.js.map
@@ -5,7 +5,6 @@ interface BlogSectionProperties {
5
5
  title?: string;
6
6
  category?: string;
7
7
  children?: ReactNode;
8
- increaseMarginBottom?: boolean;
9
8
  }
10
9
  declare const BlogSection: import("react").ForwardRefExoticComponent<BlogSectionProperties & import("react").RefAttributes<ForwardedReference>>;
11
10
  export default BlogSection;
@@ -1 +1 @@
1
- {"version":3,"file":"BlogSection.d.ts","sourceRoot":"","sources":["../../../src/components/BlogSection.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAC3E,YAAY,EAAE,kBAAkB,EAAE,CAAC;AAMnC,UAAU,qBAAqB;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAC/B;AAED,QAAA,MAAM,WAAW,sHAiChB,CAAC;AAIF,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"BlogSection.d.ts","sourceRoot":"","sources":["../../../src/components/BlogSection.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAC3E,YAAY,EAAE,kBAAkB,EAAE,CAAC;AAMnC,UAAU,qBAAqB;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACrB;AAED,QAAA,MAAM,WAAW,sHA8BhB,CAAC;AAIF,eAAe,WAAW,CAAC"}
@@ -4,7 +4,6 @@ interface BlogProperties {
4
4
  title?: string;
5
5
  category?: string;
6
6
  children?: ReactNode;
7
- increaseMarginBottom?: boolean;
8
7
  }
9
8
  declare const BlogSection: import("react").ForwardRefExoticComponent<BlogProperties & RefAttributes<ForwardedReference>>;
10
9
  export default BlogSection;
@@ -1 +1 @@
1
- {"version":3,"file":"BlogSectionDynamic.d.ts","sourceRoot":"","sources":["../../../src/dynamicComponents/BlogSectionDynamic.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAItD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAGxD,UAAU,cAAc;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAC/B;AAED,QAAA,MAAM,WAAW,+FA+EhB,CAAC;AAIF,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"BlogSectionDynamic.d.ts","sourceRoot":"","sources":["../../../src/dynamicComponents/BlogSectionDynamic.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAItD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAGxD,UAAU,cAAc;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACrB;AAED,QAAA,MAAM,WAAW,+FAmFhB,CAAC;AAIF,eAAe,WAAW,CAAC"}
@@ -3,8 +3,7 @@ interface BlogSectionStaticProperties {
3
3
  title?: string;
4
4
  category?: string;
5
5
  children?: ReactNode;
6
- increaseMarginBottom?: boolean;
7
6
  }
8
- declare const BlogSectionStatic: ({ title, category, children, increaseMarginBottom, }: BlogSectionStaticProperties) => import("react/jsx-runtime").JSX.Element;
7
+ declare const BlogSectionStatic: ({ title, category, children, }: BlogSectionStaticProperties) => import("react/jsx-runtime").JSX.Element;
9
8
  export default BlogSectionStatic;
10
9
  //# sourceMappingURL=BlogSectionStatic.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BlogSectionStatic.d.ts","sourceRoot":"","sources":["../../../src/staticComponents/BlogSectionStatic.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC,UAAU,2BAA2B;IACpC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAC/B;AAED,QAAA,MAAM,iBAAiB,GAAI,sDAKxB,2BAA2B,4CAqB7B,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"BlogSectionStatic.d.ts","sourceRoot":"","sources":["../../../src/staticComponents/BlogSectionStatic.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC,UAAU,2BAA2B;IACpC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACrB;AAED,QAAA,MAAM,iBAAiB,GAAI,gCAIxB,2BAA2B,4CAY7B,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@san-siva/blogkit",
3
- "version": "1.1.21",
3
+ "version": "1.1.22",
4
4
  "description": "A reusable blog component library for React/Next.js applications with code highlighting, diagrams, and rich content features",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -14,7 +14,6 @@ interface BlogSectionProperties {
14
14
  title?: string;
15
15
  category?: string;
16
16
  children?: ReactNode;
17
- increaseMarginBottom?: boolean;
18
17
  }
19
18
 
20
19
  const BlogSection = forwardRef<ForwardedReference, BlogSectionProperties>(
@@ -23,7 +22,6 @@ const BlogSection = forwardRef<ForwardedReference, BlogSectionProperties>(
23
22
  title = '',
24
23
  category = '',
25
24
  children = null,
26
- increaseMarginBottom = false,
27
25
  },
28
26
  ref
29
27
  ) => {
@@ -33,7 +31,6 @@ const BlogSection = forwardRef<ForwardedReference, BlogSectionProperties>(
33
31
  <BlogSectionStatic
34
32
  title={title}
35
33
  category={category}
36
- increaseMarginBottom={increaseMarginBottom}
37
34
  >
38
35
  {children}
39
36
  </BlogSectionStatic>
@@ -43,7 +40,6 @@ const BlogSection = forwardRef<ForwardedReference, BlogSectionProperties>(
43
40
  ref={ref}
44
41
  title={title}
45
42
  category={category}
46
- increaseMarginBottom={increaseMarginBottom}
47
43
  >
48
44
  {children}
49
45
  </BlogSectionDynamic>
@@ -21,17 +21,11 @@ interface BlogProperties {
21
21
  title?: string;
22
22
  category?: string;
23
23
  children?: ReactNode;
24
- increaseMarginBottom?: boolean;
25
24
  }
26
25
 
27
26
  const BlogSection = forwardRef<ForwardedReference, BlogProperties>(
28
27
  (
29
- {
30
- title = '',
31
- category = '',
32
- children = null,
33
- increaseMarginBottom = false,
34
- }: BlogProperties,
28
+ { title = '', category = '', children = null }: BlogProperties,
35
29
  forwardedReference
36
30
  ) => {
37
31
  const titleWithCategory = category ? `${category} - ${title}` : title;
@@ -52,7 +46,10 @@ const BlogSection = forwardRef<ForwardedReference, BlogProperties>(
52
46
 
53
47
  // Re-register when title or category changes so the TOC reflects the updated heading
54
48
  useEffect(() => {
55
- if (typeof forwardedReference === 'function' && imperativeHandleRef.current) {
49
+ if (
50
+ typeof forwardedReference === 'function' &&
51
+ imperativeHandleRef.current
52
+ ) {
56
53
  forwardedReference(imperativeHandleRef.current);
57
54
  }
58
55
  }, [title, category]); // eslint-disable-line react-hooks/exhaustive-deps
@@ -63,37 +60,43 @@ const BlogSection = forwardRef<ForwardedReference, BlogProperties>(
63
60
  if (!subParentReference) return;
64
61
 
65
62
  // Avoid registering the same child section twice
66
- const alreadyRegistered = childReferences.current.some(
63
+ const alreadyRegistered = childReferences.current.some(
67
64
  ref => ref.parentRef === subParentReference
68
65
  );
69
66
  if (!alreadyRegistered) {
70
67
  childReferences.current.push(element);
71
68
  }
72
69
 
73
- if (typeof forwardedReference === 'function' && imperativeHandleRef.current) {
70
+ if (
71
+ typeof forwardedReference === 'function' &&
72
+ imperativeHandleRef.current
73
+ ) {
74
74
  forwardedReference(imperativeHandleRef.current);
75
75
  }
76
76
  };
77
77
 
78
78
  return (
79
79
  <div
80
- className={`${styles['blog-section']}
81
- ${
82
- increaseMarginBottom
83
- ? styles['margin-bottom--9']
84
- : styles['margin-bottom--6']
85
- }`}
80
+ className={styles['blog-section']}
86
81
  data-title={title}
87
82
  data-id={id}
88
83
  ref={parentReference}
89
84
  >
90
- {title ? (
91
- <h4 className={styles['blog-section__title']}>
92
- <a href={generateSectionHref(id)} className={styles['blog-section__title-link']} onClick={e => e.preventDefault()}>
85
+ <h3
86
+ className={`${styles['blog-section__title']} ${title ? '' : styles['blog-section__title--empty']}`}
87
+ >
88
+ {title ? (
89
+ <a
90
+ href={generateSectionHref(id)}
91
+ className={styles['blog-section__title-link']}
92
+ onClick={e => e.preventDefault()}
93
+ >
93
94
  {title}
94
95
  </a>
95
- </h4>
96
- ) : null}
96
+ ) : (
97
+ <p>No title</p>
98
+ )}
99
+ </h3>
97
100
  {Children.map(children, child => {
98
101
  if (!isValidElement(child)) return child;
99
102
  return cloneElement(child, {
@@ -6,31 +6,20 @@ interface BlogSectionStaticProperties {
6
6
  title?: string;
7
7
  category?: string;
8
8
  children?: ReactNode;
9
- increaseMarginBottom?: boolean;
10
9
  }
11
10
 
12
11
  const BlogSectionStatic = ({
13
12
  title = '',
14
13
  category = '',
15
14
  children = null,
16
- increaseMarginBottom = false,
17
15
  }: BlogSectionStaticProperties) => {
18
16
  const titleWithCategory = category ? `${category} - ${title}` : title;
19
17
  const id = generateIdForBlogTitle(titleWithCategory);
20
18
 
21
19
  return (
22
- <div
23
- className={`${styles['blog-section']}
24
- ${
25
- increaseMarginBottom
26
- ? styles['margin-bottom--9']
27
- : styles['margin-bottom--6']
28
- }`}
29
- data-title={title}
30
- data-id={id}
31
- >
20
+ <div className={styles['blog-section']} data-title={title} data-id={id}>
32
21
  {title ? (
33
- <h4 className={styles['blog-section__title']}>{title}</h4>
22
+ <h3 className={styles['blog-section__title']}>{title}</h3>
34
23
  ) : null}
35
24
  {children}
36
25
  </div>
@@ -1,12 +1,13 @@
1
1
  @use '@san-siva/stylekit/styles/index.module.scss' as stylekit;
2
2
 
3
3
  .blog-header {
4
- line-height: stylekit.$line-height--small;
4
+ line-height: stylekit.$line-height--small;
5
+ font-weight: stylekit.$font-weight--800;
5
6
  }
6
7
 
7
8
  .blog-date {
8
- display: block;
9
- margin-bottom: calc(#{stylekit.space(8)} * 2);
10
- color: stylekit.$color--dark;
11
- font-style: italic;
9
+ display: block;
10
+ margin-bottom: calc(#{stylekit.space(8)} * 2);
11
+ color: stylekit.$color--dark;
12
+ font-style: italic;
12
13
  }
@@ -1,8 +1,18 @@
1
1
  @use '@san-siva/stylekit/styles/index.module.scss' as stylekit;
2
2
 
3
3
  .blog-section {
4
+ margin-bottom: stylekit.space(9);
5
+
4
6
  &__title {
7
+ margin-top: stylekit.space(4);
5
8
  margin-bottom: stylekit.space(2);
9
+ font-size: stylekit.$font-size--h3;
10
+ font-weight: stylekit.$font-weight--700;
11
+
12
+ &--empty > p {
13
+ color: transparent;
14
+ font-size: 0;
15
+ }
6
16
  }
7
17
 
8
18
  &__title-link {
@@ -19,51 +29,23 @@
19
29
  }
20
30
  }
21
31
 
22
- // Sub-section (depth 1)
23
32
  .blog-section {
24
- > .blog-section__title {
25
- font-size: stylekit.$font-size--h6;
26
- margin-bottom: stylekit.space(2);
27
- }
33
+ margin-bottom: stylekit.space(6);
28
34
 
29
- > *:first-child {
30
- margin-top: stylekit.space(4);
35
+ > .blog-section__title {
36
+ margin-top: stylekit.space(6);
37
+ font-weight: stylekit.$font-weight--600;
38
+ font-size: stylekit.$font-size--h5;
31
39
  }
32
40
 
33
- &:not(:last-child) {
41
+ .blog-section {
34
42
  margin-bottom: stylekit.space(4);
35
- }
36
43
 
37
- &:last-child {
38
- margin-bottom: stylekit.space(8);
39
- }
40
-
41
- // Sub-sub-section (depth 2)
42
- .blog-section {
43
44
  > .blog-section__title {
44
- font-size: stylekit.$font-size--p;
45
- margin-bottom: stylekit.space(1);
46
- }
47
-
48
- > *:first-child {
49
- margin-top: stylekit.space(2);
50
- }
51
-
52
- &:not(:last-child) {
53
- margin-bottom: stylekit.space(2);
54
- }
55
-
56
- &:last-child {
57
- margin-bottom: stylekit.space(4);
45
+ margin-top: stylekit.space(4);
46
+ font-weight: stylekit.$font-weight--500;
47
+ font-size: stylekit.$font-size--h6;
58
48
  }
59
49
  }
60
50
  }
61
51
  }
62
-
63
- .margin-bottom--6 {
64
- margin-bottom: stylekit.space(6);
65
- }
66
-
67
- .margin-bottom--9 {
68
- margin-bottom: stylekit.space(9);
69
- }
@@ -1,9 +1,8 @@
1
1
  declare const styles: {
2
2
  readonly 'blog-section': string;
3
3
  readonly 'blog-section__title': string;
4
+ readonly 'blog-section__title--empty': string;
4
5
  readonly 'blog-section__title-link': string;
5
- readonly 'margin-bottom--6': string;
6
- readonly 'margin-bottom--9': string;
7
6
  };
8
7
 
9
8
  export default styles;