Skip to content
This repository has been archived by the owner on Aug 17, 2018. It is now read-only.

Commit

Permalink
[hotfix] center the view (#57)
Browse files Browse the repository at this point in the history
Prodded by @phisaz.
  • Loading branch information
bassosimone committed Apr 20, 2016
1 parent c513061 commit aad31a2
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
8 changes: 8 additions & 0 deletions static/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,11 @@ tr:hover {
span.policymaker_name {
font-weight: bold;
}

.center {
margin-left: auto;
margin-right: auto;
margin-top: 3px;
margin-bottom: 3px;
text-align: center;
}
8 changes: 5 additions & 3 deletions static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@
<link rel="stylesheet" type="text/css" href="app.css">
</head>
<body ng-app="roarmap-h2020-view">
<a href="#/search">[search]</a>
<a href="#/by/country">[by country]</a>
<a href="#/by/type">[by type]</a>
<div class="center">
<a href="#/search">[search]</a>
<a href="#/by/country">[by country]</a>
<a href="#/by/type">[by type]</a>
</div>
<div ng-view></div>
<script src="app.bundle.js"></script>
</body>
Expand Down
2 changes: 1 addition & 1 deletion static/partials/search.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div ng-controller="SearchController">

<div>
<div class="center">
<form ng-submit="search()">
<input type="text" ng-model="g.terms">
<button>Search</button>
Expand Down

0 comments on commit aad31a2

Please sign in to comment.