rails_cacheable_flash 0.0.21 → 0.0.22

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -13,7 +13,7 @@ include RailsCacheableFlash
13
13
 
14
14
  2. В йаваскрипте подключаете js-библиотеку джема и даете указания выводить флеш нотисы перед определенным контейнером
15
15
 
16
- //= require cacheable_flah
16
+ //= require flah
17
17
 
18
18
  ...
19
19
 
@@ -28,3 +28,7 @@ $(document).ready(function() {
28
28
  Flash.writeDataFrom('error', '#container980');
29
29
 
30
30
  });
31
+
32
+ 3. Также можно подключить свои css-стили для флеш-нотисов или использовать наши:
33
+
34
+ *= require flash
@@ -1,3 +1,3 @@
1
1
  module RailsCacheableFlash
2
- VERSION = "0.0.21"
2
+ VERSION = "0.0.22"
3
3
  end
@@ -0,0 +1,63 @@
1
+ /* flash */
2
+
3
+ .fixed_flash {
4
+ position: fixed;
5
+ top: 0;
6
+ right: 0;
7
+ min-width:960px;
8
+ }
9
+
10
+ .flash {
11
+ padding: 0;
12
+ margin: 0;
13
+ text-align: center;
14
+ width: 100%;
15
+ z-index: 100;
16
+ font-size: 18px;
17
+ filter:progid:DXImageTransform.Microsoft.Alpha(opacity=90);
18
+ -moz-opacity: 0.9;
19
+ -khtml-opacity: 0.9;
20
+ opacity: 0.9;
21
+ }
22
+
23
+ .flash-notice {
24
+ border: solid 1px #99cc99;
25
+ background-color: #e2f9e3;
26
+ }
27
+
28
+ .flash-notice, .flash-notice a {
29
+ color: #006600;
30
+ }
31
+
32
+ .flash-error {
33
+ border: solid 1px #cc0000;
34
+ background-color: #eeaaaa;
35
+ color: #cc0000;
36
+ }
37
+
38
+ .flash .message {
39
+ margin: 0 15px;
40
+ padding: 21px;
41
+ }
42
+
43
+ .flash .closer {
44
+ cursor: pointer;
45
+ float: right;
46
+ font-size: 23px !important;
47
+ font-weight: bold;
48
+ text-align: right;
49
+ text-decoration: none;
50
+ width: 10px;
51
+ margin: 0 15px;
52
+ padding: 15px;
53
+ }
54
+
55
+ .flash-error .closer {
56
+ color:#CC0000;
57
+ border:1px solid #CC0000;
58
+ }
59
+
60
+ .flash-message .closer {
61
+ color: #006600;
62
+ border:1px solid #006600;
63
+ }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_cacheable_flash
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.21
4
+ version: 0.0.22
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -27,11 +27,12 @@ files:
27
27
  - lib/rails_cacheable_flash.rb
28
28
  - lib/rails_cacheable_flash/engine.rb
29
29
  - lib/rails_cacheable_flash/version.rb
30
- - vendor/assets/javascripts/cacheable_flash.js
30
+ - vendor/assets/javascripts/flash.js
31
31
  - vendor/assets/javascripts/flash/cookie.js
32
32
  - vendor/assets/javascripts/flash/flash.js
33
33
  - vendor/assets/javascripts/flash/json.js
34
34
  - vendor/assets/javascripts/flash/notice.js
35
+ - vendor/assets/stylesheets/flash.css
35
36
  homepage: https://github.com/vav/rails_cacheable_flash
36
37
  licenses: []
37
38
  post_install_message: