Skip to content

Commit d576fd4

Browse files
bitboxerguyskk
andauthored
Add support for mobile screen sizes (#621)
Co-authored-by: guyskk <[email protected]>
1 parent 14a986c commit d576fd4

File tree

1 file changed

+37
-2
lines changed

1 file changed

+37
-2
lines changed

app/assets/stylesheets/application.css

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,23 @@ code {
5151
border-top: 7px solid #484948;
5252
}
5353

54+
@media (max-width: 768px) {
55+
#footer .row-fluid > * {
56+
display: none;
57+
}
58+
59+
#footer .row-fluid > .span6:first-child {
60+
display: block;
61+
width: 100%;
62+
text-align: center;
63+
}
64+
65+
#frame {
66+
padding-top: 7px;
67+
border-top: none;
68+
}
69+
}
70+
5471
.alert {
5572
text-align: center;
5673
-webkit-border-radius: 0px;
@@ -108,6 +125,13 @@ code {
108125
margin-bottom: 14px;
109126
}
110127

128+
@media (max-width: 768px) {
129+
#action-bar {
130+
margin-left: 8px;
131+
margin-right: 8px;
132+
}
133+
}
134+
111135
ul#story-list, ul#feed-list {
112136
list-style-type: none;
113137
margin-left: 0px;
@@ -176,7 +200,7 @@ li.story.open .story-preview {
176200
}
177201

178202
.story-lead {
179-
color: #e5e5e5;
203+
color: #c5c5c5;
180204
}
181205

182206
.story-published {
@@ -251,7 +275,7 @@ li.story.open .story-body-container {
251275
}
252276

253277
p.story-details {
254-
margin-right: 5px;
278+
margin-right: 14px;
255279
overflow: hidden;
256280
}
257281

@@ -369,6 +393,17 @@ li.feed .feed-last-updated {
369393
text-align: right;
370394
}
371395

396+
@media (max-width: 768px) {
397+
li.feed .feed-last-updated {
398+
display: none;
399+
}
400+
401+
li.feed .row-fluid .span2 {
402+
float: right;
403+
margin-right: 21px;
404+
}
405+
}
406+
372407
li.feed .last-updated {
373408
font-size: 10px;
374409
}

0 commit comments

Comments
 (0)