Skip to content

Commit d0dcc59

Browse files
committed
fix: content layout centered styles
1 parent 560b867 commit d0dcc59

File tree

4 files changed

+12
-34
lines changed

4 files changed

+12
-34
lines changed

src/blocks/ContentLayout/ContentLayout.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,6 @@ $block: '.#{$ns}content-layout-block';
2828
&_centered {
2929
margin-left: auto;
3030
margin-right: auto;
31-
32-
#{$block}__file {
33-
justify-content: center;
34-
}
3531
}
3632

3733
a {

src/blocks/ContentLayout/__stories__/ContentLayout.stories.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ export const WithFiles = DefaultTemplate.bind([]);
158158
export const Size = SizesTemplate.bind([]);
159159
export const WithBackgroundSizeS = DefaultTemplate.bind([]);
160160
export const WithImageAndBackgroundSizeL = DefaultTemplate.bind([]);
161-
export const WithImageSizeLCentered = DefaultTemplate.bind([]);
161+
export const WithImageSizeSCentered = DefaultTemplate.bind([]);
162162
export const Theme = ThemesTemplate.bind([]);
163163
export const TextWidth = TextWidthTemplate.bind([]);
164164
export const TextWidthWithoutTitle = TextWidthTemplateWithoutTitle.bind([]);
@@ -169,7 +169,7 @@ Size.args = data.size.content as ContentLayoutBlockProps;
169169
WithBackgroundSizeS.args = data.withBackgroundSizeS.content as ContentLayoutBlockProps;
170170
WithImageAndBackgroundSizeL.args = data.withImageAndBackgroundSizeL
171171
.content as ContentLayoutBlockProps;
172-
WithImageSizeLCentered.args = data.withImageSizeLCentered.content as ContentLayoutBlockProps;
172+
WithImageSizeSCentered.args = data.withImageSizeSCentered.content as ContentLayoutBlockProps;
173173
Theme.args = data.theme.content as ContentLayoutBlockProps;
174174
TextWidth.args = data.textWidth.content as ContentLayoutBlockProps;
175175
TextWidthWithoutTitle.args = data.textWidthWithoutTitle.content as ContentLayoutBlockProps;

src/blocks/ContentLayout/__stories__/data.json

Lines changed: 2 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@
433433
]
434434
}
435435
},
436-
"withImageSizeLCentered": {
436+
"withImageSizeSCentered": {
437437
"content": {
438438
"type": "content-layout-block",
439439
"properties": {
@@ -467,33 +467,7 @@
467467
"url": "/#contact-form"
468468
}
469469
]
470-
},
471-
"fileContent": [
472-
{
473-
"href": "https://yandex.xls",
474-
"text": "Certificate of Compliance (600 KB)"
475-
},
476-
{
477-
"href": "https://yandex.fig",
478-
"text": "PNG, JPG, and SVG formats in Figma"
479-
},
480-
{
481-
"href": "https://yandex.pdf",
482-
"text": "Requirements and Recommendations for the PCI DSS (1.3 MB)"
483-
},
484-
{
485-
"href": "https://yandex.zip",
486-
"text": "Archive with other logo and icon formats"
487-
},
488-
{
489-
"href": "https://yandex.doc",
490-
"text": "Microsoft Word document"
491-
},
492-
{
493-
"href": "https://yandex.ppt",
494-
"text": "PPR"
495-
}
496-
]
470+
}
497471
}
498472
},
499473
"default": {

src/sub-blocks/Content/Content.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,14 @@ $darkSecondary: var(--yc-color-text-dark-secondary);
1818
}
1919

2020
#{$block} {
21+
&__notice,
22+
&__text {
23+
.yfm ol,
24+
.yfm ul {
25+
padding-left: 1.4em;
26+
}
27+
}
28+
2129
&__notice {
2230
@include add-specificity(&) {
2331
.yfm,

0 commit comments

Comments
 (0)