Repository: vinhnglx/active_bootstrap_skin Branch: master Commit: 7839dfcb59e0 Files: 14 Total size: 16.3 KB Directory structure: gitextract_c_hwzelx/ ├── .gitignore ├── CODE_OF_CONDUCT.md ├── Gemfile ├── LICENSE.txt ├── README.md ├── Rakefile ├── active_bootstrap_skin.gemspec ├── app/ │ └── assets/ │ ├── images/ │ │ └── .gitkeep │ ├── javascripts/ │ │ └── active_bootstrap_skin.js │ └── stylesheets/ │ └── active_bootstrap_skin.scss ├── bin/ │ ├── console │ └── setup └── lib/ ├── active_bootstrap_skin/ │ └── version.rb └── active_bootstrap_skin.rb ================================================ FILE CONTENTS ================================================ ================================================ FILE: .gitignore ================================================ /.bundle/ /.yardoc /Gemfile.lock /_yardoc/ /coverage/ /doc/ /pkg/ /spec/reports/ /tmp/ ================================================ FILE: CODE_OF_CONDUCT.md ================================================ # Contributor Code of Conduct As contributors and maintainers of this project, and in the interest of fostering an open and welcoming community, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities. We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, religion, or nationality. Examples of unacceptable behavior by participants include: * The use of sexualized language or imagery * Personal attacks * Trolling or insulting/derogatory comments * Public or private harassment * Publishing other's private information, such as physical or electronic addresses, without explicit permission * Other unethical or unprofessional conduct Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful. By adopting this Code of Conduct, project maintainers commit themselves to fairly and consistently applying these principles to every aspect of managing this project. Project maintainers who do not follow or enforce the Code of Conduct may be permanently removed from the project team. This code of conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting a project maintainer at TODO: Write your email address. All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. Maintainers are obligated to maintain confidentiality with regard to the reporter of an incident. This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.3.0, available at [http://contributor-covenant.org/version/1/3/0/][version] [homepage]: http://contributor-covenant.org [version]: http://contributor-covenant.org/version/1/3/0/ ================================================ FILE: Gemfile ================================================ source 'https://rubygems.org' # Specify your gem's dependencies in active_bootstrap_skin.gemspec gemspec ================================================ FILE: LICENSE.txt ================================================ The MIT License (MIT) Copyright (c) 2016 Vinh Nguyen Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ================================================ FILE: README.md ================================================ # ActiveBootstrapSkin [](https://www.codewake.com/p/active-bootstrap-skin) Bootstrap skin for Active Admin. ## Installation - Add the gem to your Gemfile: ``` # Note: The gem require the bootstrap-sass gem. So we need to add bootstrap-sass to Gemfile gem 'bootstrap-sass' gem 'active_bootstrap_skin' ``` ## Usage - Don't forget you have to config the [bootstraps-sass](https://github.com/twbs/bootstrap-sass#a-ruby-on-rails) first. - In the `active_admin.scss` file, you include `active_bootstrap_skin`. **Note: You have to comment the active admin stylesheets.** ```css // Active Admin's got SASS! // @import "active_admin/mixins"; // @import "active_admin/base"; // Active Bootstrap @import "active_bootstrap_skin"; ``` - In the `active_admin.js` file, you require `active_bootstrap_skin`. ```javascript //= require active_admin/base //= require bootstrap-sprockets //= require active_bootstrap_skin ``` ## Screens      ## Contributing Bug reports and pull requests are welcome on GitHub at https://github.com/vinhnglx/active_bootstrap_skin. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org/) code of conduct. ================================================ FILE: Rakefile ================================================ require "bundler/gem_tasks" task :default => :spec ================================================ FILE: active_bootstrap_skin.gemspec ================================================ # coding: utf-8 lib = File.expand_path('../lib', __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require 'active_bootstrap_skin/version' Gem::Specification.new do |spec| spec.name = "active_bootstrap_skin" spec.version = ActiveBootstrapSkin::VERSION spec.authors = ["Vinh Nguyen"] spec.email = ["vinh.nglx@gmail.com"] spec.summary = %q{Bootstrap skin for ActiveAdmin.} spec.description = %q{Bootstrap skin for ActiveAdmin.} spec.homepage = "https://github.com/vinhnglx/active_bootstrap_skin" spec.license = "MIT" spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) } spec.test_files = spec.files.grep(%r{^(test|spec|features)/}) spec.require_paths = ["lib"] spec.add_development_dependency "bundler", "~> 1.11" spec.add_development_dependency "rake", "~> 10.0" spec.add_runtime_dependency "bootstrap-sass", "~> 3.4.1" end ================================================ FILE: app/assets/images/.gitkeep ================================================ ================================================ FILE: app/assets/javascripts/active_bootstrap_skin.js ================================================ $(document).ready(function() { // Add meta view port $('head').append(''); // Dropdown menus $(window).resize(function(){ if ($(window).width() <= 768) { $('#tabs').addClass('collapse'); } else { $('#tabs').removeClass('collapse'); } }); html_responsive = ' \