Skip to content

Commit 878ae63

Browse files
committed
Make it so Pivotal Tracker shows up nice on thin screens
1 parent c1dd317 commit 878ae63

File tree

2 files changed

+21
-7
lines changed

2 files changed

+21
-7
lines changed

assets/style.css

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -183,12 +183,6 @@ a:hover {
183183
float: right;
184184
}
185185

186-
@media (max-width: 500px) {
187-
.featured-user .attribution-logo {
188-
display: none;
189-
}
190-
}
191-
192186
.featured-user .attribution-author {
193187
width: 300px;
194188
display: block;
@@ -204,9 +198,28 @@ a:hover {
204198
margin: 0;
205199
}
206200

201+
@media (max-width: 500px) {
202+
.featured-user .quote:after {
203+
right: calc(50% - 20px);
204+
}
205+
.featured-user .attribution {
206+
height: auto;
207+
}
208+
.featured-user .attribution-logo {
209+
float: none;
210+
width: 200px;
211+
display: block;
212+
margin-left: auto;
213+
margin-right: auto;
214+
}
215+
.featured-user .attribution-author {
216+
float: none;
217+
width: 100%;
218+
}
219+
}
207220

208-
/* top bar */
209221

222+
/* top bar */
210223

211224
#tabs {
212225
padding: 1em;

src/pages/home.elm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ userSection =
250250
, "background-image" => ("url('" ++ toLogoSrc "PivotalTracker" "svg" ++ "')")
251251
, "background-repeat" => "no-repeat"
252252
, "background-position" => "center"
253+
, "display" => "block"
253254
]
254255
]
255256
[]

0 commit comments

Comments
 (0)