Skip to content

Commit 2497f42

Browse files
committed
Fixes for styling, scrolling
1 parent 1f9ee98 commit 2497f42

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

css/style.css

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,13 @@ p {
247247
#yearGrid .columns {
248248
padding: 0 10px;
249249
flex: 0 0 auto;
250+
margin-bottom: 10px;
251+
}
252+
253+
@media (max-width: 549px) {
254+
#yearGrid .row {
255+
margin-bottom: 0;
256+
}
250257
}
251258

252259
.year-button,
@@ -309,4 +316,11 @@ p {
309316
overflow: visible;
310317
line-height: 1.2;
311318
padding: 10px 5px;
319+
color: #428BCA;
320+
}
321+
322+
#monthNav .button:hover,
323+
#monthNav .button:focus {
324+
color: #05AADC;
325+
border-color: #888;
312326
}

js/app.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ app.controller('mainController', ['$http', '$scope', '$window', '$location', fun
4747
$scope.showDirectory = function() {
4848
$scope.currentView = 'homepage';
4949
$scope.selectedYear = null;
50-
$window.history.pushState({view: 'homepage'}, 'Hackalist Archive', '/');
50+
$window.history.pushState({view: 'homepage'}, 'Hackalist', '/');
5151
document.title = 'Hackalist';
5252
};
5353

@@ -58,6 +58,7 @@ app.controller('mainController', ['$http', '$scope', '$window', '$location', fun
5858
$window.history.pushState({view: 'year', year: year}, 'Hackalist - ' + year, '/?year=' + year);
5959
document.title = 'Hackalist - ' + year;
6060
loadYear(year);
61+
$window.scrollTo(0, 0);
6162
};
6263

6364
$scope.applicable = function(hackathon) {

0 commit comments

Comments
 (0)