Skip to content
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.

Commit

Permalink
fix(style): default input should be 100% wide
Browse files Browse the repository at this point in the history
That's the only default styling we want to provide.
  • Loading branch information
vvo committed Apr 25, 2016
1 parent a0bd346 commit 51472e4
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 12 deletions.
13 changes: 13 additions & 0 deletions docs/source/bootstrap.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
layout: bootstrap
---

<h1>Example using bootstrap</h1>

<input type="search" class="form-control" id="test" />

<script>
places({
container: document.querySelector('#test')
});
</script>
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,20 @@
<meta charset="utf-8">
<meta content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" name="viewport">

<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">

<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap-theme.min.css" integrity="sha384-fLW2N01lMqjakBkx3l/M9EahuwpSfeNvV63J5ezn3uZzapT0u7EYsXMjQV+0En5r" crossorigin="anonymous">

<!-- Always force latest IE rendering engine or request Chrome Frame -->
<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
<title>Algolia Places | No style test</title>
<%= javascript_include_tag config[:places_lib_url] %>
<style>
body {
font-family: Sans
font-family: Sans;
padding: 3em;
}
</style>
</head>
Expand Down
11 changes: 0 additions & 11 deletions docs/source/nostyle.html.erb

This file was deleted.

4 changes: 4 additions & 0 deletions src/places.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
.algolia-places.algolia-places-styled {
width: 100%;

.ap-input, .ap-hint {
width: 100%;
}

.ap-input:hover ~ .ap-input-icon svg,
.ap-input:focus ~ .ap-input-icon svg,
.ap-input-icon:hover svg {
Expand Down

0 comments on commit 51472e4

Please sign in to comment.