Skip to content

Commit 90ae8b3

Browse files
unknownunknown
unknown
authored and
unknown
committed
Made responsive
1 parent d53c9a4 commit 90ae8b3

File tree

1 file changed

+44
-3
lines changed

1 file changed

+44
-3
lines changed

app/assets/stylesheets/home.css.scss

+44-3
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,9 @@ p.info {
153153
article {
154154
font-family: $normalfamily;
155155
padding-left: 64px;
156-
margin-top: 30px;
156+
margin-top: 10px;
157157
padding-bottom: 5px;
158+
min-height: 64px;
158159
h2 {
159160
font-family: $titlefamily;
160161
font-size: 24px;
@@ -182,15 +183,17 @@ p.info {
182183
display: none;
183184
border: none;
184185
}
185-
&:hover .btn-edit, &:hover .btn-delete {
186+
&:hover>.btn-edit, &:hover>.btn-delete {
186187
display: inline-block;
187188
}
188189
}
189190
article.dvd {
190191
background: url("dvd.png") no-repeat;
192+
margin-top: 20px;
191193
}
192194
article.video {
193195
background: url("video.png") no-repeat;
196+
margin-top: 20px;
194197
}
195198
article.person {
196199
background: url("actor.png") no-repeat;
@@ -213,7 +216,6 @@ p.info {
213216
}
214217
}
215218
}
216-
217219
#content .imdb {
218220
border: 3px double $mainblue;
219221
float: right;
@@ -222,3 +224,42 @@ p.info {
222224
font-style: normal;
223225
}
224226
}
227+
228+
@media screen and (max-width: 650px) {
229+
hgroup {
230+
height: auto;
231+
h1 {
232+
display: block;
233+
width: 100%;
234+
text-align: center;
235+
margin: 0;
236+
padding-top: 10px;
237+
}
238+
nav {
239+
display: block;
240+
width: 100%;
241+
text-align: center;
242+
margin: 0;
243+
}
244+
nav a:first-child {
245+
margin-left: 0;
246+
}
247+
nav a {
248+
height: 40px;
249+
}
250+
}
251+
#center-content, #content {
252+
width: 90%;
253+
div.mainarea, div.optionsarea {
254+
display: block;
255+
width: auto;
256+
}
257+
div.optionsarea a {
258+
display: inline-block;
259+
}
260+
.imdb {
261+
float: none;
262+
width: auto;
263+
}
264+
}
265+
}

0 commit comments

Comments
 (0)