rules_view 0.0.1
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/LICENSE +20 -0
- data/README.textile +129 -0
- data/Rakefile +47 -0
- data/VERSION +1 -0
- data/app/views/layouts/rules_view.html.erb +43 -0
- data/app/views/re_view/template.html.erb +196 -0
- data/autotest/discover.rb +2 -0
- data/generators/install_generator.rb +41 -0
- data/generators/layout_generator.rb +41 -0
- data/generators/manifests/application.rb +116 -0
- data/generators/manifests/application.yml +8 -0
- data/generators/manifests/layout.rb +17 -0
- data/generators/manifests/layout.yml +5 -0
- data/generators/manifests/templates/app/views/layouts/rules_view_layout.html.erb +47 -0
- data/generators/manifests/templates/config/initializers/rules_view.rb +1 -0
- data/generators/manifests/templates/doc/README.rules_view +97 -0
- data/generators/manifests/templates/public/javascripts/rules_view/jquery-1.4.2.min.js +154 -0
- data/generators/manifests/templates/public/javascripts/rules_view/jquery.autocomplete.pack.js +13 -0
- data/generators/manifests/templates/public/javascripts/rules_view/jquery.blockUI.js +486 -0
- data/generators/manifests/templates/public/javascripts/rules_view/jquery.fancybox-1.3.1.js +1077 -0
- data/generators/manifests/templates/public/javascripts/rules_view/re_view.js +148 -0
- data/generators/manifests/templates/public/stylesheets/rules_view/blueprint/ie.css +35 -0
- data/generators/manifests/templates/public/stylesheets/rules_view/blueprint/plugins/buttons/icons/cross.png +0 -0
- data/generators/manifests/templates/public/stylesheets/rules_view/blueprint/plugins/buttons/icons/key.png +0 -0
- data/generators/manifests/templates/public/stylesheets/rules_view/blueprint/plugins/buttons/icons/tick.png +0 -0
- data/generators/manifests/templates/public/stylesheets/rules_view/blueprint/plugins/buttons/readme.txt +32 -0
- data/generators/manifests/templates/public/stylesheets/rules_view/blueprint/plugins/buttons/screen.css +97 -0
- data/generators/manifests/templates/public/stylesheets/rules_view/blueprint/plugins/fancy-type/readme.txt +14 -0
- data/generators/manifests/templates/public/stylesheets/rules_view/blueprint/plugins/fancy-type/screen.css +71 -0
- data/generators/manifests/templates/public/stylesheets/rules_view/blueprint/plugins/link-icons/icons/doc.png +0 -0
- data/generators/manifests/templates/public/stylesheets/rules_view/blueprint/plugins/link-icons/icons/email.png +0 -0
- data/generators/manifests/templates/public/stylesheets/rules_view/blueprint/plugins/link-icons/icons/external.png +0 -0
- data/generators/manifests/templates/public/stylesheets/rules_view/blueprint/plugins/link-icons/icons/feed.png +0 -0
- data/generators/manifests/templates/public/stylesheets/rules_view/blueprint/plugins/link-icons/icons/im.png +0 -0
- data/generators/manifests/templates/public/stylesheets/rules_view/blueprint/plugins/link-icons/icons/pdf.png +0 -0
- data/generators/manifests/templates/public/stylesheets/rules_view/blueprint/plugins/link-icons/icons/visited.png +0 -0
- data/generators/manifests/templates/public/stylesheets/rules_view/blueprint/plugins/link-icons/icons/xls.png +0 -0
- data/generators/manifests/templates/public/stylesheets/rules_view/blueprint/plugins/link-icons/readme.txt +18 -0
- data/generators/manifests/templates/public/stylesheets/rules_view/blueprint/plugins/link-icons/screen.css +40 -0
- data/generators/manifests/templates/public/stylesheets/rules_view/blueprint/plugins/rtl/readme.txt +10 -0
- data/generators/manifests/templates/public/stylesheets/rules_view/blueprint/plugins/rtl/screen.css +110 -0
- data/generators/manifests/templates/public/stylesheets/rules_view/blueprint/print.css +29 -0
- data/generators/manifests/templates/public/stylesheets/rules_view/blueprint/screen.css +258 -0
- data/generators/manifests/templates/public/stylesheets/rules_view/blueprint/src/forms.css +65 -0
- data/generators/manifests/templates/public/stylesheets/rules_view/blueprint/src/grid.css +280 -0
- data/generators/manifests/templates/public/stylesheets/rules_view/blueprint/src/grid.png +0 -0
- data/generators/manifests/templates/public/stylesheets/rules_view/blueprint/src/ie.css +76 -0
- data/generators/manifests/templates/public/stylesheets/rules_view/blueprint/src/print.css +85 -0
- data/generators/manifests/templates/public/stylesheets/rules_view/blueprint/src/reset.css +45 -0
- data/generators/manifests/templates/public/stylesheets/rules_view/blueprint/src/typography.css +106 -0
- data/generators/manifests/templates/public/stylesheets/rules_view/fancybox/blank.gif +0 -0
- data/generators/manifests/templates/public/stylesheets/rules_view/fancybox/fancy_close.png +0 -0
- data/generators/manifests/templates/public/stylesheets/rules_view/fancybox/fancy_loading.png +0 -0
- data/generators/manifests/templates/public/stylesheets/rules_view/fancybox/fancy_nav_left.png +0 -0
- data/generators/manifests/templates/public/stylesheets/rules_view/fancybox/fancy_nav_right.png +0 -0
- data/generators/manifests/templates/public/stylesheets/rules_view/fancybox/fancy_shadow_e.png +0 -0
- data/generators/manifests/templates/public/stylesheets/rules_view/fancybox/fancy_shadow_n.png +0 -0
- data/generators/manifests/templates/public/stylesheets/rules_view/fancybox/fancy_shadow_ne.png +0 -0
- data/generators/manifests/templates/public/stylesheets/rules_view/fancybox/fancy_shadow_nw.png +0 -0
- data/generators/manifests/templates/public/stylesheets/rules_view/fancybox/fancy_shadow_s.png +0 -0
- data/generators/manifests/templates/public/stylesheets/rules_view/fancybox/fancy_shadow_se.png +0 -0
- data/generators/manifests/templates/public/stylesheets/rules_view/fancybox/fancy_shadow_sw.png +0 -0
- data/generators/manifests/templates/public/stylesheets/rules_view/fancybox/fancy_shadow_w.png +0 -0
- data/generators/manifests/templates/public/stylesheets/rules_view/fancybox/fancy_title_left.png +0 -0
- data/generators/manifests/templates/public/stylesheets/rules_view/fancybox/fancy_title_main.png +0 -0
- data/generators/manifests/templates/public/stylesheets/rules_view/fancybox/fancy_title_over.png +0 -0
- data/generators/manifests/templates/public/stylesheets/rules_view/fancybox/fancy_title_right.png +0 -0
- data/generators/manifests/templates/public/stylesheets/rules_view/fancybox/fancybox-x.png +0 -0
- data/generators/manifests/templates/public/stylesheets/rules_view/fancybox/fancybox-y.png +0 -0
- data/generators/manifests/templates/public/stylesheets/rules_view/fancybox/fancybox.png +0 -0
- data/generators/manifests/templates/public/stylesheets/rules_view/fancybox/jquery.fancybox-1.3.1.css +363 -0
- data/generators/manifests/templates/public/stylesheets/rules_view/images/re_view_box/shadowbox.png +0 -0
- data/generators/manifests/templates/public/stylesheets/rules_view/images/re_view_box/whitebox.jpg +0 -0
- data/generators/manifests/templates/public/stylesheets/rules_view/images/re_view_button/checked-off.gif +0 -0
- data/generators/manifests/templates/public/stylesheets/rules_view/images/re_view_button/checked-on.gif +0 -0
- data/generators/manifests/templates/public/stylesheets/rules_view/images/re_view_button/icon-add.png +0 -0
- data/generators/manifests/templates/public/stylesheets/rules_view/images/re_view_button/icon-delete.png +0 -0
- data/generators/manifests/templates/public/stylesheets/rules_view/images/re_view_button/list-add.png +0 -0
- data/generators/manifests/templates/public/stylesheets/rules_view/images/re_view_button/list-remove.png +0 -0
- data/generators/manifests/templates/public/stylesheets/rules_view/images/re_view_button/list-select.png +0 -0
- data/generators/manifests/templates/public/stylesheets/rules_view/images/re_view_button/oval-blue-left.gif +0 -0
- data/generators/manifests/templates/public/stylesheets/rules_view/images/re_view_button/oval-blue-right.gif +0 -0
- data/generators/manifests/templates/public/stylesheets/rules_view/images/re_view_button/oval-gray-left.gif +0 -0
- data/generators/manifests/templates/public/stylesheets/rules_view/images/re_view_button/oval-gray-right.gif +0 -0
- data/generators/manifests/templates/public/stylesheets/rules_view/images/re_view_button/oval-green-left.gif +0 -0
- data/generators/manifests/templates/public/stylesheets/rules_view/images/re_view_button/oval-green-right.gif +0 -0
- data/generators/manifests/templates/public/stylesheets/rules_view/images/re_view_button/oval-orange-left.gif +0 -0
- data/generators/manifests/templates/public/stylesheets/rules_view/images/re_view_button/oval-orange-right.gif +0 -0
- data/generators/manifests/templates/public/stylesheets/rules_view/images/re_view_button/oval-red-left.gif +0 -0
- data/generators/manifests/templates/public/stylesheets/rules_view/images/re_view_button/oval-red-right.gif +0 -0
- data/generators/manifests/templates/public/stylesheets/rules_view/images/re_view_error/re-alert-close.png +0 -0
- data/generators/manifests/templates/public/stylesheets/rules_view/images/re_view_navigate/breadcrumb.png +0 -0
- data/generators/manifests/templates/public/stylesheets/rules_view/jquery.autocomplete.css +53 -0
- data/generators/manifests/templates/public/stylesheets/rules_view/rules_view.css +738 -0
- data/init.rb +1 -0
- data/lib/rules_view/alerts.rb +51 -0
- data/lib/rules_view/boxes.rb +25 -0
- data/lib/rules_view/buttons.rb +113 -0
- data/lib/rules_view/config.rb +21 -0
- data/lib/rules_view/defer.rb +30 -0
- data/lib/rules_view/engine.rb +28 -0
- data/lib/rules_view/form_builder.rb +62 -0
- data/lib/rules_view/form_fields.rb +41 -0
- data/lib/rules_view/form_styles.rb +112 -0
- data/lib/rules_view/model_loader.rb +64 -0
- data/lib/rules_view/navigate.rb +40 -0
- data/lib/rules_view.rb +20 -0
- data/rules_view.gemspec +239 -0
- data/spec/lib/rules_view/alerts_spec.rb +145 -0
- data/spec/lib/rules_view/boxes_spec.rb +49 -0
- data/spec/lib/rules_view/buttons_spec.rb +184 -0
- data/spec/lib/rules_view/defer_spec.rb +90 -0
- data/spec/lib/rules_view/form_builder_fields_spec.rb +184 -0
- data/spec/lib/rules_view/form_builder_spec.rb +19 -0
- data/spec/lib/rules_view/form_fields_spec.rb +219 -0
- data/spec/lib/rules_view/form_styles_spec.rb +290 -0
- data/spec/lib/rules_view/model_loader_spec.rb +202 -0
- data/spec/lib/rules_view/navigate_spec.rb +61 -0
- data/spec/rails_3_0_0_root/.gitignore +4 -0
- data/spec/rails_3_0_0_root/.rspec +1 -0
- data/spec/rails_3_0_0_root/Gemfile +13 -0
- data/spec/rails_3_0_0_root/Gemfile.lock +101 -0
- data/spec/rails_3_0_0_root/README +256 -0
- data/spec/rails_3_0_0_root/Rakefile +7 -0
- data/spec/rails_3_0_0_root/app/controllers/application_controller.rb +3 -0
- data/spec/rails_3_0_0_root/app/helpers/application_helper.rb +2 -0
- data/spec/rails_3_0_0_root/app/views/layouts/application.html.erb +14 -0
- data/spec/rails_3_0_0_root/autotest/discover.rb +2 -0
- data/spec/rails_3_0_0_root/config/application.rb +42 -0
- data/spec/rails_3_0_0_root/config/boot.rb +13 -0
- data/spec/rails_3_0_0_root/config/database.yml +22 -0
- data/spec/rails_3_0_0_root/config/environment.rb +5 -0
- data/spec/rails_3_0_0_root/config/environments/development.rb +26 -0
- data/spec/rails_3_0_0_root/config/environments/production.rb +49 -0
- data/spec/rails_3_0_0_root/config/environments/test.rb +35 -0
- data/spec/rails_3_0_0_root/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/rails_3_0_0_root/config/initializers/inflections.rb +10 -0
- data/spec/rails_3_0_0_root/config/initializers/mime_types.rb +5 -0
- data/spec/rails_3_0_0_root/config/initializers/secret_token.rb +7 -0
- data/spec/rails_3_0_0_root/config/initializers/session_store.rb +8 -0
- data/spec/rails_3_0_0_root/config/locales/en.yml +5 -0
- data/spec/rails_3_0_0_root/config/routes.rb +58 -0
- data/spec/rails_3_0_0_root/config.ru +4 -0
- data/spec/rails_3_0_0_root/db/seeds.rb +7 -0
- data/spec/rails_3_0_0_root/doc/README_FOR_APP +2 -0
- data/spec/rails_3_0_0_root/lib/tasks/.gitkeep +0 -0
- data/spec/rails_3_0_0_root/public/404.html +26 -0
- data/spec/rails_3_0_0_root/public/422.html +26 -0
- data/spec/rails_3_0_0_root/public/500.html +26 -0
- data/spec/rails_3_0_0_root/public/favicon.ico +0 -0
- data/spec/rails_3_0_0_root/public/images/rails.png +0 -0
- data/spec/rails_3_0_0_root/public/index.html +239 -0
- data/spec/rails_3_0_0_root/public/javascripts/application.js +2 -0
- data/spec/rails_3_0_0_root/public/javascripts/controls.js +965 -0
- data/spec/rails_3_0_0_root/public/javascripts/dragdrop.js +974 -0
- data/spec/rails_3_0_0_root/public/javascripts/effects.js +1123 -0
- data/spec/rails_3_0_0_root/public/javascripts/prototype.js +6001 -0
- data/spec/rails_3_0_0_root/public/javascripts/rails.js +175 -0
- data/spec/rails_3_0_0_root/public/robots.txt +5 -0
- data/spec/rails_3_0_0_root/public/stylesheets/.gitkeep +0 -0
- data/spec/rails_3_0_0_root/script/rails +6 -0
- data/spec/rails_3_0_0_root/spec/spec_helper.rb +27 -0
- data/spec/rails_3_0_0_root/vendor/plugins/.gitkeep +0 -0
- data/spec/spec_helper.rb +29 -0
- data/spec/support/create_memory_db.rb +2 -0
- data/tasks/rspec.rake +46 -0
- metadata +278 -0
@@ -0,0 +1,148 @@
|
|
1
|
+
// set the fancybox behaviour
|
2
|
+
$.extend($.fn.fancybox.defaults, {
|
3
|
+
hideOnOverlayClick : false,
|
4
|
+
overlayOpacity : 0.6,
|
5
|
+
onComplete : function() {
|
6
|
+
$(document).unbind('keydown.fb').bind('keydown.fb', function(e) {
|
7
|
+
if (e.keyCode == 27) {
|
8
|
+
e.preventDefault();
|
9
|
+
$.fancybox.close();
|
10
|
+
|
11
|
+
} else if (e.keyCode == 37) {
|
12
|
+
// e.preventDefault();
|
13
|
+
// $.fancybox.prev();
|
14
|
+
|
15
|
+
} else if (e.keyCode == 39) {
|
16
|
+
// e.preventDefault();
|
17
|
+
// $.fancybox.next();
|
18
|
+
}
|
19
|
+
});
|
20
|
+
}
|
21
|
+
});
|
22
|
+
|
23
|
+
jQuery.re_block = function(){
|
24
|
+
$.fancybox.showActivity();
|
25
|
+
$.blockUI({message: null});
|
26
|
+
|
27
|
+
var loading = $('#fancybox-loading')
|
28
|
+
loading.unbind('click')
|
29
|
+
}
|
30
|
+
|
31
|
+
jQuery.re_unblock = function(){
|
32
|
+
$.fancybox.hideActivity();
|
33
|
+
$.unblockUI();
|
34
|
+
}
|
35
|
+
|
36
|
+
jQuery.re_message = function(style, header, message) {
|
37
|
+
var $m = $('<div class="' + style + '"></div>');
|
38
|
+
$m.append('<strong>' + header + '</strong>');
|
39
|
+
if (message) $m.append(' : ' + message);
|
40
|
+
$m.append('<a class="re-alert-close" href="#">Close</a>');
|
41
|
+
if ($('#re_alert').is(':visible')) {
|
42
|
+
$('#re_alert').html($m);
|
43
|
+
}
|
44
|
+
else {
|
45
|
+
$('#re_alert').html($m);
|
46
|
+
$('#re_alert').slideDown('fast');
|
47
|
+
}
|
48
|
+
|
49
|
+
}
|
50
|
+
|
51
|
+
jQuery.re_error_message = function(message) {
|
52
|
+
jQuery.re_message('error', 'Error', message);
|
53
|
+
}
|
54
|
+
jQuery.re_success_message = function(message) {
|
55
|
+
jQuery.re_message('success', 'Success', message);
|
56
|
+
}
|
57
|
+
jQuery.re_notice_message = function(message) {
|
58
|
+
jQuery.re_message('notice', 'Notice', message);
|
59
|
+
}
|
60
|
+
|
61
|
+
// Form buttons
|
62
|
+
jQuery.fn.re_form_button = function() {
|
63
|
+
|
64
|
+
var $input = $(this).find('input');
|
65
|
+
if ($input.length == 0)
|
66
|
+
return;
|
67
|
+
|
68
|
+
var id = $input.attr('id');
|
69
|
+
var value = $input.attr('value');
|
70
|
+
var klass = $input.attr('class');
|
71
|
+
|
72
|
+
var $a = $('<a/>')
|
73
|
+
$a.addClass(klass);
|
74
|
+
$a.addClass('form-submit');
|
75
|
+
$a.attr('href', '#');
|
76
|
+
$a.attr('id', id);
|
77
|
+
$a.append('<span>' + value + "</span>");
|
78
|
+
$(this).html($a);
|
79
|
+
}
|
80
|
+
|
81
|
+
jQuery.fn.re_form_disable = function() {
|
82
|
+
$(this).attr('re-form-disabled', true);
|
83
|
+
$(this).parents('.re-form-field').addClass('re-form-disabled');
|
84
|
+
}
|
85
|
+
|
86
|
+
jQuery.fn.re_form_enable = function() {
|
87
|
+
$(this).removeAttr("re-form-disabled");
|
88
|
+
$(this).parents('.re-form-field').removeClass('re-form-disabled');
|
89
|
+
}
|
90
|
+
|
91
|
+
jQuery.fn.re_form_valid = function() {
|
92
|
+
var $parent = $(this).parents('.re-form-field')
|
93
|
+
$parent.find('.re-form-label-error').addClass('re-form-label').removeClass('re-form-label-error');
|
94
|
+
$parent.find('.re-form-data-error').addClass('re-form-data').removeClass('re-form-data-error');
|
95
|
+
|
96
|
+
// $(this).removeAttr("re-form-disabled");
|
97
|
+
// $(this).parents('.re-form-field').removeClass('re-form-disabled');
|
98
|
+
}
|
99
|
+
jQuery.fn.re_form_invalid = function() {
|
100
|
+
var $parent = $(this).parents('.re-form-field')
|
101
|
+
$parent.find('.re-form-label').addClass('re-form-label-error').removeClass('re-form-label');
|
102
|
+
$parent.find('.re-form-data').addClass('re-form-data-error').removeClass('re-form-data');
|
103
|
+
|
104
|
+
// $(this).removeAttr("re-form-disabled");
|
105
|
+
// $(this).parents('.re-form-field').removeClass('re-form-disabled');
|
106
|
+
}
|
107
|
+
|
108
|
+
jQuery.replace_new_record_ids = function(s){
|
109
|
+
var new_id = new Date().getTime();
|
110
|
+
return s.replace(/NEW_RECORD/g, new_id);
|
111
|
+
}
|
112
|
+
|
113
|
+
// document ready
|
114
|
+
$(document).ready(function() {
|
115
|
+
$('a.re-alert-close').live('click', function() {
|
116
|
+
$('#re_alert').slideUp('fast');
|
117
|
+
});
|
118
|
+
|
119
|
+
$('div.re-form-button').each(function() {
|
120
|
+
$(this).re_form_button();
|
121
|
+
});
|
122
|
+
|
123
|
+
$('a.form-submit').live('click', function() {
|
124
|
+
var $form = $(this).closest('form');
|
125
|
+
if ($form.length)
|
126
|
+
$form.submit();
|
127
|
+
});
|
128
|
+
|
129
|
+
// nested attributes wrap in a new_position_NAME
|
130
|
+
// and put the delete in the outermost div to be deleted so I can grab the parent and hide it
|
131
|
+
$('a.re-add-link').live('click', function() {
|
132
|
+
var value = eval('new_' + $(this).attr('id'))
|
133
|
+
var $new_content = $($.replace_new_record_ids(value))
|
134
|
+
$("#new_position_" + $(this).attr('id')).append($new_content);
|
135
|
+
$new_content.find('input').focus();
|
136
|
+
$.fancybox.resize();
|
137
|
+
});
|
138
|
+
$('a.re-remove-link').live('click', function() {
|
139
|
+
var id = $(this).attr('id').replace("_remove", "__delete");
|
140
|
+
$('input[id=' + id + ']').attr('value', '1');
|
141
|
+
$('input[id=' + id + ']').parent().hide();
|
142
|
+
$.fancybox.resize();
|
143
|
+
});
|
144
|
+
|
145
|
+
// used by fancybox to create fancy boxes ;)
|
146
|
+
$('body').append('<div id="re_content_frame" style="display:none"><div id="re_content"> </div></div>');
|
147
|
+
});
|
148
|
+
|
@@ -0,0 +1,35 @@
|
|
1
|
+
/* -----------------------------------------------------------------------
|
2
|
+
|
3
|
+
|
4
|
+
Blueprint CSS Framework 0.9
|
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
|
+
textarea {overflow:auto;}
|
28
|
+
input.text, input.title, textarea {background-color:#fff;border:1px solid #bbb;}
|
29
|
+
input.text:focus, input.title:focus {border-color:#666;}
|
30
|
+
input.text, input.title, textarea, select {margin:0.5em 0;}
|
31
|
+
input.checkbox, input.radio {position:relative;top:.25em;}
|
32
|
+
form.inline div, form.inline p {vertical-align:middle;}
|
33
|
+
form.inline label {position:relative;top:-0.25em;}
|
34
|
+
form.inline input.checkbox, form.inline input.radio, form.inline input.button, form.inline button {margin:0.5em 0;}
|
35
|
+
button, input.button {position:relative;top:0.25em;}
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,32 @@
|
|
1
|
+
Buttons
|
2
|
+
|
3
|
+
* Gives you great looking CSS buttons, for both <a> and <button>.
|
4
|
+
* Demo: particletree.com/features/rediscovering-the-button-element
|
5
|
+
|
6
|
+
|
7
|
+
Credits
|
8
|
+
----------------------------------------------------------------
|
9
|
+
|
10
|
+
* Created by Kevin Hale [particletree.com]
|
11
|
+
* Adapted for Blueprint by Olav Bjorkoy [bjorkoy.com]
|
12
|
+
|
13
|
+
|
14
|
+
Usage
|
15
|
+
----------------------------------------------------------------
|
16
|
+
|
17
|
+
1) Add this plugin to lib/settings.yml.
|
18
|
+
See compress.rb for instructions.
|
19
|
+
|
20
|
+
2) Use the following HTML code to place the buttons on your site:
|
21
|
+
|
22
|
+
<button type="submit" class="button positive">
|
23
|
+
<img src="css/blueprint/plugins/buttons/icons/tick.png" alt=""/> Save
|
24
|
+
</button>
|
25
|
+
|
26
|
+
<a class="button" href="/password/reset/">
|
27
|
+
<img src="css/blueprint/plugins/buttons/icons/key.png" alt=""/> Change Password
|
28
|
+
</a>
|
29
|
+
|
30
|
+
<a href="#" class="button negative">
|
31
|
+
<img src="css/blueprint/plugins/buttons/icons/cross.png" alt=""/> Cancel
|
32
|
+
</a>
|
@@ -0,0 +1,97 @@
|
|
1
|
+
/* --------------------------------------------------------------
|
2
|
+
|
3
|
+
buttons.css
|
4
|
+
* Gives you some great CSS-only buttons.
|
5
|
+
|
6
|
+
Created by Kevin Hale [particletree.com]
|
7
|
+
* particletree.com/features/rediscovering-the-button-element
|
8
|
+
|
9
|
+
See Readme.txt in this folder for instructions.
|
10
|
+
|
11
|
+
-------------------------------------------------------------- */
|
12
|
+
|
13
|
+
a.button, button {
|
14
|
+
display:block;
|
15
|
+
float:left;
|
16
|
+
margin: 0.7em 0.5em 0.7em 0;
|
17
|
+
padding:5px 10px 5px 7px; /* Links */
|
18
|
+
|
19
|
+
border:1px solid #dedede;
|
20
|
+
border-top:1px solid #eee;
|
21
|
+
border-left:1px solid #eee;
|
22
|
+
|
23
|
+
background-color:#f5f5f5;
|
24
|
+
font-family:"Lucida Grande", Tahoma, Arial, Verdana, sans-serif;
|
25
|
+
font-size:100%;
|
26
|
+
line-height:130%;
|
27
|
+
text-decoration:none;
|
28
|
+
font-weight:bold;
|
29
|
+
color:#565656;
|
30
|
+
cursor:pointer;
|
31
|
+
}
|
32
|
+
button {
|
33
|
+
width:auto;
|
34
|
+
overflow:visible;
|
35
|
+
padding:4px 10px 3px 7px; /* IE6 */
|
36
|
+
}
|
37
|
+
button[type] {
|
38
|
+
padding:4px 10px 4px 7px; /* Firefox */
|
39
|
+
line-height:17px; /* Safari */
|
40
|
+
}
|
41
|
+
*:first-child+html button[type] {
|
42
|
+
padding:4px 10px 3px 7px; /* IE7 */
|
43
|
+
}
|
44
|
+
button img, a.button img{
|
45
|
+
margin:0 3px -3px 0 !important;
|
46
|
+
padding:0;
|
47
|
+
border:none;
|
48
|
+
width:16px;
|
49
|
+
height:16px;
|
50
|
+
float:none;
|
51
|
+
}
|
52
|
+
|
53
|
+
|
54
|
+
/* Button colors
|
55
|
+
-------------------------------------------------------------- */
|
56
|
+
|
57
|
+
/* Standard */
|
58
|
+
button:hover, a.button:hover{
|
59
|
+
background-color:#dff4ff;
|
60
|
+
border:1px solid #c2e1ef;
|
61
|
+
color:#336699;
|
62
|
+
}
|
63
|
+
a.button:active{
|
64
|
+
background-color:#6299c5;
|
65
|
+
border:1px solid #6299c5;
|
66
|
+
color:#fff;
|
67
|
+
}
|
68
|
+
|
69
|
+
/* Positive */
|
70
|
+
body .positive {
|
71
|
+
color:#529214;
|
72
|
+
}
|
73
|
+
a.positive:hover, button.positive:hover {
|
74
|
+
background-color:#E6EFC2;
|
75
|
+
border:1px solid #C6D880;
|
76
|
+
color:#529214;
|
77
|
+
}
|
78
|
+
a.positive:active {
|
79
|
+
background-color:#529214;
|
80
|
+
border:1px solid #529214;
|
81
|
+
color:#fff;
|
82
|
+
}
|
83
|
+
|
84
|
+
/* Negative */
|
85
|
+
body .negative {
|
86
|
+
color:#d12f19;
|
87
|
+
}
|
88
|
+
a.negative:hover, button.negative:hover {
|
89
|
+
background-color:#fbe3e4;
|
90
|
+
border:1px solid #fbc2c4;
|
91
|
+
color:#d12f19;
|
92
|
+
}
|
93
|
+
a.negative:active {
|
94
|
+
background-color:#d12f19;
|
95
|
+
border:1px solid #d12f19;
|
96
|
+
color:#fff;
|
97
|
+
}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
Fancy Type
|
2
|
+
|
3
|
+
* Gives you classes to use if you'd like some
|
4
|
+
extra fancy typography.
|
5
|
+
|
6
|
+
Credits and instructions are specified above each class
|
7
|
+
in the fancy-type.css file in this directory.
|
8
|
+
|
9
|
+
|
10
|
+
Usage
|
11
|
+
----------------------------------------------------------------
|
12
|
+
|
13
|
+
1) Add this plugin to lib/settings.yml.
|
14
|
+
See compress.rb for instructions.
|
@@ -0,0 +1,71 @@
|
|
1
|
+
/* --------------------------------------------------------------
|
2
|
+
|
3
|
+
fancy-type.css
|
4
|
+
* Lots of pretty advanced classes for manipulating text.
|
5
|
+
|
6
|
+
See the Readme file in this folder for additional instructions.
|
7
|
+
|
8
|
+
-------------------------------------------------------------- */
|
9
|
+
|
10
|
+
/* Indentation instead of line shifts for sibling paragraphs. */
|
11
|
+
p + p { text-indent:2em; margin-top:-1.5em; }
|
12
|
+
form p + p { text-indent: 0; } /* Don't want this in forms. */
|
13
|
+
|
14
|
+
|
15
|
+
/* For great looking type, use this code instead of asdf:
|
16
|
+
<span class="alt">asdf</span>
|
17
|
+
Best used on prepositions and ampersands. */
|
18
|
+
|
19
|
+
.alt {
|
20
|
+
color: #666;
|
21
|
+
font-family: "Warnock Pro", "Goudy Old Style","Palatino","Book Antiqua", Georgia, serif;
|
22
|
+
font-style: italic;
|
23
|
+
font-weight: normal;
|
24
|
+
}
|
25
|
+
|
26
|
+
|
27
|
+
/* For great looking quote marks in titles, replace "asdf" with:
|
28
|
+
<span class="dquo">“</span>asdf”
|
29
|
+
(That is, when the title starts with a quote mark).
|
30
|
+
(You may have to change this value depending on your font size). */
|
31
|
+
|
32
|
+
.dquo { margin-left: -.5em; }
|
33
|
+
|
34
|
+
|
35
|
+
/* Reduced size type with incremental leading
|
36
|
+
(http://www.markboulton.co.uk/journal/comments/incremental_leading/)
|
37
|
+
|
38
|
+
This could be used for side notes. For smaller type, you don't necessarily want to
|
39
|
+
follow the 1.5x vertical rhythm -- the line-height is too much.
|
40
|
+
|
41
|
+
Using this class, it reduces your font size and line-height so that for
|
42
|
+
every four lines of normal sized type, there is five lines of the sidenote. eg:
|
43
|
+
|
44
|
+
New type size in em's:
|
45
|
+
10px (wanted side note size) / 12px (existing base size) = 0.8333 (new type size in ems)
|
46
|
+
|
47
|
+
New line-height value:
|
48
|
+
12px x 1.5 = 18px (old line-height)
|
49
|
+
18px x 4 = 72px
|
50
|
+
72px / 5 = 14.4px (new line height)
|
51
|
+
14.4px / 10px = 1.44 (new line height in em's) */
|
52
|
+
|
53
|
+
p.incr, .incr p {
|
54
|
+
font-size: 10px;
|
55
|
+
line-height: 1.44em;
|
56
|
+
margin-bottom: 1.5em;
|
57
|
+
}
|
58
|
+
|
59
|
+
|
60
|
+
/* Surround uppercase words and abbreviations with this class.
|
61
|
+
Based on work by Jørgen Arnor Gårdsø Lom [http://twistedintellect.com/] */
|
62
|
+
|
63
|
+
.caps {
|
64
|
+
font-variant: small-caps;
|
65
|
+
letter-spacing: 1px;
|
66
|
+
text-transform: lowercase;
|
67
|
+
font-size:1.2em;
|
68
|
+
line-height:1%;
|
69
|
+
font-weight:bold;
|
70
|
+
padding:0 2px;
|
71
|
+
}
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,18 @@
|
|
1
|
+
Link Icons
|
2
|
+
* Icons for links based on protocol or file type.
|
3
|
+
|
4
|
+
This is not supported in IE versions < 7.
|
5
|
+
|
6
|
+
|
7
|
+
Credits
|
8
|
+
----------------------------------------------------------------
|
9
|
+
|
10
|
+
* Marc Morgan
|
11
|
+
* Olav Bjorkoy [bjorkoy.com]
|
12
|
+
|
13
|
+
|
14
|
+
Usage
|
15
|
+
----------------------------------------------------------------
|
16
|
+
|
17
|
+
1) Add this line to your HTML:
|
18
|
+
<link rel="stylesheet" href="css/blueprint/plugins/link-icons/screen.css" type="text/css" media="screen, projection">
|
@@ -0,0 +1,40 @@
|
|
1
|
+
/* --------------------------------------------------------------
|
2
|
+
|
3
|
+
link-icons.css
|
4
|
+
* Icons for links based on protocol or file type.
|
5
|
+
|
6
|
+
See the Readme file in this folder for additional instructions.
|
7
|
+
|
8
|
+
-------------------------------------------------------------- */
|
9
|
+
|
10
|
+
/* Use this class if a link gets an icon when it shouldn't. */
|
11
|
+
body a.noicon {
|
12
|
+
background:transparent none !important;
|
13
|
+
padding:0 !important;
|
14
|
+
margin:0 !important;
|
15
|
+
}
|
16
|
+
|
17
|
+
/* Make sure the icons are not cut */
|
18
|
+
a[href^="http:"], a[href^="mailto:"], a[href^="http:"]:visited,
|
19
|
+
a[href$=".pdf"], a[href$=".doc"], a[href$=".xls"], a[href$=".rss"],
|
20
|
+
a[href$=".rdf"], a[href^="aim:"] {
|
21
|
+
padding:2px 22px 2px 0;
|
22
|
+
margin:-2px 0;
|
23
|
+
background-repeat: no-repeat;
|
24
|
+
background-position: right center;
|
25
|
+
}
|
26
|
+
|
27
|
+
/* External links */
|
28
|
+
a[href^="http:"] { background-image: url(icons/external.png); }
|
29
|
+
a[href^="mailto:"] { background-image: url(icons/email.png); }
|
30
|
+
a[href^="http:"]:visited { background-image: url(icons/visited.png); }
|
31
|
+
|
32
|
+
/* Files */
|
33
|
+
a[href$=".pdf"] { background-image: url(icons/pdf.png); }
|
34
|
+
a[href$=".doc"] { background-image: url(icons/doc.png); }
|
35
|
+
a[href$=".xls"] { background-image: url(icons/xls.png); }
|
36
|
+
|
37
|
+
/* Misc */
|
38
|
+
a[href$=".rss"],
|
39
|
+
a[href$=".rdf"] { background-image: url(icons/feed.png); }
|
40
|
+
a[href^="aim:"] { background-image: url(icons/im.png); }
|
data/generators/manifests/templates/public/stylesheets/rules_view/blueprint/plugins/rtl/readme.txt
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
RTL
|
2
|
+
* Mirrors Blueprint, so it can be used with Right-to-Left languages.
|
3
|
+
|
4
|
+
By Ran Yaniv Hartstein, ranh.co.il
|
5
|
+
|
6
|
+
Usage
|
7
|
+
----------------------------------------------------------------
|
8
|
+
|
9
|
+
1) Add this line to your HTML:
|
10
|
+
<link rel="stylesheet" href="css/blueprint/plugins/rtl/screen.css" type="text/css" media="screen, projection">
|
data/generators/manifests/templates/public/stylesheets/rules_view/blueprint/plugins/rtl/screen.css
ADDED
@@ -0,0 +1,110 @@
|
|
1
|
+
/* --------------------------------------------------------------
|
2
|
+
|
3
|
+
rtl.css
|
4
|
+
* Mirrors Blueprint for left-to-right languages
|
5
|
+
|
6
|
+
By Ran Yaniv Hartstein [ranh.co.il]
|
7
|
+
|
8
|
+
-------------------------------------------------------------- */
|
9
|
+
|
10
|
+
body .container { direction: rtl; }
|
11
|
+
body .column, body .span-1, body .span-2, body .span-3, body .span-4, body .span-5, body .span-6, body .span-7, body .span-8, body .span-9, body .span-10, body .span-11, body .span-12, body .span-13, body .span-14, body .span-15, body .span-16, body .span-17, body .span-18, body .span-19, body .span-20, body .span-21, body .span-22, body .span-23, body .span-24 {
|
12
|
+
float: right;
|
13
|
+
margin-right: 0;
|
14
|
+
margin-left: 10px;
|
15
|
+
text-align:right;
|
16
|
+
}
|
17
|
+
|
18
|
+
body div.last { margin-left: 0; }
|
19
|
+
body table .last { padding-left: 0; }
|
20
|
+
|
21
|
+
body .append-1 { padding-right: 0; padding-left: 40px; }
|
22
|
+
body .append-2 { padding-right: 0; padding-left: 80px; }
|
23
|
+
body .append-3 { padding-right: 0; padding-left: 120px; }
|
24
|
+
body .append-4 { padding-right: 0; padding-left: 160px; }
|
25
|
+
body .append-5 { padding-right: 0; padding-left: 200px; }
|
26
|
+
body .append-6 { padding-right: 0; padding-left: 240px; }
|
27
|
+
body .append-7 { padding-right: 0; padding-left: 280px; }
|
28
|
+
body .append-8 { padding-right: 0; padding-left: 320px; }
|
29
|
+
body .append-9 { padding-right: 0; padding-left: 360px; }
|
30
|
+
body .append-10 { padding-right: 0; padding-left: 400px; }
|
31
|
+
body .append-11 { padding-right: 0; padding-left: 440px; }
|
32
|
+
body .append-12 { padding-right: 0; padding-left: 480px; }
|
33
|
+
body .append-13 { padding-right: 0; padding-left: 520px; }
|
34
|
+
body .append-14 { padding-right: 0; padding-left: 560px; }
|
35
|
+
body .append-15 { padding-right: 0; padding-left: 600px; }
|
36
|
+
body .append-16 { padding-right: 0; padding-left: 640px; }
|
37
|
+
body .append-17 { padding-right: 0; padding-left: 680px; }
|
38
|
+
body .append-18 { padding-right: 0; padding-left: 720px; }
|
39
|
+
body .append-19 { padding-right: 0; padding-left: 760px; }
|
40
|
+
body .append-20 { padding-right: 0; padding-left: 800px; }
|
41
|
+
body .append-21 { padding-right: 0; padding-left: 840px; }
|
42
|
+
body .append-22 { padding-right: 0; padding-left: 880px; }
|
43
|
+
body .append-23 { padding-right: 0; padding-left: 920px; }
|
44
|
+
|
45
|
+
body .prepend-1 { padding-left: 0; padding-right: 40px; }
|
46
|
+
body .prepend-2 { padding-left: 0; padding-right: 80px; }
|
47
|
+
body .prepend-3 { padding-left: 0; padding-right: 120px; }
|
48
|
+
body .prepend-4 { padding-left: 0; padding-right: 160px; }
|
49
|
+
body .prepend-5 { padding-left: 0; padding-right: 200px; }
|
50
|
+
body .prepend-6 { padding-left: 0; padding-right: 240px; }
|
51
|
+
body .prepend-7 { padding-left: 0; padding-right: 280px; }
|
52
|
+
body .prepend-8 { padding-left: 0; padding-right: 320px; }
|
53
|
+
body .prepend-9 { padding-left: 0; padding-right: 360px; }
|
54
|
+
body .prepend-10 { padding-left: 0; padding-right: 400px; }
|
55
|
+
body .prepend-11 { padding-left: 0; padding-right: 440px; }
|
56
|
+
body .prepend-12 { padding-left: 0; padding-right: 480px; }
|
57
|
+
body .prepend-13 { padding-left: 0; padding-right: 520px; }
|
58
|
+
body .prepend-14 { padding-left: 0; padding-right: 560px; }
|
59
|
+
body .prepend-15 { padding-left: 0; padding-right: 600px; }
|
60
|
+
body .prepend-16 { padding-left: 0; padding-right: 640px; }
|
61
|
+
body .prepend-17 { padding-left: 0; padding-right: 680px; }
|
62
|
+
body .prepend-18 { padding-left: 0; padding-right: 720px; }
|
63
|
+
body .prepend-19 { padding-left: 0; padding-right: 760px; }
|
64
|
+
body .prepend-20 { padding-left: 0; padding-right: 800px; }
|
65
|
+
body .prepend-21 { padding-left: 0; padding-right: 840px; }
|
66
|
+
body .prepend-22 { padding-left: 0; padding-right: 880px; }
|
67
|
+
body .prepend-23 { padding-left: 0; padding-right: 920px; }
|
68
|
+
|
69
|
+
body .border {
|
70
|
+
padding-right: 0;
|
71
|
+
padding-left: 4px;
|
72
|
+
margin-right: 0;
|
73
|
+
margin-left: 5px;
|
74
|
+
border-right: none;
|
75
|
+
border-left: 1px solid #eee;
|
76
|
+
}
|
77
|
+
|
78
|
+
body .colborder {
|
79
|
+
padding-right: 0;
|
80
|
+
padding-left: 24px;
|
81
|
+
margin-right: 0;
|
82
|
+
margin-left: 25px;
|
83
|
+
border-right: none;
|
84
|
+
border-left: 1px solid #eee;
|
85
|
+
}
|
86
|
+
|
87
|
+
body .pull-1 { margin-left: 0; margin-right: -40px; }
|
88
|
+
body .pull-2 { margin-left: 0; margin-right: -80px; }
|
89
|
+
body .pull-3 { margin-left: 0; margin-right: -120px; }
|
90
|
+
body .pull-4 { margin-left: 0; margin-right: -160px; }
|
91
|
+
|
92
|
+
body .push-0 { margin: 0 18px 0 0; }
|
93
|
+
body .push-1 { margin: 0 18px 0 -40px; }
|
94
|
+
body .push-2 { margin: 0 18px 0 -80px; }
|
95
|
+
body .push-3 { margin: 0 18px 0 -120px; }
|
96
|
+
body .push-4 { margin: 0 18px 0 -160px; }
|
97
|
+
body .push-0, body .push-1, body .push-2,
|
98
|
+
body .push-3, body .push-4 { float: left; }
|
99
|
+
|
100
|
+
|
101
|
+
/* Typography with RTL support */
|
102
|
+
body h1,body h2,body h3,
|
103
|
+
body h4,body h5,body h6 { font-family: Arial, sans-serif; }
|
104
|
+
html body { font-family: Arial, sans-serif; }
|
105
|
+
body pre,body code,body tt { font-family: monospace; }
|
106
|
+
|
107
|
+
/* Mirror floats and margins on typographic elements */
|
108
|
+
body p img { float: right; margin: 1.5em 0 1.5em 1.5em; }
|
109
|
+
body dd, body ul, body ol { margin-left: 0; margin-right: 1.5em;}
|
110
|
+
body td, body th { text-align:right; }
|
@@ -0,0 +1,29 @@
|
|
1
|
+
/* -----------------------------------------------------------------------
|
2
|
+
|
3
|
+
|
4
|
+
Blueprint CSS Framework 0.9
|
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%;}
|