Skip to content

Commit

Permalink
fix search bar position
Browse files Browse the repository at this point in the history
  • Loading branch information
mbektimirov committed Jan 21, 2015
1 parent 503f295 commit 9f5d9a1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<link href="leaflet.css" rel="stylesheet">
<link href="app.css" rel="stylesheet">
</head>
<body id="root" class="grade-a platform-browser platform-macintel platform-ready menu-open">
<body id="root" class="grade-a platform-browser platform-macintel platform-ready menu-open has-map">
<script src="external-libs-bundle.js"></script>
<script src="app.js"></script>
</body>
Expand Down
2 changes: 1 addition & 1 deletion src/scripts/ui/SearchBar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ var SearchBar = React.createClass({
var binding = this.getBinding();

return (
<div className="bar-stable">
<div className="vmp-search-bar bar-stable">
<div className="bar-stable bar bar-header item-input-inset">
<button className="button button-icon button-clear ion-navicon" onClick={toggle(binding, 'menuOpen')} />
<label className="item-input-wrapper">
Expand Down
8 changes: 8 additions & 0 deletions src/styles/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,11 @@
cursor: auto;
background: url('/images/vmp_map_back.png');
}

.has-map .vmp-search-bar {
z-index: 100;
top: 0;
right: 0;
position: absolute;
left: 0;
}

0 comments on commit 9f5d9a1

Please sign in to comment.