Skip to content

Commit 917f4e8

Browse files
authored
Merge pull request #720 from akeneo/API-1978-correct-next-step-bloc-ui-for-mobile-device
API-1978: Make regular Next Step block layout responsive
2 parents f1cf897 + 7029e3b commit 917f4e8

File tree

6 files changed

+13
-4
lines changed

6 files changed

+13
-4
lines changed

components/components.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,11 @@ button {
118118
line-height: 41px;
119119
margin-bottom: 20px;
120120
}
121+
@media (max-width: 767px) {
122+
.block-next-steps-title {
123+
text-align: center;
124+
}
125+
}
121126
.block-next-steps.block-next-steps-main .block-next-steps-text {
122127
margin-bottom: 30px;
123128
font-weight: 400;

components/components.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
<hr>
7575

7676
<div class="block-next-steps block-next-steps-alt">
77-
<img src="../content/img/illustrations/illus--Attribute.svg" width="140px">
77+
<img src="../content/img/illustrations/illus--Attribute.svg" width="140px" class="hidden-xs">
7878
<div class="block-next-steps-column">
7979
<div class="block-next-steps-title">Next Step</div>
8080
<div class="block-next-steps-text">Now that you collected your categories, we advise you to follow</div>

content/tutorials/guides/how-to-get-families-and-attributes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ attribute_code_list may be significant, very big! If you get an <a href="https:/
224224
:::
225225

226226
<div class="block-next-steps block-next-steps-alt">
227-
<img src="/img/illustrations/illus--Attribute.svg" width="140px">
227+
<img src="/img/illustrations/illus--Attribute.svg" width="140px" class="hidden-xs">
228228
<div class="block-next-steps-column">
229229
<div class="block-next-steps-title">Next Step</div>
230230
<div class="block-next-steps-text">Well done! Keep digging into the “App workflow” and follow the next tutorial!</div>

content/tutorials/guides/how-to-get-pim-product-information.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ Keep in mind that synchronizing media files might be time and resource-consuming
541541
:::
542542

543543
<div class="block-next-steps block-next-steps-alt">
544-
<img src="/img/illustrations/illus--Attribute.svg" width="140px">
544+
<img src="/img/illustrations/illus--Attribute.svg" width="140px" class="hidden-xs">
545545
<div class="block-next-steps-column">
546546
<div class="block-next-steps-title">Next Step</div>
547547
<div class="block-next-steps-text">Well done! Keep digging into the “App workflow” and follow the next tutorial!</div>

content/tutorials/guides/how-to-retrieve-pim-structure.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ storeCategoryTree(channel.category_tree);
201201
```
202202

203203
<div class="block-next-steps block-next-steps-alt">
204-
<img src="/img/illustrations/illus--Attribute.svg" width="140px">
204+
<img src="/img/illustrations/illus--Attribute.svg" width="140px" class="hidden-xs">
205205
<div class="block-next-steps-column">
206206
<div class="block-next-steps-title">Next Step</div>
207207
<div class="block-next-steps-text">Well done! Keep digging into the “App workflow” and follow the next tutorial!</div>

styles/guided-tutorial.less

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,10 @@
8989
font-size: 34px;
9090
line-height: 41px;
9191
margin-bottom: 20px;
92+
93+
@media (max-width: @screen-xs-max) {
94+
text-align: center;
95+
}
9296
}
9397
.block-next-steps.block-next-steps-main .block-next-steps-text {
9498
margin-bottom: 30px;

0 commit comments

Comments
 (0)