aura 0.0.1.pre10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (249) hide show
  1. data/.gitignore +6 -0
  2. data/.travis.yml +3 -0
  3. data/Gemfile +2 -0
  4. data/HISTORY.md +95 -0
  5. data/README.md +53 -0
  6. data/Rakefile +27 -0
  7. data/Scribefile +8 -0
  8. data/app/css/_utilities.scss +88 -0
  9. data/app/css/admin.scss +21 -0
  10. data/app/css/admin/_settings.scss +136 -0
  11. data/app/css/admin/chrome.scss +208 -0
  12. data/app/css/admin/common.scss +78 -0
  13. data/app/css/admin/forms.scss +342 -0
  14. data/app/css/admin/jquery_wysiwyg.scss +96 -0
  15. data/app/css/admin/loading.scss +18 -0
  16. data/app/css/admin/meta.scss +42 -0
  17. data/app/css/admin/reset.scss +46 -0
  18. data/app/css/admin/sections.scss +79 -0
  19. data/app/css/admin/setup.scss +22 -0
  20. data/app/css/admin/sidebar.scss +136 -0
  21. data/app/css/admin/slug.scss +78 -0
  22. data/app/css/admin/uiscreen.scss +22 -0
  23. data/app/css/admin/wysiwyg_field.scss +11 -0
  24. data/app/css/admin_watermark.scss +23 -0
  25. data/app/css/default_home_page.scss +13 -0
  26. data/app/css/login.scss +47 -0
  27. data/app/helpers/admin_helpers.rb +59 -0
  28. data/app/helpers/flash_helpers.rb +86 -0
  29. data/app/helpers/form_builder_helpers.rb +9 -0
  30. data/app/helpers/html_helpers.rb +27 -0
  31. data/app/helpers/jquery_helpers.rb +26 -0
  32. data/app/helpers/main_helpers.rb +67 -0
  33. data/app/helpers/page_helpers.rb +92 -0
  34. data/app/helpers/template_helpers.rb +94 -0
  35. data/app/helpers/user_helpers.rb +45 -0
  36. data/app/init/admin.rb +34 -0
  37. data/app/init/extensions.rb +18 -0
  38. data/app/init/pistol.rb +11 -0
  39. data/app/init/sequel.rb +11 -0
  40. data/app/main.rb +106 -0
  41. data/app/migrations/page.rb +29 -0
  42. data/app/migrations/settings.rb +11 -0
  43. data/app/migrations/user.rb +13 -0
  44. data/app/models/page.rb +116 -0
  45. data/app/models/page_seed.rb +47 -0
  46. data/app/models/settings.rb +59 -0
  47. data/app/models/user.rb +60 -0
  48. data/app/routes/admin.rb +44 -0
  49. data/app/routes/css_js.rb +53 -0
  50. data/app/routes/design_tests.rb +15 -0
  51. data/app/routes/editor.rb +152 -0
  52. data/app/routes/site.rb +33 -0
  53. data/app/routes/user.rb +48 -0
  54. data/app/views/admin/_back_to_dashboard.haml +3 -0
  55. data/app/views/admin/dashboard.haml +46 -0
  56. data/app/views/admin/layout.haml +73 -0
  57. data/app/views/admin/settings.haml +40 -0
  58. data/app/views/admin/settings/database.haml +42 -0
  59. data/app/views/base/crumbs.haml +50 -0
  60. data/app/views/base/delete.haml +19 -0
  61. data/app/views/base/edit.haml +61 -0
  62. data/app/views/base/errors.haml +10 -0
  63. data/app/views/base/form.haml +11 -0
  64. data/app/views/base/list.haml +14 -0
  65. data/app/views/base/list_actions.haml +4 -0
  66. data/app/views/base/list_item.haml +7 -0
  67. data/app/views/base/nav.haml +36 -0
  68. data/app/views/base/new.haml +36 -0
  69. data/app/views/base/preview.haml +28 -0
  70. data/app/views/base/tabs.haml +12 -0
  71. data/app/views/default_home_page.haml +15 -0
  72. data/app/views/design_tests/admin_styles.haml +58 -0
  73. data/app/views/form_builder/builder.haml +29 -0
  74. data/app/views/page/edit.haml +29 -0
  75. data/app/views/page/form.haml +22 -0
  76. data/app/views/page/meta_form.haml +22 -0
  77. data/app/views/page/new.haml +26 -0
  78. data/app/views/user/edit.haml +52 -0
  79. data/app/views/user/form.haml +43 -0
  80. data/app/views/user/list.haml +11 -0
  81. data/app/views/user/login.haml +33 -0
  82. data/app/views/user/new.haml +25 -0
  83. data/app/views/user/welcome.haml +29 -0
  84. data/app/views/watermark/watermark.haml +16 -0
  85. data/aura.gemspec +36 -0
  86. data/bin/aura +8 -0
  87. data/config/database.rb +12 -0
  88. data/config/extensions.rb +5 -0
  89. data/config/scss.rb +14 -0
  90. data/config/user.rb +10 -0
  91. data/default/.gitignore +6 -0
  92. data/default/Gemfile +11 -0
  93. data/default/README.md +24 -0
  94. data/default/Rakefile +8 -0
  95. data/default/app/README +3 -0
  96. data/default/app/css/.gitignore +0 -0
  97. data/default/app/helpers/helpers.rb.example +9 -0
  98. data/default/app/js/.gitignore +0 -0
  99. data/default/app/migrations/model.rb.example +20 -0
  100. data/default/app/models/model.rb.example +11 -0
  101. data/default/app/models/page-ext.rb.example +17 -0
  102. data/default/app/routes/site.rb.example +5 -0
  103. data/default/app/views/hello.haml.example +1 -0
  104. data/default/config.ru +3 -0
  105. data/default/config/.gitignore +0 -0
  106. data/default/config/database.rb.example +30 -0
  107. data/default/config/extensions.rb +5 -0
  108. data/default/config/user.rb.example +10 -0
  109. data/default/db/.gitignore +0 -0
  110. data/default/init.rb +15 -0
  111. data/default/public/.gitignore +0 -0
  112. data/extensions/contact_form/migrations/contact_form.rb +13 -0
  113. data/extensions/contact_form/models/contact_form.rb +13 -0
  114. data/extensions/contact_form/routes/contact_form.rb +11 -0
  115. data/extensions/contact_form/views/contact_form/edit.haml +8 -0
  116. data/extensions/contact_form/views/contact_form/form.haml +3 -0
  117. data/extensions/contact_form/views/contact_form/nav.haml +42 -0
  118. data/extensions/contact_form/views/contact_form/responses.haml +20 -0
  119. data/extensions/contact_form/views/contact_form/tabs.haml +8 -0
  120. data/extensions/default_theme/css/theme/_settings.scss +3 -0
  121. data/extensions/default_theme/css/theme/chrome.scss +66 -0
  122. data/extensions/default_theme/css/theme/reset.scss +34 -0
  123. data/extensions/default_theme/css/theme/style.scss +3 -0
  124. data/extensions/default_theme/info.yml +2 -0
  125. data/extensions/default_theme/public/browse.png +0 -0
  126. data/extensions/default_theme/views/base/id_portfolio.haml +32 -0
  127. data/extensions/default_theme/views/base/show.haml +31 -0
  128. data/extensions/default_theme/views/errors/error.haml +9 -0
  129. data/extensions/default_theme/views/errors/not_found.haml +11 -0
  130. data/extensions/default_theme/views/layout.haml +33 -0
  131. data/lib/aura.rb +315 -0
  132. data/lib/aura/admin.rb +41 -0
  133. data/lib/aura/app.rb +4 -0
  134. data/lib/aura/cli.rb +19 -0
  135. data/lib/aura/cli/base.rb +89 -0
  136. data/lib/aura/cli/helpers.rb +32 -0
  137. data/lib/aura/editor.rb +30 -0
  138. data/lib/aura/extension.rb +189 -0
  139. data/lib/aura/files.rb +38 -0
  140. data/lib/aura/menu.rb +142 -0
  141. data/lib/aura/models.rb +80 -0
  142. data/lib/aura/public.rb +68 -0
  143. data/lib/aura/rendering.rb +134 -0
  144. data/lib/aura/seeder.rb +38 -0
  145. data/lib/aura/slugs.rb +87 -0
  146. data/lib/aura/subtype.rb +48 -0
  147. data/lib/aura/tasks.rb +24 -0
  148. data/lib/aura/tasks/common.rb +17 -0
  149. data/lib/aura/tasks/db.rake +54 -0
  150. data/lib/aura/utils.rb +81 -0
  151. data/lib/aura/version.rb +25 -0
  152. data/lib/core/hasharray.rb +65 -0
  153. data/lib/core/object_ext.rb +9 -0
  154. data/lib/sequel/plugins/aura_custom.rb +16 -0
  155. data/lib/sequel/plugins/aura_editable.rb +39 -0
  156. data/lib/sequel/plugins/aura_hierarchy.rb +82 -0
  157. data/lib/sequel/plugins/aura_model.rb +271 -0
  158. data/lib/sequel/plugins/aura_renderable.rb +42 -0
  159. data/lib/sequel/plugins/aura_sluggable.rb +103 -0
  160. data/lib/sequel/plugins/aura_subtyped.rb +83 -0
  161. data/lib/terra.rb +185 -0
  162. data/lib/terra/ext.rb +16 -0
  163. data/lib/terra/field.rb +98 -0
  164. data/lib/terra/fields.rb +122 -0
  165. data/lib/terra/fieldset.rb +93 -0
  166. data/lib/terra/form.rb +111 -0
  167. data/manual/configuration.md +42 -0
  168. data/manual/extensions.md +45 -0
  169. data/manual/files.md +70 -0
  170. data/manual/helpers.md +39 -0
  171. data/manual/index.md +65 -0
  172. data/manual/models.md +58 -0
  173. data/manual/recipes.md +38 -0
  174. data/manual/recipes/bundling_sample_data.md +30 -0
  175. data/manual/recipes/creating_themes.md +10 -0
  176. data/manual/recipes/using_markdown_or_textile.md +24 -0
  177. data/manual/routes.md +39 -0
  178. data/manual/theming.md +55 -0
  179. data/manual/views.md +128 -0
  180. data/public/hi.html +0 -0
  181. data/public/images/admin/back.png +0 -0
  182. data/public/images/admin/browse.png +0 -0
  183. data/public/images/admin/mock-bg.png +0 -0
  184. data/public/images/admin/top-loader.gif +0 -0
  185. data/public/images/admin/uiscreen-loader.gif +0 -0
  186. data/public/images/admin_icons/add.png +0 -0
  187. data/public/images/admin_icons/contact.png +0 -0
  188. data/public/images/admin_icons/dashboard.png +0 -0
  189. data/public/images/admin_icons/generic.png +0 -0
  190. data/public/images/admin_icons/home-12.png +0 -0
  191. data/public/images/admin_icons/page.png +0 -0
  192. data/public/images/admin_icons/settings.png +0 -0
  193. data/public/images/jquery.wysiwyg.gif +0 -0
  194. data/public/js/admin.form_builder.js +15 -0
  195. data/public/js/admin.js +62 -0
  196. data/public/js/admin.layout.js +53 -0
  197. data/public/js/admin.nav.js +241 -0
  198. data/public/js/admin.slug.js +46 -0
  199. data/public/js/admin.subpage.js +15 -0
  200. data/public/js/jquery.hashlisten.js +85 -0
  201. data/public/js/jquery.js +166 -0
  202. data/public/js/jquery.livenavigate.js +58 -0
  203. data/public/js/jquery.livequery.js +226 -0
  204. data/public/js/jquery.quickvalidate.js +164 -0
  205. data/public/js/jquery.tmpl.js +486 -0
  206. data/public/js/jquery.uiscreen.js +150 -0
  207. data/public/js/jquery.wysiwyg.js +2339 -0
  208. data/public/js/jqueryui.js +766 -0
  209. data/public/js/lib.dirty.js +11 -0
  210. data/public/js/lib.loading.js +23 -0
  211. data/public/js/lib.wysiwyg.js +155 -0
  212. data/public/js/underscore-1.1.7.js +27 -0
  213. data/test/app/app/css/test_raw.css +1 -0
  214. data/test/app/app/css/test_sass.sass +3 -0
  215. data/test/app/app/damogram.txt +1 -0
  216. data/test/app/app/js/test_coffee.coffee +4 -0
  217. data/test/app/app/js/test_javascript.js +4 -0
  218. data/test/app/init.rb +5 -0
  219. data/test/stories/admin_css_story.rb +18 -0
  220. data/test/stories/css_js_story.rb +29 -0
  221. data/test/stories/first_login_story.rb +29 -0
  222. data/test/stories/visit_story.rb +39 -0
  223. data/test/stories_helper.rb +58 -0
  224. data/test/test_cli_helper.rb +31 -0
  225. data/test/test_helper.rb +111 -0
  226. data/test/test_temp_helper.rb +9 -0
  227. data/test/unit/cli_test.rb +38 -0
  228. data/test/unit/dump_test.rb +14 -0
  229. data/test/unit/extensions_test.rb +18 -0
  230. data/test/unit/files_test.rb +14 -0
  231. data/test/unit/flash_helper_test.rb +36 -0
  232. data/test/unit/html_helper_test.rb +29 -0
  233. data/test/unit/jquery_helper_test.rb +18 -0
  234. data/test/unit/model_test.rb +34 -0
  235. data/test/unit/page_helpers_test.rb +36 -0
  236. data/test/unit/seeder_test.rb +15 -0
  237. data/test/unit/settings_test.rb +29 -0
  238. data/test/unit/slug_test.rb +39 -0
  239. data/test/unit/ss_migration_test.rb +14 -0
  240. data/test/unit/terra_test.rb +125 -0
  241. data/test/unit/utils_test.rb +11 -0
  242. data/vendor/sinatra-sequel/.gitignore +3 -0
  243. data/vendor/sinatra-sequel/COPYING +18 -0
  244. data/vendor/sinatra-sequel/README.md +84 -0
  245. data/vendor/sinatra-sequel/Rakefile +67 -0
  246. data/vendor/sinatra-sequel/lib/sinatra/sequel.rb +73 -0
  247. data/vendor/sinatra-sequel/sinatra-sequel.gemspec +39 -0
  248. data/vendor/sinatra-sequel/spec/spec_sinatra_sequel.rb +70 -0
  249. metadata +536 -0
