contour 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,10 @@
1
- ## 1.2.0
1
+ ## 1.2.1 (February 20, 2013)
2
+
3
+ ### Enhancements
4
+ - Flash notices are now displayed underneath the menu bar as a float
5
+ - Flash notices can be customized by overwriting the CSS for `.flash-block` and `.navbar-alert`
6
+
7
+ ## 1.2.0 (February 15, 2013)
2
8
 
3
9
  ### Breaking Changes
4
10
  - Removed support for the subnav partial
data/README.md CHANGED
@@ -35,7 +35,7 @@ cd blank_rails_project
35
35
  Modify `Gemfile` and add
36
36
 
37
37
  ```ruby
38
- gem 'contour', '~> 1.2.0'
38
+ gem 'contour', '~> 1.2.1'
39
39
  ```
40
40
 
41
41
  Run Bundle install
@@ -47,13 +47,16 @@ h1, h2, h3, h4, h5, h6 {
47
47
  }
48
48
 
49
49
  .navbar-alert {
50
- padding: 5px;
51
- line-height: 20px;
52
- margin: 0px 0px 3px 0px;
53
- }
54
-
55
- .navbar-alert .close {
56
- position: inherit;
57
- line-height: 16px;
58
- padding-left: 5px;
50
+ margin: 0px 0px 5px 0px;
51
+ border: 1px solid #515151;
52
+ -moz-box-shadow: 3px 3px 4px #515151;
53
+ -webkit-box-shadow: 3px 3px 4px #515151;
54
+ box-shadow: 3px 3px 4px #515151;
55
+ }
56
+
57
+ .flash-block {
58
+ position: absolute;
59
+ right: 0px;
60
+ top: -16px;
61
+ z-index: 1000;
59
62
  }
@@ -46,9 +46,6 @@
46
46
  <input id="<%= Contour.search_bar[:id] || 'global-search' %>" name="q" type="text" autocomplete="off" class="search-query" value="<%= params[:q] %>" placeholder="<%= Contour.search_bar[:placeholder] || 'Search' %>">
47
47
  </form>
48
48
  <% end %>
49
- <div class="navbar-search pull-right" data-object="flash-container">
50
- <%= flash_block %>
51
- </div>
52
49
  </div>
53
50
  </div>
54
51
  </div>
@@ -19,6 +19,12 @@
19
19
  <%= render partial: 'contour/layouts/menu' %>
20
20
  </div>
21
21
 
22
+ <div class="container" style="position:relative">
23
+ <div class="flash-block" data-object="flash-container">
24
+ <%= flash_block %>
25
+ </div>
26
+ </div>
27
+
22
28
  <div class="container">
23
29
  <%= yield %>
24
30
  </div>
@@ -2,7 +2,7 @@ module Contour
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 1
4
4
  MINOR = 2
5
- TINY = 0
5
+ TINY = 1
6
6
  BUILD = nil # nil, "pre", "rc", "rc2"
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY, BUILD].compact.join('.')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: contour
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-15 00:00:00.000000000 Z
12
+ date: 2013-02-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails