Skip to content

Commit e6c2249

Browse files
committed
tidy up alignment of blocks
1 parent 13b5273 commit e6c2249

File tree

5 files changed

+28
-19
lines changed

5 files changed

+28
-19
lines changed

_layouts/about.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@
99
{% include photo.html url="/img/features/iot.jpg" %}
1010

1111
<section class="feature-block block grey-bg slash-shadow slash-top">
12-
<div class="block-inner grid">
12+
<div class="block-inner block-inner-right grid">
13+
<div class="col-1-2">
14+
<img src="/img/illustrations/{{ page.block1-illustration }}" alt="">
15+
</div>
1316
<div class="col-1-2">
1417
<h2>{{ page.block1-title }}</h2>
1518
<p class="delta">{{ page.block1-summary-lrg }}</p>
1619
<p class="epsilon">{{ page.block1-summary }}</p>
1720
</div>
18-
<div class="col-1-2">
19-
<img src="/img/illustrations/{{ page.block1-illustration }}" alt="">
20-
</div>
2121
</div>
2222
</section>
2323

@@ -37,16 +37,16 @@ <h2>{{ page.block2-title }}</h2>
3737
{% include photo.html url="/img/features/hackday.jpg" %}
3838

3939
<section id="awards" class="feature-block block block-light slash-shadow slash-top pink-bg">
40-
<div class="block-inner grid">
40+
<div class="block-inner block-inner-right grid">
41+
<div class="col-1-2">
42+
<img src="/img/illustrations/{{ page.block3-illustration }}" alt="">
43+
</div>
4144
<div class="col-1-2">
4245
<h2>{{ page.block3-title }}</h2>
4346
<p class="delta">{{ page.block3-summary-lrg }}</p>
4447
<p class="epsilon">{{ page.block3-summary }}</p>
4548
<!-- <a class="btn btn-block btn-med btn-white btn-play">Team Hacking</a> -->
4649
</div>
47-
<div class="col-1-2">
48-
<img src="/img/illustrations/{{ page.block3-illustration }}" alt="">
49-
</div>
5050
</div>
5151
</section>
5252

_layouts/home.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@ <h3>{{ page.expertise-one-title }}</h3>
3939
</div>
4040
</div>
4141
<div class="feature-block block block-light blue-dark5-bg">
42-
<div class="block-inner grid">
42+
<div class="block-inner block-inner-right grid">
43+
<div class="col-1-2">
44+
<img src="/img/illustrations/{{ page.expertise-two-illustration }}" alt="">
45+
</div>
4346
<div class="col-1-2 text-right">
4447
<h3>{{ page.expertise-two-title }}</h3>
4548
<p>{{ page.expertise-two-summary }}</p>
4649
</div>
47-
<div class="col-1-2">
48-
<img src="/img/illustrations/{{ page.expertise-two-illustration }}" alt="">
49-
</div>
5050
</div>
5151
</div>
5252
<div class="feature-block block block-light">

_sass/components/blocks/_base.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,3 +96,13 @@
9696
bottom: auto;
9797
}
9898
}
99+
100+
@media screen and ( min-width: $medium ) {
101+
.block-inner-right {
102+
direction: rtl;
103+
104+
* {
105+
direction: ltr;
106+
}
107+
}
108+
}

_sass/components/blocks/_feature.scss

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,19 @@
1616

1717
[class*='col-'] {
1818
vertical-align: middle;
19+
20+
@media screen and ( max-width: $medium ) {
21+
width: 100%;
22+
display: block;
23+
}
1924
}
2025

2126
img {
2227
margin: 10px 15%;
2328
width: 70%;
2429

2530
@media screen and ( max-width: $medium ) {
26-
margin: 20px 25%;
27-
width: 50%;
31+
margin: 0 0 40px;
2832
}
2933
}
3034

_sass/pages/_home.scss

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
.expertise-block {
22
padding-bottom: 0;
33

4-
.feature-block:last-of-type {
5-
padding-top: 60px;
6-
padding-bottom: 60px;
7-
}
8-
94
.intro-block {
105
padding-bottom: 60px;
116
border-bottom: 3px solid rgba(black, 0.1);

0 commit comments

Comments
 (0)