stylistic 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +3 -0
- data/0.0.1 +0 -0
- data/Gemfile +4 -0
- data/Rakefile +2 -0
- data/lib/generators/stylistic/USAGE +10 -0
- data/lib/generators/stylistic/stylistic_generator.rb +101 -0
- data/lib/generators/stylistic/templates/960.css +1 -0
- data/lib/generators/stylistic/templates/blueprint/ie.css +36 -0
- data/lib/generators/stylistic/templates/blueprint/print.css +29 -0
- data/lib/generators/stylistic/templates/blueprint/screen.css +265 -0
- data/lib/generators/stylistic/templates/html5-reset.css +57 -0
- data/lib/generators/stylistic/templates/jquery.min.js +167 -0
- data/lib/generators/stylistic/templates/jquery.ui.min.js +404 -0
- data/lib/generators/stylistic/templates/less.css +153 -0
- data/lib/generators/stylistic/templates/rails.js +159 -0
- data/lib/generators/stylistic/templates/squaregrid.css +39 -0
- data/lib/generators/stylistic/templates/stylistic-scaffold.css +176 -0
- data/lib/stylistic.rb +26 -0
- data/lib/stylistic/version.rb +3 -0
- data/readme.md +10 -0
- data/stylistic.gemspec +21 -0
- metadata +85 -0
data/.gitignore
ADDED
data/0.0.1
ADDED
File without changes
|
data/Gemfile
ADDED
data/Rakefile
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
Description:
|
2
|
+
This generator will make your Rails project so stylistic by installing (better) default scaffold styles, popular CSS grid frameworks and jQuery.
|
3
|
+
|
4
|
+
Example:
|
5
|
+
rails generate stylistic
|
6
|
+
|
7
|
+
This will create:
|
8
|
+
public/stylesheets/stylistic-scaffold.css
|
9
|
+
public/stylesheets/html5reset.css
|
10
|
+
public/stylesheets/framework/960.css
|
@@ -0,0 +1,101 @@
|
|
1
|
+
require 'fileutils'
|
2
|
+
|
3
|
+
class StylisticGenerator < ::Rails::Generators::Base
|
4
|
+
|
5
|
+
source_root File.expand_path('../templates', __FILE__)
|
6
|
+
|
7
|
+
@@styles_dest = 'public/stylesheets/stylistic/'
|
8
|
+
@@framework_dest = 'public/stylesheets/framework/'
|
9
|
+
@@js_dest = 'public/javascripts/jquery/'
|
10
|
+
|
11
|
+
desc "This generator will make your Rails project so stylistic by installing (better) default scaffold styles, popular CSS grid frameworks and jQuery."
|
12
|
+
|
13
|
+
class_option :scaffoldstyles, :type => :boolean, :default => true, :desc => "Get rid of standard scaffold CSS and install Stylistic's scaffold CSS"
|
14
|
+
class_option :html5reset, :type => :boolean, :default => true, :desc => "Include html5 CSS resets from http://html5boilerplate.com/"
|
15
|
+
class_option :jquery, :type => :boolean, :default => false, :desc => "Get rid of Prototype and install jQuery and jQuery-ujs"
|
16
|
+
class_option :jqueryui, :type => :boolean, :default => false, :desc => "Install jQueryUI"
|
17
|
+
class_option :gs, :type => :boolean, :default => true, :desc => "Install 960 Grid System CSS framework (http://960.gs/)"
|
18
|
+
class_option :squaregrid, :type => :boolean, :default => false, :desc => "Install Squaregrid CSS framework (http://thesquaregrid.com/) instead of 960.gs"
|
19
|
+
class_option :blueprint, :type => :boolean, :default => false, :desc => "Install Blueprint CSS framework (http://www.blueprintcss.org/) instead of 960.gs"
|
20
|
+
class_option :less, :type => :boolean, :default => false, :desc => "Install Less CSS framework (http://lessframework.com/) instead of 960.gs"
|
21
|
+
|
22
|
+
def install_files
|
23
|
+
|
24
|
+
if options.jquery
|
25
|
+
clobber_prototype
|
26
|
+
include_jquery
|
27
|
+
end
|
28
|
+
|
29
|
+
include_jqueryui if options.jqueryui
|
30
|
+
|
31
|
+
if options.squaregrid
|
32
|
+
include_squaregrid
|
33
|
+
elsif options.less
|
34
|
+
include_less
|
35
|
+
elsif options.blueprint
|
36
|
+
include_blueprint
|
37
|
+
elsif options.gs
|
38
|
+
include_960
|
39
|
+
end
|
40
|
+
|
41
|
+
include_scaffold if options.scaffoldstyles
|
42
|
+
include_html5reset if options.html5reset
|
43
|
+
|
44
|
+
end
|
45
|
+
|
46
|
+
private
|
47
|
+
|
48
|
+
def clobber_prototype
|
49
|
+
['controls.js', 'dragdrop.js', 'effects.js', 'prototype.js', 'rails.js'].each do |file|
|
50
|
+
remove_file "public/javascripts/#{file}" if File.exist?("public/javascripts/#{file}")
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
def clobber_cssframework
|
55
|
+
if File.directory?(@@framework_dest)
|
56
|
+
Dir.foreach(@@framework_dest) do |file|
|
57
|
+
remove_file File.join(@@framework_dest, file.to_s) if /.css/.match(file.to_s)
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
62
|
+
def include_scaffold
|
63
|
+
copy_file('stylistic-scaffold.css', File.join(@@styles_dest, 'stylistic-scaffold.css')) unless File.exist?(File.join(@@styles_dest, 'stylistic-scaffold.css'))
|
64
|
+
end
|
65
|
+
|
66
|
+
def include_html5reset
|
67
|
+
copy_file('html5-reset.css', File.join(@@styles_dest, 'html5-reset.css')) unless File.exist?(File.join(@@styles_dest, 'html5-reset.css'))
|
68
|
+
end
|
69
|
+
|
70
|
+
def include_960
|
71
|
+
clobber_cssframework
|
72
|
+
copy_file('960.css', File.join(@@framework_dest, '960.css')) unless File.exist?(File.join(@@framework_dest, '960.css'))
|
73
|
+
end
|
74
|
+
|
75
|
+
def include_squaregrid
|
76
|
+
clobber_cssframework
|
77
|
+
copy_file('squaregrid.css', File.join(@@framework_dest, 'squaregrid.css')) unless File.exist?(File.join(@@framework_dest, 'squaregrid.css'))
|
78
|
+
end
|
79
|
+
|
80
|
+
def include_blueprint
|
81
|
+
clobber_cssframework
|
82
|
+
['ie.css', 'print.css', 'screen.css'].each do |file|
|
83
|
+
copy_file(File.join('blueprint/', file.to_s), File.join(@@framework_dest, file.to_s)) unless File.exist?(File.join(@@framework_dest, file.to_s))
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
87
|
+
def include_less
|
88
|
+
clobber_cssframework
|
89
|
+
copy_file('less.css', File.join(@@framework_dest, 'less.css')) unless File.exist?(File.join(@@framework_dest, 'less.css'))
|
90
|
+
end
|
91
|
+
|
92
|
+
def include_jquery
|
93
|
+
copy_file('jquery.min.js', File.join(@@js_dest, 'jquery.min.js')) unless File.exist?(File.join(@@js_dest, 'jquery.min.js'))
|
94
|
+
copy_file('rails.js', File.join(@@js_dest, 'rails.js')) unless File.exist?(File.join(@@framework_dest, 'rails.js'))
|
95
|
+
end
|
96
|
+
|
97
|
+
def include_jqueryui
|
98
|
+
copy_file('jquery.ui.min.js', File.join(@@js_dest, 'jquery.ui.min.js')) unless File.exist?(File.join(@@js_dest, 'jquery.ui.min.js'))
|
99
|
+
end
|
100
|
+
|
101
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
body{min-width:960px}.container_12,.container_16{margin-left:auto;margin-right:auto;width:960px}.grid_1,.grid_2,.grid_3,.grid_4,.grid_5,.grid_6,.grid_7,.grid_8,.grid_9,.grid_10,.grid_11,.grid_12,.grid_13,.grid_14,.grid_15,.grid_16{display:inline;float:left;margin-left:10px;margin-right:10px}.push_1,.pull_1,.push_2,.pull_2,.push_3,.pull_3,.push_4,.pull_4,.push_5,.pull_5,.push_6,.pull_6,.push_7,.pull_7,.push_8,.pull_8,.push_9,.pull_9,.push_10,.pull_10,.push_11,.pull_11,.push_12,.pull_12,.push_13,.pull_13,.push_14,.pull_14,.push_15,.pull_15{position:relative}.container_12 .grid_3,.container_16 .grid_4{width:220px}.container_12 .grid_6,.container_16 .grid_8{width:460px}.container_12 .grid_9,.container_16 .grid_12{width:700px}.container_12 .grid_12,.container_16 .grid_16{width:940px}.alpha{margin-left:0}.omega{margin-right:0}.container_12 .grid_1{width:60px}.container_12 .grid_2{width:140px}.container_12 .grid_4{width:300px}.container_12 .grid_5{width:380px}.container_12 .grid_7{width:540px}.container_12 .grid_8{width:620px}.container_12 .grid_10{width:780px}.container_12 .grid_11{width:860px}.container_16 .grid_1{width:40px}.container_16 .grid_2{width:100px}.container_16 .grid_3{width:160px}.container_16 .grid_5{width:280px}.container_16 .grid_6{width:340px}.container_16 .grid_7{width:400px}.container_16 .grid_9{width:520px}.container_16 .grid_10{width:580px}.container_16 .grid_11{width:640px}.container_16 .grid_13{width:760px}.container_16 .grid_14{width:820px}.container_16 .grid_15{width:880px}.container_12 .prefix_3,.container_16 .prefix_4{padding-left:240px}.container_12 .prefix_6,.container_16 .prefix_8{padding-left:480px}.container_12 .prefix_9,.container_16 .prefix_12{padding-left:720px}.container_12 .prefix_1{padding-left:80px}.container_12 .prefix_2{padding-left:160px}.container_12 .prefix_4{padding-left:320px}.container_12 .prefix_5{padding-left:400px}.container_12 .prefix_7{padding-left:560px}.container_12 .prefix_8{padding-left:640px}.container_12 .prefix_10{padding-left:800px}.container_12 .prefix_11{padding-left:880px}.container_16 .prefix_1{padding-left:60px}.container_16 .prefix_2{padding-left:120px}.container_16 .prefix_3{padding-left:180px}.container_16 .prefix_5{padding-left:300px}.container_16 .prefix_6{padding-left:360px}.container_16 .prefix_7{padding-left:420px}.container_16 .prefix_9{padding-left:540px}.container_16 .prefix_10{padding-left:600px}.container_16 .prefix_11{padding-left:660px}.container_16 .prefix_13{padding-left:780px}.container_16 .prefix_14{padding-left:840px}.container_16 .prefix_15{padding-left:900px}.container_12 .suffix_3,.container_16 .suffix_4{padding-right:240px}.container_12 .suffix_6,.container_16 .suffix_8{padding-right:480px}.container_12 .suffix_9,.container_16 .suffix_12{padding-right:720px}.container_12 .suffix_1{padding-right:80px}.container_12 .suffix_2{padding-right:160px}.container_12 .suffix_4{padding-right:320px}.container_12 .suffix_5{padding-right:400px}.container_12 .suffix_7{padding-right:560px}.container_12 .suffix_8{padding-right:640px}.container_12 .suffix_10{padding-right:800px}.container_12 .suffix_11{padding-right:880px}.container_16 .suffix_1{padding-right:60px}.container_16 .suffix_2{padding-right:120px}.container_16 .suffix_3{padding-right:180px}.container_16 .suffix_5{padding-right:300px}.container_16 .suffix_6{padding-right:360px}.container_16 .suffix_7{padding-right:420px}.container_16 .suffix_9{padding-right:540px}.container_16 .suffix_10{padding-right:600px}.container_16 .suffix_11{padding-right:660px}.container_16 .suffix_13{padding-right:780px}.container_16 .suffix_14{padding-right:840px}.container_16 .suffix_15{padding-right:900px}.container_12 .push_3,.container_16 .push_4{left:240px}.container_12 .push_6,.container_16 .push_8{left:480px}.container_12 .push_9,.container_16 .push_12{left:720px}.container_12 .push_1{left:80px}.container_12 .push_2{left:160px}.container_12 .push_4{left:320px}.container_12 .push_5{left:400px}.container_12 .push_7{left:560px}.container_12 .push_8{left:640px}.container_12 .push_10{left:800px}.container_12 .push_11{left:880px}.container_16 .push_1{left:60px}.container_16 .push_2{left:120px}.container_16 .push_3{left:180px}.container_16 .push_5{left:300px}.container_16 .push_6{left:360px}.container_16 .push_7{left:420px}.container_16 .push_9{left:540px}.container_16 .push_10{left:600px}.container_16 .push_11{left:660px}.container_16 .push_13{left:780px}.container_16 .push_14{left:840px}.container_16 .push_15{left:900px}.container_12 .pull_3,.container_16 .pull_4{left:-240px}.container_12 .pull_6,.container_16 .pull_8{left:-480px}.container_12 .pull_9,.container_16 .pull_12{left:-720px}.container_12 .pull_1{left:-80px}.container_12 .pull_2{left:-160px}.container_12 .pull_4{left:-320px}.container_12 .pull_5{left:-400px}.container_12 .pull_7{left:-560px}.container_12 .pull_8{left:-640px}.container_12 .pull_10{left:-800px}.container_12 .pull_11{left:-880px}.container_16 .pull_1{left:-60px}.container_16 .pull_2{left:-120px}.container_16 .pull_3{left:-180px}.container_16 .pull_5{left:-300px}.container_16 .pull_6{left:-360px}.container_16 .pull_7{left:-420px}.container_16 .pull_9{left:-540px}.container_16 .pull_10{left:-600px}.container_16 .pull_11{left:-660px}.container_16 .pull_13{left:-780px}.container_16 .pull_14{left:-840px}.container_16 .pull_15{left:-900px}.clear{clear:both;display:block;overflow:hidden;visibility:hidden;width:0;height:0}.clearfix:before,.clearfix:after{content:'\0020';display:block;overflow:hidden;visibility:hidden;width:0;height:0}.clearfix:after{clear:both}.clearfix{zoom:1}
|
@@ -0,0 +1,36 @@
|
|
1
|
+
/* -----------------------------------------------------------------------
|
2
|
+
|
3
|
+
|
4
|
+
Blueprint CSS Framework 1.0
|
5
|
+
http://blueprintcss.org
|
6
|
+
|
7
|
+
* Copyright (c) 2007-Present. See LICENSE for more info.
|
8
|
+
* See README for instructions on how to use Blueprint.
|
9
|
+
* For credits and origins, see AUTHORS.
|
10
|
+
* This is a compressed file. See the sources in the 'src' directory.
|
11
|
+
|
12
|
+
----------------------------------------------------------------------- */
|
13
|
+
|
14
|
+
/* ie.css */
|
15
|
+
body {text-align:center;}
|
16
|
+
.container {text-align:left;}
|
17
|
+
* html .column, * html .span-1, * html .span-2, * html .span-3, * html .span-4, * html .span-5, * html .span-6, * html .span-7, * html .span-8, * html .span-9, * html .span-10, * html .span-11, * html .span-12, * html .span-13, * html .span-14, * html .span-15, * html .span-16, * html .span-17, * html .span-18, * html .span-19, * html .span-20, * html .span-21, * html .span-22, * html .span-23, * html .span-24 {display:inline;overflow-x:hidden;}
|
18
|
+
* html legend {margin:0px -8px 16px 0;padding:0;}
|
19
|
+
sup {vertical-align:text-top;}
|
20
|
+
sub {vertical-align:text-bottom;}
|
21
|
+
html>body p code {*white-space:normal;}
|
22
|
+
hr {margin:-8px auto 11px;}
|
23
|
+
img {-ms-interpolation-mode:bicubic;}
|
24
|
+
.clearfix, .container {display:inline-block;}
|
25
|
+
* html .clearfix, * html .container {height:1%;}
|
26
|
+
fieldset {padding-top:0;}
|
27
|
+
legend {margin-top:-0.2em;margin-bottom:1em;margin-left:-0.5em;}
|
28
|
+
textarea {overflow:auto;}
|
29
|
+
label {vertical-align:middle;position:relative;top:-0.25em;}
|
30
|
+
input.text, input.title, textarea {background-color:#fff;border:1px solid #bbb;}
|
31
|
+
input.text:focus, input.title:focus {border-color:#666;}
|
32
|
+
input.text, input.title, textarea, select {margin:0.5em 0;}
|
33
|
+
input.checkbox, input.radio {position:relative;top:.25em;}
|
34
|
+
form.inline div, form.inline p {vertical-align:middle;}
|
35
|
+
form.inline input.checkbox, form.inline input.radio, form.inline input.button, form.inline button {margin:0.5em 0;}
|
36
|
+
button, input.button {position:relative;top:0.25em;}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
/* -----------------------------------------------------------------------
|
2
|
+
|
3
|
+
|
4
|
+
Blueprint CSS Framework 1.0
|
5
|
+
http://blueprintcss.org
|
6
|
+
|
7
|
+
* Copyright (c) 2007-Present. See LICENSE for more info.
|
8
|
+
* See README for instructions on how to use Blueprint.
|
9
|
+
* For credits and origins, see AUTHORS.
|
10
|
+
* This is a compressed file. See the sources in the 'src' directory.
|
11
|
+
|
12
|
+
----------------------------------------------------------------------- */
|
13
|
+
|
14
|
+
/* print.css */
|
15
|
+
body {line-height:1.5;font-family:"Helvetica Neue", Arial, Helvetica, sans-serif;color:#000;background:none;font-size:10pt;}
|
16
|
+
.container {background:none;}
|
17
|
+
hr {background:#ccc;color:#ccc;width:100%;height:2px;margin:2em 0;padding:0;border:none;}
|
18
|
+
hr.space {background:#fff;color:#fff;visibility:hidden;}
|
19
|
+
h1, h2, h3, h4, h5, h6 {font-family:"Helvetica Neue", Arial, "Lucida Grande", sans-serif;}
|
20
|
+
code {font:.9em "Courier New", Monaco, Courier, monospace;}
|
21
|
+
a img {border:none;}
|
22
|
+
p img.top {margin-top:0;}
|
23
|
+
blockquote {margin:1.5em;padding:1em;font-style:italic;font-size:.9em;}
|
24
|
+
.small {font-size:.9em;}
|
25
|
+
.large {font-size:1.1em;}
|
26
|
+
.quiet {color:#999;}
|
27
|
+
.hide {display:none;}
|
28
|
+
a:link, a:visited {background:transparent;font-weight:700;text-decoration:underline;}
|
29
|
+
a:link:after, a:visited:after {content:" (" attr(href) ")";font-size:90%;}
|
@@ -0,0 +1,265 @@
|
|
1
|
+
/* -----------------------------------------------------------------------
|
2
|
+
|
3
|
+
|
4
|
+
Blueprint CSS Framework 1.0
|
5
|
+
http://blueprintcss.org
|
6
|
+
|
7
|
+
* Copyright (c) 2007-Present. See LICENSE for more info.
|
8
|
+
* See README for instructions on how to use Blueprint.
|
9
|
+
* For credits and origins, see AUTHORS.
|
10
|
+
* This is a compressed file. See the sources in the 'src' directory.
|
11
|
+
|
12
|
+
----------------------------------------------------------------------- */
|
13
|
+
|
14
|
+
/* reset.css */
|
15
|
+
html {margin:0;padding:0;border:0;}
|
16
|
+
body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, code, del, dfn, em, img, q, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, dialog, figure, footer, header, hgroup, nav, section {margin:0;padding:0;border:0;font-weight:inherit;font-style:inherit;font-size:100%;font-family:inherit;vertical-align:baseline;}
|
17
|
+
article, aside, dialog, figure, footer, header, hgroup, nav, section {display:block;}
|
18
|
+
body {line-height:1.5;background:white;}
|
19
|
+
table {border-collapse:separate;border-spacing:0;}
|
20
|
+
caption, th, td {text-align:left;font-weight:normal;float:none !important;}
|
21
|
+
table, th, td {vertical-align:middle;}
|
22
|
+
blockquote:before, blockquote:after, q:before, q:after {content:'';}
|
23
|
+
blockquote, q {quotes:"" "";}
|
24
|
+
a img {border:none;}
|
25
|
+
:focus {outline:0;}
|
26
|
+
|
27
|
+
/* typography.css */
|
28
|
+
html {font-size:100.01%;}
|
29
|
+
body {font-size:75%;color:#222;background:#fff;font-family:"Helvetica Neue", Arial, Helvetica, sans-serif;}
|
30
|
+
h1, h2, h3, h4, h5, h6 {font-weight:normal;color:#111;}
|
31
|
+
h1 {font-size:3em;line-height:1;margin-bottom:0.5em;}
|
32
|
+
h2 {font-size:2em;margin-bottom:0.75em;}
|
33
|
+
h3 {font-size:1.5em;line-height:1;margin-bottom:1em;}
|
34
|
+
h4 {font-size:1.2em;line-height:1.25;margin-bottom:1.25em;}
|
35
|
+
h5 {font-size:1em;font-weight:bold;margin-bottom:1.5em;}
|
36
|
+
h6 {font-size:1em;font-weight:bold;}
|
37
|
+
h1 img, h2 img, h3 img, h4 img, h5 img, h6 img {margin:0;}
|
38
|
+
p {margin:0 0 1.5em;}
|
39
|
+
.left {float:left !important;}
|
40
|
+
p .left {margin:1.5em 1.5em 1.5em 0;padding:0;}
|
41
|
+
.right {float:right !important;}
|
42
|
+
p .right {margin:1.5em 0 1.5em 1.5em;padding:0;}
|
43
|
+
a:focus, a:hover {color:#09f;}
|
44
|
+
a {color:#06c;text-decoration:underline;}
|
45
|
+
blockquote {margin:1.5em;color:#666;font-style:italic;}
|
46
|
+
strong, dfn {font-weight:bold;}
|
47
|
+
em, dfn {font-style:italic;}
|
48
|
+
sup, sub {line-height:0;}
|
49
|
+
abbr, acronym {border-bottom:1px dotted #666;}
|
50
|
+
address {margin:0 0 1.5em;font-style:italic;}
|
51
|
+
del {color:#666;}
|
52
|
+
pre {margin:1.5em 0;white-space:pre;}
|
53
|
+
pre, code, tt {font:1em 'andale mono', 'lucida console', monospace;line-height:1.5;}
|
54
|
+
li ul, li ol {margin:0;}
|
55
|
+
ul, ol {margin:0 1.5em 1.5em 0;padding-left:1.5em;}
|
56
|
+
ul {list-style-type:disc;}
|
57
|
+
ol {list-style-type:decimal;}
|
58
|
+
dl {margin:0 0 1.5em 0;}
|
59
|
+
dl dt {font-weight:bold;}
|
60
|
+
dd {margin-left:1.5em;}
|
61
|
+
table {margin-bottom:1.4em;width:100%;}
|
62
|
+
th {font-weight:bold;}
|
63
|
+
thead th {background:#c3d9ff;}
|
64
|
+
th, td, caption {padding:4px 10px 4px 5px;}
|
65
|
+
tbody tr:nth-child(even) td, tbody tr.even td {background:#e5ecf9;}
|
66
|
+
tfoot {font-style:italic;}
|
67
|
+
caption {background:#eee;}
|
68
|
+
.small {font-size:.8em;margin-bottom:1.875em;line-height:1.875em;}
|
69
|
+
.large {font-size:1.2em;line-height:2.5em;margin-bottom:1.25em;}
|
70
|
+
.hide {display:none;}
|
71
|
+
.quiet {color:#666;}
|
72
|
+
.loud {color:#000;}
|
73
|
+
.highlight {background:#ff0;}
|
74
|
+
.added {background:#060;color:#fff;}
|
75
|
+
.removed {background:#900;color:#fff;}
|
76
|
+
.first {margin-left:0;padding-left:0;}
|
77
|
+
.last {margin-right:0;padding-right:0;}
|
78
|
+
.top {margin-top:0;padding-top:0;}
|
79
|
+
.bottom {margin-bottom:0;padding-bottom:0;}
|
80
|
+
|
81
|
+
/* forms.css */
|
82
|
+
label {font-weight:bold;}
|
83
|
+
fieldset {padding:0 1.4em 1.4em 1.4em;margin:0 0 1.5em 0;border:1px solid #ccc;}
|
84
|
+
legend {font-weight:bold;font-size:1.2em;margin-top:-0.2em;margin-bottom:1em;}
|
85
|
+
fieldset, #IE8#HACK {padding-top:1.4em;}
|
86
|
+
legend, #IE8#HACK {margin-top:0;margin-bottom:0;}
|
87
|
+
input[type=text], input[type=password], input.text, input.title, textarea {background-color:#fff;border:1px solid #bbb;}
|
88
|
+
input[type=text]:focus, input[type=password]:focus, input.text:focus, input.title:focus, textarea:focus {border-color:#666;}
|
89
|
+
select {background-color:#fff;border-width:1px;border-style:solid;}
|
90
|
+
input[type=text], input[type=password], input.text, input.title, textarea, select {margin:0.5em 0;}
|
91
|
+
input.text, input.title {width:300px;padding:5px;}
|
92
|
+
input.title {font-size:1.5em;}
|
93
|
+
textarea {width:390px;height:250px;padding:5px;}
|
94
|
+
form.inline {line-height:3;}
|
95
|
+
form.inline p {margin-bottom:0;}
|
96
|
+
.error, .alert, .notice, .success, .info {padding:0.8em;margin-bottom:1em;border:2px solid #ddd;}
|
97
|
+
.error, .alert {background:#fbe3e4;color:#8a1f11;border-color:#fbc2c4;}
|
98
|
+
.notice {background:#fff6bf;color:#514721;border-color:#ffd324;}
|
99
|
+
.success {background:#e6efc2;color:#264409;border-color:#c6d880;}
|
100
|
+
.info {background:#d5edf8;color:#205791;border-color:#92cae4;}
|
101
|
+
.error a, .alert a {color:#8a1f11;}
|
102
|
+
.notice a {color:#514721;}
|
103
|
+
.success a {color:#264409;}
|
104
|
+
.info a {color:#205791;}
|
105
|
+
|
106
|
+
/* grid.css */
|
107
|
+
.container {width:950px;margin:0 auto;}
|
108
|
+
.showgrid {background:url(src/grid.png);}
|
109
|
+
.column, .span-1, .span-2, .span-3, .span-4, .span-5, .span-6, .span-7, .span-8, .span-9, .span-10, .span-11, .span-12, .span-13, .span-14, .span-15, .span-16, .span-17, .span-18, .span-19, .span-20, .span-21, .span-22, .span-23, .span-24 {float:left;margin-right:10px;}
|
110
|
+
.last {margin-right:0;}
|
111
|
+
.span-1 {width:30px;}
|
112
|
+
.span-2 {width:70px;}
|
113
|
+
.span-3 {width:110px;}
|
114
|
+
.span-4 {width:150px;}
|
115
|
+
.span-5 {width:190px;}
|
116
|
+
.span-6 {width:230px;}
|
117
|
+
.span-7 {width:270px;}
|
118
|
+
.span-8 {width:310px;}
|
119
|
+
.span-9 {width:350px;}
|
120
|
+
.span-10 {width:390px;}
|
121
|
+
.span-11 {width:430px;}
|
122
|
+
.span-12 {width:470px;}
|
123
|
+
.span-13 {width:510px;}
|
124
|
+
.span-14 {width:550px;}
|
125
|
+
.span-15 {width:590px;}
|
126
|
+
.span-16 {width:630px;}
|
127
|
+
.span-17 {width:670px;}
|
128
|
+
.span-18 {width:710px;}
|
129
|
+
.span-19 {width:750px;}
|
130
|
+
.span-20 {width:790px;}
|
131
|
+
.span-21 {width:830px;}
|
132
|
+
.span-22 {width:870px;}
|
133
|
+
.span-23 {width:910px;}
|
134
|
+
.span-24 {width:950px;margin-right:0;}
|
135
|
+
input.span-1, textarea.span-1, input.span-2, textarea.span-2, input.span-3, textarea.span-3, input.span-4, textarea.span-4, input.span-5, textarea.span-5, input.span-6, textarea.span-6, input.span-7, textarea.span-7, input.span-8, textarea.span-8, input.span-9, textarea.span-9, input.span-10, textarea.span-10, input.span-11, textarea.span-11, input.span-12, textarea.span-12, input.span-13, textarea.span-13, input.span-14, textarea.span-14, input.span-15, textarea.span-15, input.span-16, textarea.span-16, input.span-17, textarea.span-17, input.span-18, textarea.span-18, input.span-19, textarea.span-19, input.span-20, textarea.span-20, input.span-21, textarea.span-21, input.span-22, textarea.span-22, input.span-23, textarea.span-23, input.span-24, textarea.span-24 {border-left-width:1px;border-right-width:1px;padding-left:5px;padding-right:5px;}
|
136
|
+
input.span-1, textarea.span-1 {width:18px;}
|
137
|
+
input.span-2, textarea.span-2 {width:58px;}
|
138
|
+
input.span-3, textarea.span-3 {width:98px;}
|
139
|
+
input.span-4, textarea.span-4 {width:138px;}
|
140
|
+
input.span-5, textarea.span-5 {width:178px;}
|
141
|
+
input.span-6, textarea.span-6 {width:218px;}
|
142
|
+
input.span-7, textarea.span-7 {width:258px;}
|
143
|
+
input.span-8, textarea.span-8 {width:298px;}
|
144
|
+
input.span-9, textarea.span-9 {width:338px;}
|
145
|
+
input.span-10, textarea.span-10 {width:378px;}
|
146
|
+
input.span-11, textarea.span-11 {width:418px;}
|
147
|
+
input.span-12, textarea.span-12 {width:458px;}
|
148
|
+
input.span-13, textarea.span-13 {width:498px;}
|
149
|
+
input.span-14, textarea.span-14 {width:538px;}
|
150
|
+
input.span-15, textarea.span-15 {width:578px;}
|
151
|
+
input.span-16, textarea.span-16 {width:618px;}
|
152
|
+
input.span-17, textarea.span-17 {width:658px;}
|
153
|
+
input.span-18, textarea.span-18 {width:698px;}
|
154
|
+
input.span-19, textarea.span-19 {width:738px;}
|
155
|
+
input.span-20, textarea.span-20 {width:778px;}
|
156
|
+
input.span-21, textarea.span-21 {width:818px;}
|
157
|
+
input.span-22, textarea.span-22 {width:858px;}
|
158
|
+
input.span-23, textarea.span-23 {width:898px;}
|
159
|
+
input.span-24, textarea.span-24 {width:938px;}
|
160
|
+
.append-1 {padding-right:40px;}
|
161
|
+
.append-2 {padding-right:80px;}
|
162
|
+
.append-3 {padding-right:120px;}
|
163
|
+
.append-4 {padding-right:160px;}
|
164
|
+
.append-5 {padding-right:200px;}
|
165
|
+
.append-6 {padding-right:240px;}
|
166
|
+
.append-7 {padding-right:280px;}
|
167
|
+
.append-8 {padding-right:320px;}
|
168
|
+
.append-9 {padding-right:360px;}
|
169
|
+
.append-10 {padding-right:400px;}
|
170
|
+
.append-11 {padding-right:440px;}
|
171
|
+
.append-12 {padding-right:480px;}
|
172
|
+
.append-13 {padding-right:520px;}
|
173
|
+
.append-14 {padding-right:560px;}
|
174
|
+
.append-15 {padding-right:600px;}
|
175
|
+
.append-16 {padding-right:640px;}
|
176
|
+
.append-17 {padding-right:680px;}
|
177
|
+
.append-18 {padding-right:720px;}
|
178
|
+
.append-19 {padding-right:760px;}
|
179
|
+
.append-20 {padding-right:800px;}
|
180
|
+
.append-21 {padding-right:840px;}
|
181
|
+
.append-22 {padding-right:880px;}
|
182
|
+
.append-23 {padding-right:920px;}
|
183
|
+
.prepend-1 {padding-left:40px;}
|
184
|
+
.prepend-2 {padding-left:80px;}
|
185
|
+
.prepend-3 {padding-left:120px;}
|
186
|
+
.prepend-4 {padding-left:160px;}
|
187
|
+
.prepend-5 {padding-left:200px;}
|
188
|
+
.prepend-6 {padding-left:240px;}
|
189
|
+
.prepend-7 {padding-left:280px;}
|
190
|
+
.prepend-8 {padding-left:320px;}
|
191
|
+
.prepend-9 {padding-left:360px;}
|
192
|
+
.prepend-10 {padding-left:400px;}
|
193
|
+
.prepend-11 {padding-left:440px;}
|
194
|
+
.prepend-12 {padding-left:480px;}
|
195
|
+
.prepend-13 {padding-left:520px;}
|
196
|
+
.prepend-14 {padding-left:560px;}
|
197
|
+
.prepend-15 {padding-left:600px;}
|
198
|
+
.prepend-16 {padding-left:640px;}
|
199
|
+
.prepend-17 {padding-left:680px;}
|
200
|
+
.prepend-18 {padding-left:720px;}
|
201
|
+
.prepend-19 {padding-left:760px;}
|
202
|
+
.prepend-20 {padding-left:800px;}
|
203
|
+
.prepend-21 {padding-left:840px;}
|
204
|
+
.prepend-22 {padding-left:880px;}
|
205
|
+
.prepend-23 {padding-left:920px;}
|
206
|
+
.border {padding-right:4px;margin-right:5px;border-right:1px solid #ddd;}
|
207
|
+
.colborder {padding-right:24px;margin-right:25px;border-right:1px solid #ddd;}
|
208
|
+
.pull-1 {margin-left:-40px;}
|
209
|
+
.pull-2 {margin-left:-80px;}
|
210
|
+
.pull-3 {margin-left:-120px;}
|
211
|
+
.pull-4 {margin-left:-160px;}
|
212
|
+
.pull-5 {margin-left:-200px;}
|
213
|
+
.pull-6 {margin-left:-240px;}
|
214
|
+
.pull-7 {margin-left:-280px;}
|
215
|
+
.pull-8 {margin-left:-320px;}
|
216
|
+
.pull-9 {margin-left:-360px;}
|
217
|
+
.pull-10 {margin-left:-400px;}
|
218
|
+
.pull-11 {margin-left:-440px;}
|
219
|
+
.pull-12 {margin-left:-480px;}
|
220
|
+
.pull-13 {margin-left:-520px;}
|
221
|
+
.pull-14 {margin-left:-560px;}
|
222
|
+
.pull-15 {margin-left:-600px;}
|
223
|
+
.pull-16 {margin-left:-640px;}
|
224
|
+
.pull-17 {margin-left:-680px;}
|
225
|
+
.pull-18 {margin-left:-720px;}
|
226
|
+
.pull-19 {margin-left:-760px;}
|
227
|
+
.pull-20 {margin-left:-800px;}
|
228
|
+
.pull-21 {margin-left:-840px;}
|
229
|
+
.pull-22 {margin-left:-880px;}
|
230
|
+
.pull-23 {margin-left:-920px;}
|
231
|
+
.pull-24 {margin-left:-960px;}
|
232
|
+
.pull-1, .pull-2, .pull-3, .pull-4, .pull-5, .pull-6, .pull-7, .pull-8, .pull-9, .pull-10, .pull-11, .pull-12, .pull-13, .pull-14, .pull-15, .pull-16, .pull-17, .pull-18, .pull-19, .pull-20, .pull-21, .pull-22, .pull-23, .pull-24 {float:left;position:relative;}
|
233
|
+
.push-1 {margin:0 -40px 1.5em 40px;}
|
234
|
+
.push-2 {margin:0 -80px 1.5em 80px;}
|
235
|
+
.push-3 {margin:0 -120px 1.5em 120px;}
|
236
|
+
.push-4 {margin:0 -160px 1.5em 160px;}
|
237
|
+
.push-5 {margin:0 -200px 1.5em 200px;}
|
238
|
+
.push-6 {margin:0 -240px 1.5em 240px;}
|
239
|
+
.push-7 {margin:0 -280px 1.5em 280px;}
|
240
|
+
.push-8 {margin:0 -320px 1.5em 320px;}
|
241
|
+
.push-9 {margin:0 -360px 1.5em 360px;}
|
242
|
+
.push-10 {margin:0 -400px 1.5em 400px;}
|
243
|
+
.push-11 {margin:0 -440px 1.5em 440px;}
|
244
|
+
.push-12 {margin:0 -480px 1.5em 480px;}
|
245
|
+
.push-13 {margin:0 -520px 1.5em 520px;}
|
246
|
+
.push-14 {margin:0 -560px 1.5em 560px;}
|
247
|
+
.push-15 {margin:0 -600px 1.5em 600px;}
|
248
|
+
.push-16 {margin:0 -640px 1.5em 640px;}
|
249
|
+
.push-17 {margin:0 -680px 1.5em 680px;}
|
250
|
+
.push-18 {margin:0 -720px 1.5em 720px;}
|
251
|
+
.push-19 {margin:0 -760px 1.5em 760px;}
|
252
|
+
.push-20 {margin:0 -800px 1.5em 800px;}
|
253
|
+
.push-21 {margin:0 -840px 1.5em 840px;}
|
254
|
+
.push-22 {margin:0 -880px 1.5em 880px;}
|
255
|
+
.push-23 {margin:0 -920px 1.5em 920px;}
|
256
|
+
.push-24 {margin:0 -960px 1.5em 960px;}
|
257
|
+
.push-1, .push-2, .push-3, .push-4, .push-5, .push-6, .push-7, .push-8, .push-9, .push-10, .push-11, .push-12, .push-13, .push-14, .push-15, .push-16, .push-17, .push-18, .push-19, .push-20, .push-21, .push-22, .push-23, .push-24 {float:left;position:relative;}
|
258
|
+
div.prepend-top, .prepend-top {margin-top:1.5em;}
|
259
|
+
div.append-bottom, .append-bottom {margin-bottom:1.5em;}
|
260
|
+
.box {padding:1.5em;margin-bottom:1.5em;background:#e5eCf9;}
|
261
|
+
hr {background:#ddd;color:#ddd;clear:both;float:none;width:100%;height:1px;margin:0 0 1.45em;border:none;}
|
262
|
+
hr.space {background:#fff;color:#fff;visibility:hidden;}
|
263
|
+
.clearfix:after, .container:after {content:"\0020";display:block;height:0;clear:both;visibility:hidden;overflow:hidden;}
|
264
|
+
.clearfix, .container {display:block;}
|
265
|
+
.clear {clear:both;}
|