diff --git a/Gemfile b/Gemfile index a67becb..143dc62 100644 --- a/Gemfile +++ b/Gemfile @@ -19,18 +19,12 @@ gem 'pg', '~> 0.17.1' gem 'will_paginate', '~> 3.0.3' gem 'jbuilder', '~> 2.0.3' -# Gems used only for assets and not required -# in production environments by default. -group :assets do - gem 'sass-rails', '~> 3.0' - gem 'coffee-rails', '~> 3.2.1' - gem 'bootstrap-sass', '~> 3.1.1' +# Assets +gem 'sass-rails', '~> 3.0' +gem 'coffee-rails', '~> 3.2.1' +gem 'bootstrap-sass', '~> 3.1.1' - # See https://github.com/sstephenson/execjs#readme for more supported runtimes - # gem 'therubyracer' - - gem 'uglifier', '>= 1.0.3' -end +gem 'uglifier', '>= 1.0.3' group :development, :test do gem 'rspec-rails', '~> 2.14.0' diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js index 46f1298..1c745e2 100644 --- a/app/assets/javascripts/application.js +++ b/app/assets/javascripts/application.js @@ -12,8 +12,7 @@ // //= require jquery //= require jquery_ujs -//= require twitter/bootstrap/bootstrap-button -//= require twitter/bootstrap/bootstrap-modal +//= require bootstrap //= require utils //= require bootstrap-datepicker //= require bootstrap-timepicker diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.css deleted file mode 100644 index 6b66844..0000000 --- a/app/assets/stylesheets/application.css +++ /dev/null @@ -1,15 +0,0 @@ -/* - * This is a manifest file that'll be compiled into application.css, which will include all the files - * listed below. - * - * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets, - * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path. - * - * You're free to add application-wide styles to this file and they'll appear at the top of the - * compiled file, but it's generally better to create a new file per style scope. - * - *= require_self - *= require datepicker - *= require bootstrap-timepicker - *= require bootstrap_and_overrides -*/ diff --git a/app/assets/stylesheets/application.scss b/app/assets/stylesheets/application.scss new file mode 100644 index 0000000..22f1d45 --- /dev/null +++ b/app/assets/stylesheets/application.scss @@ -0,0 +1,4 @@ +@import "bootstrap"; +@import "datepicker"; +@import "bootstrap-timepicker"; +@import "frontend"; diff --git a/app/assets/stylesheets/bootstrap_and_overrides.css.less b/app/assets/stylesheets/bootstrap_and_overrides.css.less deleted file mode 100644 index 1d0efba..0000000 --- a/app/assets/stylesheets/bootstrap_and_overrides.css.less +++ /dev/null @@ -1,47 +0,0 @@ -@import "twitter/bootstrap/bootstrap"; -body { - padding-top: 60px; - padding-left: 20px; -} - -@import "twitter/bootstrap/responsive"; - -// Set the correct sprite paths -@iconSpritePath: asset-path('twitter/bootstrap/glyphicons-halflings.png'); -@iconWhiteSpritePath: asset-path('twitter/bootstrap/glyphicons-halflings-white.png'); - -// Set the Font Awesome (Font Awesome is default. You can disable by commenting below lines) -// Note: If you use asset_path() here, your compiled boostrap_and_overrides.css will not -// have the proper paths. So for now we use the absolute path. -@fontAwesomeEotPath: '/assets/fontawesome-webfont.eot'; -@fontAwesomeWoffPath: '/assets/fontawesome-webfont.woff'; -@fontAwesomeTtfPath: '/assets/fontawesome-webfont.ttf'; -@fontAwesomeSvgPath: '/assets/fontawesome-webfont.svg'; - -// Font Awesome -@import "fontawesome"; - -// Your custom LESS stylesheets goes here -// -// Since bootstrap was imported above you have access to its mixins which -// you may use and inherit here -// -// If you'd like to override bootstrap's own variables, you can do so here as well -// See http://twitter.github.com/bootstrap/less.html for their names and documentation -// -// Example: -// @linkColor: #ff0000; - -[data-toggle="buttons-radio"] > .btn > input[type="radio"], -[data-toggle="buttons"] > .btn > input[type="checkbox"] { - display: none; -} - -.inline-block { - display: inline-block; -} - -.control-group.error .btn-group > .btn { - color: #b94a48; - border-color: #b94a48; -} diff --git a/app/assets/stylesheets/frontend.scss b/app/assets/stylesheets/frontend.scss new file mode 100644 index 0000000..ff8c444 --- /dev/null +++ b/app/assets/stylesheets/frontend.scss @@ -0,0 +1,7 @@ +body { + padding-top: 5px; +} + +.x-boundlist-item { + white-space: nowrap; +} \ No newline at end of file diff --git a/app/views/devise/passwords/new.html.erb b/app/views/devise/passwords/new.html.erb index ee989dd..17796e3 100644 --- a/app/views/devise/passwords/new.html.erb +++ b/app/views/devise/passwords/new.html.erb @@ -1,5 +1,3 @@ -<%= stylesheet_link_tag "bootstrap_and_overrides", :media => "all" %> -