rails_admin_sliding_nav 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 7d527b369abddb703cd01366d1eda7b31d002be5
4
+ data.tar.gz: 50d0f33ee0fefa76a10421602ab923e33b007459
5
+ SHA512:
6
+ metadata.gz: f3153bac451aba61cf2c287079af5b00f0bc1ae2a60da4518acfb7aae6d6c2a3f1ea2c13a359ae46ef550a661bec801e104f55d25723c03b860c9cbfac94af5c
7
+ data.tar.gz: ababfd8cbb93dd4ccc3304ebb3447056d395677d9222f4421584a376f0e801e8c01585f0bbdaa0803740c960a9c5fe7dfdc6bac3a4b6282c78db50c2e465bc6a
data/MIT-LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright 2015 Nick Franken
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.rdoc ADDED
@@ -0,0 +1,3 @@
1
+ = RailsAdminSlidingNav
2
+
3
+ This project rocks and uses MIT-LICENSE.
data/Rakefile ADDED
@@ -0,0 +1,24 @@
1
+ begin
2
+ require 'bundler/setup'
3
+ rescue LoadError
4
+ puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
5
+ end
6
+
7
+ require 'rdoc/task'
8
+
9
+ RDoc::Task.new(:rdoc) do |rdoc|
10
+ rdoc.rdoc_dir = 'rdoc'
11
+ rdoc.title = 'RailsAdminSlidingNav'
12
+ rdoc.options << '--line-numbers'
13
+ rdoc.rdoc_files.include('README.rdoc')
14
+ rdoc.rdoc_files.include('lib/**/*.rb')
15
+ end
16
+
17
+
18
+
19
+ load 'rails/tasks/statistics.rake'
20
+
21
+
22
+
23
+ Bundler::GemHelper.install_tasks
24
+
@@ -0,0 +1,4 @@
1
+ module RailsAdminSlidingNav
2
+ class Engine < ::Rails::Engine
3
+ end
4
+ end
@@ -0,0 +1,3 @@
1
+ module RailsAdminSlidingNav
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,4 @@
1
+ require "rails_admin_sliding_nav/engine"
2
+
3
+ module RailsAdminSlidingNav
4
+ end
@@ -0,0 +1,16 @@
1
+ $(document).on 'rails_admin.dom_ready', ->
2
+ # change main container to 12 columns
3
+ $('body.rails_admin .container-fluid .row-fluid .span9').removeClass('span9').addClass('span12')
4
+
5
+ # append tab to menu, cache vars
6
+ $menu = $('body.rails_admin .container-fluid .row-fluid .span3')
7
+ $tab = $('<div class="well tab">Navigation</div>')
8
+ $menu.append $tab
9
+
10
+ # slide navigation
11
+ $tab.on 'click', ->
12
+ $menu.toggleClass('active')
13
+
14
+ # hide navigation on nav item click
15
+ $menu.on 'click', 'ul.nav-list li a', ->
16
+ $menu.removeClass('active')
@@ -0,0 +1,8 @@
1
+ /*
2
+ Customize Sass mixins from Twitter-Bootstrap/RailsAdmin theme or add new ones for your own use.
3
+
4
+ Available mixins to use/override:
5
+
6
+ https://github.com/thomas-mcdonald/bootstrap-sass/blob/master/vendor/assets/stylesheets/bootstrap/mixins.css.scss
7
+ https://github.com/sferik/rails_admin/blob/master/app/assets/stylesheets/rails_admin/base/mixins.css.scss
8
+ */
@@ -0,0 +1,31 @@
1
+ body.rails_admin .container-fluid .row-fluid .span3 {
2
+ position: absolute;
3
+ left: -23.3%;
4
+ z-index: 1;
5
+ transition-timing-function: ease-in-out;
6
+ transition: left 0.3s;
7
+ .tab{
8
+ position: absolute;
9
+ right: -108px;
10
+ top: 0px;
11
+ opacity: 0.5;
12
+ transition: opacity 0.2s;
13
+ cursor: pointer;
14
+ &:hover{
15
+ opacity: 1;
16
+ }
17
+ }
18
+ &.active{
19
+ left: 1%;
20
+ .tab{
21
+ opacity: 1;
22
+ background: #B3B3B3;
23
+ }
24
+ }
25
+ }
26
+
27
+ body.rails_admin .container-fluid .row-fluid .span12 {
28
+ margin: 0;
29
+ padding-top: 50px;
30
+ }
31
+
@@ -0,0 +1,12 @@
1
+ /*
2
+ Customize Sass variables from Twitter-Bootstrap/RailsAdmin theme or add new ones for your own use.
3
+
4
+ Available variables to use/override:
5
+
6
+ https://github.com/thomas-mcdonald/bootstrap-sass/blob/master/vendor/assets/stylesheets/bootstrap/variables.css.scss
7
+ https://github.com/sferik/rails_admin/blob/master/app/assets/stylesheets/rails_admin/base/variables.css.scss
8
+
9
+ Test me: pink links
10
+
11
+ $linkColor: #F0F;
12
+ */
metadata ADDED
@@ -0,0 +1,68 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rails_admin_sliding_nav
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Nick Franken
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-04-13 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 4.2.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 4.2.0
27
+ description: Sliding Navigation theme for rails_admin
28
+ email:
29
+ - nf@the42.com
30
+ executables: []
31
+ extensions: []
32
+ extra_rdoc_files: []
33
+ files:
34
+ - MIT-LICENSE
35
+ - README.rdoc
36
+ - Rakefile
37
+ - lib/rails_admin_sliding_nav.rb
38
+ - lib/rails_admin_sliding_nav/engine.rb
39
+ - lib/rails_admin_sliding_nav/version.rb
40
+ - vendor/assets/javascripts/rails_admin/themes/sliding_nav/ui.coffee
41
+ - vendor/assets/stylesheets/rails_admin/themes/sliding_nav/mixins.scss
42
+ - vendor/assets/stylesheets/rails_admin/themes/sliding_nav/theming.scss
43
+ - vendor/assets/stylesheets/rails_admin/themes/sliding_nav/variables.scss
44
+ homepage: https://bitbucket.org/nfranken/rails_admin_sliding_nav_theme
45
+ licenses:
46
+ - MIT
47
+ metadata: {}
48
+ post_install_message:
49
+ rdoc_options: []
50
+ require_paths:
51
+ - lib
52
+ required_ruby_version: !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - ">="
55
+ - !ruby/object:Gem::Version
56
+ version: '0'
57
+ required_rubygems_version: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ requirements: []
63
+ rubyforge_project:
64
+ rubygems_version: 2.4.6
65
+ signing_key:
66
+ specification_version: 4
67
+ summary: Sliding Navigation theme for rails_admin
68
+ test_files: []