tusur_header 0.1.9 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.rdoc +3 -3
- data/lib/tusur_header/version.rb +1 -1
- data/vendor/assets/javascripts/flash.js.coffee +7 -0
- data/vendor/assets/javascripts/{tusur_header_observer/init.js.coffee → observer.js.coffee} +1 -8
- data/vendor/assets/stylesheets/_flash.sass +12 -0
- data/vendor/assets/stylesheets/_override.sass +7 -1
- data/vendor/assets/stylesheets/tusur_header.sass +5 -3
- metadata +5 -8
- data/vendor/assets/javascripts/alert_autoclose/index.js +0 -1
- data/vendor/assets/javascripts/alert_autoclose/init.js.coffee +0 -5
- data/vendor/assets/javascripts/main.js.coffee +0 -3
- data/vendor/assets/javascripts/tusur_header_observer/index.js +0 -3
- data/vendor/assets/stylesheets/_alert.sass +0 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3ef1c2bb1b3623efa1e6685450b47ae0f6fc81c1
|
4
|
+
data.tar.gz: 1a2ba2a621e904a144a39ddf611b354c6498f50d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d353e53f6132b3e12aa209d162156adf7574f2188d4aa59a90fe3902d3925fe95d6322ee5554128ff0fcc0c172e869c23e6bcf43afda8d62676cbd0975cece23
|
7
|
+
data.tar.gz: 7158f1e334b115ed0b49f7824d8869913959edf2f02b5546a5948cf62faa54d8cb769162d24adf1362de639823afd111c9690125f14138bb6fdf66068f052c69
|
data/README.rdoc
CHANGED
@@ -14,7 +14,7 @@
|
|
14
14
|
|
15
15
|
1 Добавляем в Gemfile
|
16
16
|
|
17
|
-
gem 'tusur_header',
|
17
|
+
gem 'tusur_header', '~> 0.2.0'
|
18
18
|
|
19
19
|
запускаем bundle
|
20
20
|
|
@@ -35,7 +35,7 @@
|
|
35
35
|
:tusur_header_second_menu_right</code>
|
36
36
|
|
37
37
|
2.2.1
|
38
|
-
<code>:stop_ie</code>
|
38
|
+
<code>:stop_ie</code>
|
39
39
|
подключаем в footer чтобы включить проверку браузера на IE > 8
|
40
40
|
|
41
41
|
3 Подключаем стили в <code>sass</code>
|
@@ -63,7 +63,7 @@
|
|
63
63
|
* добавляем в модель User has_remote_notifications
|
64
64
|
* где нужно используем метод get_notification_count (current_user.get_notification_count, возвращает Integer)
|
65
65
|
|
66
|
-
===
|
66
|
+
=== Прочее
|
67
67
|
|
68
68
|
Не забываем добавлять в layout поддержку мобильных устройств:
|
69
69
|
|
data/lib/tusur_header/version.rb
CHANGED
@@ -1,5 +1,4 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
$ ->
|
3
2
|
first_menu = $('#menu_first')
|
4
3
|
second_menu = $('#menu_second')
|
5
4
|
|
@@ -36,22 +35,16 @@
|
|
36
35
|
cloud.hide().html('') if cloud.is(':visible')
|
37
36
|
|
38
37
|
$(window).scroll () ->
|
39
|
-
footer_height = $('#footer').height()
|
40
|
-
new_footer_height = footer_height + 40
|
41
38
|
|
42
39
|
if $(window).scrollTop() > 0
|
43
40
|
first_menu.css('border-bottom', 'solid 1px #ccc')
|
44
41
|
site_menu_caret.show()
|
45
42
|
site_menu_toggle.removeClass('disabled')
|
46
43
|
|
47
|
-
$('#wrapper').css('margin-bottom', "0px")
|
48
|
-
|
49
44
|
if $(window).scrollTop() == 0
|
50
45
|
first_menu.css('border-bottom', 'none')
|
51
46
|
site_menu_caret.hide()
|
52
47
|
site_menu_toggle.click() if site_menu_toggle.parent().hasClass('open')
|
53
48
|
site_menu_toggle.addClass('disabled')
|
54
49
|
|
55
|
-
$('#wrapper').css('margin-bottom', "-#{new_footer_height}px")
|
56
|
-
|
57
50
|
true
|
@@ -208,9 +208,15 @@
|
|
208
208
|
+box-sizing(border-box)
|
209
209
|
height: 40px
|
210
210
|
line-height: 20px
|
211
|
-
padding:
|
211
|
+
padding: 7px 15px
|
212
212
|
text-decoration: none
|
213
213
|
|
214
|
+
.current_user
|
215
|
+
line-height: 24px
|
216
|
+
|
217
|
+
.caret
|
218
|
+
margin: 0
|
219
|
+
|
214
220
|
&:hover
|
215
221
|
cursor: pointer
|
216
222
|
|
@@ -50,10 +50,12 @@
|
|
50
50
|
//@import 'bootstrap/utilities'
|
51
51
|
@import 'bootstrap/responsive-utilities'
|
52
52
|
|
53
|
+
// Header wrapper
|
53
54
|
@import 'override'
|
55
|
+
|
56
|
+
// Commons
|
54
57
|
@import 'buttons'
|
55
58
|
@import 'error_pages'
|
56
|
-
|
57
|
-
@import 'search_form'
|
59
|
+
@import 'flash'
|
58
60
|
@import 'pagination'
|
59
|
-
@import '
|
61
|
+
@import 'search_form'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tusur_header
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Evgeny Lapin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-09-
|
11
|
+
date: 2014-09-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -202,15 +202,12 @@ files:
|
|
202
202
|
- vendor/assets/images/502.png
|
203
203
|
- vendor/assets/images/mail.png
|
204
204
|
- vendor/assets/images/tusur_logotype.png
|
205
|
-
- vendor/assets/javascripts/
|
206
|
-
- vendor/assets/javascripts/
|
207
|
-
- vendor/assets/javascripts/main.js.coffee
|
205
|
+
- vendor/assets/javascripts/flash.js.coffee
|
206
|
+
- vendor/assets/javascripts/observer.js.coffee
|
208
207
|
- vendor/assets/javascripts/tusur_header.js
|
209
|
-
- vendor/assets/javascripts/tusur_header_observer/index.js
|
210
|
-
- vendor/assets/javascripts/tusur_header_observer/init.js.coffee
|
211
|
-
- vendor/assets/stylesheets/_alert.sass
|
212
208
|
- vendor/assets/stylesheets/_buttons.sass
|
213
209
|
- vendor/assets/stylesheets/_error_pages.sass
|
210
|
+
- vendor/assets/stylesheets/_flash.sass
|
214
211
|
- vendor/assets/stylesheets/_override.sass
|
215
212
|
- vendor/assets/stylesheets/_pagination.sass
|
216
213
|
- vendor/assets/stylesheets/_search_form.sass
|
@@ -1 +0,0 @@
|
|
1
|
-
//= require_tree .
|