@gravity-ui/page-constructor 1.2.1 → 1.2.3-alpha.0

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 (68) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/build/cjs/blocks/Companies/Companies.js +2 -6
  3. package/build/cjs/blocks/ContentLayout/schema.js +2 -1
  4. package/build/cjs/blocks/Header/Header.css +0 -3
  5. package/build/cjs/blocks/Header/Header.js +7 -2
  6. package/build/cjs/blocks/Header/schema.js +2 -1
  7. package/build/cjs/blocks/Tabs/Tabs.js +3 -2
  8. package/build/cjs/blocks/Tabs/schema.js +2 -1
  9. package/build/cjs/components/BackgroundImage/BackgroundImage.js +2 -2
  10. package/build/cjs/components/FullscreenImage/FullscreenImage.d.ts +2 -2
  11. package/build/cjs/components/Image/Image.d.ts +3 -5
  12. package/build/cjs/components/Image/Image.js +9 -5
  13. package/build/cjs/components/Image/schema.d.ts +52 -0
  14. package/build/cjs/components/Image/schema.js +52 -0
  15. package/build/cjs/components/Media/Image/Image.js +3 -3
  16. package/build/cjs/components/Media/Image/utils.d.ts +2 -2
  17. package/build/cjs/containers/PageConstructor/PageConstructor.css +17 -5
  18. package/build/cjs/models/constructor-items/blocks.d.ts +4 -8
  19. package/build/cjs/models/constructor-items/common.d.ts +11 -7
  20. package/build/cjs/schema/validators/common.d.ts +0 -30
  21. package/build/cjs/schema/validators/common.js +4 -30
  22. package/build/cjs/sub-blocks/BackgroundCard/schema.js +2 -1
  23. package/build/cjs/sub-blocks/BasicCard/BasicCard.js +1 -1
  24. package/build/cjs/sub-blocks/BasicCard/schema.js +2 -1
  25. package/build/cjs/sub-blocks/Content/Content.css +16 -8
  26. package/build/cjs/sub-blocks/Content/Content.js +6 -2
  27. package/build/cjs/sub-blocks/Partner/Partner.js +1 -1
  28. package/build/cjs/sub-blocks/Partner/schema.js +2 -1
  29. package/build/cjs/sub-blocks/Quote/Quote.js +3 -2
  30. package/build/cjs/sub-blocks/Quote/schema.js +2 -1
  31. package/build/cjs/sub-blocks/TutorialCard/TutorialCard.js +2 -2
  32. package/build/cjs/sub-blocks/TutorialCard/schema.js +2 -1
  33. package/build/esm/blocks/Companies/Companies.js +2 -6
  34. package/build/esm/blocks/ContentLayout/schema.js +2 -1
  35. package/build/esm/blocks/Header/Header.css +0 -3
  36. package/build/esm/blocks/Header/Header.js +7 -2
  37. package/build/esm/blocks/Header/schema.js +2 -1
  38. package/build/esm/blocks/Tabs/Tabs.js +3 -2
  39. package/build/esm/blocks/Tabs/schema.js +2 -1
  40. package/build/esm/components/BackgroundImage/BackgroundImage.js +2 -2
  41. package/build/esm/components/FullscreenImage/FullscreenImage.d.ts +2 -2
  42. package/build/esm/components/Image/Image.d.ts +3 -5
  43. package/build/esm/components/Image/Image.js +9 -5
  44. package/build/esm/components/Image/schema.d.ts +52 -0
  45. package/build/esm/components/Image/schema.js +49 -0
  46. package/build/esm/components/Media/Image/Image.js +3 -3
  47. package/build/esm/components/Media/Image/utils.d.ts +2 -2
  48. package/build/esm/containers/PageConstructor/PageConstructor.css +17 -5
  49. package/build/esm/models/constructor-items/blocks.d.ts +4 -8
  50. package/build/esm/models/constructor-items/common.d.ts +11 -7
  51. package/build/esm/schema/validators/common.d.ts +0 -30
  52. package/build/esm/schema/validators/common.js +1 -27
  53. package/build/esm/sub-blocks/BackgroundCard/schema.js +2 -1
  54. package/build/esm/sub-blocks/BasicCard/BasicCard.js +1 -1
  55. package/build/esm/sub-blocks/BasicCard/schema.js +2 -1
  56. package/build/esm/sub-blocks/Content/Content.css +16 -8
  57. package/build/esm/sub-blocks/Content/Content.js +6 -2
  58. package/build/esm/sub-blocks/Partner/Partner.js +1 -1
  59. package/build/esm/sub-blocks/Partner/schema.js +2 -1
  60. package/build/esm/sub-blocks/Quote/Quote.js +3 -2
  61. package/build/esm/sub-blocks/Quote/schema.js +2 -1
  62. package/build/esm/sub-blocks/TutorialCard/TutorialCard.js +2 -2
  63. package/build/esm/sub-blocks/TutorialCard/schema.js +2 -1
  64. package/package.json +4 -1
  65. package/server/models/constructor-items/blocks.d.ts +4 -8
  66. package/server/models/constructor-items/common.d.ts +11 -7
  67. package/styles/styles.css +17 -5
  68. package/styles/yfm.scss +18 -5
@@ -159,36 +159,6 @@ export declare const JustifyProps: {
159
159
  type: string;
160
160
  enum: string[];
161
161
  };
162
- export declare const ImageObjectProps: {
163
- type: string;
164
- additionalProperties: boolean;
165
- required: string[];
166
- properties: {
167
- src: {
168
- type: string;
169
- pattern: string;
170
- };
171
- alt: {
172
- type: string;
173
- };
174
- disableCompress: {
175
- type: string;
176
- };
177
- };
178
- };
179
- export declare const ImageProps: {
180
- oneOf: ({
181
- type: string;
182
- properties: {
183
- when: {
184
- type: string;
185
- };
186
- };
187
- } | {
188
- type: string;
189
- pattern: string;
190
- })[];
191
- };
192
162
  export declare const DataLensObjectProps: {
193
163
  type: string;
194
164
  additionalProperties: boolean;
@@ -1,6 +1,6 @@
1
- import { filteredItem } from './utils';
2
1
  import { pixelEvents } from './pixel';
3
2
  import { Theme } from '../../models';
3
+ import { ImageProps } from '../../components/Image/schema';
4
4
  export const mediaDirection = ['media-content', 'content-media'];
5
5
  export const textSize = ['s', 'm', 'l'];
6
6
  export const containerSizesArray = ['sm', 'md', 'lg', 'xl', 'all'];
@@ -127,32 +127,6 @@ export const JustifyProps = {
127
127
  type: 'string',
128
128
  enum: ['start', 'center', 'end'],
129
129
  };
130
- export const ImageObjectProps = {
131
- type: 'object',
132
- additionalProperties: false,
133
- required: ['src'],
134
- properties: {
135
- src: {
136
- type: 'string',
137
- pattern: urlPattern,
138
- },
139
- alt: {
140
- type: 'string',
141
- },
142
- disableCompress: {
143
- type: 'boolean',
144
- },
145
- },
146
- };
147
- export const ImageProps = {
148
- oneOf: [
149
- {
150
- type: 'string',
151
- pattern: urlPattern,
152
- },
153
- filteredItem(Object.assign({}, ImageObjectProps)),
154
- ],
155
- };
156
130
  export const DataLensObjectProps = {
157
131
  type: 'object',
158
132
  additionalProperties: false,
@@ -1,6 +1,7 @@
1
- import { BaseProps, ImageObjectProps, withTheme } from '../../schema/validators/common';
1
+ import { BaseProps, withTheme } from '../../schema/validators/common';
2
2
  import { CardBase } from '../../components/CardBase/schema';
3
3
  import { ContentBase } from '../Content/schema';
4
+ import { ImageObjectProps } from '../../components/Image/schema';
4
5
  import _ from 'lodash';
5
6
  const BackgroundCardContentProps = _.omit(ContentBase, ['size']);
6
7
  export const BackgroundCard = {
@@ -11,7 +11,7 @@ const BasicCard = (props) => {
11
11
  const iconProps = icon && getMediaImage(icon);
12
12
  return (React.createElement(CardBase, { className: b(), url: url, border: border },
13
13
  React.createElement(CardBase.Content, null,
14
- iconProps && (React.createElement(Image, { src: iconProps.src, alt: iconProps.alt, className: b('icon'), disableCompress: iconProps.disableCompress })),
14
+ iconProps && React.createElement(Image, Object.assign({}, iconProps, { className: b('icon') })),
15
15
  React.createElement(Content, { title: title, text: text, additionalInfo: additionalInfo, links: links, buttons: buttons, colSizes: { all: 12, md: 12 }, size: "s" }))));
16
16
  };
17
17
  export default BasicCard;
@@ -1,7 +1,8 @@
1
1
  import _ from 'lodash';
2
- import { BaseProps, ImageProps } from '../../schema/validators/common';
2
+ import { BaseProps } from '../../schema/validators/common';
3
3
  import { CardBase } from '../../components/CardBase/schema';
4
4
  import { ContentBase } from '../Content/schema';
5
+ import { ImageProps } from '../../components/Image/schema';
5
6
  const BasicCardContentProps = _.omit(ContentBase, ['size', 'theme']);
6
7
  export const BasicCard = {
7
8
  'basic-card': {
@@ -1,6 +1,5 @@
1
1
  .pc-content_size_l .pc-content__text .yfm,
2
- .pc-content_size_l .pc-content__notice .yfm,
3
- .pc-content_size_l .pc-content__notice .yfm > * {
2
+ .pc-content_size_l .pc-content__notice .yfm {
4
3
  margin: 0;
5
4
  }
6
5
 
@@ -22,15 +21,16 @@ unpredictable css rules order in build */
22
21
  .pc-content__notice.pc-content__notice .yfm a:hover {
23
22
  color: var(--yc-color-text-primary);
24
23
  }
25
- .pc-content__notice.pc-content__notice ol,
26
- .pc-content__notice.pc-content__notice ul {
27
- padding-left: 25px;
28
- }
29
24
 
30
25
  .pc-content__button {
31
26
  margin-top: 0;
32
27
  margin-right: 12px;
33
28
  }
29
+ .pc-content__links {
30
+ display: flex;
31
+ flex-direction: column;
32
+ align-items: baseline;
33
+ }
34
34
  .pc-content__link {
35
35
  display: block;
36
36
  margin-right: 32px;
@@ -40,9 +40,18 @@ unpredictable css rules order in build */
40
40
  text-align: center;
41
41
  }
42
42
 
43
+ .pc-content_centered .pc-content__links {
44
+ align-items: center;
45
+ }
43
46
  .pc-content_centered .pc-content__link a {
44
47
  justify-content: center;
45
48
  }
49
+ .pc-content_centered .pc-content__notice .yfm ul,
50
+ .pc-content_centered .pc-content__notice .yfm ol,
51
+ .pc-content_centered .pc-content__text .yfm ul,
52
+ .pc-content_centered .pc-content__text .yfm ol {
53
+ text-align: left;
54
+ }
46
55
  .pc-content_size_s .pc-content__text,
47
56
  .pc-content_size_s .pc-content__notice {
48
57
  margin-top: 8px;
@@ -64,8 +73,7 @@ unpredictable css rules order in build */
64
73
  margin-top: 0;
65
74
  }
66
75
  .pc-content_size_l .pc-content__text .yfm,
67
- .pc-content_size_l .pc-content__notice .yfm,
68
- .pc-content_size_l .pc-content__notice .yfm > * {
76
+ .pc-content_size_l .pc-content__notice .yfm {
69
77
  font-size: var(--yc-text-body-3-font-size);
70
78
  line-height: var(--yc-text-body-3-line-height);
71
79
  }
@@ -42,9 +42,13 @@ const Content = (props) => {
42
42
  return (React.createElement(Col, { className: b({ size, centered, theme }, className), reset: true, sizes: colSizes },
43
43
  title && React.createElement(Title, Object.assign({ className: b('title') }, titleProps, { resetMargin: true })),
44
44
  text && (React.createElement("div", { className: b('text', { ['without-title']: !hasTitle }) },
45
- React.createElement(YFMWrapper, { content: text, modifiers: { constructor: true } }))),
45
+ React.createElement(YFMWrapper, { content: text, modifiers: { constructor: true, [`constructor-size-${size}`]: true } }))),
46
46
  additionalInfo && (React.createElement("div", { className: b('notice') },
47
- React.createElement(YFMWrapper, { content: additionalInfo, modifiers: { constructor: true, 'constructor-notice': true } }))),
47
+ React.createElement(YFMWrapper, { content: additionalInfo, modifiers: {
48
+ constructor: true,
49
+ 'constructor-notice': true,
50
+ [`constructor-size-${size}`]: true,
51
+ } }))),
48
52
  links && (React.createElement("div", { className: b('links') }, links.map((link) => (React.createElement(LinkBlock, Object.assign({ className: b('link') }, link, { textSize: getLinkSize(size), key: link.url })))))),
49
53
  buttons && (React.createElement("div", { className: b('buttons') }, buttons.map((item) => (React.createElement(Button, Object.assign({ className: b('button') }, item, { key: item.url, size: getButtonSize(size) }))))))));
50
54
  };
@@ -7,7 +7,7 @@ const Partner = ({ text, logo, url, border }) => {
7
7
  const logoData = typeof logo === 'string' ? { src: logo } : logo;
8
8
  return (React.createElement(CardBase, { url: url, target: "_blank", className: b(), border: border },
9
9
  React.createElement(CardBase.Content, null,
10
- React.createElement(Image, { className: b('logo'), src: logoData.src, alt: logoData.alt }),
10
+ React.createElement(Image, Object.assign({ className: b('logo') }, logoData)),
11
11
  React.createElement(HTML, null, text))));
12
12
  };
13
13
  export default Partner;
@@ -1,4 +1,5 @@
1
- import { BaseProps, ImageProps } from '../../schema/validators/common';
1
+ import { BaseProps } from '../../schema/validators/common';
2
+ import { ImageProps } from '../../components/Image/schema';
2
3
  export const PartnerBlock = {
3
4
  partner: {
4
5
  additionalProperties: false,
@@ -4,13 +4,14 @@ import { block, getThemedValue } from '../../utils';
4
4
  import { AuthorType } from '../../models';
5
5
  import { Author, Image, HTML } from '../../components';
6
6
  import { ThemeValueContext } from '../../context/theme/ThemeValueContext';
7
+ import { getMediaImage } from '../../components/Media/Image/utils';
7
8
  import './Quote.css';
8
9
  const b = block('quote');
9
10
  const Quote = (props) => {
10
11
  const { theme: textTheme = 'light', color, image, border = 'shadow', text, logo, author, url, buttonText, } = props;
11
12
  const { themeValue: theme } = useContext(ThemeValueContext);
12
13
  const imageThemed = getThemedValue(image, theme);
13
- const imageData = typeof imageThemed === 'string' ? { src: imageThemed } : imageThemed;
14
+ const imageData = getMediaImage(imageThemed);
14
15
  const renderFooter = Boolean(author || url) && (React.createElement("div", { className: b('author-wrapper') },
15
16
  author && (React.createElement(Author, { className: b('author', { theme: textTheme }), author: author, type: AuthorType.Line })),
16
17
  url && buttonText && (React.createElement(Button, { view: "outlined", size: "xl", href: url, className: b('link-button', { theme: textTheme }) }, buttonText))));
@@ -23,6 +24,6 @@ const Quote = (props) => {
23
24
  React.createElement(HTML, null, text)))),
24
25
  renderFooter),
25
26
  React.createElement("div", { className: b('image-wrapper') },
26
- React.createElement(Image, { src: imageData.src, alt: imageData.alt, className: b('image') }))));
27
+ React.createElement(Image, Object.assign({}, imageData, { className: b('image') })))));
27
28
  };
28
29
  export default Quote;
@@ -1,4 +1,5 @@
1
- import { authorItem, BaseProps, ImageProps, ThemeProps, withTheme, urlPattern, } from '../../schema/validators/common';
1
+ import { authorItem, BaseProps, ThemeProps, withTheme, urlPattern, } from '../../schema/validators/common';
2
+ import { ImageProps } from '../../components/Image/schema';
2
3
  export const Quote = {
3
4
  quote: {
4
5
  additionalProperties: false,
@@ -6,8 +6,8 @@ import { getMediaImage } from '../../components/Media/Image/utils';
6
6
  import './TutorialCard.css';
7
7
  const b = block('tutorial-card');
8
8
  function iconElement(icon, title) {
9
- const { src, alt = title, disableCompress } = getMediaImage(icon !== null && icon !== void 0 ? icon : {});
10
- return React.createElement(Image, { src: src, alt: alt, className: b('icon'), disableCompress: disableCompress });
9
+ const image = getMediaImage(icon !== null && icon !== void 0 ? icon : {});
10
+ return React.createElement(Image, Object.assign({}, image, { alt: title, className: b('icon') }));
11
11
  }
12
12
  const TutorialCard = (props) => {
13
13
  const { url, title, text, border, icon } = props;
@@ -1,4 +1,5 @@
1
- import { BaseProps, ImageProps } from '../../schema/validators/common';
1
+ import { BaseProps } from '../../schema/validators/common';
2
+ import { ImageProps } from '../../components/Image/schema';
2
3
  export const TutorialCard = {
3
4
  'tutorial-card': {
4
5
  additionalProperties: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravity-ui/page-constructor",
3
- "version": "1.2.1",
3
+ "version": "1.2.3-alpha.0",
4
4
  "description": "Gravity UI Page Constructor",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -121,5 +121,8 @@
121
121
  "*.{json,yaml,yml,md}": [
122
122
  "prettier --write"
123
123
  ]
124
+ },
125
+ "publishConfig": {
126
+ "tag": "alpha"
124
127
  }
125
128
  }
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { BackgroundImageProps, ButtonProps, ContentSize, ContentTextSize, ContentTheme, FileLinkProps, HeaderBreadCrumbsProps, HeaderImageSize, HeaderOffset, HeaderWidth, Justify, LinkProps, LinkTheme, MediaDirection, MediaProps, PreviewItemProps, PreviewRatioMediaContent, TextSize, TextTheme, ThemedImage, ThemedMediaProps, ThemedMediaVideoProps, TitleProps, LegendTableMarkerType, AnchorProps, TitleBaseProps, Animatable, BlockHeaderProps } from './common';
2
+ import { BackgroundImageProps, ButtonProps, ContentSize, ContentTextSize, ContentTheme, FileLinkProps, HeaderBreadCrumbsProps, HeaderImageSize, HeaderOffset, HeaderWidth, Justify, LinkProps, LinkTheme, MediaDirection, MediaProps, PreviewItemProps, PreviewRatioMediaContent, TextSize, TextTheme, ThemedImage, ThemedMediaProps, ThemedMediaVideoProps, TitleProps, LegendTableMarkerType, AnchorProps, TitleBaseProps, Animatable, BlockHeaderProps, ImageDeviceProps, ImageProps } from './common';
3
3
  import { ThemeSupporting } from '../../utils';
4
4
  import { GridColumnSize, GridColumnSizesType } from '../../grid/types';
5
5
  import { BannerCardProps, SubBlock } from './sub-blocks';
@@ -79,7 +79,8 @@ export interface HeaderSliderBlockProps extends Omit<SliderProps, 'title' | 'des
79
79
  }
80
80
  interface HeaderBackgroundProps {
81
81
  color?: string;
82
- url?: string;
82
+ url?: ImageProps;
83
+ /** @deprecated put it in url props instead */
83
84
  disableCompress?: boolean;
84
85
  }
85
86
  export interface HeaderBlockBackground extends Partial<HeaderBackgroundProps>, Partial<MediaProps> {
@@ -151,12 +152,7 @@ export interface BannerBlockProps extends BannerCardProps, Animatable {
151
152
  }
152
153
  export interface CompaniesBlockProps extends Animatable {
153
154
  title: string;
154
- images: ThemeSupporting<{
155
- desktop: string;
156
- tablet: string;
157
- mobile: string;
158
- alt?: string;
159
- }>;
155
+ images: ThemeSupporting<ImageDeviceProps>;
160
156
  }
161
157
  export interface MediaContentProps {
162
158
  title: string;
@@ -81,17 +81,21 @@ interface LoopProps {
81
81
  start: number;
82
82
  end?: number;
83
83
  }
84
- export interface ImageObjectProps {
85
- src: string;
84
+ export interface ImageInfoProps {
86
85
  alt?: string;
87
86
  disableCompress?: boolean;
88
87
  }
89
- export declare type ImageProps = string | ImageObjectProps;
88
+ export interface ImageObjectProps extends ImageInfoProps {
89
+ src: string;
90
+ }
91
+ export interface ImageDeviceProps extends ImageInfoProps {
92
+ desktop: string;
93
+ mobile: string;
94
+ tablet?: string;
95
+ }
96
+ export declare type ImageProps = string | ImageObjectProps | ImageDeviceProps;
90
97
  export declare type ThemedImage = ThemeSupporting<ImageProps>;
91
- export interface BackgroundImageProps extends React.HTMLProps<HTMLDivElement> {
92
- src?: string;
93
- alt?: string;
94
- disableCompress?: boolean;
98
+ export interface BackgroundImageProps extends React.HTMLProps<HTMLDivElement>, Partial<ImageDeviceProps>, Partial<ImageObjectProps> {
95
99
  style?: CSSProperties;
96
100
  imageClassName?: string;
97
101
  hide?: boolean;
package/styles/styles.css CHANGED
@@ -226,13 +226,21 @@ unpredictable css rules order in build */
226
226
  .yfm_constructor.yfm_constructor_notice p {
227
227
  color: var(--yc-color-text-secondary);
228
228
  }
229
- .yfm_constructor.yfm_constructor p,
230
- .yfm_constructor.yfm_constructor li {
229
+ .yfm_constructor.yfm_constructor ul,
230
+ .yfm_constructor.yfm_constructor ol,
231
+ .yfm_constructor.yfm_constructor li,
232
+ .yfm_constructor.yfm_constructor p {
231
233
  margin: 0 0 12px;
232
234
  }
233
235
  .yfm_constructor.yfm_constructor p strong {
234
236
  font-weight: 500;
235
237
  }
238
+ .yfm_constructor.yfm_constructor_size_s ul,
239
+ .yfm_constructor.yfm_constructor_size_s ol,
240
+ .yfm_constructor.yfm_constructor_size_s li,
241
+ .yfm_constructor.yfm_constructor_size_s p {
242
+ margin-bottom: 8px;
243
+ }
236
244
 
237
245
  .yfm_constructor_theme_dark p {
238
246
  color: var(--yc-color-text-light-primary);
@@ -284,13 +292,17 @@ unpredictable css rules order in build */
284
292
  background-color: var(--yc-color-base-generic);
285
293
  }
286
294
 
295
+ .yfm_constructor_table {
296
+ /* stylelint-enable declaration-no-important */
297
+ }
287
298
  .yfm_constructor_table table {
288
299
  border: 0;
289
300
  table-layout: fixed;
290
301
  }
291
302
  .yfm_constructor_table thead,
292
303
  .yfm_constructor_table tr {
293
- background-color: transparent !important; /* stylelint-disable-line declaration-no-important */
304
+ /* stylelint-disable declaration-no-important */
305
+ background-color: transparent !important;
294
306
  }
295
307
  .yfm_constructor_table tbody tr {
296
308
  border-top: 1px solid var(--yc-color-line-generic);
@@ -300,7 +312,7 @@ unpredictable css rules order in build */
300
312
  min-width: 120px;
301
313
  width: 120px;
302
314
  box-sizing: content-box;
303
- white-space: inherit !important; /* stylelint-disable-line declaration-no-important */
315
+ white-space: inherit !important;
304
316
  }
305
317
  .yfm_constructor_table td:first-child,
306
318
  .yfm_constructor_table th:first-child {
@@ -308,5 +320,5 @@ unpredictable css rules order in build */
308
320
  width: 172px;
309
321
  }
310
322
  .yfm_constructor_table th {
311
- text-align: left !important; /* stylelint-disable-line declaration-no-important */
323
+ text-align: left !important;
312
324
  }
package/styles/yfm.scss CHANGED
@@ -34,14 +34,25 @@
34
34
  }
35
35
  }
36
36
 
37
- p,
38
- li {
37
+ ul,
38
+ ol,
39
+ li,
40
+ p {
39
41
  margin: 0 0 $indentXXS;
40
42
  }
41
43
 
42
44
  p strong {
43
45
  font-weight: 500;
44
46
  }
47
+
48
+ &_size_s {
49
+ ul,
50
+ ol,
51
+ li,
52
+ p {
53
+ margin-bottom: $indentXXXS;
54
+ }
55
+ }
45
56
  }
46
57
 
47
58
  &_theme_dark {
@@ -106,7 +117,8 @@
106
117
 
107
118
  thead,
108
119
  tr {
109
- background-color: transparent !important; /* stylelint-disable-line declaration-no-important */
120
+ /* stylelint-disable declaration-no-important */
121
+ background-color: transparent !important;
110
122
  }
111
123
 
112
124
  tbody tr {
@@ -118,7 +130,7 @@
118
130
  min-width: $columnWidth;
119
131
  width: $columnWidth;
120
132
  box-sizing: content-box;
121
- white-space: inherit !important; /* stylelint-disable-line declaration-no-important */
133
+ white-space: inherit !important;
122
134
 
123
135
  &:first-child {
124
136
  min-width: $firstColumnWidth;
@@ -127,6 +139,7 @@
127
139
  }
128
140
 
129
141
  th {
130
- text-align: left !important; /* stylelint-disable-line declaration-no-important */
142
+ text-align: left !important;
131
143
  }
144
+ /* stylelint-enable declaration-no-important */
132
145
  }