Skip to content

Commit 8cefbaa

Browse files
committed
Fixed layout when there are less than 3 features in a row
1 parent 280ce2e commit 8cefbaa

File tree

3 files changed

+29
-7
lines changed

3 files changed

+29
-7
lines changed

_config.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ app_price : 4.99
1010
ios_app_id :
1111
android_app_id :
1212

13+
# Icon and screenshot
14+
app_icon :
15+
app_video :
16+
app_screenshot :
17+
1318
# Social Links
1419
facebook_username :
1520
twitter_username : ebaehr
@@ -18,12 +23,15 @@ email_address : [email protected]
1823

1924
# Features
2025
features :
21-
- title : First Feature
22-
description : A good description
23-
fontawesome_icon_name : adjust
24-
- title : Another feature
25-
description : Another good description
26+
- title : Feature 1
27+
description : Present the features of your app with the dynamic Jekyll theme
28+
fontawesome_icon_name : magic
29+
- title : Feature 2
30+
description : Show your app in the context of an iPhone
2631
fontawesome_icon_name : mobile
32+
- title : Feature 3
33+
description : Adjust colors, backgrounds and typography
34+
fontawesome_icon_name : adjust
2735

2836
# Theme Settings
2937
accent_color : #000000

_sass/layout.scss

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,15 +185,25 @@ nav > ul li a {
185185
display: flex;
186186
flex: 0 1 auto;
187187
align-content: flex-start;
188-
justify-content: space-between;
188+
justify-content: center;
189189
flex-grow: 1;
190190
flex-wrap: wrap;
191191
}
192192

193193
.feature {
194194
display: flex;
195195
padding-top: 93px;
196-
width: calc(100%/3 - 30px);
196+
padding-left: 15px;
197+
padding-right: 15px;
198+
width: calc(100%/3);
199+
}
200+
201+
.feature:nth-child(3n) {
202+
padding-right: 0px;
203+
}
204+
205+
.feature:nth-child(0n+1) {
206+
padding-left: 0px;
197207
}
198208

199209
.iconBack {

index.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
{% include header.html %}
1414

1515
<div class="iphonePreview">
16+
{% if %}
17+
18+
19+
{% else %}
1620
<svg width="0" height="0">
1721
<defs>
1822
<clipPath id="screenMask">

0 commit comments

Comments
 (0)