Skip to content

Commit 095c21a

Browse files
committed
more mobile tweaks\
1 parent 6efabd8 commit 095c21a

File tree

3 files changed

+22
-29
lines changed

3 files changed

+22
-29
lines changed

_styles/default.sass

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -62,35 +62,29 @@ $other: min-width 476px
6262
@include background-size(100%,auto)
6363
@include breakpoint($mobile)
6464
h2
65-
margin-bottom: 150px
65+
padding: 0 0.5em
66+
p
67+
margin: 0
68+
padding: 0.5em
6669
@include breakpoint($other)
6770
height: 560px
6871
h2
69-
float: left
70-
margin: 1em
71-
p
72+
top: 0.5em
73+
left: 1em
74+
h2, p
7275
position: absolute
76+
padding: 0.5em
77+
p
7378
right: 0.25em
7479
bottom: 0
7580
width: 80%
7681
background: rgba(16,16,16,0.8)
7782
h2
7883
background: white
7984
h2, p
80-
padding: 0.5em
8185
font-size: 1.5em
8286
p
83-
clear: left
8487
background: #222
8588
color: white
8689
a
8790
text-decoration: none
88-
89-
#folksy
90-
background: url('/images/folksy.png') no-repeat
91-
#summer_of_cycling
92-
background: url('/images/summer_of_cycling.png') no-repeat
93-
#helpout
94-
background: url('/images/helpout.png') no-repeat
95-
#foodhospital
96-
background: url('/images/foodhospital.png') no-repeat

index.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
<div class='carousel-inner'>
2626
<li id='folksy' class='item active'>
2727
<h2>Folksy</h2>
28+
<img alt='screenshot' src='/images/folksy.png' />
2829
<p>
2930
We performed consultancy for Folksy (a hand crafted goods market
3031
place) helping them launch a new flatrate payments plan for their
@@ -34,6 +35,7 @@ <h2>Folksy</h2>
3435
</li>
3536
<li id='summer_of_cycling' class='item'>
3637
<h2>Summer Of Cycling (Challenge for Change)</h2>
38+
<img alt='screenshot' src='/images/summer_of_cycling.png' />
3739
<p>
3840
We worked with challenge for change to produce a prototype "Pledge"
3941
application with photo sharing and integration with Facebook. All to
@@ -42,13 +44,15 @@ <h2>Summer Of Cycling (Challenge for Change)</h2>
4244
</li>
4345
<li id='helpout' class='item'>
4446
<h2>Help Out (FutureGov)</h2>
47+
<img alt='screenshot' src='/images/helpout.png' />
4548
<p>
4649
We helped FutureGov to produce a prototype web app to encourage civic
4750
action in and around Surrey for Surrey County Council.
4851
</P>
4952
</li>
5053
<li id='foodhospital' class='item'>
5154
<h2>Food Hospital (Mudlark/Channel4)</h2>
55+
<img alt='screenshot' src='/images/foodhospital.png' />
5256
<p>
5357
We supported Mudlark to develop an app for Channel4's Food Hospital
5458
show; accessible via the show's microsite, as a Facebook app and

styles/default.css

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -477,35 +477,30 @@ footer {
477477
background-size: 100%, auto; }
478478
@media screen and (max-width: 476px) {
479479
#page1 #work li h2, #page2 #work li h2 {
480-
margin-bottom: 150px; } }
480+
padding: 0 0.5em; }
481+
#page1 #work li p, #page2 #work li p {
482+
margin: 0;
483+
padding: 0.5em; } }
481484
@media screen and (min-width: 476px) {
482485
#page1 #work li, #page2 #work li {
483486
height: 560px; }
484487
#page1 #work li h2, #page2 #work li h2 {
485-
float: left;
486-
margin: 1em; }
487-
#page1 #work li p, #page2 #work li p {
488+
top: 0.5em;
489+
left: 1em; }
490+
#page1 #work li h2, #page1 #work li p, #page2 #work li h2, #page2 #work li p {
488491
position: absolute;
492+
padding: 0.5em; }
493+
#page1 #work li p, #page2 #work li p {
489494
right: 0.25em;
490495
bottom: 0;
491496
width: 80%;
492497
background: rgba(16, 16, 16, 0.8); } }
493498
#page1 #work li h2, #page2 #work li h2 {
494499
background: white; }
495500
#page1 #work li h2, #page1 #work li p, #page2 #work li h2, #page2 #work li p {
496-
padding: 0.5em;
497501
font-size: 1.5em; }
498502
#page1 #work li p, #page2 #work li p {
499-
clear: left;
500503
background: #222222;
501504
color: white; }
502505
#page1 #work a, #page2 #work a {
503506
text-decoration: none; }
504-
#page1 #work #folksy, #page2 #work #folksy {
505-
background: url("/images/folksy.png") no-repeat; }
506-
#page1 #work #summer_of_cycling, #page2 #work #summer_of_cycling {
507-
background: url("/images/summer_of_cycling.png") no-repeat; }
508-
#page1 #work #helpout, #page2 #work #helpout {
509-
background: url("/images/helpout.png") no-repeat; }
510-
#page1 #work #foodhospital, #page2 #work #foodhospital {
511-
background: url("/images/foodhospital.png") no-repeat; }

0 commit comments

Comments
 (0)