Skip to content

Commit d0ed19a

Browse files
Further fixes for the rendering of text (avoiding wrapping) - this time using firefox.
Added changing of the order of collapsed columns in services section to have title / content and then image below. Fixed disappearing divider in the services section.
1 parent b3acb95 commit d0ed19a

File tree

2 files changed

+59
-11
lines changed

2 files changed

+59
-11
lines changed

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,10 +176,10 @@ <h2 class="section-title">What Do We Do?</h2>
176176

177177

178178
<div class="row">
179-
<div class="no-gutters__col col-md-6">
179+
<div class="second-on-mobile no-gutters__col col-md-6">
180180
<img class="services__img img-fluid rounded" src="static/images/services/educating_devs_840x561px.jpg">
181181
</div>
182-
<div class="no-gutters__col col-md-6">
182+
<div class="first-on-mobile no-gutters__col col-md-6">
183183
<h2 class="services__title text-right">Helping Beginners To Get Good</h2>
184184
<hr class="services__divider-right">
185185
<p class="services__content text-right">We are open to people who just started to program and need guidance and mentorship. We can help you become a better programmer by collaborating with others and reading loads of code. Come and try it - you will not be disappointed. We normally have a mixture of seasoned and new coders during every sprint so advice is literally at hands reach.</p>

static/css/style.css

Lines changed: 57 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,29 @@
2323
padding-right: 0;
2424
}
2525

26+
/* Classes to change order of collapsed columns on mobiles*/
27+
@media (max-width: 767px) {
28+
.first-on-mobile {
29+
-webkit-order: 1;
30+
order: 1;
31+
}
32+
33+
.second-on-mobile {
34+
-webkit-order: 2;
35+
order: 2;
36+
}
37+
38+
.third-on-mobile {
39+
-webkit-order: 3;
40+
order: 3;
41+
}
42+
43+
.fourth-on-mobile {
44+
-webkit-order: 4;
45+
order: 4;
46+
}
47+
}
48+
2649
/* Responsive background image handling*/
2750
[data-image-type="responsive"] {
2851
background-size: cover;
@@ -241,6 +264,7 @@
241264

242265
.events__img {
243266
border: #072948 1px solid;
267+
width: 100%;
244268
}
245269

246270
.events__title-container {
@@ -338,29 +362,43 @@
338362
.services__divider-right {
339363
width: 50%;
340364
margin-right:5%;
341-
margin-top: 1%;
342-
margin-bottom: 1%;
365+
margin-top: 0;
366+
margin-bottom: 0;
367+
padding-top: 1%;
368+
padding-bottom: 1%;
343369
}
344370

345371
.services__divider-left {
346372
width: 50%;
347373
margin-left:5%;
348-
margin-top: 1%;
349-
margin-bottom: 1%;
374+
margin-top: 0;
375+
margin-bottom: 0;
376+
padding-top: 1%;
377+
padding-bottom: 1%;
378+
}
379+
380+
.services__img {
381+
width: 100%;
382+
}
383+
384+
@media (max-width: 767px) {
385+
.services__img {
386+
margin-bottom: 10%;
387+
}
350388
}
351389

352390
.services__title {
353391
font-family: 'Encode Sans Expanded', sans-serif;
354392
color: #072948;
355-
font-size: 1.7em;
393+
font-size: 1.65em;
356394
padding-left: 5%;
357395
padding-right: 5%;
358-
margin-top: 5%;
396+
margin-top: 1%;
359397
margin-bottom: 2.5%;
360398
}
361399

362400
.services__content {
363-
font-size: 1.0em;
401+
font-size: 1em;
364402
text-align: center;
365403
font-family: 'Playfair Display', serif;
366404
padding-left: 5%;
@@ -369,11 +407,21 @@
369407

370408
@media (min-width: 768px) {
371409
.services__title {
372-
font-size: 1.4em;
410+
margin-top: 2%;
411+
font-size: 1.33em;
412+
}
413+
.services__content {
414+
font-size: 0.95em;
373415
}
374416
}
375417

376-
@media (min-width: 1200px) {
418+
@media (min-width: 800px) {
419+
.services__title {
420+
margin-top: 5%;
421+
}
422+
}
423+
424+
@media (min-width: 1228px) {
377425
.services__divider-left {
378426
margin-left: 10%;
379427
}

0 commit comments

Comments
 (0)