bhm-admin 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/.gitignore +21 -0
- data/Gemfile +4 -0
- data/LICENSE +20 -0
- data/README.rdoc +17 -0
- data/Rakefile +64 -0
- data/app/controllers/admin/base_controller.rb +10 -0
- data/app/controllers/admin_controller.rb +21 -0
- data/app/views/admin/shared/_edit_base.html.haml +8 -0
- data/app/views/admin/shared/_footer.html.haml +1 -0
- data/app/views/admin/shared/_header.html.haml +7 -0
- data/app/views/admin/shared/_new_base.html.haml +8 -0
- data/app/views/admin/shared/_sections.html.haml +1 -0
- data/app/views/admin/shared/_sidebar.html.haml +2 -0
- data/app/views/layouts/admin.html.haml +29 -0
- data/bhm-admin.gemspec +119 -0
- data/compass/stylesheets/bhm/admin/_base.sass +25 -0
- data/compass/stylesheets/bhm/admin/_content.sass +11 -0
- data/compass/stylesheets/bhm/admin/_flash.sass +19 -0
- data/compass/stylesheets/bhm/admin/_footer.sass +5 -0
- data/compass/stylesheets/bhm/admin/_forms.sass +43 -0
- data/compass/stylesheets/bhm/admin/_formtastic.sass +136 -0
- data/compass/stylesheets/bhm/admin/_general.sass +32 -0
- data/compass/stylesheets/bhm/admin/_grid.sass +21 -0
- data/compass/stylesheets/bhm/admin/_header.sass +34 -0
- data/compass/stylesheets/bhm/admin/_listing.sass +80 -0
- data/compass/stylesheets/bhm/admin/_sidebar.sass +22 -0
- data/compass/stylesheets/bhm/admin/_util.sass +5 -0
- data/compass/templates/project/admin.sass +3 -0
- data/compass/templates/project/manifest.rb +1 -0
- data/config/locales/en.yml +12 -0
- data/lib/bhm/admin/attr_accessible_scoping.rb +53 -0
- data/lib/bhm/admin/compass_framework.rb +14 -0
- data/lib/bhm/admin/engine.rb +18 -0
- data/lib/bhm/admin/nested_form_helper.rb +6 -0
- data/lib/bhm/admin/presentation_helper.rb +60 -0
- data/lib/bhm/admin/sidebar_helper.rb +75 -0
- data/lib/bhm/admin.rb +38 -0
- data/lib/bhm-admin.rb +1 -0
- data/lib/generators/bhm_admin/resource/resource_generator.rb +26 -0
- data/lib/generators/bhm_admin/resource/templates/_form.html.haml +0 -0
- data/lib/generators/bhm_admin/resource/templates/controller.rb +2 -0
- data/lib/generators/bhm_admin/resource/templates/edit.html.haml +1 -0
- data/lib/generators/bhm_admin/resource/templates/index.html.haml +21 -0
- data/lib/generators/bhm_admin/resource/templates/new.html.haml +1 -0
- data/lib/generators/bhm_admin/resource/templates/show.html.haml +5 -0
- data/test/helper.rb +10 -0
- data/test/test_bhm_admin.rb +7 -0
- metadata +233 -0
data/.document
ADDED
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2009 Darcy Laycock
|
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,17 @@
|
|
1
|
+
= bhm_admin
|
2
|
+
|
3
|
+
Description goes here.
|
4
|
+
|
5
|
+
== Note on Patches/Pull Requests
|
6
|
+
|
7
|
+
* Fork the project.
|
8
|
+
* Make your feature addition or bug fix.
|
9
|
+
* Add tests for it. This is important so I don't break it in a
|
10
|
+
future version unintentionally.
|
11
|
+
* Commit, do not mess with rakefile, version, or history.
|
12
|
+
(if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
|
13
|
+
* Send me a pull request. Bonus points for topic branches.
|
14
|
+
|
15
|
+
== Copyright
|
16
|
+
|
17
|
+
Copyright (c) 2010 Darcy Laycock. See LICENSE for details.
|
data/Rakefile
ADDED
@@ -0,0 +1,64 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'rake'
|
3
|
+
|
4
|
+
require File.expand_path('lib/bhm/admin', File.dirname(__FILE__))
|
5
|
+
|
6
|
+
begin
|
7
|
+
require 'jeweler'
|
8
|
+
Jeweler::Tasks.new do |gem|
|
9
|
+
gem.name = "bhm-admin"
|
10
|
+
gem.summary = %Q{Simple, Rails 3 + Compass admin area.}
|
11
|
+
gem.description = %Q{Provides a reasonably dynamic and simple to use admin area for Rails 3 application. Built on a bunch of open source libraries.}
|
12
|
+
gem.email = "sutto@sutto.net"
|
13
|
+
gem.homepage = "http://github.com/Sutto/bhm_admin"
|
14
|
+
gem.authors = ["Darcy Laycock"]
|
15
|
+
gem.version = BHM::Admin::VERSION
|
16
|
+
gem.add_dependency "will_paginate"
|
17
|
+
gem.add_dependency "inherited_resources"
|
18
|
+
gem.add_dependency "show_for"
|
19
|
+
gem.add_dependency "compass", ">= 0.10.0.rc4"
|
20
|
+
gem.add_dependency "fancy-buttons"
|
21
|
+
gem.add_dependency "compass-960-plugin"
|
22
|
+
gem.add_dependency "compass-colors"
|
23
|
+
gem.add_dependency "jammit"
|
24
|
+
gem.add_dependency "will_paginate"
|
25
|
+
gem.add_development_dependency "shoulda", ">= 0"
|
26
|
+
end
|
27
|
+
Jeweler::GemcutterTasks.new
|
28
|
+
rescue LoadError
|
29
|
+
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
|
30
|
+
end
|
31
|
+
|
32
|
+
require 'rake/testtask'
|
33
|
+
Rake::TestTask.new(:test) do |test|
|
34
|
+
test.libs << 'lib' << 'test'
|
35
|
+
test.pattern = 'test/**/*_test.rb'
|
36
|
+
test.verbose = true
|
37
|
+
end
|
38
|
+
|
39
|
+
begin
|
40
|
+
require 'rcov/rcovtask'
|
41
|
+
Rcov::RcovTask.new do |test|
|
42
|
+
test.libs << 'test'
|
43
|
+
test.pattern = 'test/**/*_test.rb'
|
44
|
+
test.verbose = true
|
45
|
+
end
|
46
|
+
rescue LoadError
|
47
|
+
task :rcov do
|
48
|
+
abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
task :test => :check_dependencies
|
53
|
+
|
54
|
+
task :default => :test
|
55
|
+
|
56
|
+
require 'rake/rdoctask'
|
57
|
+
Rake::RDocTask.new do |rdoc|
|
58
|
+
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
59
|
+
|
60
|
+
rdoc.rdoc_dir = 'rdoc'
|
61
|
+
rdoc.title = "bhm_admin #{version}"
|
62
|
+
rdoc.rdoc_files.include('README*')
|
63
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
64
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
class AdminController < ApplicationController
|
2
|
+
|
3
|
+
layout "admin"
|
4
|
+
|
5
|
+
before_filter :require_admin_authentication
|
6
|
+
around_filter :disable_attr_accessible
|
7
|
+
|
8
|
+
helper *BHM::Admin.helper_classes
|
9
|
+
|
10
|
+
protected
|
11
|
+
|
12
|
+
def disable_attr_accessible
|
13
|
+
BHM::Admin::AttrAccessibleScoping.disable { yield }
|
14
|
+
end
|
15
|
+
|
16
|
+
def require_admin_authentication
|
17
|
+
require_user if respond_to?(:require_user)
|
18
|
+
require_admin if respond_to?(:require_admin)
|
19
|
+
end
|
20
|
+
|
21
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
Replace <em>admin/shared/_footer.html.haml</em> in your app with footer content.
|
@@ -0,0 +1 @@
|
|
1
|
+
= ml "Replace <em>app/views/admin/shared/_sections.html.haml</em> with your sections.".html_safe, '#'
|
@@ -0,0 +1,29 @@
|
|
1
|
+
!!! 5
|
2
|
+
%html{:lang => "en", :dir => "ltr"}
|
3
|
+
%head
|
4
|
+
%title== #{BHM::Admin.site_name} - Admin Area
|
5
|
+
|
6
|
+
/ Stylesheets
|
7
|
+
= include_stylesheets(:admin, :media => 'screen, projection')
|
8
|
+
|
9
|
+
/ Javascripts
|
10
|
+
/[if IE]
|
11
|
+
= javascript_include_tag "http://html5shiv.googlecode.com/svn/trunk/html5.js"
|
12
|
+
= include_javascripts(:admin)
|
13
|
+
= csrf_meta_tag
|
14
|
+
= yield :extra_head
|
15
|
+
|
16
|
+
%body
|
17
|
+
#container
|
18
|
+
%header= render :partial => 'admin/shared/header'
|
19
|
+
= flash_messages :alert, :notice
|
20
|
+
|
21
|
+
%section#content-container
|
22
|
+
%section#content= yield
|
23
|
+
%section#sidebar
|
24
|
+
- sidebar_content = content_for(:sidebar)
|
25
|
+
= sidebar_content.present? ? sidebar_content : render(:partial => 'admin/shared/sidebar')
|
26
|
+
|
27
|
+
%footer
|
28
|
+
= render :partial => 'admin/shared/footer'
|
29
|
+
= yield :page_bottom
|
data/bhm-admin.gemspec
ADDED
@@ -0,0 +1,119 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{bhm-admin}
|
8
|
+
s.version = "0.1.0"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Darcy Laycock"]
|
12
|
+
s.date = %q{2010-05-02}
|
13
|
+
s.description = %q{Provides a reasonably dynamic and simple to use admin area for Rails 3 application. Built on a bunch of open source libraries.}
|
14
|
+
s.email = %q{sutto@sutto.net}
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"LICENSE",
|
17
|
+
"README.rdoc"
|
18
|
+
]
|
19
|
+
s.files = [
|
20
|
+
".document",
|
21
|
+
".gitignore",
|
22
|
+
"Gemfile",
|
23
|
+
"LICENSE",
|
24
|
+
"README.rdoc",
|
25
|
+
"Rakefile",
|
26
|
+
"app/controllers/admin/base_controller.rb",
|
27
|
+
"app/controllers/admin_controller.rb",
|
28
|
+
"app/views/admin/shared/_edit_base.html.haml",
|
29
|
+
"app/views/admin/shared/_footer.html.haml",
|
30
|
+
"app/views/admin/shared/_header.html.haml",
|
31
|
+
"app/views/admin/shared/_new_base.html.haml",
|
32
|
+
"app/views/admin/shared/_sections.html.haml",
|
33
|
+
"app/views/admin/shared/_sidebar.html.haml",
|
34
|
+
"app/views/layouts/admin.html.haml",
|
35
|
+
"bhm-admin.gemspec",
|
36
|
+
"compass/stylesheets/bhm/admin/_base.sass",
|
37
|
+
"compass/stylesheets/bhm/admin/_content.sass",
|
38
|
+
"compass/stylesheets/bhm/admin/_flash.sass",
|
39
|
+
"compass/stylesheets/bhm/admin/_footer.sass",
|
40
|
+
"compass/stylesheets/bhm/admin/_forms.sass",
|
41
|
+
"compass/stylesheets/bhm/admin/_formtastic.sass",
|
42
|
+
"compass/stylesheets/bhm/admin/_general.sass",
|
43
|
+
"compass/stylesheets/bhm/admin/_grid.sass",
|
44
|
+
"compass/stylesheets/bhm/admin/_header.sass",
|
45
|
+
"compass/stylesheets/bhm/admin/_listing.sass",
|
46
|
+
"compass/stylesheets/bhm/admin/_sidebar.sass",
|
47
|
+
"compass/stylesheets/bhm/admin/_util.sass",
|
48
|
+
"compass/templates/project/admin.sass",
|
49
|
+
"compass/templates/project/manifest.rb",
|
50
|
+
"config/locales/en.yml",
|
51
|
+
"lib/bhm-admin.rb",
|
52
|
+
"lib/bhm/admin.rb",
|
53
|
+
"lib/bhm/admin/attr_accessible_scoping.rb",
|
54
|
+
"lib/bhm/admin/compass_framework.rb",
|
55
|
+
"lib/bhm/admin/engine.rb",
|
56
|
+
"lib/bhm/admin/nested_form_helper.rb",
|
57
|
+
"lib/bhm/admin/presentation_helper.rb",
|
58
|
+
"lib/bhm/admin/sidebar_helper.rb",
|
59
|
+
"lib/generators/bhm_admin/resource/resource_generator.rb",
|
60
|
+
"lib/generators/bhm_admin/resource/templates/_form.html.haml",
|
61
|
+
"lib/generators/bhm_admin/resource/templates/controller.rb",
|
62
|
+
"lib/generators/bhm_admin/resource/templates/edit.html.haml",
|
63
|
+
"lib/generators/bhm_admin/resource/templates/index.html.haml",
|
64
|
+
"lib/generators/bhm_admin/resource/templates/new.html.haml",
|
65
|
+
"lib/generators/bhm_admin/resource/templates/show.html.haml",
|
66
|
+
"test/helper.rb",
|
67
|
+
"test/test_bhm_admin.rb"
|
68
|
+
]
|
69
|
+
s.homepage = %q{http://github.com/Sutto/bhm_admin}
|
70
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
71
|
+
s.require_paths = ["lib"]
|
72
|
+
s.rubygems_version = %q{1.3.6}
|
73
|
+
s.summary = %q{Simple, Rails 3 + Compass admin area.}
|
74
|
+
s.test_files = [
|
75
|
+
"test/helper.rb",
|
76
|
+
"test/test_bhm_admin.rb"
|
77
|
+
]
|
78
|
+
|
79
|
+
if s.respond_to? :specification_version then
|
80
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
81
|
+
s.specification_version = 3
|
82
|
+
|
83
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
84
|
+
s.add_runtime_dependency(%q<will_paginate>, [">= 0"])
|
85
|
+
s.add_runtime_dependency(%q<inherited_resources>, [">= 0"])
|
86
|
+
s.add_runtime_dependency(%q<show_for>, [">= 0"])
|
87
|
+
s.add_runtime_dependency(%q<compass>, [">= 0.10.0.rc4"])
|
88
|
+
s.add_runtime_dependency(%q<fancy-buttons>, [">= 0"])
|
89
|
+
s.add_runtime_dependency(%q<compass-960-plugin>, [">= 0"])
|
90
|
+
s.add_runtime_dependency(%q<compass-colors>, [">= 0"])
|
91
|
+
s.add_runtime_dependency(%q<jammit>, [">= 0"])
|
92
|
+
s.add_runtime_dependency(%q<will_paginate>, [">= 0"])
|
93
|
+
s.add_development_dependency(%q<shoulda>, [">= 0"])
|
94
|
+
else
|
95
|
+
s.add_dependency(%q<will_paginate>, [">= 0"])
|
96
|
+
s.add_dependency(%q<inherited_resources>, [">= 0"])
|
97
|
+
s.add_dependency(%q<show_for>, [">= 0"])
|
98
|
+
s.add_dependency(%q<compass>, [">= 0.10.0.rc4"])
|
99
|
+
s.add_dependency(%q<fancy-buttons>, [">= 0"])
|
100
|
+
s.add_dependency(%q<compass-960-plugin>, [">= 0"])
|
101
|
+
s.add_dependency(%q<compass-colors>, [">= 0"])
|
102
|
+
s.add_dependency(%q<jammit>, [">= 0"])
|
103
|
+
s.add_dependency(%q<will_paginate>, [">= 0"])
|
104
|
+
s.add_dependency(%q<shoulda>, [">= 0"])
|
105
|
+
end
|
106
|
+
else
|
107
|
+
s.add_dependency(%q<will_paginate>, [">= 0"])
|
108
|
+
s.add_dependency(%q<inherited_resources>, [">= 0"])
|
109
|
+
s.add_dependency(%q<show_for>, [">= 0"])
|
110
|
+
s.add_dependency(%q<compass>, [">= 0.10.0.rc4"])
|
111
|
+
s.add_dependency(%q<fancy-buttons>, [">= 0"])
|
112
|
+
s.add_dependency(%q<compass-960-plugin>, [">= 0"])
|
113
|
+
s.add_dependency(%q<compass-colors>, [">= 0"])
|
114
|
+
s.add_dependency(%q<jammit>, [">= 0"])
|
115
|
+
s.add_dependency(%q<will_paginate>, [">= 0"])
|
116
|
+
s.add_dependency(%q<shoulda>, [">= 0"])
|
117
|
+
end
|
118
|
+
end
|
119
|
+
|
@@ -0,0 +1,25 @@
|
|
1
|
+
@import compass/utilities
|
2
|
+
@import compass/css3
|
3
|
+
@import 960/grid
|
4
|
+
@import 960/text
|
5
|
+
|
6
|
+
$fb-image-path: unquote("url(/images/button_bg.png)")
|
7
|
+
|
8
|
+
@import fancy_buttons
|
9
|
+
|
10
|
+
+global-reset
|
11
|
+
|
12
|
+
+text
|
13
|
+
|
14
|
+
@import bhm/admin/util
|
15
|
+
@import bhm/admin/flash
|
16
|
+
@import bhm/admin/formtastic
|
17
|
+
|
18
|
+
@import bhm/admin/grid
|
19
|
+
@import bhm/admin/general
|
20
|
+
@import bhm/admin/header
|
21
|
+
@import bhm/admin/sidebar
|
22
|
+
@import bhm/admin/listing
|
23
|
+
@import bhm/admin/footer
|
24
|
+
@import bhm/admin/forms
|
25
|
+
@import bhm/admin/content
|
@@ -0,0 +1,19 @@
|
|
1
|
+
=flash-colours($text-colour, $background-colour: lighten($text-colour, 50), $border-colour: lighten($text-colour, 20))
|
2
|
+
border-color: $border-colour
|
3
|
+
background-color: $background-colour
|
4
|
+
color: $text-colour
|
5
|
+
+linear-gradient(color-stops(lighten($background-colour, 10), darken($background-colour, 10)), top)
|
6
|
+
|
7
|
+
#flash-messages
|
8
|
+
margin: 0
|
9
|
+
p.flash
|
10
|
+
margin: 0 0 1em
|
11
|
+
padding: 0.5em
|
12
|
+
font-weight: bold
|
13
|
+
text-align: center
|
14
|
+
border: 0.2em solid
|
15
|
+
+flash-colours(#444444)
|
16
|
+
&.alert
|
17
|
+
+flash-colours(#99242a)
|
18
|
+
&.notice
|
19
|
+
+flash-colours(#1d6024)
|
@@ -0,0 +1,43 @@
|
|
1
|
+
form.formtastic
|
2
|
+
> fieldset.inputs
|
3
|
+
margin: 0 0 1em
|
4
|
+
padding: 1em 0 0
|
5
|
+
> legend
|
6
|
+
font-size: 1.2em
|
7
|
+
font-weight: bold
|
8
|
+
label
|
9
|
+
font-weight: bold
|
10
|
+
color: #444444
|
11
|
+
abbr.required
|
12
|
+
color: #992025
|
13
|
+
ol li ol li label
|
14
|
+
font-weight: normal
|
15
|
+
color: #111111
|
16
|
+
fieldset.buttons
|
17
|
+
ol li
|
18
|
+
button
|
19
|
+
+fancy-button(#196e27, 16px)
|
20
|
+
span.cke_skin_kama
|
21
|
+
margin-left: 28%
|
22
|
+
p.actions
|
23
|
+
background: #eeeeee
|
24
|
+
border: 0.1em solid #cccccc
|
25
|
+
padding: 0.5em
|
26
|
+
margin: -1em 0 1em
|
27
|
+
|
28
|
+
.resource-base-errors
|
29
|
+
font-size: 1.1em
|
30
|
+
margin: 0.5em 0 1em
|
31
|
+
p
|
32
|
+
color: #712B22
|
33
|
+
font-weight: bold
|
34
|
+
margin-bottom: 0
|
35
|
+
ul
|
36
|
+
color: #993C39
|
37
|
+
line-height: 1.5em
|
38
|
+
margin: 0
|
39
|
+
padding: 0
|
40
|
+
li
|
41
|
+
margin: 0
|
42
|
+
padding: 0
|
43
|
+
list-style: inside
|
@@ -0,0 +1,136 @@
|
|
1
|
+
form.formtastic
|
2
|
+
margin: 0
|
3
|
+
padding: 0
|
4
|
+
ul, ol, li, fieldset, legend, input, textarea, select, p
|
5
|
+
margin: 0
|
6
|
+
padding: 0
|
7
|
+
fieldset
|
8
|
+
border: 0
|
9
|
+
em, strong
|
10
|
+
font-style: normal
|
11
|
+
font-weight: normal
|
12
|
+
ol, ul
|
13
|
+
list-style: none
|
14
|
+
abbr, acronym
|
15
|
+
border: 0
|
16
|
+
font-variant: normal
|
17
|
+
input, textarea, select
|
18
|
+
font-family: inherit
|
19
|
+
font-size: inherit
|
20
|
+
font-weight: inherit
|
21
|
+
input, textarea, select
|
22
|
+
font-size: 100%
|
23
|
+
legend
|
24
|
+
color: black
|
25
|
+
legend.label label
|
26
|
+
width: 100%
|
27
|
+
fieldset
|
28
|
+
display: inline-block
|
29
|
+
&.buttons
|
30
|
+
padding-left: 28%
|
31
|
+
&.buttons li
|
32
|
+
float: left
|
33
|
+
padding-right: 0.5em
|
34
|
+
&:after
|
35
|
+
content: "."
|
36
|
+
display: block
|
37
|
+
height: 0
|
38
|
+
clear: both
|
39
|
+
visibility: hidden
|
40
|
+
|
41
|
+
html form.formtastic fieldset
|
42
|
+
display: block
|
43
|
+
|
44
|
+
* html form.formtastic fieldset
|
45
|
+
height: 1%
|
46
|
+
|
47
|
+
form.formtastic fieldset ol li
|
48
|
+
margin-bottom: 1.5em
|
49
|
+
&:after
|
50
|
+
content: "."
|
51
|
+
display: block
|
52
|
+
height: 0
|
53
|
+
clear: both
|
54
|
+
visibility: hidden
|
55
|
+
|
56
|
+
html[xmlns] form.formtastic fieldset ol li
|
57
|
+
display: block
|
58
|
+
|
59
|
+
* html form.formtastic fieldset ol li
|
60
|
+
height: 1%
|
61
|
+
|
62
|
+
form.formtastic fieldset ol li
|
63
|
+
label
|
64
|
+
display: block
|
65
|
+
width: 25%
|
66
|
+
margin-right: 3%
|
67
|
+
float: left
|
68
|
+
padding-top: 0.2em
|
69
|
+
li label
|
70
|
+
line-height: 100%
|
71
|
+
padding-top: 0
|
72
|
+
width: auto
|
73
|
+
margin-right: 0
|
74
|
+
input
|
75
|
+
line-height: 100%
|
76
|
+
vertical-align: middle
|
77
|
+
margin-top: -0.1em
|
78
|
+
fieldset
|
79
|
+
position: relative
|
80
|
+
legend
|
81
|
+
position: absolute
|
82
|
+
width: 28%
|
83
|
+
padding-top: 0.1em
|
84
|
+
span, &.label label
|
85
|
+
position: absolute
|
86
|
+
ol
|
87
|
+
float: left
|
88
|
+
width: 71%
|
89
|
+
margin: 0
|
90
|
+
padding: 0 0 0 28%
|
91
|
+
li
|
92
|
+
padding: 0
|
93
|
+
border: 0
|
94
|
+
p
|
95
|
+
&.inline-hints
|
96
|
+
color: #666666
|
97
|
+
margin: 0.5em 0 0 28%
|
98
|
+
&.inline-errors
|
99
|
+
color: #cc0000
|
100
|
+
margin: 0.5em 0 0 28%
|
101
|
+
ul.errors
|
102
|
+
color: #cc0000
|
103
|
+
margin: 0.5em 0 0 28%
|
104
|
+
list-style: square
|
105
|
+
li
|
106
|
+
padding: 0
|
107
|
+
border: none
|
108
|
+
display: list-item
|
109
|
+
&.string input, &.password input, &.numeric input, &.text textarea
|
110
|
+
width: 71%
|
111
|
+
&.hidden
|
112
|
+
display: none
|
113
|
+
&.boolean label
|
114
|
+
padding-left: 28%
|
115
|
+
width: auto
|
116
|
+
input
|
117
|
+
margin: 0 0.5em 0 0.2em
|
118
|
+
&.radio fieldset ol, &.check_boxes fieldset ol
|
119
|
+
margin-bottom: -0.6em
|
120
|
+
li
|
121
|
+
margin: 0.1em 0 0.5em 0
|
122
|
+
label
|
123
|
+
float: none
|
124
|
+
width: 100%
|
125
|
+
input
|
126
|
+
margin-right: 0.2em
|
127
|
+
&.date fieldset ol li, &.time fieldset ol li, &.datetime fieldset ol li, &.dob fieldset ol li
|
128
|
+
float: left
|
129
|
+
width: auto
|
130
|
+
margin: 0 0.3em 0 0
|
131
|
+
label
|
132
|
+
display: none
|
133
|
+
input
|
134
|
+
display: inline
|
135
|
+
margin: 0
|
136
|
+
padding: 0
|
@@ -0,0 +1,32 @@
|
|
1
|
+
h1, h2, h3, h4, h5, h6
|
2
|
+
font-family: "Helvetica Neue", Arial, Helvetica, sans-serif
|
3
|
+
font-weight: bold
|
4
|
+
|
5
|
+
h2
|
6
|
+
margin: 0 0 0.5em
|
7
|
+
|
8
|
+
.statistic
|
9
|
+
border: 0.1em solid #dddddd
|
10
|
+
background: #f9f9f9
|
11
|
+
text-align: center
|
12
|
+
+border-radius(1em)
|
13
|
+
h3
|
14
|
+
margin: 0.5em 0 0
|
15
|
+
img
|
16
|
+
margin: 0.5em auto 1em
|
17
|
+
|
18
|
+
.pagination
|
19
|
+
text-align: center
|
20
|
+
margin: 1em 0
|
21
|
+
color: #333
|
22
|
+
|
23
|
+
span, a, em
|
24
|
+
font-weight: bold
|
25
|
+
background: #EEE
|
26
|
+
padding: 0.3em 0.5em
|
27
|
+
margin: 0 0.5em
|
28
|
+
|
29
|
+
em
|
30
|
+
color: black
|
31
|
+
span
|
32
|
+
color: #AAA
|
@@ -0,0 +1,21 @@
|
|
1
|
+
$ninesixty-columns: 24
|
2
|
+
|
3
|
+
#container
|
4
|
+
+grid-container
|
5
|
+
#header-logo, #header-menu, footer, #content, #sidebar, #flash-messages
|
6
|
+
+grid-unit-base
|
7
|
+
|
8
|
+
#header-logo
|
9
|
+
+grid-width(5)
|
10
|
+
|
11
|
+
#header-menu
|
12
|
+
+grid-width(19)
|
13
|
+
|
14
|
+
#content
|
15
|
+
+grid-width(19)
|
16
|
+
|
17
|
+
#sidebar
|
18
|
+
+grid-width(5)
|
19
|
+
|
20
|
+
footer, #flash-messages
|
21
|
+
+grid-width(24)
|