cytoplasm 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/MIT-LICENSE +20 -0
- data/README.rdoc +3 -0
- data/Rakefile +38 -0
- data/app/assets/images/cytoplasm/triangle-medium-circle-1.png +0 -0
- data/app/assets/images/cytoplasm/triangle-medium-circle-2.png +0 -0
- data/app/assets/images/cytoplasm/triangle-medium-circle-3.png +0 -0
- data/app/assets/images/cytoplasm/triangle-medium-circle-4.png +0 -0
- data/app/assets/javascripts/cytoplasm/cytoAjax.js.erb +53 -0
- data/app/assets/javascripts/cytoplasm/cytoColorPicker.js.erb +204 -0
- data/app/assets/javascripts/cytoplasm/cytoRadio.js.erb +210 -0
- data/app/assets/javascripts/cytoplasm/cytoSelect.js.erb +414 -0
- data/app/assets/javascripts/cytoplasm/cytoSlider.js.erb +170 -0
- data/app/assets/javascripts/cytoplasm/cytoTable.js.erb +48 -0
- data/app/assets/javascripts/cytoplasm/cytoUpload.js.erb +200 -0
- data/app/assets/javascripts/cytoplasm/cytoplasm.js.erb +220 -0
- data/app/assets/javascripts/cytoplasm/jquery.ba-throttle-debounce.min.js +9 -0
- data/app/assets/javascripts/cytoplasm/jquery.color.js +663 -0
- data/app/assets/javascripts/cytoplasm/less-1.3.1.min.js +9 -0
- data/app/assets/stylesheets/cytoplasm/cytoplasm.less +113 -0
- data/app/controllers/cytoplasm/fonts_controller.rb +46 -0
- data/app/controllers/cytoplasm/settings_controller.rb +34 -0
- data/app/views/cytoplasm/settings/edit.html.erb +529 -0
- data/app/views/cytoplasm/settings/index.html.erb +18 -0
- data/config/routes.rb +6 -0
- data/lib/cytoplasm.rb +317 -0
- data/lib/cytoplasm/ajax.rb +34 -0
- data/lib/cytoplasm/railtie.rb +12 -0
- data/lib/cytoplasm/version.rb +3 -0
- data/lib/tasks/cytoplasm_tasks.rake +4 -0
- data/test/cytoplasm_test.rb +7 -0
- data/test/dummy/README.rdoc +261 -0
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/app/assets/javascripts/about.js +2 -0
- data/test/dummy/app/assets/javascripts/application.js +15 -0
- data/test/dummy/app/assets/javascripts/demos.js +2 -0
- data/test/dummy/app/assets/javascripts/docs.js +2 -0
- data/test/dummy/app/assets/javascripts/downloads.js +2 -0
- data/test/dummy/app/assets/javascripts/home.js +2 -0
- data/test/dummy/app/assets/stylesheets/about.css +4 -0
- data/test/dummy/app/assets/stylesheets/application.css +13 -0
- data/test/dummy/app/assets/stylesheets/demos.css +4 -0
- data/test/dummy/app/assets/stylesheets/docs.css +4 -0
- data/test/dummy/app/assets/stylesheets/downloads.css +4 -0
- data/test/dummy/app/assets/stylesheets/home.css +4 -0
- data/test/dummy/app/controllers/about_controller.rb +4 -0
- data/test/dummy/app/controllers/application_controller.rb +3 -0
- data/test/dummy/app/controllers/demos_controller.rb +4 -0
- data/test/dummy/app/controllers/docs_controller.rb +5 -0
- data/test/dummy/app/controllers/downloads_controller.rb +4 -0
- data/test/dummy/app/controllers/home_controller.rb +7 -0
- data/test/dummy/app/helpers/about_helper.rb +2 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/helpers/demos_helper.rb +2 -0
- data/test/dummy/app/helpers/docs_helper.rb +2 -0
- data/test/dummy/app/helpers/downloads_helper.rb +2 -0
- data/test/dummy/app/helpers/home_helper.rb +2 -0
- data/test/dummy/app/views/about/index.html.erb +2 -0
- data/test/dummy/app/views/demos/index.html.erb +15 -0
- data/test/dummy/app/views/docs/index.html.erb +15 -0
- data/test/dummy/app/views/downloads/index.html.erb +60 -0
- data/test/dummy/app/views/home/index.html.erb +74 -0
- data/test/dummy/app/views/layouts/application.html.erb +30 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/config/application.rb +59 -0
- data/test/dummy/config/boot.rb +10 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +37 -0
- data/test/dummy/config/environments/production.rb +67 -0
- data/test/dummy/config/environments/test.rb +37 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/cytoplasm.vars.yml +4 -0
- data/test/dummy/config/initializers/inflections.rb +15 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +7 -0
- data/test/dummy/config/initializers/session_store.rb +8 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +5 -0
- data/test/dummy/config/routes.rb +65 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +178434 -0
- data/test/dummy/log/production.log +4 -0
- data/test/dummy/log/test.log +43 -0
- data/test/dummy/public/404.html +26 -0
- data/test/dummy/public/422.html +26 -0
- data/test/dummy/public/500.html +25 -0
- data/test/dummy/public/cytoplasm/cytoplasm.vars.less +36 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/script/rails +6 -0
- data/test/dummy/test/functional/about_controller_test.rb +9 -0
- data/test/dummy/test/functional/demos_controller_test.rb +9 -0
- data/test/dummy/test/functional/docs_controller_test.rb +7 -0
- data/test/dummy/test/functional/downloads_controller_test.rb +9 -0
- data/test/dummy/test/functional/home_controller_test.rb +9 -0
- data/test/dummy/test/unit/helpers/about_helper_test.rb +4 -0
- data/test/dummy/test/unit/helpers/demos_helper_test.rb +4 -0
- data/test/dummy/test/unit/helpers/docs_helper_test.rb +4 -0
- data/test/dummy/test/unit/helpers/downloads_helper_test.rb +4 -0
- data/test/dummy/test/unit/helpers/home_helper_test.rb +4 -0
- data/test/dummy/tmp/cache/assets/C23/A50/sprockets%2F1011830ce123d00a75be4330f2721412 +0 -0
- data/test/dummy/tmp/cache/assets/C2E/4E0/sprockets%2F5b29288e435665a224409e7d76530c95 +0 -0
- data/test/dummy/tmp/cache/assets/C75/590/sprockets%2Fc3abe8a0059292e1e3818278c0434027 +0 -0
- data/test/dummy/tmp/cache/assets/C77/C20/sprockets%2F165a39476f3fa731c0af49432141049c +0 -0
- data/test/dummy/tmp/cache/assets/C87/580/sprockets%2Fd904f7e82971fdde744127c702222195 +0 -0
- data/test/dummy/tmp/cache/assets/C8F/0F0/sprockets%2F369f11075c8c5f939359cb5cb0569281 +0 -0
- data/test/dummy/tmp/cache/assets/CA0/B40/sprockets%2F26961c657dc345435242accb433d260a +0 -0
- data/test/dummy/tmp/cache/assets/CA3/4B0/sprockets%2Fb78b7754bf248ba091802070be5c1630 +0 -0
- data/test/dummy/tmp/cache/assets/CA7/8F0/sprockets%2F901b96894219d63a767e8898f73d4ce7 +0 -0
- data/test/dummy/tmp/cache/assets/CAC/280/sprockets%2F408a235a236b0a3aa1302733211db5ba +0 -0
- data/test/dummy/tmp/cache/assets/CAE/FD0/sprockets%2F3bb22e4d409072c2278c1771893ec19e +0 -0
- data/test/dummy/tmp/cache/assets/CB2/AD0/sprockets%2F0c26131d87e0691ba9904e46ff5820b9 +0 -0
- data/test/dummy/tmp/cache/assets/CB8/330/sprockets%2F8d9120752c9f38f7a5e164395e5d0c04 +0 -0
- data/test/dummy/tmp/cache/assets/CBA/320/sprockets%2Fa34641007e856c6bd67567e2ac8668c4 +0 -0
- data/test/dummy/tmp/cache/assets/CCE/F60/sprockets%2F37d1a6c1a8d398c4404b1b00076912fd +0 -0
- data/test/dummy/tmp/cache/assets/CD7/990/sprockets%2F55411442048c5a69b45be06da29ee62c +0 -0
- data/test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953 +0 -0
- data/test/dummy/tmp/cache/assets/CD8/900/sprockets%2Fc68606f026190266d8099ada290bbaa4 +0 -0
- data/test/dummy/tmp/cache/assets/CDF/870/sprockets%2Fb878faf942403e313a5b103e5d80488e +0 -0
- data/test/dummy/tmp/cache/assets/CE1/E60/sprockets%2F08ae5c39217fa93841884cfcb0037c46 +0 -0
- data/test/dummy/tmp/cache/assets/CE2/AE0/sprockets%2F79562f7c45761a5d0dba9361d11ae594 +0 -0
- data/test/dummy/tmp/cache/assets/CE3/080/sprockets%2F7d4d7689d6fa8236f0b4848c03ba1215 +0 -0
- data/test/dummy/tmp/cache/assets/CE4/530/sprockets%2F70521f5a32e550f6da0d76e896c7183e +0 -0
- data/test/dummy/tmp/cache/assets/CE5/D30/sprockets%2F8c9834a63b25a66203918a75ff56e2ac +0 -0
- data/test/dummy/tmp/cache/assets/CEE/7F0/sprockets%2F8b32778387c589166e26a7e5a6aa4cc3 +0 -0
- data/test/dummy/tmp/cache/assets/CF3/120/sprockets%2Fe2b304b015ce82a222d634e7e544b0b3 +0 -0
- data/test/dummy/tmp/cache/assets/CF7/ED0/sprockets%2F8061089f9dc8af8cc6353949d9b9d212 +0 -0
- data/test/dummy/tmp/cache/assets/CF9/7C0/sprockets%2F40fc2f3d2a468a00e463f1d313cb1683 +0 -0
- data/test/dummy/tmp/cache/assets/D03/6B0/sprockets%2Fd3cfc780201b87a3439e35c5236bb71a +0 -0
- data/test/dummy/tmp/cache/assets/D05/D40/sprockets%2F1c9faaf28d05409b88ad3113374d613c +0 -0
- data/test/dummy/tmp/cache/assets/D06/7A0/sprockets%2Fa46b76e739460d2691f4121ffa8a0ca0 +0 -0
- data/test/dummy/tmp/cache/assets/D0D/A10/sprockets%2F5c22f257a7abbc8e5720b17433657f6d +0 -0
- data/test/dummy/tmp/cache/assets/D0E/4A0/sprockets%2F6b27287928ba630c1b25dfa80ee18b48 +0 -0
- data/test/dummy/tmp/cache/assets/D0E/7D0/sprockets%2F89200785fe2710582a6c1b8d04ae7fbe +0 -0
- data/test/dummy/tmp/cache/assets/D12/010/sprockets%2F8067431ced3f34f1c97d34c3b4fb7049 +0 -0
- data/test/dummy/tmp/cache/assets/D12/1E0/sprockets%2Fba248329196c372b79d1f4c4f2a771bf +0 -0
- data/test/dummy/tmp/cache/assets/D14/170/sprockets%2F40a7b83bb067eea7ce2c8394e1529287 +0 -0
- data/test/dummy/tmp/cache/assets/D15/8E0/sprockets%2F4752afcb2967724e7e47b58b200d8ed2 +0 -0
- data/test/dummy/tmp/cache/assets/D15/CE0/sprockets%2Fa1310379a19df3c1796f2f67dcd5915d +0 -0
- data/test/dummy/tmp/cache/assets/D21/A50/sprockets%2Feb094bfe70c49891ce65c0178d88d904 +0 -0
- data/test/dummy/tmp/cache/assets/D2D/E60/sprockets%2F34ec37e4221a9a127bf1de1ee52951b0 +0 -0
- data/test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/dummy/tmp/cache/assets/D47/930/sprockets%2F1a738430fd705a9dddde85a18dd29782 +0 -0
- data/test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/test/dummy/tmp/cache/assets/D50/750/sprockets%2F7fbcc321810c8f493f86364fee480ed9 +0 -0
- data/test/dummy/tmp/cache/assets/D52/430/sprockets%2F6ada07f0c9869f9f35b05fa0988dc717 +0 -0
- data/test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/test/dummy/tmp/cache/assets/D60/2A0/sprockets%2Ff1857b8a367fbae328221040cfcb2f1c +0 -0
- data/test/dummy/tmp/cache/assets/D65/180/sprockets%2F346621e7334bd914afc87bc6a9d1bc0a +0 -0
- data/test/dummy/tmp/cache/assets/D65/F10/sprockets%2F0a60d2fd5c544ea66af4d382b5e3d147 +0 -0
- data/test/dummy/tmp/cache/assets/D68/A20/sprockets%2F8b8272d3eaf9323f1c34114cbcbf56f3 +0 -0
- data/test/dummy/tmp/cache/assets/D69/0A0/sprockets%2Fe6c078d521b528e004f5dd673ddb2a6d +0 -0
- data/test/dummy/tmp/cache/assets/D69/0B0/sprockets%2Fb9e3ae8763ce66c2090d9413bdd400fa +0 -0
- data/test/dummy/tmp/cache/assets/D6E/3E0/sprockets%2F1be4cbdc9c19703c546405f087aee92d +0 -0
- data/test/dummy/tmp/cache/assets/D73/5F0/sprockets%2F6aee922214ffea56b31595f1a5ed8c92 +0 -0
- data/test/dummy/tmp/cache/assets/D78/840/sprockets%2F326ec6387a9d1b45ec2cdf7093b79f0e +0 -0
- data/test/dummy/tmp/cache/assets/D83/C70/sprockets%2Ff536f7a68e692747fca1d2fcd5c07f57 +0 -0
- data/test/dummy/tmp/cache/assets/D87/C40/sprockets%2F9dcd7a6999affe28e91e514cee079016 +0 -0
- data/test/dummy/tmp/cache/assets/D88/700/sprockets%2Fe13c6f31271a8ac23e63ef0a118ebe2b +0 -0
- data/test/dummy/tmp/cache/assets/D98/8B0/sprockets%2Fedbef6e0d0a4742346cf479f2c522eb0 +0 -0
- data/test/dummy/tmp/cache/assets/DA4/140/sprockets%2F24502b9d4e4eea6f709e089c0fdff30f +0 -0
- data/test/dummy/tmp/cache/assets/DBE/210/sprockets%2Fbedb89fd02eac0dc7aa93c820c612343 +0 -0
- data/test/dummy/tmp/cache/assets/DBE/950/sprockets%2F46cc27391a6badaac462d9b3aa43ec73 +0 -0
- data/test/dummy/tmp/cache/assets/DC7/E10/sprockets%2Fac6d2602a61a59c16ad89cbf2d2d48de +0 -0
- data/test/dummy/tmp/cache/assets/DC8/E80/sprockets%2F117e87cbd2939c4a9afcbbca2a3684d0 +0 -0
- data/test/dummy/tmp/cache/assets/DCD/AD0/sprockets%2Ffb914fa2e51ab43f0f857f0fddd8713b +0 -0
- data/test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/test/dummy/tmp/cache/assets/DEB/B50/sprockets%2Fdcfb6dd7dae66f42a5a10e80a33d1b24 +0 -0
- data/test/dummy/tmp/cache/assets/DEC/A90/sprockets%2F3f26f0f2e3ea4a0e194b22be6c3b5cce +0 -0
- data/test/dummy/tmp/cache/assets/E00/880/sprockets%2Fecb876bb310c1a3e6fd534ece45c9ed9 +0 -0
- data/test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/dummy/tmp/cache/assets/E05/E70/sprockets%2Fead5bfd3417fc5de81d3794c3e443cfe +0 -0
- data/test/dummy/tmp/cache/assets/E1A/970/sprockets%2Ff89b4657cfc95e2d28f6fad44c58edfb +0 -0
- data/test/dummy/tmp/cache/assets/E2E/720/sprockets%2Ff76ac8420ca62debb77ecbfe7d0c6d45 +0 -0
- data/test/dummy/tmp/cache/assets/E38/2A0/sprockets%2Fc6e8ba43cbed7d3981f70bcfeb3a69c9 +0 -0
- data/test/dummy/tmp/cache/assets/E69/B60/sprockets%2Ffdbf7ec615e9a92e4857cdade17f4daa +0 -0
- data/test/dummy/tmp/cache/assets/E71/0E0/sprockets%2Fcbbecea061be6e609adc04133b9badab +0 -0
- data/test/dummy/tmp/cache/assets/E8C/480/sprockets%2Fdacb331ac961cf7b7cbc69abe8fb74dd +0 -0
- data/test/dummy/tmp/cache/assets/E8D/B40/sprockets%2Fb862bf7fb4b4c634aeaa9dfc97babc6b +0 -0
- data/test/test_helper.rb +15 -0
- metadata +420 -0
data/test/dummy/Rakefile
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
#!/usr/bin/env rake
|
|
2
|
+
# Add your own tasks in files placed in lib/tasks ending in .rake,
|
|
3
|
+
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
|
|
4
|
+
|
|
5
|
+
require File.expand_path('../config/application', __FILE__)
|
|
6
|
+
|
|
7
|
+
Dummy::Application.load_tasks
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
|
2
|
+
// listed below.
|
|
3
|
+
//
|
|
4
|
+
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
|
|
5
|
+
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
|
|
6
|
+
//
|
|
7
|
+
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
|
8
|
+
// the compiled file.
|
|
9
|
+
//
|
|
10
|
+
// WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
|
|
11
|
+
// GO AFTER THE REQUIRES BELOW.
|
|
12
|
+
//
|
|
13
|
+
//= require jquery
|
|
14
|
+
//= require jquery_ujs
|
|
15
|
+
//= require_tree .
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
|
3
|
+
* listed below.
|
|
4
|
+
*
|
|
5
|
+
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
|
6
|
+
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
|
|
7
|
+
*
|
|
8
|
+
* You're free to add application-wide styles to this file and they'll appear at the top of the
|
|
9
|
+
* compiled file, but it's generally better to create a new file per style scope.
|
|
10
|
+
*
|
|
11
|
+
*= require_self
|
|
12
|
+
*= require_tree .
|
|
13
|
+
*/
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
<h2>About Cytoplasm</h2>
|
|
2
|
+
<p>Cytoplasm is the gel-like substance in which the contents of a cell are suspended, and also a gem for Rails 3 by MacKinley Smith, which builds upon Sass and jQuery/jQuery UI Frameworks to make your application beautiful, responsive, and recustomizable without diving into code. It comes complete with a settings partial that can be used to restyle any page of your site directly from your browser, a FontLoader class for you typographers, as well as a lightweight jQuery library that transforms your HTML5 complient form elements into sleek, sexy, and incredibly versatile counterparts.</p>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<h2>Demonstrations</h2>
|
|
2
|
+
<h3>General</h3>
|
|
3
|
+
<ul>
|
|
4
|
+
<li><a href="/cytoplasm">Management Interface</a></li>
|
|
5
|
+
<li><a href="/cytoplasm/edit">Layout Editor Interface</a></li>
|
|
6
|
+
</ul>
|
|
7
|
+
<h3>jQuery Plugins</h3>
|
|
8
|
+
<ul>
|
|
9
|
+
<li><a href="#">CytoAjax</a></li>
|
|
10
|
+
<li><a href="#">CytoSelect</a></li>
|
|
11
|
+
<li><a href="#">CytoRadio</a></li>
|
|
12
|
+
<li><a href="#">CytoSlider</a></li>
|
|
13
|
+
<li><a href="#">CytoUpload</a></li>
|
|
14
|
+
<li><a href="#">CytoColorPicker</a></li>
|
|
15
|
+
</ul>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<h2>Documentation</h2>
|
|
2
|
+
<h3>General</h3>
|
|
3
|
+
<ul>
|
|
4
|
+
<li><a href="#">Getting Started Guide</a></li>
|
|
5
|
+
<li><a href="#">Using the API</a></li>
|
|
6
|
+
</ul>
|
|
7
|
+
<h3>jQuery Library</h3>
|
|
8
|
+
<ul>
|
|
9
|
+
<li><a href="#">CytoAjax</a></li>
|
|
10
|
+
<li><a href="#">CytoSelect</a></li>
|
|
11
|
+
<li><a href="#">CytoRadio</a></li>
|
|
12
|
+
<li><a href="#">CytoSlider</a></li>
|
|
13
|
+
<li><a href="#">CytoUpload</a></li>
|
|
14
|
+
<li><a href="#">CytoColorPicker</a></li>
|
|
15
|
+
</ul>
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
<h2>Downloads</h2>
|
|
2
|
+
<table class="cytoTable">
|
|
3
|
+
<tr><td colspan="2"><h3>Full Package</h3></td></tr>
|
|
4
|
+
<tr>
|
|
5
|
+
<td class="labelcell">Development:</td>
|
|
6
|
+
<td><button class="cytoButton large" id="development_download_button">Download!</button></td>
|
|
7
|
+
</tr>
|
|
8
|
+
<tr>
|
|
9
|
+
<td class="labelcell">Production (Minified):</td>
|
|
10
|
+
<td><button class="cytoButton large" id="production_download_button">Download!</button></td>
|
|
11
|
+
</tr>
|
|
12
|
+
<tr><td colspan="2"><h3>Individual Components</h3></td></tr>
|
|
13
|
+
<tr>
|
|
14
|
+
<td class="labelcell">Core:</td>
|
|
15
|
+
<td><button class="cytoButton large">Download!</button></td>
|
|
16
|
+
</tr>
|
|
17
|
+
<tr>
|
|
18
|
+
<td class="labelcell">CytoAjax:</td>
|
|
19
|
+
<td><button class="cytoButton large">Download!</button></td>
|
|
20
|
+
</tr>
|
|
21
|
+
<tr>
|
|
22
|
+
<td class="labelcell">CytoSelect:</td>
|
|
23
|
+
<td><button class="cytoButton large">Download!</button></td>
|
|
24
|
+
</tr>
|
|
25
|
+
<tr>
|
|
26
|
+
<td class="labelcell">CytoRadio:</td>
|
|
27
|
+
<td><button class="cytoButton large">Download!</button></td>
|
|
28
|
+
</tr>
|
|
29
|
+
<tr>
|
|
30
|
+
<td class="labelcell">CytoSlider:</td>
|
|
31
|
+
<td><button class="cytoButton large">Download!</button></td>
|
|
32
|
+
</tr>
|
|
33
|
+
<tr>
|
|
34
|
+
<td class="labelcell">CytoUpload:</td>
|
|
35
|
+
<td><button class="cytoButton large">Download!</button></td>
|
|
36
|
+
</tr>
|
|
37
|
+
<tr>
|
|
38
|
+
<td class="labelcell">CytoColorPicker:</td>
|
|
39
|
+
<td><button class="cytoButton large">Download!</button></td>
|
|
40
|
+
</tr>
|
|
41
|
+
<tr>
|
|
42
|
+
<td class="labelcell">CytoTable:</td>
|
|
43
|
+
<td><button class="cytoButton large">Download!</button></td>
|
|
44
|
+
</tr>
|
|
45
|
+
</table>
|
|
46
|
+
|
|
47
|
+
<script type="text/javascript">
|
|
48
|
+
(function($){
|
|
49
|
+
$.Cytoplasm("ready",function(){
|
|
50
|
+
$('#development_download_button').click(function(e){
|
|
51
|
+
e.preventDefault();
|
|
52
|
+
alert("Coming soon");
|
|
53
|
+
});
|
|
54
|
+
$('#production_download_button').click(function(e){
|
|
55
|
+
e.preventDefault();
|
|
56
|
+
alert("Coming soon");
|
|
57
|
+
});
|
|
58
|
+
});
|
|
59
|
+
})(jQuery);
|
|
60
|
+
</script>
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
<h2>Cytoplasm: an advanced and highly configurable styling/theming utility for Rails 3</h2>
|
|
2
|
+
<p>Cytoplasm is the gel-like substance in which the contents of a cell are suspended, and also a gem for Rails 3 by MacKinley Smith, which builds upon Sass and jQuery/jQuery UI Frameworks to make your application beautiful, responsive, and recustomizable without diving into code. It comes complete with a settings partial that can be used to restyle any page of your site directly from your browser, a FontLoader class for you typographers, as well as a lightweight jQuery library that transforms your HTML5 complient form elements into sleek, sexy, and incredibly versatile counterparts.</p>
|
|
3
|
+
|
|
4
|
+
<hr />
|
|
5
|
+
|
|
6
|
+
<h3>Installation</h3>
|
|
7
|
+
|
|
8
|
+
<p>Requires Ruby 1.9.3, Rails 3.2.9, jQuery/jQuery UI, and Sass-Rails.</p>
|
|
9
|
+
<p>To install, simply add the following to your Gemfile:</p>
|
|
10
|
+
<pre>gem 'cytoplasm'</pre>
|
|
11
|
+
<p>To get the jQuery Toolkit up and running, add these two lines to the head tag in app/views/layouts/application.html.erb</p>
|
|
12
|
+
<pre><%=stylesheet_link_tag *Cytoplasm.css, :media => "all"%><br /><%=javascript_include_tag *Cytoplasm.js%></pre>
|
|
13
|
+
|
|
14
|
+
<hr />
|
|
15
|
+
|
|
16
|
+
<h3>Features</h3>
|
|
17
|
+
|
|
18
|
+
<h4>Settings GUI</h4>
|
|
19
|
+
|
|
20
|
+
<p></p>
|
|
21
|
+
|
|
22
|
+
<h4>Font Freedom</h4>
|
|
23
|
+
|
|
24
|
+
<p>A stylish typeface is the cornerstone of an eye-catching website. That's why Cytoplasm packs a powerful font-loading module under the hood, which interfaces with Font Squirrel's and Google Web Fonts' APIs. Choose from a vast collection of over 10,000 royalty-free and commercially approved fonts, and use as many of them as you like on each page.</p>
|
|
25
|
+
|
|
26
|
+
<h4>jQuery Form Toolkit Library</h4>
|
|
27
|
+
|
|
28
|
+
<p></p>
|
|
29
|
+
|
|
30
|
+
<h5>CytoSelect</h5>
|
|
31
|
+
<p>CytoSelect is a replacement for HTML5's select elements which allows for the use of custom fonts and color themes.</p>
|
|
32
|
+
|
|
33
|
+
<select class="cytoSelect" id="language_select">
|
|
34
|
+
<option value="english">English</option>
|
|
35
|
+
<option value="spanish">Spanish</option>
|
|
36
|
+
<option value="german">German</option>
|
|
37
|
+
<option value="french">French</option>
|
|
38
|
+
<option value="italian">Italian</option>
|
|
39
|
+
<option value="dutch">Freaky-Deaky Dutch</option>
|
|
40
|
+
</select>
|
|
41
|
+
|
|
42
|
+
<h5>CytoRadio</h5>
|
|
43
|
+
<p>CytoRadio is a replacement for HTML5's radio button elements.</p>
|
|
44
|
+
|
|
45
|
+
<input type="radio" name="test_radio" value="this" data-label="This" checked="checked" class="cytoRadio" />
|
|
46
|
+
<input type="radio" name="test_radio" value="that" data-label="That" />
|
|
47
|
+
<input type="radio" name="test_radio" value="other_thing" data-label="The Other Thing" />
|
|
48
|
+
|
|
49
|
+
<h5>CytoUpload</h5>
|
|
50
|
+
<p>CytoUpload is a replacement for HTML5's file input elements.</p>
|
|
51
|
+
|
|
52
|
+
<input type="file" class="cytoUpload" />
|
|
53
|
+
|
|
54
|
+
<h5>CytoSlider</h5>
|
|
55
|
+
<p>CytoSlider is a wrapper for jQuery UI's Slider which adds a few features, like dynamic labeling, x, y, z, and more.</p>
|
|
56
|
+
|
|
57
|
+
<input type="hidden" class="cytoSlider" value="20" data-max="200" data-unit="px" data-label="Amount of padding for your content" />
|
|
58
|
+
|
|
59
|
+
<h5>CytoColorPicker</h5>
|
|
60
|
+
<p>CytoColorPicker transforms text inputs into user-friendly color choosing mechanisms.</p>
|
|
61
|
+
|
|
62
|
+
<input type="text" class="cytoColorPicker" />
|
|
63
|
+
|
|
64
|
+
<hr />
|
|
65
|
+
|
|
66
|
+
<h3>Usage</h3>
|
|
67
|
+
|
|
68
|
+
<p></p>
|
|
69
|
+
|
|
70
|
+
<script type="text/javascript">
|
|
71
|
+
$(document).ready(function(){
|
|
72
|
+
|
|
73
|
+
});
|
|
74
|
+
</script>
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<title>Dummy</title>
|
|
5
|
+
<%=stylesheet_link_tag "cytoplasm/cytoplasm-"+Time.now.to_i.to_s, :media => "all", :cache => false%>
|
|
6
|
+
<%=stylesheet_link_tag *Cytoplasm.css, :media => "all", :cache => false %>
|
|
7
|
+
<%=stylesheet_link_tag "application", :media => "all" %>
|
|
8
|
+
|
|
9
|
+
<%=javascript_include_tag "application" %>
|
|
10
|
+
<%=javascript_include_tag *Cytoplasm.js %>
|
|
11
|
+
<%=csrf_meta_tags %>
|
|
12
|
+
</head>
|
|
13
|
+
<body>
|
|
14
|
+
|
|
15
|
+
<header>
|
|
16
|
+
<h1>Cytoplasm Test Dummy</h1>
|
|
17
|
+
<nav>
|
|
18
|
+
<ul>
|
|
19
|
+
<li><%=link_to("About","/about")%></li>
|
|
20
|
+
<li><%=link_to("Demos","/demos")%></li>
|
|
21
|
+
<li><%=link_to("Docs","/docs")%></li>
|
|
22
|
+
<li><%=link_to("Downloads","/downloads")%></li>
|
|
23
|
+
</ul>
|
|
24
|
+
</nav>
|
|
25
|
+
</header>
|
|
26
|
+
<div id="main_content"><%= yield %></div>
|
|
27
|
+
<footer>Copyright © 2012 <%=link_to("MacKinley Smith","http://www.mackinleysmith.com")%></footer>
|
|
28
|
+
|
|
29
|
+
</body>
|
|
30
|
+
</html>
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
require File.expand_path('../boot', __FILE__)
|
|
2
|
+
|
|
3
|
+
require 'rails/all'
|
|
4
|
+
|
|
5
|
+
Bundler.require
|
|
6
|
+
require "cytoplasm"
|
|
7
|
+
|
|
8
|
+
module Dummy
|
|
9
|
+
class Application < Rails::Application
|
|
10
|
+
# Settings in config/environments/* take precedence over those specified here.
|
|
11
|
+
# Application configuration should go into files in config/initializers
|
|
12
|
+
# -- all .rb files in that directory are automatically loaded.
|
|
13
|
+
|
|
14
|
+
# Custom directories with classes and modules you want to be autoloadable.
|
|
15
|
+
# config.autoload_paths += %W(#{config.root}/extras)
|
|
16
|
+
|
|
17
|
+
# Only load the plugins named here, in the order given (default is alphabetical).
|
|
18
|
+
# :all can be used as a placeholder for all plugins not explicitly named.
|
|
19
|
+
# config.plugins = [ :exception_notification, :ssl_requirement, :all ]
|
|
20
|
+
|
|
21
|
+
# Activate observers that should always be running.
|
|
22
|
+
# config.active_record.observers = :cacher, :garbage_collector, :forum_observer
|
|
23
|
+
|
|
24
|
+
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
|
|
25
|
+
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
|
|
26
|
+
# config.time_zone = 'Central Time (US & Canada)'
|
|
27
|
+
|
|
28
|
+
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
|
29
|
+
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
|
30
|
+
# config.i18n.default_locale = :de
|
|
31
|
+
|
|
32
|
+
# Configure the default encoding used in templates for Ruby 1.9.
|
|
33
|
+
config.encoding = "utf-8"
|
|
34
|
+
|
|
35
|
+
# Configure sensitive parameters which will be filtered from the log file.
|
|
36
|
+
config.filter_parameters += [:password]
|
|
37
|
+
|
|
38
|
+
# Enable escaping HTML in JSON.
|
|
39
|
+
config.active_support.escape_html_entities_in_json = true
|
|
40
|
+
|
|
41
|
+
# Use SQL instead of Active Record's schema dumper when creating the database.
|
|
42
|
+
# This is necessary if your schema can't be completely dumped by the schema dumper,
|
|
43
|
+
# like if you have constraints or database-specific column types
|
|
44
|
+
# config.active_record.schema_format = :sql
|
|
45
|
+
|
|
46
|
+
# Enforce whitelist mode for mass assignment.
|
|
47
|
+
# This will create an empty whitelist of attributes available for mass-assignment for all models
|
|
48
|
+
# in your app. As such, your models will need to explicitly whitelist or blacklist accessible
|
|
49
|
+
# parameters by using an attr_accessible or attr_protected declaration.
|
|
50
|
+
config.active_record.whitelist_attributes = true
|
|
51
|
+
|
|
52
|
+
# Enable the asset pipeline
|
|
53
|
+
config.assets.enabled = true
|
|
54
|
+
|
|
55
|
+
# Version of your assets, change this if you want to expire all your assets
|
|
56
|
+
config.assets.version = '1.0'
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# SQLite version 3.x
|
|
2
|
+
# gem install sqlite3
|
|
3
|
+
#
|
|
4
|
+
# Ensure the SQLite 3 gem is defined in your Gemfile
|
|
5
|
+
# gem 'sqlite3'
|
|
6
|
+
development:
|
|
7
|
+
adapter: sqlite3
|
|
8
|
+
database: db/development.sqlite3
|
|
9
|
+
pool: 5
|
|
10
|
+
timeout: 5000
|
|
11
|
+
|
|
12
|
+
# Warning: The database defined as "test" will be erased and
|
|
13
|
+
# re-generated from your development database when you run "rake".
|
|
14
|
+
# Do not set this db to the same as development or production.
|
|
15
|
+
test:
|
|
16
|
+
adapter: sqlite3
|
|
17
|
+
database: db/test.sqlite3
|
|
18
|
+
pool: 5
|
|
19
|
+
timeout: 5000
|
|
20
|
+
|
|
21
|
+
production:
|
|
22
|
+
adapter: sqlite3
|
|
23
|
+
database: db/production.sqlite3
|
|
24
|
+
pool: 5
|
|
25
|
+
timeout: 5000
|