simple_navigation_bootstrap 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,51 @@
1
+ .dropdown-submenu:hover > a,
2
+ .dropdown-submenu:focus > a {
3
+ text-decoration: none;
4
+ color: $dropdown-link-hover-color;
5
+ @include gradient-vertical($dropdown-link-hover-bg, darken($dropdown-link-hover-bg, 5%));
6
+ }
7
+ // Sub menus
8
+ // ---------------------------
9
+ .dropdown-submenu {
10
+ position: relative;
11
+ }
12
+ // Default dropdowns
13
+ .dropdown-submenu > .dropdown-menu {
14
+ top: 0;
15
+ left: 100%;
16
+ margin-top: -6px;
17
+ margin-left: -1px;
18
+ border-radius: 0 6px 6px 6px;
19
+ }
20
+ .dropdown-submenu:hover > .dropdown-menu {
21
+ display: block;
22
+ }
23
+ // Caret to indicate there is a submenu
24
+ .dropdown-submenu > a:after {
25
+ display: block;
26
+ content: " ";
27
+ float: right;
28
+ width: 0;
29
+ height: 0;
30
+ border-top: $caret-width-base solid transparent;
31
+ border-bottom: $caret-width-base solid transparent;
32
+ border-left: $caret-width-base solid $navbar-default-link-color;
33
+ border-right: 0 dotted;
34
+ margin-top: 5px;
35
+ margin-right: -10px;
36
+ }
37
+ .dropdown-submenu:hover > a:after {
38
+ border-left-color: $dropdown-link-hover-color;
39
+ }
40
+ // Left aligned submenus
41
+ .dropdown-submenu.pull-left {
42
+ // Undo the float
43
+ // Yes, this is awkward since .pull-left adds a float, but it sticks to our conventions elsewhere.
44
+ float: none;
45
+ // Positioning the submenu
46
+ > .dropdown-menu {
47
+ left: -100%;
48
+ margin-left: 10px;
49
+ border-radius: 6px 0 6px 6px;
50
+ }
51
+ }
@@ -0,0 +1,11 @@
1
+ .navbar .divider-vertical {
2
+ height: $navbar-height;
3
+ margin: 0 9px;
4
+ border-left: 1px solid $navbar-default-bg;
5
+ border-right: 1px solid lighten($navbar-default-bg, 5%);
6
+ }
7
+ // Inverted
8
+ .navbar-inverse .divider-vertical {
9
+ border-left-color: $navbar-inverse-bg;
10
+ border-right-color: lighten($navbar-inverse-bg, 5%);
11
+ }
@@ -0,0 +1,3 @@
1
+ @import "bootstrap2_dropdown_submenu";
2
+ @import "bootstrap2_navbar_divider_vertical";
3
+ @import "simple_navigation_bootstrap_overrides";
@@ -0,0 +1,15 @@
1
+ // add style for navigation splitted dropdowns
2
+ .navbar .nav > li.dropdown-split-left > a {
3
+ border-right: none;
4
+ }
5
+ .navbar .nav > li.dropdown-split-right > a {
6
+ border-left: none;
7
+ }
8
+
9
+ // correct some style
10
+ .navbar .nav > li > .dropdown-menu.pull-right {
11
+ float: none ! important;
12
+ }
13
+ .navbar .nav > li > a > .caret {
14
+ margin: 0;
15
+ }
metadata ADDED
@@ -0,0 +1,179 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: simple_navigation_bootstrap
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Pavel Shpak
8
+ - Nicolas Rodriguez
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2016-06-24 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: simple-navigation
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - "~>"
19
+ - !ruby/object:Gem::Version
20
+ version: '4.0'
21
+ type: :runtime
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - "~>"
26
+ - !ruby/object:Gem::Version
27
+ version: '4.0'
28
+ - !ruby/object:Gem::Dependency
29
+ name: actionpack
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - ">="
33
+ - !ruby/object:Gem::Version
34
+ version: '0'
35
+ type: :development
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ version: '0'
42
+ - !ruby/object:Gem::Dependency
43
+ name: actionview
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - ">="
47
+ - !ruby/object:Gem::Version
48
+ version: '0'
49
+ type: :development
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
56
+ - !ruby/object:Gem::Dependency
57
+ name: rspec
58
+ requirement: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - ">="
61
+ - !ruby/object:Gem::Version
62
+ version: '0'
63
+ type: :development
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - ">="
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ - !ruby/object:Gem::Dependency
71
+ name: simplecov
72
+ requirement: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - ">="
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
77
+ type: :development
78
+ prerelease: false
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - ">="
82
+ - !ruby/object:Gem::Version
83
+ version: '0'
84
+ - !ruby/object:Gem::Dependency
85
+ name: bundler
86
+ requirement: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - "~>"
89
+ - !ruby/object:Gem::Version
90
+ version: '1.3'
91
+ type: :development
92
+ prerelease: false
93
+ version_requirements: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - "~>"
96
+ - !ruby/object:Gem::Version
97
+ version: '1.3'
98
+ - !ruby/object:Gem::Dependency
99
+ name: rake
100
+ requirement: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - ">="
103
+ - !ruby/object:Gem::Version
104
+ version: '0'
105
+ type: :development
106
+ prerelease: false
107
+ version_requirements: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - ">="
110
+ - !ruby/object:Gem::Version
111
+ version: '0'
112
+ description: This gem adds Bootstrap2 and Bootstrap3 renderers for SimpleNavigation
113
+ email:
114
+ - shpakvel@gmail.com
115
+ - nrodriguez@jbox-web.com
116
+ executables: []
117
+ extensions: []
118
+ extra_rdoc_files: []
119
+ files:
120
+ - ".codeclimate.yml"
121
+ - ".gitignore"
122
+ - ".rspec"
123
+ - ".rubocop.yml"
124
+ - ".travis.yml"
125
+ - AUTHORS
126
+ - Gemfile
127
+ - LICENSE
128
+ - README.md
129
+ - Rakefile
130
+ - lib/simple_navigation_bootstrap.rb
131
+ - lib/simple_navigation_bootstrap/bootstrap2.rb
132
+ - lib/simple_navigation_bootstrap/bootstrap3.rb
133
+ - lib/simple_navigation_bootstrap/bootstrap_base.rb
134
+ - lib/simple_navigation_bootstrap/engine.rb
135
+ - lib/simple_navigation_bootstrap/errors.rb
136
+ - lib/simple_navigation_bootstrap/rendered_item.rb
137
+ - lib/simple_navigation_bootstrap/version.rb
138
+ - simple_navigation_bootstrap.gemspec
139
+ - spec/lib/simple_navigation_bootstrap/bootstrap2_spec.rb
140
+ - spec/lib/simple_navigation_bootstrap/bootstrap3_spec.rb
141
+ - spec/lib/simple_navigation_bootstrap/exceptions_spec.rb
142
+ - spec/lib/simple_navigation_renderers_spec.rb
143
+ - spec/spec_helper.rb
144
+ - spec/support/test_helper.rb
145
+ - vendor/assets/stylesheets/bootstrap2_dropdown_submenu.css.scss
146
+ - vendor/assets/stylesheets/bootstrap2_navbar_divider_vertical.css.scss
147
+ - vendor/assets/stylesheets/simple_navigation_bootstrap.css.scss
148
+ - vendor/assets/stylesheets/simple_navigation_bootstrap_overrides.css.scss
149
+ homepage: https://github.com/jbox-web/simple_navigation_bootstrap
150
+ licenses:
151
+ - MIT
152
+ metadata: {}
153
+ post_install_message:
154
+ rdoc_options: []
155
+ require_paths:
156
+ - lib
157
+ required_ruby_version: !ruby/object:Gem::Requirement
158
+ requirements:
159
+ - - ">="
160
+ - !ruby/object:Gem::Version
161
+ version: '0'
162
+ required_rubygems_version: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
167
+ requirements: []
168
+ rubyforge_project:
169
+ rubygems_version: 2.5.1
170
+ signing_key:
171
+ specification_version: 4
172
+ summary: A Ruby gem that adds Bootstrap renderers for SimpleNavigation
173
+ test_files:
174
+ - spec/lib/simple_navigation_bootstrap/bootstrap2_spec.rb
175
+ - spec/lib/simple_navigation_bootstrap/bootstrap3_spec.rb
176
+ - spec/lib/simple_navigation_bootstrap/exceptions_spec.rb
177
+ - spec/lib/simple_navigation_renderers_spec.rb
178
+ - spec/spec_helper.rb
179
+ - spec/support/test_helper.rb