Skip to content

Commit 174abb9

Browse files
committed
Style marketing boxes for phones and tablets.
1 parent e878b5f commit 174abb9

2 files changed

Lines changed: 39 additions & 12 deletions

File tree

index.html

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,21 +108,18 @@
108108
<!-- Three columns of text below the carousel -->
109109
<div class="row">
110110
<div class="span4">
111-
<!--<img class="img-circle" data-src="holder.js/140x140">-->
112111
<i class="icon-tag marketing-huge-icon"></i>
113112
<h2>About</h2>
114113
<p>Devilry is a system optimized for delivering and correcting electronic deliveries. This narrow focus enables us to avoid unneeded clutter common to less focused systems.</p>
115114
<p><a class="btn" href="#about">Read more&raquo;</a></p>
116115
</div><!-- /.span4 -->
117116
<div class="span4">
118-
<!--<img class="img-circle" data-src="holder.js/140x140">-->
119117
<i class="icon-comments marketing-huge-icon"></i>
120118
<h2>Help</h2>
121119
<p>Submit bugs, problems, improvements or new features via our issue tracker, or help other users on our Q&amp;A forum.</p>
122120
<p><a class="btn" href="#help">Read more&raquo;</a></p>
123121
</div><!-- /.span4 -->
124122
<div class="span4">
125-
<!--<img class="img-circle" data-src="holder.js/140x140">-->
126123
<i class="icon-coffee marketing-huge-icon"></i>
127124
<h2>Develop</h2>
128125
<p>Devilry is open source, and we have an open community. This means that you can help us develop Devilry.</p>

less/marketing.less

Lines changed: 39 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,49 @@
11
.marketing {
22
margin-top: 40px;
3-
.marketing-huge-icon {
4-
font-size: 150px;
5-
}
63

74
/* Center align the text within the three columns below the carousel */
85
.span4 {
96
text-align: center;
10-
p {
11-
margin-left: 10px;
12-
margin-right: 10px;
7+
.marketing-huge-icon {
8+
font-size: 150px;
9+
}
10+
h2 {
11+
font-weight: normal;
12+
}
13+
@media (max-width: 767px) { /* Phones to portrait tablet */
14+
position: relative;
15+
.marketing-huge-icon {
16+
position: absolute;
17+
top: 30px;
18+
left: 0;
19+
font-size: 100px;
20+
}
21+
padding-left: 130px;
22+
padding-top: 6px;
23+
text-align: left;
24+
min-height: 180px;
25+
margin-bottom: 30px;
26+
}
27+
@media (max-width: 500px) { /* Phones */
28+
h2 {
29+
margin: 0;
30+
padding: 0;
31+
position: absolute;
32+
top: 0;
33+
left: 0;
34+
}
35+
.marketing-huge-icon {
36+
top: 50px;
37+
}
38+
}
39+
@media (max-width: 280px) { /* Very small phones */
40+
padding-left: 0;
41+
h2,
42+
.marketing-huge-icon {
43+
padding: 0 0 10px 0;
44+
position: static;
45+
}
1346
}
14-
}
15-
h2 {
16-
font-weight: normal;
1747
}
1848
}
1949

0 commit comments

Comments
 (0)