spontaneous 0.2.0.alpha2 → 0.2.0.alpha3
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +3 -40
- data/Rakefile +29 -41
- data/Readme.markdown +21 -8
- data/application/css/add_alias_dialogue.css.scss +79 -0
- data/application/css/{v2.scss → core.css.scss} +537 -550
- data/application/css/{definitions.scss → definitions.css.scss} +121 -33
- data/application/css/dialogue.css.scss +409 -0
- data/application/css/{editing.scss → editing.css.scss} +25 -262
- data/application/css/font.css.scss +8 -0
- data/application/css/jquery-ui-1.8.21.custom/images/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
- data/application/css/jquery-ui-1.8.21.custom/images/ui-bg_diagonals-thick_20_666666_40x40.png +0 -0
- data/application/css/jquery-ui-1.8.21.custom/images/ui-bg_flat_10_000000_40x100.png +0 -0
- data/application/css/jquery-ui-1.8.21.custom/images/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
- data/application/css/jquery-ui-1.8.21.custom/images/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
- data/application/css/jquery-ui-1.8.21.custom/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/application/css/jquery-ui-1.8.21.custom/images/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
- data/application/css/jquery-ui-1.8.21.custom/images/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
- data/application/css/jquery-ui-1.8.21.custom/images/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
- data/application/css/jquery-ui-1.8.21.custom/images/ui-icons_222222_256x240.png +0 -0
- data/application/css/jquery-ui-1.8.21.custom/images/ui-icons_228ef1_256x240.png +0 -0
- data/application/css/jquery-ui-1.8.21.custom/images/ui-icons_ef8c08_256x240.png +0 -0
- data/application/css/jquery-ui-1.8.21.custom/images/ui-icons_ffd27a_256x240.png +0 -0
- data/application/css/jquery-ui-1.8.21.custom/images/ui-icons_ffffff_256x240.png +0 -0
- data/application/css/jquery-ui-1.8.21.custom/ui-lightness.css.scss +565 -0
- data/application/css/{login.scss → login.css.scss} +4 -4
- data/application/css/meta.css.scss +331 -0
- data/application/css/{popover.scss → popover.css.scss} +9 -8
- data/application/css/{schema_error.scss → schema_error.css.scss} +4 -4
- data/application/css/spontaneous.css +5 -0
- data/application/css/unsupported.css.scss +42 -0
- data/application/js/add_alias_dialogue.js +72 -10
- data/application/js/ajax.js +50 -16
- data/application/js/compatibility.js +19 -15
- data/application/js/content.js +39 -36
- data/application/js/content_area.js +53 -5
- data/application/js/dialogue.js +17 -0
- data/application/js/dom.js +1 -1
- data/application/js/edit_panel.js +23 -8
- data/application/js/extensions.js +7 -2
- data/application/js/field_preview.js +2 -1
- data/application/js/field_types/date_field.js +11 -8
- data/application/js/field_types/file_field.js +188 -9
- data/application/js/field_types/image_field.js +46 -29
- data/application/js/field_types/markdown_field.js +57 -14
- data/application/js/field_types/select_field.js +72 -0
- data/application/js/field_types/string_field.js +8 -0
- data/application/js/field_types/webvideo_field.js +8 -0
- data/application/js/init.js +1 -7
- data/application/js/location.js +41 -13
- data/application/js/login.js +3 -0
- data/application/js/meta_view/user_admin.js +543 -0
- data/application/js/meta_view.js +1 -0
- data/application/js/metadata.js +20 -0
- data/application/js/page.js +17 -3
- data/application/js/page_browser.js +40 -30
- data/application/js/page_entry.js +4 -0
- data/application/js/panel/root_menu.js +66 -0
- data/application/js/popover.js +2 -2
- data/application/js/preview.js +1 -1
- data/application/js/publish.js +138 -30
- data/application/js/services.js +43 -0
- data/application/js/sharded_upload.js +2 -2
- data/application/js/spontaneous.js +64 -5
- data/application/js/state.js +20 -9
- data/application/js/top_bar.js +273 -150
- data/application/js/types.js +20 -15
- data/application/js/upload.js +1 -2
- data/application/js/user.js +18 -4
- data/application/js/vendor/date.js +104 -0
- data/application/js/vendor/jquery-ui-1.8.18.custom.min.js +356 -0
- data/application/js/views/box_view.js +15 -8
- data/application/js/views/page_piece_view.js +11 -8
- data/application/js/views/page_view.js +21 -3
- data/application/js/views/piece_view.js +19 -10
- data/application/js/views.js +3 -0
- data/application/static/chromelogo-200x52-45c7cbc93be080bea342df5fcda2ef8b.png +0 -0
- data/application/static/dot-texture-9eea29e4ac7ad9a772285252078ec127.png +0 -0
- data/application/static/editing-textarea-resize-s-b5af62365eb7e19ea4beccf7242d508e.png +0 -0
- data/application/static/editing-texture-1-42b06a3439752490988f30f2a06d5e7c.png +0 -0
- data/application/static/font/fontawesome-webfont-5c5c21100a346972a82c34c5e96ffcfe.ttf +0 -0
- data/application/static/loop_alt1-white-7894b458528e92216196cae26b4c2c96.svg +12 -0
- data/application/static/spontaneous-states-e91ec89db525c62da0105b97cdd781ce.png +0 -0
- data/application/views/index.erb +2 -2
- data/application/views/login.erb +4 -8
- data/application/views/schema_modification_error.html.erb +1 -4
- data/application/views/unsupported.erb +9 -7
- data/bin/spot +1 -1
- data/db/migrations/20110209152710_users_and_groups.rb +10 -10
- data/db/migrations/20120305112647_site_modification_time.rb +11 -0
- data/db/migrations/20120418153903_add_ownership_of_content.rb +14 -0
- data/db/migrations/20120423175416_add_pending_modifications.rb +21 -0
- data/db/migrations/20120525164947_add_field_versions.rb +27 -0
- data/lib/sequel/plugins/scoped_table_name.rb +10 -1
- data/lib/spontaneous/asset/file.rb +25 -0
- data/lib/spontaneous/asset/source.rb +28 -0
- data/lib/spontaneous/asset.rb +75 -0
- data/lib/spontaneous/box.rb +6 -4
- data/lib/spontaneous/capistrano/deploy.rb +47 -0
- data/lib/spontaneous/capistrano/sync.rb +81 -0
- data/lib/spontaneous/capistrano.rb +13 -0
- data/lib/spontaneous/change.rb +60 -68
- data/lib/spontaneous/cli/assets.rb +29 -0
- data/lib/spontaneous/cli/base.rb +0 -48
- data/lib/spontaneous/cli/console.rb +1 -1
- data/lib/spontaneous/cli/server.rb +6 -4
- data/lib/spontaneous/cli/site.rb +28 -17
- data/lib/spontaneous/cli/user.rb +107 -0
- data/lib/spontaneous/cli.rb +100 -4
- data/lib/spontaneous/collections/entry_set.rb +2 -2
- data/lib/spontaneous/collections/field_set.rb +48 -22
- data/lib/spontaneous/collections/prototype_set.rb +20 -13
- data/lib/spontaneous/constants.rb +3 -0
- data/lib/spontaneous/content.rb +22 -5
- data/lib/spontaneous/errors.rb +3 -3
- data/lib/spontaneous/extensions/array.rb +12 -0
- data/lib/spontaneous/extensions/enumerable.rb +30 -0
- data/lib/spontaneous/extensions/nil.rb +3 -1
- data/lib/spontaneous/extensions/string.rb +16 -0
- data/lib/spontaneous/field_types/date_field.rb +45 -2
- data/lib/spontaneous/field_types/field.rb +42 -9
- data/lib/spontaneous/field_types/file_field.rb +68 -0
- data/lib/spontaneous/field_types/image_field.rb +63 -0
- data/lib/spontaneous/field_types/select_field.rb +109 -0
- data/lib/spontaneous/field_types/string_field.rb +6 -1
- data/lib/spontaneous/field_types/webvideo_field.rb +85 -27
- data/lib/spontaneous/field_types.rb +1 -1
- data/lib/spontaneous/field_version.rb +8 -0
- data/lib/spontaneous/generators/page.rb +1 -1
- data/lib/spontaneous/generators/site/Capfile.tt +1 -4
- data/lib/spontaneous/generators/site/Gemfile.tt +13 -6
- data/lib/spontaneous/generators/site/config/deploy.rb.tt +28 -0
- data/lib/spontaneous/generators/site/config/environments/production.rb.tt +7 -2
- data/lib/spontaneous/generators/site.rb +1 -0
- data/lib/spontaneous/json.rb +34 -11
- data/lib/spontaneous/layout.rb +22 -0
- data/lib/spontaneous/media/file.rb +4 -0
- data/lib/spontaneous/output/assets/compression.rb +58 -0
- data/lib/spontaneous/output/assets.rb +32 -0
- data/lib/spontaneous/output/context.rb +179 -0
- data/lib/spontaneous/output/format/html.rb +5 -0
- data/lib/spontaneous/output/format/plain.rb +5 -0
- data/lib/spontaneous/output/format.rb +180 -0
- data/lib/spontaneous/output/helpers/classes_helper.rb +18 -0
- data/lib/spontaneous/{render/helpers/html_helper.rb → output/helpers/conditional_comment_helper.rb} +3 -12
- data/lib/spontaneous/output/helpers/script_helper.rb +73 -0
- data/lib/spontaneous/output/helpers/stylesheet_helper.rb +61 -0
- data/lib/spontaneous/output/helpers.rb +28 -0
- data/lib/spontaneous/output/template/engine.rb +59 -0
- data/lib/spontaneous/output/template/renderer.rb +153 -0
- data/lib/spontaneous/output/template.rb +21 -0
- data/lib/spontaneous/output.rb +163 -0
- data/lib/spontaneous/page.rb +2 -1
- data/lib/spontaneous/paths.rb +6 -1
- data/lib/spontaneous/permissions/access_key.rb +5 -5
- data/lib/spontaneous/permissions/user.rb +81 -35
- data/lib/spontaneous/permissions/user_level.rb +26 -22
- data/lib/spontaneous/plugins/aliases.rb +76 -12
- data/lib/spontaneous/plugins/allowed_types.rb +60 -18
- data/lib/spontaneous/plugins/application/paths.rb +0 -28
- data/lib/spontaneous/plugins/application/system.rb +35 -0
- data/lib/spontaneous/plugins/boxes.rb +4 -0
- data/lib/spontaneous/plugins/content_groups.rb +16 -0
- data/lib/spontaneous/plugins/entries.rb +50 -30
- data/lib/spontaneous/plugins/fields.rb +15 -0
- data/lib/spontaneous/plugins/layouts.rb +8 -2
- data/lib/spontaneous/plugins/modifications.rb +228 -0
- data/lib/spontaneous/plugins/page/formats.rb +67 -42
- data/lib/spontaneous/plugins/page/request.rb +10 -0
- data/lib/spontaneous/plugins/page/site_timestamps.rb +28 -0
- data/lib/spontaneous/plugins/paths.rb +15 -3
- data/lib/spontaneous/plugins/publishing.rb +124 -45
- data/lib/spontaneous/plugins/render.rb +13 -8
- data/lib/spontaneous/plugins/schema_hierarchy.rb +18 -6
- data/lib/spontaneous/plugins/site/helpers.rb +53 -0
- data/lib/spontaneous/plugins/site/hooks.rb +50 -0
- data/lib/spontaneous/plugins/site/map.rb +1 -1
- data/lib/spontaneous/plugins/site/paths.rb +13 -0
- data/lib/spontaneous/plugins/site/publishing.rb +6 -2
- data/lib/spontaneous/plugins/site/{revisions.rb → state.rb} +5 -1
- data/lib/spontaneous/plugins/site/storage.rb +4 -0
- data/lib/spontaneous/plugins/site/url.rb +15 -0
- data/lib/spontaneous/plugins/site_map.rb +13 -3
- data/lib/spontaneous/plugins/styles.rb +5 -1
- data/lib/spontaneous/plugins/visibility.rb +39 -12
- data/lib/spontaneous/prototypes/box_prototype.rb +4 -0
- data/lib/spontaneous/prototypes/field_prototype.rb +15 -10
- data/lib/spontaneous/publishing/event_client.rb +46 -0
- data/lib/spontaneous/publishing/immediate.rb +81 -44
- data/lib/spontaneous/publishing/simultaneous.rb +23 -6
- data/lib/spontaneous/publishing.rb +4 -3
- data/lib/spontaneous/rack/around_back.rb +1 -5
- data/lib/spontaneous/rack/around_front.rb +4 -4
- data/lib/spontaneous/rack/around_preview.rb +4 -3
- data/lib/spontaneous/rack/assets.rb +81 -54
- data/lib/spontaneous/rack/authentication.rb +0 -1
- data/lib/spontaneous/rack/back.rb +160 -72
- data/lib/spontaneous/rack/cookie_authentication.rb +2 -2
- data/lib/spontaneous/rack/css.rb +18 -15
- data/lib/spontaneous/rack/event_source.rb +9 -21
- data/lib/spontaneous/rack/fiber_pool.rb +26 -0
- data/lib/spontaneous/rack/front.rb +12 -4
- data/lib/spontaneous/rack/helpers.rb +35 -13
- data/lib/spontaneous/rack/js.rb +41 -0
- data/lib/spontaneous/rack/public.rb +34 -44
- data/lib/spontaneous/rack/sse.rb +18 -0
- data/lib/spontaneous/rack/static.rb +3 -0
- data/lib/spontaneous/rack/user_admin.rb +100 -0
- data/lib/spontaneous/rack/user_helpers.rb +1 -1
- data/lib/spontaneous/rack.rb +6 -2
- data/lib/spontaneous/schema.rb +31 -4
- data/lib/spontaneous/search/index.rb +19 -3
- data/lib/spontaneous/search/results.rb +1 -1
- data/lib/spontaneous/sequel.rb +17 -0
- data/lib/spontaneous/site.rb +11 -4
- data/lib/spontaneous/state.rb +11 -0
- data/lib/spontaneous/storage/cloud.rb +4 -0
- data/lib/spontaneous/storage/local.rb +11 -0
- data/lib/spontaneous/style.rb +2 -2
- data/lib/spontaneous/tasks/database.rake +21 -22
- data/lib/spontaneous/utils/database/mysql_dumper.rb +4 -0
- data/lib/spontaneous/utils/database/postgres_dumper.rb +78 -0
- data/lib/spontaneous/utils/database.rb +6 -3
- data/lib/spontaneous/utils/smart_quotes.rb +499 -0
- data/lib/spontaneous/utils/smush_it.rb +66 -0
- data/lib/spontaneous/utils.rb +3 -1
- data/lib/spontaneous/version.rb +2 -2
- data/lib/spontaneous.rb +25 -29
- data/spontaneous.gemspec +186 -106
- data/test/experimental/test_features.rb +1 -1
- data/test/fixtures/asset_pipeline/application/css/basic.css.scss +4 -0
- data/test/fixtures/asset_pipeline/application/css/complex.css.scss.erb +6 -0
- data/test/fixtures/asset_pipeline/application/css/simple.css +3 -0
- data/test/fixtures/asset_pipeline/application/css/spontaneous.css +7 -0
- data/test/fixtures/asset_pipeline/application/css/subdir/complex.css.scss.erb +6 -0
- data/test/fixtures/asset_pipeline/application/css/subdir/library.css.scss +1 -0
- data/test/fixtures/asset_pipeline/application/css/subdir/simple.css +3 -0
- data/test/fixtures/asset_pipeline/application/js/basic.js.coffee +1 -0
- data/test/fixtures/asset_pipeline/application/js/complex.js.coffee.erb +1 -0
- data/test/fixtures/asset_pipeline/application/js/login.js +1 -0
- data/test/fixtures/asset_pipeline/application/js/require.js +1 -0
- data/test/fixtures/asset_pipeline/application/js/simple.js +1 -0
- data/test/fixtures/asset_pipeline/application/js/spontaneous.js +5 -0
- data/test/fixtures/asset_pipeline/application/js/subdir/complex.js.coffee.erb +1 -0
- data/test/fixtures/asset_pipeline/application/js/subdir/library.js.coffee +1 -0
- data/test/fixtures/asset_pipeline/application/js/subdir/simple.js +1 -0
- data/test/fixtures/asset_pipeline/application/js/vendor/jquery.js +1 -0
- data/test/fixtures/asset_pipeline/application/static/dot-texture.png +0 -0
- data/test/fixtures/asset_pipeline/application/static/subdir/px.gif +0 -0
- data/test/fixtures/assets/public1/css/a.scss +1 -0
- data/test/fixtures/assets/public1/js/a.js +1 -0
- data/test/fixtures/assets/public1/js/m.coffee +1 -0
- data/test/fixtures/assets/public2/css/b.scss +1 -0
- data/test/fixtures/assets/public2/css/c.css +1 -0
- data/test/fixtures/assets/public2/js/b.js +1 -0
- data/test/fixtures/assets/public2/js/c.js +1 -0
- data/test/fixtures/assets/public2/js/n.coffee +1 -0
- data/test/fixtures/back/config/user_levels.yml +3 -0
- data/test/fixtures/back/public/js/coffeescript.coffee +1 -0
- data/test/fixtures/back/templates/layouts/standard.css.cut +1 -0
- data/test/fixtures/back/templates/layouts/standard.js.cut +1 -0
- data/test/fixtures/example_application/config/database.yml +4 -4
- data/test/fixtures/helpers/templates/layouts/standard.html.cut +1 -0
- data/test/fixtures/helpers/templates/layouts/standard.mobile.cut +1 -0
- data/test/fixtures/images/vimlogo.pdf +0 -0
- data/test/fixtures/outputs/templates/layouts/standard.atom.cut +1 -0
- data/test/fixtures/permissions/config/user_levels.yml +6 -3
- data/test/fixtures/serialisation/class_hash.yaml.erb +1 -0
- data/test/fixtures/serialisation/root_hash.yaml.erb +2 -2
- data/test/fixtures/templates/extended/grandparent.html.cut +7 -7
- data/test/fixtures/templates/extended/main.html.cut +5 -5
- data/test/fixtures/templates/extended/parent.html.cut +8 -8
- data/test/fixtures/templates/extended/partial_with_locals.html.cut +1 -1
- data/test/fixtures/templates/extended/with_includes.html.cut +6 -6
- data/test/fixtures/templates/extended/with_includes_and_locals.html.cut +6 -7
- data/test/fixtures/templates/layouts/entries.html.cut +4 -4
- data/test/fixtures/templates/layouts/standard.html.cut +1 -0
- data/test/fixtures/templates/layouts/variables.html.cut +1 -1
- data/test/fixtures/templates/publishing/templates/layouts/static.html.cut +1 -1
- data/test/fixtures/templates/publishing/templates/layouts/static.rtf.cut +1 -0
- data/test/fixtures/templates/template_class/complex_template.html.cut +2 -2
- data/test/fixtures/templates/template_class/complex_template.pdf.cut +2 -2
- data/test/fixtures/templates/template_class/default_template_style.html.cut +1 -1
- data/test/fixtures/templates/template_class/images_with_template.html.cut +2 -2
- data/test/fixtures/templates/template_class/slots_template.html.cut +2 -2
- data/test/fixtures/templates/template_class/slots_template.pdf.cut +2 -2
- data/test/fixtures/user_manager/config/user_levels.yml +9 -0
- data/test/functional/test_application.rb +7 -7
- data/test/functional/test_back.rb +352 -97
- data/test/functional/test_front.rb +71 -20
- data/test/functional/test_user_manager.rb +284 -0
- data/test/javascript/env.js +13505 -0
- data/test/javascript/test_markdown.rb +43 -3
- data/test/support/custom_matchers.rb +3 -2
- data/test/test_helper.rb +50 -9
- data/test/test_javascript.rb +13 -13
- data/test/ui_helper.rb +1 -1
- data/test/unit/test_alias.rb +79 -8
- data/test/unit/test_asset_bundler.rb +220 -0
- data/test/unit/test_assets.rb +213 -0
- data/test/unit/test_async.rb +55 -0
- data/test/unit/test_authentication.rb +52 -39
- data/test/unit/test_boxes.rb +20 -15
- data/test/unit/test_changesets.rb +261 -0
- data/test/unit/test_content.rb +73 -33
- data/test/unit/test_content_inheritance.rb +18 -18
- data/test/unit/test_extensions.rb +26 -0
- data/test/unit/test_fields.rb +303 -16
- data/test/unit/test_formats.rb +267 -34
- data/test/unit/test_helpers.rb +79 -2
- data/test/unit/test_images.rb +10 -0
- data/test/unit/test_layouts.rb +21 -13
- data/test/unit/test_modifications.rb +648 -0
- data/test/unit/test_page.rb +6 -2
- data/test/unit/test_permissions.rb +101 -27
- data/test/unit/test_piece.rb +4 -4
- data/test/unit/test_plugins.rb +3 -2
- data/test/unit/test_publishing.rb +332 -0
- data/test/unit/test_render.rb +118 -67
- data/test/unit/test_revisions.rb +546 -0
- data/test/unit/test_schema.rb +83 -1
- data/test/unit/test_search.rb +59 -0
- data/test/unit/test_serialisation.rb +2 -47
- data/test/unit/test_site.rb +217 -108
- data/test/unit/test_storage.rb +26 -0
- data/test/unit/test_structure.rb +2 -2
- data/test/unit/test_styles.rb +90 -75
- data/test/unit/test_table_scoping.rb +21 -17
- data/test/unit/test_templates.rb +75 -69
- data/test/{slow → unit}/test_visibility.rb +78 -22
- metadata +528 -221
- data/application/css/add_alias_dialogue.scss +0 -27
- data/application/css/min/14c2a35812c443001b15d8b12a4780f88c678035.css +0 -1
- data/application/css/min/565d4c25e82148acb01c45c8d675b37a08676d77.css +0 -1
- data/application/css/min/84dbe894ea96eafd321c30823d630817bfc4b03b.css +0 -1
- data/application/css/spontaneous.scss +0 -111
- data/application/css/unsupported.scss +0 -16
- data/application/css/variables.scss +0 -80
- data/application/js/min/2a0c2962537a3181fedfff5c92596ba6d3122dc9.js +0 -3
- data/application/js/min/4cf1c493d3379ecba5287758c61238034c0893f9.js +0 -2
- data/application/js/min/78ac6b99d96750bb6b9f9aad4cb9cd91cd03f391.js +0 -3
- data/application/js/min/b8abf302a824c35385ff517b34111e1710ff3b37.js +0 -2
- data/application/js/min/c8efb9b9f7c3f6613fcebc6be60f605b6570a382.js +0 -90
- data/application/static/diagonal-texture.png +0 -0
- data/application/static/editing-0-noise.png +0 -0
- data/application/static/editing-1-noise.png +0 -0
- data/application/static/editing-texture-1.png +0 -0
- data/application/static/editing-texture.png +0 -0
- data/application/static/editing-toolbar-shadow-bottom.png +0 -0
- data/application/static/editing-toolbar-shadow-top.png +0 -0
- data/application/static/inner-glow.png +0 -0
- data/application/static/item-buttons-highlight.png +0 -0
- data/application/static/item-buttons.png +0 -0
- data/application/static/paper-texture-dark.png +0 -0
- data/application/static/plus_alt.svg +0 -8
- data/application/static/select-arrow-root.png +0 -0
- data/application/static/slot-up-arrow.png +0 -0
- data/application/static/spontaneous.png +0 -0
- data/lib/cutaneous/context_helper.rb +0 -187
- data/lib/cutaneous/preview_context.rb +0 -32
- data/lib/cutaneous/preview_renderer.rb +0 -10
- data/lib/cutaneous/publish_context.rb +0 -10
- data/lib/cutaneous/publish_renderer.rb +0 -14
- data/lib/cutaneous/publish_template.rb +0 -62
- data/lib/cutaneous/publish_token_parser.rb +0 -8
- data/lib/cutaneous/renderer.rb +0 -124
- data/lib/cutaneous/request_context.rb +0 -9
- data/lib/cutaneous/request_renderer.rb +0 -15
- data/lib/cutaneous/request_template.rb +0 -11
- data/lib/cutaneous/request_token_parser.rb +0 -9
- data/lib/cutaneous/token_parser.rb +0 -125
- data/lib/cutaneous.rb +0 -48
- data/lib/spontaneous/render/context_base.rb +0 -143
- data/lib/spontaneous/render/development_renderer.rb +0 -14
- data/lib/spontaneous/render/engine.rb +0 -19
- data/lib/spontaneous/render/format/html.rb +0 -5
- data/lib/spontaneous/render/format.rb +0 -75
- data/lib/spontaneous/render/helpers/script_helper.rb +0 -17
- data/lib/spontaneous/render/helpers/stylesheet_helper.rb +0 -16
- data/lib/spontaneous/render/helpers.rb +0 -14
- data/lib/spontaneous/render/preview_context.rb +0 -8
- data/lib/spontaneous/render/preview_renderer.rb +0 -24
- data/lib/spontaneous/render/publish_context.rb +0 -22
- data/lib/spontaneous/render/published_renderer.rb +0 -53
- data/lib/spontaneous/render/publishing_renderer.rb +0 -16
- data/lib/spontaneous/render/render_cache.rb +0 -26
- data/lib/spontaneous/render/renderer.rb +0 -50
- data/lib/spontaneous/render/request_context.rb +0 -8
- data/lib/spontaneous/render.rb +0 -214
- data/test/experimental/test_cutaneous.rb +0 -309
- data/test/fixtures/application/css/test.less +0 -5
- data/test/slow/test_publishing.rb +0 -1006
- /data/application/css/{developer.scss → developer.css.scss} +0 -0
- /data/application/js/vendor/{jquery-1.7.1.min.js → jquery.js} +0 -0
- /data/application/static/{location-arrow.png → location-arrow-c1c1d3ca472481c61a0a5f8cb289d743.png} +0 -0
- /data/application/static/{missing.png → missing-911ce6dbd9f4602e0f3fbcd7e78846a2.png} +0 -0
- /data/application/static/{orange-down-arrow.png → orange-down-arrow-395ae1929e8662b2ff0977daf12c35bb.png} +0 -0
- /data/application/static/{page-browser-next.png → page-browser-next-ce781a242c23b980b99b9db7abc20b05.png} +0 -0
- /data/application/static/{plus-box.png → plus-box-dcde74a1e496f68298c9b443caa1c5d5.png} +0 -0
- /data/application/static/{select-arrow.png → select-arrow-6e7dd3745b00e934b0d7a3250c46558b.png} +0 -0
- /data/application/static/{slot-down-arrow.png → slot-down-arrow-59ad5f5ee5b52a7ebd00bca4b3104194.png} +0 -0
- /data/application/static/{splash.png → splash-65b493a714df9b8b3ab170103401b53d.png} +0 -0
- /data/application/static/{spot.png → spot-71fab1d2f065034f5fc15e7bea2ad36c.png} +0 -0
- /data/application/static/{spot.svg → spot-8505041082d8d3bbe8d34c29dddb3b7d.svg} +0 -0
- /data/application/static/{texture.png → texture-03f7627e8264b1d607113ab32c593a58.png} +0 -0
@@ -18,40 +18,43 @@ $error: #f00;
|
|
18
18
|
$chrome-bg: #222;
|
19
19
|
$chrome-accent: #404040;
|
20
20
|
|
21
|
-
$content-font-family: "HelveticaNeue", "Helvetica Neue", "
|
22
|
-
$input-font-family: "Lucida Grande";
|
23
|
-
$headline-font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", "
|
24
|
-
$interface-font-family: "HelveticaNeue", "Helvetica Neue", "
|
21
|
+
$content-font-family: "HelveticaNeue", "Helvetica Neue", "Helvetica", "Arial", "sans-serif";
|
22
|
+
$input-font-family: "Lucida Grande", "Lucida Sans Unicode";
|
23
|
+
$headline-font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", "Helvetica", "Arial";
|
24
|
+
$interface-font-family: "HelveticaNeue", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
|
25
25
|
/*$interface-font-family: "Helvetica";*/
|
26
26
|
|
27
|
-
$field-preview-font-size:
|
27
|
+
$field-preview-font-size: 13px;
|
28
28
|
|
29
|
-
$container-padding:
|
30
|
-
$
|
31
|
-
$field-
|
29
|
+
$container-padding: 48px;
|
30
|
+
$entry-gap: 32px;
|
31
|
+
$field-text-preview-width: 680px;
|
32
|
+
$field-image-preview-width: 280px;
|
32
33
|
$field-preview-total-width: $field-text-preview-width + $field-image-preview-width + 32px;
|
33
34
|
$title-bar-height: 16px;
|
34
35
|
$dialogue-width: 980px;
|
35
36
|
|
36
|
-
$corner-radius:
|
37
|
+
$corner-radius: 2px;
|
37
38
|
$radius: $corner-radius;
|
38
39
|
|
39
40
|
$slot-addable-colour: #ddd;
|
40
41
|
$entry-background-colour: #eee;
|
41
42
|
|
42
|
-
|
43
|
+
$target-name-size: 14px;
|
44
|
+
|
45
|
+
@mixin rounded($radius: $corner-radius) {
|
43
46
|
-webkit-border-radius: $radius;
|
44
47
|
-moz-border-radius: $radius;
|
45
48
|
border-radius: $radius;
|
46
49
|
}
|
47
50
|
|
48
|
-
@mixin corners($radius-tl:
|
51
|
+
@mixin corners($radius-tl: $corner-radius, $radius-tr: $corner-radius, $radius-br: $corner-radius, $radius-bl: $corner-radius) {
|
49
52
|
-webkit-border-radius: $radius-tl $radius-tr $radius-br $radius-bl;
|
50
53
|
-moz-border-radius: $radius-tl $radius-tr $radius-br $radius-bl;
|
51
54
|
border-radius: $radius-tl $radius-tr $radius-br $radius-bl;
|
52
55
|
}
|
53
56
|
|
54
|
-
@mixin rounded-top($radius:
|
57
|
+
@mixin rounded-top($radius: $corner-radius) {
|
55
58
|
-webkit-border-top-right-radius: $radius;
|
56
59
|
-moz-border-radius-topright: $radius;
|
57
60
|
border-top-right-radius: $radius;
|
@@ -59,7 +62,7 @@ $entry-background-colour: #eee;
|
|
59
62
|
-moz-border-radius-topleft: $radius;
|
60
63
|
border-top-left-radius: $radius; }
|
61
64
|
|
62
|
-
@mixin rounded-bottom($radius:
|
65
|
+
@mixin rounded-bottom($radius: $corner-radius) {
|
63
66
|
-webkit-border-bottom-right-radius: $radius;
|
64
67
|
-moz-border-radius-bottomright: $radius;
|
65
68
|
border-bottom-right-radius: $radius;
|
@@ -67,17 +70,17 @@ $entry-background-colour: #eee;
|
|
67
70
|
-moz-border-radius-bottomleft: $radius;
|
68
71
|
border-bottom-left-radius: $radius; }
|
69
72
|
|
70
|
-
@mixin rounded-top-left($radius:
|
73
|
+
@mixin rounded-top-left($radius: $corner-radius) {
|
71
74
|
-webkit-border-top-left-radius: $radius;
|
72
75
|
-moz-border-radius-topleft: $radius;
|
73
76
|
border-top-left-radius: $radius; }
|
74
77
|
|
75
|
-
@mixin rounded-top-right($radius:
|
78
|
+
@mixin rounded-top-right($radius: $corner-radius) {
|
76
79
|
-webkit-border-top-right-radius: $radius;
|
77
80
|
-moz-border-radius-topright: $radius;
|
78
81
|
border-top-right-radius: $radius; }
|
79
82
|
|
80
|
-
@mixin rounded-right($radius:
|
83
|
+
@mixin rounded-right($radius: $corner-radius) {
|
81
84
|
-webkit-border-radius: 0 $radius $radius 0;
|
82
85
|
-moz-border-radius: 0 $radius $radius 0;
|
83
86
|
border-radius: 0 $radius $radius 0; }
|
@@ -124,35 +127,33 @@ $entry-background-colour: #eee;
|
|
124
127
|
-webkit-box-align: $aligning;
|
125
128
|
-moz-box-align: $aligning;
|
126
129
|
}
|
127
|
-
@mixin box-flex {
|
128
|
-
-webkit-box-flex:
|
129
|
-
-moz-box-flex:
|
130
|
-
box-flex:
|
131
|
-
}
|
132
|
-
.box-flexible {
|
133
|
-
-webkit-box-flex: 1;
|
134
|
-
-moz-box-flex: 1;
|
135
|
-
box-flex: 1;
|
130
|
+
@mixin box-flex($flex: 1) {
|
131
|
+
-webkit-box-flex: $flex;
|
132
|
+
-moz-box-flex: $flex;
|
133
|
+
box-flex: $flex;
|
136
134
|
}
|
137
135
|
|
138
|
-
|
136
|
+
@mixin no-select {
|
139
137
|
-moz-user-select: none;
|
140
138
|
-webkit-user-select: none;
|
141
139
|
}
|
142
140
|
|
143
|
-
|
141
|
+
@mixin interface {
|
144
142
|
font-family: $interface-font-family;
|
145
143
|
-webkit-font-smoothing: antialiased;
|
146
144
|
text-transform: uppercase;
|
147
145
|
font-size: 10px;
|
148
|
-
|
146
|
+
line-height: 13px;
|
147
|
+
//font-weight: bold;
|
148
|
+
font-weight: 600;
|
149
149
|
@extend .no-select;
|
150
150
|
}
|
151
151
|
|
152
152
|
@mixin button($background-color: $action) {
|
153
153
|
@include rounded;
|
154
154
|
@include box-sizing;
|
155
|
-
@
|
155
|
+
@include interface;
|
156
|
+
border: none;
|
156
157
|
margin: 0;
|
157
158
|
cursor: pointer;
|
158
159
|
text-align: center;
|
@@ -165,12 +166,14 @@ $entry-background-colour: #eee;
|
|
165
166
|
color: white !important;
|
166
167
|
}
|
167
168
|
|
168
|
-
@mixin button-color($background-color: $action) {
|
169
|
+
@mixin button-color($background-color: $action, $hover-color: $highlight) {
|
169
170
|
background-color: $background-color;
|
170
171
|
@include vertical-gradient(lighten($background-color, 5%), darken($background-color, 5%));
|
172
|
+
box-shadow: inset 0 0 8px darken($background-color, 8%);
|
171
173
|
&:hover {
|
172
|
-
background-color: $
|
173
|
-
@include vertical-gradient($
|
174
|
+
background-color: $hover-color !important;
|
175
|
+
@include vertical-gradient($hover-color, darken($hover-color, 5%));
|
176
|
+
box-shadow: inset 0 0 8px darken($hover-color, 8%);
|
174
177
|
color: white !important;
|
175
178
|
}
|
176
179
|
}
|
@@ -182,7 +185,7 @@ $entry-background-colour: #eee;
|
|
182
185
|
}
|
183
186
|
|
184
187
|
@mixin header {
|
185
|
-
font-weight:
|
188
|
+
font-weight: 600;
|
186
189
|
font-family: $headline-font-family;
|
187
190
|
-webkit-font-smoothing: antialiased;
|
188
191
|
}
|
@@ -210,6 +213,28 @@ $entry-background-colour: #eee;
|
|
210
213
|
transition: $transition;
|
211
214
|
}
|
212
215
|
|
216
|
+
@mixin disable-text-select {
|
217
|
+
-webkit-touch-callout: none;
|
218
|
+
-webkit-user-select: none;
|
219
|
+
-khtml-user-select: none;
|
220
|
+
-moz-user-select: none;
|
221
|
+
-ms-user-select: none;
|
222
|
+
-o-user-select: none;
|
223
|
+
user-select: none;
|
224
|
+
}
|
225
|
+
@mixin fullsize($top: 0, $right: 0, $bottom: 0, $left: 0) {
|
226
|
+
position: absolute;
|
227
|
+
left: $left;
|
228
|
+
right: $right;
|
229
|
+
top: $top;
|
230
|
+
bottom: $bottom;
|
231
|
+
}
|
232
|
+
|
233
|
+
@mixin calc($property, $calculation) {
|
234
|
+
#{ $property }: -webkit-calc(#{ $calculation });
|
235
|
+
#{ $property }: -moz-calc(#{ $calculation });
|
236
|
+
#{ $property }: calc(#{ $calculation });
|
237
|
+
}
|
213
238
|
.button {
|
214
239
|
@include button;
|
215
240
|
}
|
@@ -250,3 +275,66 @@ ul, ol {
|
|
250
275
|
a {
|
251
276
|
text-decoration: none;
|
252
277
|
}
|
278
|
+
|
279
|
+
@mixin awesome-icon($icon) {
|
280
|
+
font-family: FontAwesome;
|
281
|
+
font-weight: normal;
|
282
|
+
font-style: normal;
|
283
|
+
display: inline-block;
|
284
|
+
text-decoration: inherit;
|
285
|
+
content: $icon;
|
286
|
+
}
|
287
|
+
|
288
|
+
@mixin image-overlay {
|
289
|
+
opacity: 0.7;
|
290
|
+
color: black;
|
291
|
+
padding-left: 4px;
|
292
|
+
padding-top: 2px;
|
293
|
+
background-color: #efefef;
|
294
|
+
}
|
295
|
+
|
296
|
+
.meta-background {
|
297
|
+
background: url(/@spontaneous/static/texture-03f7627e8264b1d607113ab32c593a58.png) repeat;
|
298
|
+
}
|
299
|
+
|
300
|
+
.editing-background {
|
301
|
+
background: url(/@spontaneous/static/editing-texture-1-42b06a3439752490988f30f2a06d5e7c.png) repeat;
|
302
|
+
}
|
303
|
+
|
304
|
+
$editing-blur: rgba(0, 0, 0, 0.2);
|
305
|
+
$editing-focus: rgba(0, 0, 0, 0.6);
|
306
|
+
@mixin field-name {
|
307
|
+
@include rounded-top;
|
308
|
+
@include box-sizing;
|
309
|
+
@include interface;
|
310
|
+
background-color: $editing-blur;
|
311
|
+
color: #fff;
|
312
|
+
display: block;
|
313
|
+
height: 16px;
|
314
|
+
padding-left: 8px;
|
315
|
+
padding-top: 2px;
|
316
|
+
|
317
|
+
}
|
318
|
+
|
319
|
+
@mixin field-value {
|
320
|
+
@include rounded-bottom;
|
321
|
+
border: solid 2px transparent;
|
322
|
+
padding: 6px;
|
323
|
+
background-color: white;
|
324
|
+
opacity: 0.8;
|
325
|
+
}
|
326
|
+
|
327
|
+
@mixin text-input {
|
328
|
+
@include box-sizing;
|
329
|
+
width: 100%;
|
330
|
+
border: none;
|
331
|
+
display: block;
|
332
|
+
font-weight: bold;
|
333
|
+
outline: none;
|
334
|
+
}
|
335
|
+
|
336
|
+
@mixin input-font {
|
337
|
+
font-family: $input-font-family;
|
338
|
+
font-size: 11px;
|
339
|
+
line-height: 14px;
|
340
|
+
}
|
@@ -0,0 +1,409 @@
|
|
1
|
+
@import "definitions.css.scss";
|
2
|
+
$dialogue-title-height: 32px;
|
3
|
+
|
4
|
+
#dialogue-wrap {
|
5
|
+
position: fixed;
|
6
|
+
left: 0;
|
7
|
+
right: 0;
|
8
|
+
bottom: 0;
|
9
|
+
top: 0;
|
10
|
+
overflow: auto;
|
11
|
+
z-index: 1001;
|
12
|
+
$dialogue-frame-width: 2px;
|
13
|
+
#dialogue-outer {
|
14
|
+
@include rounded;
|
15
|
+
@include display-box;
|
16
|
+
@include box-orient($direction: vertical);
|
17
|
+
@extend .shadow;
|
18
|
+
background-color: $chrome-bg;
|
19
|
+
position: absolute;
|
20
|
+
top: 50px;
|
21
|
+
bottom: 50px;
|
22
|
+
left: 25%;
|
23
|
+
right: 25%;
|
24
|
+
|
25
|
+
#dialogue-title {
|
26
|
+
@include box-sizing;
|
27
|
+
@extend .controls-gradient;
|
28
|
+
@include header;
|
29
|
+
@include rounded-top;
|
30
|
+
height: $dialogue-title-height;
|
31
|
+
color: #fff;
|
32
|
+
padding: 0 $unit 0 ($unit+$dialogue-frame-width);
|
33
|
+
padding-top: 6px;
|
34
|
+
font-weight: 100;
|
35
|
+
}
|
36
|
+
#dialogue-body {
|
37
|
+
position: absolute;
|
38
|
+
top: $dialogue-title-height;
|
39
|
+
right: 0;
|
40
|
+
left: 0;
|
41
|
+
bottom: $dialogue-title-height;
|
42
|
+
// min-height: 100px;
|
43
|
+
overflow: auto;
|
44
|
+
margin: 0 $dialogue-frame-width;
|
45
|
+
background-color: #fff;
|
46
|
+
// max-height: 70%;
|
47
|
+
// margin-top: 32px;
|
48
|
+
// margin-bottom: 32px;
|
49
|
+
}
|
50
|
+
#dialogue-control-wrap {
|
51
|
+
position: absolute;
|
52
|
+
bottom: 0;
|
53
|
+
width: 100%;
|
54
|
+
// z-index: 1002;
|
55
|
+
|
56
|
+
#dialogue-controls {
|
57
|
+
position: relative;
|
58
|
+
// display: block;
|
59
|
+
// height: 46px;
|
60
|
+
.dialogue-actions {
|
61
|
+
@include display-box;
|
62
|
+
.spacer {
|
63
|
+
@include box-flex;
|
64
|
+
}
|
65
|
+
.button {
|
66
|
+
display: block;
|
67
|
+
width: 128px;
|
68
|
+
margin: $unit 0;
|
69
|
+
& + .button {
|
70
|
+
margin-left: $unit;
|
71
|
+
}
|
72
|
+
}
|
73
|
+
.button:last-child {
|
74
|
+
margin-right: $unit;
|
75
|
+
}
|
76
|
+
.cancel {
|
77
|
+
@include button-color(#6b6b6b);
|
78
|
+
}
|
79
|
+
.save {
|
80
|
+
background-color: $action;
|
81
|
+
float: right;
|
82
|
+
}
|
83
|
+
.disabled, .disabled:hover {
|
84
|
+
background-color: #333333 !important;
|
85
|
+
color: #6b6b6b !important;
|
86
|
+
}
|
87
|
+
}
|
88
|
+
}
|
89
|
+
}
|
90
|
+
}
|
91
|
+
}
|
92
|
+
|
93
|
+
.dialogue-wrapper {
|
94
|
+
@include rounded;
|
95
|
+
@include box-sizing;
|
96
|
+
position: relative;
|
97
|
+
// top: 32px;
|
98
|
+
background-color: #cccccc;
|
99
|
+
width: $dialogue-width;
|
100
|
+
// margin: 32px auto;
|
101
|
+
}
|
102
|
+
|
103
|
+
#create-home-dialogue {
|
104
|
+
.instructions {
|
105
|
+
@include interface;
|
106
|
+
margin: 0;
|
107
|
+
background-color: #f2f2f2;
|
108
|
+
color: #666;
|
109
|
+
padding: $unit/2 $unit;
|
110
|
+
margin-bottom: $unit;
|
111
|
+
.button {
|
112
|
+
padding-left: 2px;
|
113
|
+
padding-right: 2px;
|
114
|
+
}
|
115
|
+
}
|
116
|
+
|
117
|
+
.type {
|
118
|
+
@include rounded;
|
119
|
+
@include display-box;
|
120
|
+
cursor: pointer;
|
121
|
+
padding: $unit/2 $unit;
|
122
|
+
background-color: #fbfbfb;
|
123
|
+
border: solid 1px #f2f2f2;
|
124
|
+
margin: $unit;
|
125
|
+
margin-top: 0;
|
126
|
+
&:hover {
|
127
|
+
background-color: #666;
|
128
|
+
color: #fff;
|
129
|
+
}
|
130
|
+
&.selected {
|
131
|
+
background-color: $action;
|
132
|
+
color: #fff;
|
133
|
+
}
|
134
|
+
}
|
135
|
+
}
|
136
|
+
|
137
|
+
|
138
|
+
#dialogue-wrap #dialogue-outer.publishing {
|
139
|
+
left: 5%;
|
140
|
+
right: 5%;
|
141
|
+
}
|
142
|
+
|
143
|
+
#publishing-dialogue {
|
144
|
+
@include fullsize;
|
145
|
+
@include display-box;
|
146
|
+
@include box-orient(horizontal);
|
147
|
+
|
148
|
+
.change-list {
|
149
|
+
@include box-flex;
|
150
|
+
position: absolute;
|
151
|
+
left: 0;
|
152
|
+
top: 0;
|
153
|
+
bottom: 0;
|
154
|
+
width: 50%;
|
155
|
+
&#changes {
|
156
|
+
border-right: solid 2px #000;
|
157
|
+
}
|
158
|
+
.actions {
|
159
|
+
@include interface;
|
160
|
+
@include display-box;
|
161
|
+
@include box-orient(horizontal);
|
162
|
+
@include box-align(center);
|
163
|
+
@include box-sizing;
|
164
|
+
position: absolute;
|
165
|
+
left: 0;
|
166
|
+
right: 0;
|
167
|
+
top: 0;
|
168
|
+
height: 25px;
|
169
|
+
|
170
|
+
color: #666;
|
171
|
+
background-color: #f2f2f2;
|
172
|
+
padding: $unit/2 $unit;
|
173
|
+
|
174
|
+
div {
|
175
|
+
@include box-flex;
|
176
|
+
}
|
177
|
+
.button {
|
178
|
+
padding-left: $unit;
|
179
|
+
padding-right: $unit;
|
180
|
+
}
|
181
|
+
}
|
182
|
+
&#to-publish {
|
183
|
+
position: absolute;
|
184
|
+
left: auto;
|
185
|
+
right: 0;
|
186
|
+
.actions {
|
187
|
+
left: 2px;
|
188
|
+
}
|
189
|
+
}
|
190
|
+
.change-sets {
|
191
|
+
@include fullsize(25px, 0, 0, 0);
|
192
|
+
overflow: auto;
|
193
|
+
padding-bottom: $unit;
|
194
|
+
padding-top: $unit;
|
195
|
+
.instructions {
|
196
|
+
font-family: $headline-font-family;
|
197
|
+
color: #999;
|
198
|
+
text-align: center;
|
199
|
+
position: relative;
|
200
|
+
padding-top: 50px;
|
201
|
+
}
|
202
|
+
}
|
203
|
+
}
|
204
|
+
// background-color: #fff;
|
205
|
+
// width: 600px;
|
206
|
+
// @extend .dialogue-wrapper;
|
207
|
+
// padding-top: $container-padding / 2;
|
208
|
+
// padding-bottom: $container-padding / 2;
|
209
|
+
.publish-up-to-date {
|
210
|
+
@include rounded;
|
211
|
+
@extend shadow;
|
212
|
+
position: absolute;
|
213
|
+
left: 0;
|
214
|
+
right: 0;
|
215
|
+
top: 0;
|
216
|
+
bottom: 0;
|
217
|
+
margin: 60px 200px 60px 200px;
|
218
|
+
text-align: center;
|
219
|
+
background-color: #333;
|
220
|
+
opacity: 0.95;
|
221
|
+
font-family: $headline-font-family;
|
222
|
+
font-size: 24px;
|
223
|
+
padding-top: 24px;
|
224
|
+
color: #fff;
|
225
|
+
// margin: $container-padding / 2;
|
226
|
+
// margin-top: 0;
|
227
|
+
// .publish-all {
|
228
|
+
// @include button(#666);
|
229
|
+
// @include interface;
|
230
|
+
// width: 128px;
|
231
|
+
// float: right;
|
232
|
+
// text-align: left;
|
233
|
+
// // background-color: #666666;
|
234
|
+
// input {
|
235
|
+
// margin: 1px 8px 0 8px;
|
236
|
+
// padding: 0;
|
237
|
+
// vertical-align: top;
|
238
|
+
// position: relative;
|
239
|
+
// }
|
240
|
+
// }
|
241
|
+
// .publish-all.checked {
|
242
|
+
// background-color: $action;
|
243
|
+
// }
|
244
|
+
}
|
245
|
+
.change-set {
|
246
|
+
cursor: pointer;
|
247
|
+
// padding: $unit $unit 0 $unit;
|
248
|
+
.inner {
|
249
|
+
@include rounded;
|
250
|
+
@include display-box;
|
251
|
+
// border: solid 3px transparent;
|
252
|
+
background-color: #fbfbfb;
|
253
|
+
// border: solid 1px #f2f2f2;
|
254
|
+
// border: solid 1px #f2f2f2;
|
255
|
+
margin-left: $unit;
|
256
|
+
margin-right: $unit;
|
257
|
+
margin-bottom: 2 * $unit;
|
258
|
+
}
|
259
|
+
.pages {
|
260
|
+
@include box-flex;
|
261
|
+
.title {
|
262
|
+
padding: $unit/2 $unit;
|
263
|
+
color: #333;
|
264
|
+
font-size: $target-name-size;
|
265
|
+
& + .title {
|
266
|
+
border-top: solid 1px #f2f2f2;
|
267
|
+
}
|
268
|
+
}
|
269
|
+
.title.dependent {
|
270
|
+
color: #666;
|
271
|
+
font-size: 0.7em;
|
272
|
+
}
|
273
|
+
.title:hover {
|
274
|
+
color: $action;
|
275
|
+
}
|
276
|
+
.url, .dates {
|
277
|
+
margin-top: 4px;
|
278
|
+
font-size: 10px;
|
279
|
+
color: #aaaaaa;
|
280
|
+
// color: transparent;
|
281
|
+
}
|
282
|
+
.dates {
|
283
|
+
color: transparent;
|
284
|
+
}
|
285
|
+
.url {
|
286
|
+
font-size: 11px;
|
287
|
+
}
|
288
|
+
.dates {
|
289
|
+
color: #bbb;
|
290
|
+
}
|
291
|
+
.modification-date, .publication-date {
|
292
|
+
display: inline-block;
|
293
|
+
}
|
294
|
+
.modification-date {
|
295
|
+
width: 40%;
|
296
|
+
}
|
297
|
+
.publication-date {
|
298
|
+
margin-left: 4px;
|
299
|
+
.never {
|
300
|
+
font-weight: bold;
|
301
|
+
}
|
302
|
+
}
|
303
|
+
}
|
304
|
+
// &:hover {
|
305
|
+
// .dates {
|
306
|
+
// color: #999;
|
307
|
+
// }
|
308
|
+
// }
|
309
|
+
.add {
|
310
|
+
@include rounded-right;
|
311
|
+
@include display-box;
|
312
|
+
@include no-select;
|
313
|
+
@include box-pack(center);
|
314
|
+
@include box-align(center);
|
315
|
+
width: $container-padding;
|
316
|
+
background-color: #f2f2f2;
|
317
|
+
position: relative;
|
318
|
+
color: #999;
|
319
|
+
span {
|
320
|
+
position: relative;
|
321
|
+
top: 1px;
|
322
|
+
&:before {
|
323
|
+
@include awesome-icon("\f054");
|
324
|
+
}
|
325
|
+
&.active {
|
326
|
+
top: 0px;
|
327
|
+
&:before {
|
328
|
+
@include awesome-icon("\f00d");
|
329
|
+
}
|
330
|
+
}
|
331
|
+
|
332
|
+
}
|
333
|
+
&:hover {
|
334
|
+
background-color: $action;
|
335
|
+
color: #fff;
|
336
|
+
}
|
337
|
+
}
|
338
|
+
.titles a {
|
339
|
+
display: block;
|
340
|
+
margin-bottom: 2px;
|
341
|
+
span {
|
342
|
+
font-size: 11px;
|
343
|
+
margin-left: 1em;
|
344
|
+
}
|
345
|
+
}
|
346
|
+
&.unpublished {
|
347
|
+
.title .page-title {
|
348
|
+
&:after {
|
349
|
+
// \00a0 is a nbsp
|
350
|
+
@include awesome-icon("\f005\00a0new");
|
351
|
+
font-size: 10px;
|
352
|
+
line-height: 10px;
|
353
|
+
text-transform: uppercase;
|
354
|
+
color: $highlight;
|
355
|
+
position: relative;
|
356
|
+
top: -1px;
|
357
|
+
margin-left: $unit/2;
|
358
|
+
}
|
359
|
+
}
|
360
|
+
.title.dependent .page-title {
|
361
|
+
&:after {
|
362
|
+
content: "";
|
363
|
+
}
|
364
|
+
}
|
365
|
+
}
|
366
|
+
}
|
367
|
+
.change-set:hover {
|
368
|
+
border-color: $action;
|
369
|
+
}
|
370
|
+
.change-set.selected {
|
371
|
+
}
|
372
|
+
}
|
373
|
+
|
374
|
+
#root-menu {
|
375
|
+
ul {
|
376
|
+
margin-bottom: 2 * $unit;
|
377
|
+
li {
|
378
|
+
@include interface;
|
379
|
+
font-size: 11px;
|
380
|
+
color: #999;
|
381
|
+
margin-bottom: $unit/2;
|
382
|
+
a {
|
383
|
+
font-family: $content-font-family;
|
384
|
+
text-transform: none;
|
385
|
+
color: #fff;
|
386
|
+
cursor: pointer;
|
387
|
+
&:hover {
|
388
|
+
color: $action;
|
389
|
+
}
|
390
|
+
}
|
391
|
+
}
|
392
|
+
.title {
|
393
|
+
padding-bottom: $unit/2;
|
394
|
+
border-bottom: solid 1px #333;
|
395
|
+
}
|
396
|
+
}
|
397
|
+
li.user:before {
|
398
|
+
@include awesome-icon("\f007");
|
399
|
+
}
|
400
|
+
.external-services li.title:before {
|
401
|
+
@include awesome-icon("\f013");
|
402
|
+
}
|
403
|
+
li.user:before, .external-services li.title:before {
|
404
|
+
position: relative;
|
405
|
+
top: 1px;
|
406
|
+
font-size: 1.3em;
|
407
|
+
width: 2*$unit;
|
408
|
+
}
|
409
|
+
}
|