Skip to content

Commit 3753ca6

Browse files
authored
Merge pull request #308 from canjs/280-mobile-hero
Fix the tortoise & hare images on mobile
2 parents a6dfa69 + 0944064 commit 3753ca6

File tree

1 file changed

+21
-5
lines changed

1 file changed

+21
-5
lines changed

static/article-title.less

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,29 @@ ul.title-links {
8383

8484
/* Homepage hero images*/
8585
.hero-images {
86-
border: 1px solid #EEE;
87-
padding: 30px;
86+
margin-bottom: @gutter;
87+
88+
@media screen and (min-width: @breakpoint) {
89+
border: 1px solid #EEE;
90+
padding: @gutter * 2;
91+
}
92+
8893
.tortoise {
8994
float: right;
90-
padding-right: 40px;
95+
width: 55%;
96+
97+
@media screen and (min-width: @breakpoint) {
98+
padding-right: @gutter * 2;
99+
width: auto;
100+
}
91101
}
102+
92103
.hare {
93-
padding-left: 40px;
104+
width: 45%;
105+
106+
@media screen and (min-width: @breakpoint) {
107+
padding-left: @gutter * 2;
108+
width: auto;
109+
}
94110
}
95-
}
111+
}

0 commit comments

Comments
 (0)