@@ -0,0 +1,6 @@
1
+ tmp
2
+ .yardoc
3
+ /doc
4
+ .sass-cache
5
+ .rvmrc
6
+ Gemfile.lock
@@ -0,0 +1,3 @@
1
+ rvm
2
+ - 1.8.7
3
+ - 1.9.2
data/Gemfile ADDED
@@ -0,0 +1,2 @@
1
+ source :rubygems
2
+ gemspec
@@ -0,0 +1,95 @@
1
+ v0.0.1.pre10 - Nov 9, 2011
2
+ --------------------------
3
+
4
+ Re-push.
5
+
6
+ v0.0.1.pre9 - Nov 9, 2011
7
+ -------------------------
8
+
9
+ ### Added:
10
+ * Show a Bundler warning in the default app.
11
+ * __Implement `Aura.admin.css`.__
12
+
13
+ ### Fixed:
14
+ * __Various 1.8.7 compatibility fixes.__
15
+
16
+ ### Changed:
17
+ * Relax the Rack requirement to 1.3.x.
18
+ * __Rename `Aura.admin_menu` to `Aura.admin.menu`.
19
+ * Rename manual files.
20
+ * Rename the recipes.md file to lowercase.
21
+ * Secure `/css` and `/js` against globs and dotdots.
22
+
23
+ ### Misc:
24
+ * Gemfile to use rubygems.
25
+
26
+ ### Other changes:
27
+ * Allow making 'new page' disappear.
28
+ * Allow overriding of subtypes in app model.
29
+ * Allow overriding parentable? in the subtype.
30
+ * Create the 'app/css/' and 'app/js/' paths by default in a new project.
31
+ * Doc update for Terra.
32
+ * Enable 1.8.7 and 1.9.2 testing via Travis.
33
+ * Implement Page#child_subtypes.
34
+ * Implement Page#deletable?.
35
+ * Implement Page#subtypes and Subtype#allowed_subtypes.
36
+ * Implement Terra::Field#form, Terra::Field#fieldset, Terra::Fieldset#form, Terra::Form#root_name, Terra::Form#name_for.
37
+ * Make 'rake test' the default rake task.
38
+ * Make gemspec more liberal as to what gems are allowed; also fix YAML problem in gems.
39
+ * Many changes to Terra.
40
+ * Merge pull request #3 from mikong/master
41
+ * Move GH repos to github.com/buildwithaura.
42
+ * Prevent scrolling too far ahead.
43
+ * Supress 1.8.7 warnings about spaces before arguments.
44
+ * Try to fix some tests, but some stories still fail randomly for some reason.
45
+ * Update Aura homepage in gemspec.
46
+ * Update README.
47
+ * Update the default project's example route.
48
+
49
+ ### Fixed:
50
+ * failing CSS/JS test.
51
+ * pistol reloading.
52
+
53
+ ### Removed:
54
+ * the custom page type from the default theme.
55
+
56
+ v0.0.1.pre8 - Jul 29, 2011
57
+ --------------------------
58
+
59
+ ### Fixed:
60
+ * Fix 'aura' not being executable
61
+
62
+ ### Changed:
63
+ * 'aura new' has a new output style
64
+ * Include dotfiles in 'aura new' output
65
+
66
+ v0.0.1.pre7 - Jul 29, 2011
67
+ --------------------------
68
+
69
+ ### Changed:
70
+ * default template is now 'show'
71
+
72
+ ### Fixed:
73
+ * Fix CSS load paths and default theme CSS
74
+
75
+ v0.0.1.pre6 - Jul 29, 2011
76
+ --------------------------
77
+
78
+ ### Added:
79
+ * CoffeeScript support
80
+ * `Aura.files.glob`
81
+ * `Aura.files[]`
82
+
83
+ ### Changed:
84
+ * Move `app/views/css` to `app/css`
85
+ * Use site.name for the admin layout
86
+
87
+ ### Fixed:
88
+ * Sass support
89
+ * Prevent floatdropping of the 'view site' button
90
+ * Update site name in tests
91
+ * Update the default site README file
92
+
93
+ ### Misc:
94
+ * Faster tests using Para
95
+ * Update default site gitignore
@@ -0,0 +1,53 @@
1
+ # Aura [![Build Status](http://travis-ci.org/buildwithaura/aura.png)](http://travis-ci.org/buildwithaura/aura)
2
+ #### Aura is a CMS.
3
+
4
+ ## Super easy setup
5
+
6
+ gem install aura --pre
7
+
8
+ Start a new project:
9
+
10
+ aura new myproject
11
+
12
+ Set it up:
13
+
14
+ cd myproject
15
+ bundle install
16
+
17
+ Run:
18
+
19
+ rackup
20
+
21
+ Point your browser then to `http://localhost:9292`! The default user is
22
+ `test@sinefunc.com` / `password`.
23
+
24
+ ## Other setup notes
25
+
26
+ ### Configuring a database
27
+
28
+ Aura uses sqlite by default. If you'd want it to connect to another SQL
29
+ database, see the `config/database.rb.example`.
30
+
31
+ ### Development setup
32
+
33
+ Clone the repo in your machine:
34
+
35
+ git clone http://github.com/buildwithaura/aura.git
36
+ cd aura
37
+
38
+ You can Rackup from the `default/` directory:
39
+
40
+ cd default
41
+ rackup
42
+
43
+ You can install a copy of the gem like so:
44
+
45
+ gem build *.gemspec
46
+ gem install *.gem
47
+
48
+ ## Authors and copyright
49
+
50
+ Aura is authored and maintained by Rico Sta. Cruz of Sinefunc, Inc.
51
+ See more of our work on [www.sinefunc.com](http://www.sinefunc.com)!
52
+
53
+ (c) 2010-2011 Rico Sta. Cruz. Released under the MIT license.
@@ -0,0 +1,27 @@
1
+ # Subject to debate.
2
+ Dir['{app,core/*,extensions/*}/tasks/**/*.rake'].each { |rb| load rb }
3
+
4
+ task :default => :test
5
+
6
+ desc "Runs tests."
7
+ task :test do
8
+ $:.unshift File.join(File.dirname(__FILE__), 'test')
9
+
10
+ ( Dir['test/unit/*.rb'].sort +
11
+ Dir['test/stories/*.rb'].sort
12
+ ).each { |file| load file }
13
+ end
14
+
15
+ namespace :doc do
16
+ desc "Update documentation."
17
+ task :update do
18
+ # gem proscribe ~> 0.0.2
19
+ system "proscribe build"
20
+ end
21
+
22
+ desc "Updates the Aura homepage with the manual."
23
+ task :deploy => :update do
24
+ # http://github.com/rstacruz/git-update-ghpages
25
+ system "git update-ghpages buildwithaura/buildwithaura.github.com --branch master -i doc/"
26
+ end
27
+ end
@@ -0,0 +1,8 @@
1
+ manual: 'manual'
2
+
3
+ files:
4
+ - source: "./**/*.rb"
5
+
6
+ output: doc
7
+
8
+ github: buildwithaura/aura
@@ -0,0 +1,88 @@
1
+ $shadow: rgba(0, 0, 0, 0.25);
2
+ $shadow00: rgba(0, 0, 0, 0.00);
3
+ $shadow05: rgba(0, 0, 0, 0.05);
4
+ $shadow10: rgba(0, 0, 0, 0.10);
5
+ $shadow15: rgba(0, 0, 0, 0.15);
6
+ $shadow20: rgba(0, 0, 0, 0.20);
7
+ $shadow30: rgba(0, 0, 0, 0.30);
8
+ $shadow40: rgba(0, 0, 0, 0.40);
9
+ $shadow50: rgba(0, 0, 0, 0.50);
10
+ $shadow60: rgba(0, 0, 0, 0.60);
11
+ $shadow70: rgba(0, 0, 0, 0.70);
12
+ $shadow80: rgba(0, 0, 0, 0.80);
13
+ $shadow90: rgba(0, 0, 0, 0.90);
14
+
15
+ $hilite: rgba(255, 255, 255, 0.25);
16
+ $hilite05: rgba(255, 255, 255, 0.05);
17
+ $hilite10: rgba(255, 255, 255, 0.10);
18
+ $hilite15: rgba(255, 255, 255, 0.15);
19
+ $hilite20: rgba(255, 255, 255, 0.20);
20
+ $hilite30: rgba(255, 255, 255, 0.30);
21
+ $hilite40: rgba(255, 255, 255, 0.40);
22
+ $hilite50: rgba(255, 255, 255, 0.50);
23
+ $hilite60: rgba(255, 255, 255, 0.60);
24
+ $hilite70: rgba(255, 255, 255, 0.70);
25
+ $hilite80: rgba(255, 255, 255, 0.80);
26
+ $hilite90: rgba(255, 255, 255, 0.90);
27
+
28
+ $shadow5: rgba(0, 0, 0, 0.5);
29
+ $hilite5: rgba(255, 255, 255, 0.5);
30
+
31
+ // Like linear-gradient, but assumes that it's always vertical, has a
32
+ // bgcolor fallback, supports IE, and supports an image parameter.
33
+ //
34
+ // @include gradient(#eee, #ddd, url(image.png));
35
+ //
36
+ @mixin gradient($start, $end, $image: 0) {
37
+ @if $image == 0 {
38
+ background-color: $start;
39
+ background-image: -moz-linear-gradient(top, $start, $end);
40
+ background-image: -webkit-gradient(linear,left top,left bottom,color-stop(0, $start),color-stop(1, $end));
41
+ }
42
+ @else {
43
+ background-image: -moz-linear-gradient(top, $start, $end), $image;
44
+ background-image: -webkit-gradient(linear,left top,left bottom,color-stop(0, $start),color-stop(1, $end)), $image;
45
+ }
46
+ $ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorStr='#{$start}', EndColorStr='#{$end}')";
47
+ filter: unquote($ms-filter);
48
+ -ms-filter: quote($ms-filter);
49
+ }
50
+
51
+ // Cross-browser PIE clear fix
52
+ @mixin clearfix {
53
+ zoom: 1;
54
+ &:after { content: ''; clear: both; display: block; line-height: 0; height: 0; visibility: hidden; zoom: 1; }
55
+ }
56
+
57
+ // Like box-shadow, but supports layering multiple shadows.
58
+ @mixin shadow($p1, $p2: 0, $p3: 0, $p4: 0) {
59
+ $full: $p1;
60
+ @if $p2 != 0 { $full: $full, $p2; }
61
+ @if $p3 != 0 { $full: $full, $p3; }
62
+ @if $p4 != 0 { $full: $full, $p4; }
63
+ @include experimental(box-shadow, $full, -moz, -webkit, -o, not -ms, not -khtml, official);
64
+ }
65
+
66
+ // For non-lists like menus
67
+ @mixin non-list {
68
+ &, li { margin: 0; padding: 0; list-style-type: none; display: block; }
69
+ li { background-image: none; }
70
+ }
71
+
72
+ @mixin horiz-list {
73
+ @include non-list; @include clearfix;
74
+ li { float: left; }
75
+ }
76
+
77
+ // Be sure to overflow-hidden the container!
78
+ @mixin center-list {
79
+ @include non-list;
80
+ position: relative; left: 50%; float: left;
81
+ li { position: relative; right: 50%; float: left; }
82
+ }
83
+
84
+ @mixin ellipsis {
85
+ text-overflow: ellipsis; text-wrap: none; word-wrap: none;
86
+ overflow: hidden; white-space: nowrap; -o-text-overflow: ellipsis;
87
+ }
88
+
@@ -0,0 +1,21 @@
1
+ @import "admin/settings";
2
+ @import "admin/reset";
3
+
4
+ $reset-font: helvetica, sans-serif;
5
+ $reset-heading-font: $reset-font;
6
+
7
+ @include ae-reset;
8
+
9
+ @import "admin/setup";
10
+ @import "admin/jquery_wysiwyg";
11
+
12
+ @import "admin/chrome";
13
+ @import "admin/loading";
14
+ @import "admin/sidebar";
15
+ @import "admin/common";
16
+ @import "admin/uiscreen";
17
+ @import "admin/sections";
18
+ @import "admin/slug";
19
+ @import "admin/forms";
20
+ @import "admin/meta";
21
+
@@ -0,0 +1,136 @@
1
+ @import "compass/css3";
2
+ @import "utilities";
3
+
4
+ $blue: #3ea9df;
5
+ $blue-glow: rgba(62, 169, 223, 0.4);
6
+ $blue-glow-00: rgba(62, 169, 223, 0);
7
+ $blue-glow-10: rgba(62, 169, 223, 0.1);
8
+ $blue-glow-20: rgba(62, 169, 223, 0.2);
9
+ $blue-glow-40: rgba(62, 169, 223, 0.4);
10
+ $blue-glow-70: rgba(62, 169, 223, 0.7);
11
+
12
+ $grey: #666;
13
+ $red: #dd9099 * 1.1;
14
+ $green: #597;
15
+
16
+ $top-color: #292929;
17
+ $top-hicolor: $top-color * 1.3;
18
+
19
+ $slate: saturate(#e0e2e6 * 0.5, 20%);
20
+ $slate-blue: #e0e2e6;
21
+
22
+ // For dark backgrounds
23
+ $charcoal: desaturate($slate, 17%);
24
+
25
+ $sidebar-hicolor: #d9d9dd;
26
+ $sidebar-color: #cacbd0;
27
+
28
+ /* Dimentions */
29
+
30
+ $top-height: 40px;
31
+
32
+ $tab-height: 26px;
33
+
34
+ /* Title */
35
+ $title-height: 40px;
36
+ $tool-button-height: 30px;
37
+
38
+ $x-small: 7.5pt;
39
+ $small: 8.5pt;
40
+ $medium: 9pt;
41
+
42
+ @mixin glow {
43
+ @include shadow(0 0 4px $blue-glow, inset 0 0 2px $blue);
44
+ }
45
+
46
+ @mixin button {
47
+ @include border-radius($tool-button-height / 2);
48
+ display: inline-block; border: 0;
49
+ color: white; text-shadow: 1px 1px 0 $shadow10;
50
+ padding: 0 30px;
51
+ height: $tool-button-height; overflow: hidden;
52
+ line-height: $tool-button-height + 1px;
53
+ font-size: $medium;
54
+
55
+ &:hover { text-decoration: none; }
56
+ }
57
+
58
+ @mixin button-metal {
59
+ @include gradient(#eee, #d4d4d4);
60
+ @include shadow(inset 0 1px 0 $hilite10, 0 1px 1px $shadow20, 0 0 1px $shadow10);
61
+ color: #555; text-shadow: 1px 1px 0 $hilite20;
62
+
63
+ &:hover { @include glow; }
64
+ }
65
+
66
+ @mixin button-blue {
67
+ @include gradient($blue, $blue * 0.9);
68
+ color: white; text-shadow: 1px 1px 0 $shadow10;
69
+
70
+ &:hover {
71
+ @include gradient($blue * 0.98, $blue * 0.88);
72
+ color: white;
73
+ text-decoration: none;
74
+ }
75
+ }
76
+
77
+ @mixin button-black {
78
+ @include gradient(#555, #333);
79
+ @include shadow(0 0 4px $blue, inset 0 0 4px $blue);
80
+ color: white; text-shadow: 1px 1px 0 $shadow20;
81
+ font-weight: bold; text-decoration: none;
82
+
83
+ :hover {
84
+ @include gradient(#666, #333);
85
+ color: white;
86
+ }
87
+ }
88
+
89
+ @mixin button-small {
90
+ padding: 0 15px; line-height: 22px; height: 22px; font-size: 9pt;
91
+ }
92
+
93
+ @mixin button-micro {
94
+ padding: 0 35px; line-height: 16px; height: 16px; font-size: 7pt; text-transform: uppercase;
95
+ }
96
+
97
+ $input-height: 38px;
98
+
99
+ @mixin input-focus {
100
+ outline: 0;
101
+ @include shadow(0 0 4px $blue-glow-20,
102
+ 0 0 2px $blue-glow-70,
103
+ inset 0 0 12px $blue-glow-20);
104
+ border-color: $blue-glow * 0.7;
105
+ background: white;
106
+ }
107
+
108
+ @mixin input-hover {
109
+ border-color: $blue-glow * 1.1;
110
+ @include shadow(inset 0 0 1px $hilite50,
111
+ inset 0 2px 2px $shadow05,
112
+ 0 0 3px $blue-glow-20);
113
+ }
114
+
115
+ @mixin input-base {
116
+ @include border-radius(2px);
117
+ @include shadow(inset 0 0 1px $hilite50,
118
+ inset 0 2px 2px $shadow05);
119
+ @include box-sizing(border-box);
120
+ background: #fdfdfd;
121
+ border: solid 1px #ccc;
122
+ }
123
+
124
+ @mixin input {
125
+ @include input-base;
126
+ width: 488px; padding: 8px 8px;
127
+ height: $input-height;
128
+
129
+ &:hover { @include input-hover; }
130
+ &:focus { @include input-focus; }
131
+ }
132
+
133
+ .animate-opacity {
134
+ -webkit-transition-property: opacity;
135
+ -webkit-transition-duration: 0.5s;
136
+ }