remove less dependency and require relative helpers

This commit is contained in:
2012-12-13 16:29:05 +01:00
parent 3e72713c77
commit cde1037871
3 changed files with 2 additions and 52 deletions
@@ -9,6 +9,6 @@
* compiled file, but it's generally better to create a new file per style scope.
*
*= require_self
*= require 'bootstrap-devise-rails'
* require 'bootstrap-devise-rails'
*= require_directory .
*/
+1
View File
@@ -17,6 +17,7 @@ module Cmtool
initializer "cmtool" do
end
ActiveSupport.on_load(:action_view) do
require '../app/helpers/cmtool/application_helper'
::ActionView::Base.send :include, Cmtool::ApplicationHelper
end
end
-51
View File
@@ -1,51 +0,0 @@
// require 'twitter/bootstrap/bootstrap'
@import "twitter/bootstrap/variables";
@import "twitter/bootstrap/mixins";
@import "twitter/bootstrap/alerts";
@import "twitter/bootstrap/buttons";
@import "twitter/bootstrap/forms";
.devise {
br { display:none; }
// Copied from forms.less's legend
> h2, > h3 {
display: block;
width: 100%;
padding: 0;
margin-bottom: @baseLineHeight * 1.5;
font-size: @baseFontSize * 1.5;
line-height: @baseLineHeight * 2;
color: @grayDark;
border: 0;
border-bottom: 1px solid #eee;
}
> h2, >h3 {
margin-bottom: @baseLineHeight;
}
form {
// Base form styles
margin:0;
label[for=user_remember_me] { display: inline; }
input[type=submit] {
.btn-primary;
.btn-large;
margin:6px 0;
}
i { display: block; }
// Errors
#error_explanation {
h2 {
line-height: @baseLineHeight;
font-size: 14px;
.alert-error;
}
ul { margin-bottom: 0; }
.alert;
.alert-error;
}
.field_with_errors {
.control-group .error;
}
}
a:last-of-type:after { content: ''; }
a:after { content: '\0020\007c'; }
}