diff --git a/admin/.gitignore b/admin/.gitignore old mode 100644 new mode 100755 diff --git a/admin/_config.php b/admin/_config.php old mode 100644 new mode 100755 index 87bf0b071..b0bea2b3c --- a/admin/_config.php +++ b/admin/_config.php @@ -35,4 +35,5 @@ HtmlEditorConfig::get('cms')->insertButtonsBefore('advcode', 'ssimage', 'ssflash HtmlEditorConfig::get('cms')->insertButtonsAfter ('advcode', 'fullscreen', 'separator'); HtmlEditorConfig::get('cms')->removeButtons('tablecontrols'); -HtmlEditorConfig::get('cms')->addButtonsToLine(3, 'tablecontrols'); \ No newline at end of file +HtmlEditorConfig::get('cms')->addButtonsToLine(3, 'tablecontrols'); + diff --git a/admin/code/CMSBatchAction.php b/admin/code/CMSBatchAction.php old mode 100644 new mode 100755 diff --git a/admin/code/CMSBatchActionHandler.php b/admin/code/CMSBatchActionHandler.php old mode 100644 new mode 100755 diff --git a/admin/code/CMSMenu.php b/admin/code/CMSMenu.php old mode 100644 new mode 100755 diff --git a/admin/code/CMSMenuItem.php b/admin/code/CMSMenuItem.php old mode 100644 new mode 100755 diff --git a/admin/code/GroupImportForm.php b/admin/code/GroupImportForm.php old mode 100644 new mode 100755 diff --git a/admin/code/LeftAndMain.php b/admin/code/LeftAndMain.php old mode 100644 new mode 100755 index 574beb158..20cb96b4c --- a/admin/code/LeftAndMain.php +++ b/admin/code/LeftAndMain.php @@ -20,29 +20,53 @@ class LeftAndMain extends Controller { */ static $url_base = "admin"; + /** + * The current url segment attached to the LeftAndMain instance + * + * @var string + */ static $url_segment; + /** + * @var string + */ static $url_rule = '/$Action/$ID/$OtherID'; + /** + * @var string + */ static $menu_title; + /** + * @var int + */ static $menu_priority = 0; + /** + * @var int + */ static $url_priority = 50; /** - * @var string A subclass of {@link DataObject}. - * Determines what is managed in this interface, - * through {@link getEditForm()} and other logic. + * A subclass of {@link DataObject}. + * + * Determines what is managed in this interface, through + * {@link getEditForm()} and other logic. + * + * @var string */ static $tree_class = null; /** - * The url used for the link in the Help tab in the backend - * Value can be overwritten if required in _config.php - */ + * The url used for the link in the Help tab in the backend + * + * @var string + */ static $help_link = 'http://userhelp.silverstripe.org'; + /** + * @var array + */ static $allowed_actions = array( 'index', 'savetreenode', @@ -62,7 +86,7 @@ class LeftAndMain extends Controller { ); /** - * Register additional requirements through the {@link Requirements class}. + * Register additional requirements through the {@link Requirements} class. * Used mainly to work around the missing "lazy loading" functionality * for getting css/javascript required after an ajax-call (e.g. loading the editform). * @@ -76,6 +100,7 @@ class LeftAndMain extends Controller { /** * @param Member $member + * * @return boolean */ function canView($member = null) { @@ -192,7 +217,6 @@ class LeftAndMain extends Controller { $htmlEditorConfig->setOption('content_css', implode(',', $cssFiles)); } - Requirements::css(SAPPHIRE_ADMIN_DIR . '/css/layout.css'); Requirements::css(SAPPHIRE_ADMIN_DIR . '/css/screen.css'); Requirements::javascript(THIRDPARTY_DIR . '/prototype/prototype.js'); @@ -239,8 +263,6 @@ class LeftAndMain extends Controller { // Handled by LeftAndMain.js Requirements::block(SAPPHIRE_DIR . '/javascript/DateField.js'); - Requirements::themedCSS('typography'); - foreach (self::$extra_requirements['javascript'] as $file) { Requirements::javascript($file[0]); } @@ -315,6 +337,7 @@ class LeftAndMain extends Controller { return false; } + //------------------------------------------------------------------------------------------// // Main controllers diff --git a/admin/code/LeftAndMainDecorator.php b/admin/code/LeftAndMainDecorator.php old mode 100644 new mode 100755 diff --git a/admin/code/LeftAndMainExtension.php b/admin/code/LeftAndMainExtension.php old mode 100644 new mode 100755 diff --git a/admin/code/MemberImportForm.php b/admin/code/MemberImportForm.php old mode 100644 new mode 100755 diff --git a/admin/code/SecurityAdmin.php b/admin/code/SecurityAdmin.php old mode 100644 new mode 100755 diff --git a/admin/config.rb b/admin/config.rb old mode 100644 new mode 100755 diff --git a/admin/css/_old/MemberImportForm.css b/admin/css/_old/MemberImportForm.css old mode 100644 new mode 100755 diff --git a/admin/css/_old/ModelAdmin.css b/admin/css/_old/ModelAdmin.css old mode 100644 new mode 100755 diff --git a/admin/css/_old/SecurityAdmin.css b/admin/css/_old/SecurityAdmin.css old mode 100644 new mode 100755 diff --git a/admin/css/_old/cms_left.css b/admin/css/_old/cms_left.css old mode 100644 new mode 100755 diff --git a/admin/css/_old/cms_right.css b/admin/css/_old/cms_right.css old mode 100644 new mode 100755 diff --git a/admin/css/_old/layout.css b/admin/css/_old/layout.css old mode 100644 new mode 100755 diff --git a/admin/css/_old/silverstripe.tabs.css b/admin/css/_old/silverstripe.tabs.css old mode 100644 new mode 100755 diff --git a/admin/css/_old/typography.css b/admin/css/_old/typography.css old mode 100644 new mode 100755 diff --git a/admin/css/_old/unjquery.css b/admin/css/_old/unjquery.css old mode 100644 new mode 100755 diff --git a/admin/css/layout.css b/admin/css/layout.css old mode 100644 new mode 100755 diff --git a/admin/css/screen.css b/admin/css/screen.css old mode 100644 new mode 100755 index 070205aa3..119229857 --- a/admin/css/screen.css +++ b/admin/css/screen.css @@ -1,4 +1,5 @@ /** This file is the central collection of included modules, links to custom SCSS files, and any global SCSS variable definitions. DO NOT ADD stylesheet rules to this file directly! Note: By prefixing files with an underscore, they won't create individual CSS files. */ +/** ----------------------------- Core Compass Libraries ------------------------------ */ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td { margin: 0; padding: 0; border: 0; outline: 0; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; vertical-align: baseline; } body { line-height: 1; color: black; background: white; } @@ -15,7 +16,12 @@ q:before, q:after, blockquote:before, blockquote:after { content: ""; } a img { border: none; } @charset "UTF-8"; -/** This file only contains color definitions. Please put any further formatting into _style.scss. */ +/** ----------------------------- Theme ------------------------------ */ +/** This file contains the default theme definitions for the admin interface. @package sapphire @subpackage admin */ +/** ----------------------------------------------- Colours ------------------------------------------------ */ +/** ----------------------------------------------- Typography ------------------------------------------------ */ +/** ----------------------------------------------- Application Logo (CMS Logo) ------------------------------------------------ */ +/** ----------------------------- CMS Components ------------------------------ */ /** This file defines the jstree base styling (see http://jstree.com), as well as any customizations (see bottom of file). The styles are usually added through jstree.js on DOM load, but we need it earlier in order to correctly display the uninitialized tree. */ .jstree ul { display: block; margin: 0 0 0 0; padding: 0 0 0 0; list-style-type: none; } .jstree li { display: block; margin: 0 0 0 0; padding: 0 0 0 0; list-style-type: none; display: block; min-height: 18px; line-height: 18px; white-space: nowrap; margin-left: 18px; min-width: 18px; } @@ -126,26 +132,28 @@ li.jstree-closed > ul { display: none; } .cms .jstree-apple.jstree-focused { background: none; } .cms .jstree-apple > ul { background: none; } -.cms-menu { z-index: 10; background-color: #ebeff1; -moz-box-shadow: #aaaaaa 3px 0 3px 0; -webkit-box-shadow: #aaaaaa 3px 0 3px 0; -o-box-shadow: #aaaaaa 3px 0 3px 0; box-shadow: #aaaaaa 3px 0 3px 0; } +/** Styles for the left hand side menu @package sapphire @subpackage admin */ +/** ------------------------------------------------------- CMS Menu Bar -------------------------------------------------------- */ +@charset "UTF-8"; +.cms-menu { z-index: 10; background: #c6d7df; border-right: 1px solid #8c99a1; width: 250px; overflow: auto; -moz-box-shadow: rgba(107, 120, 123, 0.5) 2px 0 6px 0; -webkit-box-shadow: rgba(107, 120, 123, 0.5) 2px 0 6px 0; -o-box-shadow: rgba(107, 120, 123, 0.5) 2px 0 6px 0; box-shadow: rgba(107, 120, 123, 0.5) 2px 0 6px 0; } .cms-menu a { text-decoration: none; } -.cms-menu-list li { background-color: #b0bfc6; background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(0%, #b0bfc6), color-stop(100%, #758f9b)); background-image: -moz-linear-gradient(top, #b0bfc6 0%, #758f9b 100%); background-image: linear-gradient(top, #b0bfc6 0%, #758f9b 100%); border-bottom: 1px solid #aaaaaa; } -.cms-menu-list li a { display: block; height: 32px; vertical-align: middle; font-size: 14px; text-shadow: #aaaaaa 1px 1px 1px; color: #333333; padding: 5px; } -.cms-menu-list li a .icon { display: block; float: left; margin-right: 5px; background: url('../images/icons-32.png?1303987682') no-repeat; width: 32px; height: 32px; overflow: hidden; background-position: 0px 0px; } -.cms-menu-list li a .text { display: block; padding-top: 10px; } -.cms-menu-list li.current { background-color: #338dc1; background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(0%, #338dc1), color-stop(100%, #1e5270)); background-image: -moz-linear-gradient(top, #338dc1 0%, #1e5270 100%); background-image: linear-gradient(top, #338dc1 0%, #1e5270 100%); } -.cms-menu-list li.current li { background-color: #2e7ead; background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(0%, #2e7ead), color-stop(100%, #287099)); background-image: -moz-linear-gradient(top, #2e7ead 0%, #287099 100%); background-image: linear-gradient(top, #2e7ead 0%, #287099 100%); } -.cms-menu-list li.current a { color: white; text-shadow: #333333 1px 1px 1px; } -.cms-menu-list li li:first { -moz-box-shadow: #333333 0 4px 4px 0; -webkit-box-shadow: #333333 0 4px 4px 0; -o-box-shadow: #333333 0 4px 4px 0; box-shadow: #333333 0 4px 4px 0; } -.cms-menu-list li li a { font-size: 12px; text-shadow: #333333 1px 1px 1px; margin: 0; padding-left: 30px; color: white; } -.cms-menu-list li li.current a { font-weight: bold; } -.cms-menu-list li#Menu-CMSMain a .icon { background-position: 0px 0px; } -.cms-menu-list li#Menu-CMSMain.current a .icon, .cms-menu-list li#Menu-CMSMain a:hover .icon { background-position: -32px 0px; } -.cms-menu-list li#Menu-AssetAdmin a .icon { background-position: 0px -32px; } -.cms-menu-list li#Menu-AssetAdmin.current a .icon, .cms-menu-list li#Menu-AssetAdmin a:hover .icon { background-position: -32px -32px; } +.cms-menu-list li a { display: block; height: 30px; line-height: 30px; vertical-align: middle; font-size: 13px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-shadow: #ced7dc 1px 1px 0; color: #1f1f1f; padding: 5px; background-color: #b0bec7; background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(0%, #b0bec7), color-stop(100%, #98aab6)); background-image: -moz-linear-gradient(top, #b0bec7 0%, #98aab6 100%); background-image: linear-gradient(top, #b0bec7 0%, #98aab6 100%); border-top: 1px solid #ced7dc; border-bottom: 1px solid #748d9d; } +.cms-menu-list li a:hover { text-decoration: none; background-color: #b6c3cb; border-bottom: 1px solid #8399a7; color: #2c2c2c; background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(0%, #bfcad2), color-stop(100%, #b0bec7)); background-image: -moz-linear-gradient(top, #bfcad2 0%, #b0bec7 100%); background-image: linear-gradient(top, #bfcad2 0%, #b0bec7 100%); } +.cms-menu-list li a:focus { border-top: 1px solid #a1b2bc; text-decoration: none; background-color: #a1b2bc; color: #393939; background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(0%, #92a5b2), color-stop(100%, #a1b2bc)); background-image: -moz-linear-gradient(top, #92a5b2 0%, #a1b2bc 100%); background-image: linear-gradient(top, #92a5b2 0%, #a1b2bc 100%); } +.cms-menu-list li a .icon { display: block; float: left; margin-right: 4px; background: url('../images/icons-32.png') no-repeat; width: 32px; height: 32px; overflow: hidden; background-position: 0px 0px; } +.cms-menu-list li a .text { display: block; } +.cms-menu-list li.current a { color: white; text-shadow: #1e5270 0 -1px 0; border-top: 1px solid #55a4d2; border-bottom: 1px solid #1e5270; background-color: #338dc1; background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(0%, #338dc1), color-stop(100%, #287099)); background-image: -moz-linear-gradient(top, #338dc1 0%, #287099 100%); background-image: linear-gradient(top, #338dc1 0%, #287099 100%); } +.cms-menu-list li.current ul { border-top: 1px solid #1e5270; } +.cms-menu-list li.current li { background-color: #287099; } +.cms-menu-list li.current li a { font-size: 11px; padding: 0 10px 0 36px; height: 32px; line-height: 32px; color: #e2f0f7; background: none; border-top: 1px solid #338dc1; border-bottom: 1px solid #1e5270; } +.cms-menu-list li.current li a.current, .cms-menu-list li.current li a:hover { background: #2e7ead; border-top: 1px solid #2e7ead; color: white; } +.cms-menu-list li.current li a:focus { background: #236184; border-top: 1px solid #1e5270; color: white; } +.cms-menu-list li.current li.current a { font-weight: bold; color: white; } +.cms-menu-list li.current li.first a { border-top: none; } /** This file defines common styles for form elements used throughout the CMS interface. It is an addition to the base styles defined in sapphire/css/Form.css. */ -.field { display: block; padding: 10px 0; border-bottom: 1px solid #aaaaaa; } +.field { display: block; padding: 10px 0; border-bottom: 1px solid rgba(201, 205, 206, 0.8); } .field label { float: left; width: 10em; } .field .middleColumn { margin-left: 10em; } .field .middleColumn .field { display: inline; padding: 0; border: none; } @@ -157,15 +165,15 @@ form.nostyle .middleColumn { margin-left: 0; } .field.nolabel .middleColumn { margin-left: 0; } -input, textarea { -moz-border-radius: 5px; -webkit-border-radius: 5px; -o-border-radius: 5px; -ms-border-radius: 5px; -khtml-border-radius: 5px; border-radius: 5px; background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(0%, #ebeff1), color-stop(50%, #ffffff), color-stop(100%, #ebeff1)); background-image: -moz-linear-gradient(top, #ebeff1 0%, #ffffff 50%, #ebeff1 100%); background-image: linear-gradient(top, #ebeff1 0%, #ffffff 50%, #ebeff1 100%); border: 1px solid #aaaaaa; padding: 3px; } +input, textarea { -moz-border-radius: 5px; -webkit-border-radius: 5px; -o-border-radius: 5px; -ms-border-radius: 5px; -khtml-border-radius: 5px; border-radius: 5px; background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(0%, #eceff1), color-stop(50%, #ffffff), color-stop(100%, #eceff1)); background-image: -moz-linear-gradient(top, #eceff1 0%, #ffffff 50%, #eceff1 100%); background-image: linear-gradient(top, #eceff1 0%, #ffffff 50%, #eceff1 100%); border: 1px solid rgba(201, 205, 206, 0.8); padding: 3px; } -input.loading, input.ui-state-default.loading, .ui-widget-content input.ui-state-default.loading, .ui-widget-header input.ui-state-default.loading { padding-left: 16px; background: #ebeff1 url(../../images/network-save.gif) no-repeat center left; } +input.loading, input.ui-state-default.loading, .ui-widget-content input.ui-state-default.loading, .ui-widget-header input.ui-state-default.loading { padding-left: 16px; background: #eceff1 url(../../images/network-save.gif) no-repeat center left; } .ss-ui-button.ss-ui-action-constructive, .ui-widget-content .ss-ui-button.ss-ui-action-constructive, .ui-widget-header .ss-ui-button.ss-ui-action-constructive { background: none; background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(0%, #77b53f), color-stop(100%, #456925)); background-image: -moz-linear-gradient(top, #77b53f 0%, #456925 100%); background-image: linear-gradient(top, #77b53f 0%, #456925 100%); color: white; } .ss-ui-button.ss-ui-action-destructive, .ui-widget-content .ss-ui-button.ss-ui-action-destructive, .ui-widget-header .ss-ui-button.ss-ui-action-destructive { color: red; } -.ss-ui-button.ss-ui-action-minor, .ui-widget-content .ss-ui-button.ss-ui-action-minor .ui-widget-header .ss-ui-button.ss-ui-action-minor { background: none; padding: 0; border: 0; color: #333333; text-decoration: underline; } +.ss-ui-button.ss-ui-action-minor, .ui-widget-content .ss-ui-button.ss-ui-action-minor .ui-widget-header .ss-ui-button.ss-ui-action-minor { background: none; padding: 0; border: 0; color: #1f1f1f; text-decoration: underline; } .cms-edit-form { padding-bottom: 20px; } .cms-edit-form .text input, .cms-edit-form textarea { width: 300px; } @@ -179,46 +187,57 @@ input.loading, input.ui-state-default.loading, .ui-widget-content input.ui-state /** This file defines CMS-specific customizations to the jQuery UI theme. Every rule in this file should be wrapped in the '.cms' selector (to make it more specific), and contain ONLY overwritten jQuery UI rules (with 'ui-' prefix). This file should be fairly short, as we're using our own custom jQuery UI theme already. TODO Add theme reference Use _style.scss to add more generic style information, and read the jQuery UI theming API: http://jqueryui.com/docs/Theming/API */ .cms .ui-tabs { padding: 0; } .cms .ui-tabs .ui-widget-header { border: 0; background: none; } -.cms .ui-widget-content, .cms .ui-tabs .ui-tabs-panel { color: #444444; font-size: 1em; border: 0; background: #ebeff1; } -.cms .ui-widget-header { background: #ebeff1; border: 0; } +.cms .ui-widget-content, .cms .ui-tabs .ui-tabs-panel { color: #444444; font-size: 1em; border: 0; background: #eceff1; } +.cms .ui-widget-header { background: #eceff1; border: 0; padding: 0; } .cms .ss-ui-button { padding: 5px; text-decoration: none; } /** This file defines the 'theme' of the CMS: Colors, fonts, backgrounds, and detailed alignments. Together with _layout.css it provides the presentational backbone to the CMS. Ideally a developer should be able to exchange this file with his own theme easily. Please don't put any dimension, display or float information on major structural components like '.cms-container' or '.cms-header' in here, use the _layout.scss file instead. Use SCSS variable definitions in screen.css to avoid repeating styles like background colours or padding dimensions. See _colours.scss to get started. To avoid this file getting too large and complicated, it is encouraged to create new SCSS files for larger components like the CMS menu or tree (see _tree.scss and _menu.scss). */ -body { font-size: 13px; font-family: Verdana, Arial, sans-serif; color: #444444; } -body html, body body, body div, body span, body applet, body object, body iframe, body h1, body h2, body h3, body h4, body h5, body h6, body p, body blockquote, body pre, body a, body abbr, body acronym, body address, body big, body cite, body code, body del, body dfn, body em, body font, body img, body ins, body kbd, body q, body s, body samp, body small, body strike, body strong, body sub, body sup, body tt, body var, body dl, body dt, body dd, body ol, body ul, body li, body fieldset, body form, body label, body legend, body table, body caption, body tbody, body tfoot, body thead, body tr, body th, body td { margin: 0; padding: 0; border: 0; outline: 0; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; vertical-align: baseline; } -body body { line-height: 1; color: black; background: white; } -body ol, body ul { list-style: none; } -body table { border-collapse: separate; border-spacing: 0; vertical-align: middle; } -body caption, body th, body td { text-align: left; font-weight: normal; vertical-align: middle; } -body q, body blockquote { quotes: "" ""; } -body q:before, body q:after, body blockquote:before, body blockquote:after { content: ""; } -body a img { border: none; } +/** ---------------------------------------------------- Core Styles ---------------------------------------------------- */ +html, body { width: 100%; height: 100%; overflow: hidden; font-size: 13px; font-family: Verdana, Arial, sans-serif; color: #444444; } +html html, html body, html div, html span, html applet, html object, html iframe, html h1, html h2, html h3, html h4, html h5, html h6, html p, html blockquote, html pre, html a, html abbr, html acronym, html address, html big, html cite, html code, html del, html dfn, html em, html font, html img, html ins, html kbd, html q, html s, html samp, html small, html strike, html strong, html sub, html sup, html tt, html var, html dl, html dt, html dd, html ol, html ul, html li, html fieldset, html form, html label, html legend, html table, html caption, html tbody, html tfoot, html thead, html tr, html th, html td, body html, body body, body div, body span, body applet, body object, body iframe, body h1, body h2, body h3, body h4, body h5, body h6, body p, body blockquote, body pre, body a, body abbr, body acronym, body address, body big, body cite, body code, body del, body dfn, body em, body font, body img, body ins, body kbd, body q, body s, body samp, body small, body strike, body strong, body sub, body sup, body tt, body var, body dl, body dt, body dd, body ol, body ul, body li, body fieldset, body form, body label, body legend, body table, body caption, body tbody, body tfoot, body thead, body tr, body th, body td { margin: 0; padding: 0; border: 0; outline: 0; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; vertical-align: baseline; } +html body, body body { line-height: 1; color: black; background: white; } +html ol, html ul, body ol, body ul { list-style: none; } +html table, body table { border-collapse: separate; border-spacing: 0; vertical-align: middle; } +html caption, html th, html td, body caption, body th, body td { text-align: left; font-weight: normal; vertical-align: middle; } +html q, html blockquote, body q, body blockquote { quotes: "" ""; } +html q:before, html q:after, html blockquote:before, html blockquote:after, body q:before, body q:after, body blockquote:before, body blockquote:after { content: ""; } +html a img, body a img { border: none; } -body * { font-size: 13px; } +a { color: #3ebae0; text-decoration: none; } +a:hover, a:focus { text-decoration: underline; } -body .ui-widget { font-size: 1em; } +body .ui-widget { font-size: 13px; } + +.cms-container { height: 100%; } + +.cms-preview, .cms-menu, .cms-content, .cms-content-header, .cms-content-tools, .cms-content-form { display: -moz-inline-box; -moz-box-orient: vertical; display: inline-block; vertical-align: middle; *vertical-align: auto; } +.cms-preview, .cms-menu, .cms-content, .cms-content-header, .cms-content-tools, .cms-content-form { *display: inline; } strong { font-weight: bold; } -.cms-content-header { background-color: #afbfc7; background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(0%, #afbfc7), color-stop(100%, #91a7b2)); background-image: -moz-linear-gradient(top, #afbfc7 0%, #91a7b2 100%); background-image: linear-gradient(top, #afbfc7 0%, #91a7b2 100%); } -.cms-content-header h2 { float: left; padding: 10px; font-size: 14px; font-weight: bold; } +.cms-content-header { background-color: #b1bec6; padding: 8px; height: 32px; background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(0%, #b1bec6), color-stop(100%, #94a5b0)); background-image: -moz-linear-gradient(top, #b1bec6 0%, #94a5b0 100%); background-image: linear-gradient(top, #b1bec6 0%, #94a5b0 100%); } +.cms-content-header h2 { float: left; padding: 8px; font-size: 14px; font-weight: bold; width: 230px; } +.cms-content-header > div { width: 9999em; overflow: hidden; } .cms-content-header .cms-content-header-tabs { float: left; } .ui-tabs .cms-content-header .ui-tabs-nav li { height: 40px; } -.ui-tabs .cms-content-header .ui-tabs-nav li a { font-weight: bold; font-size: 11px; padding-top: 1em; } -.ui-tabs .cms-content-header .ui-state-default, .ui-tabs .cms-content-header .ui-widget-content .ui-state-default, .ui-tabs .cms-content-header .ui-widget-header .ui-state-default { background-color: #dddddd; background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(0%, #dddddd), color-stop(100%, #b7b7b7)); background-image: -moz-linear-gradient(top, #dddddd 0%, #b7b7b7 100%); background-image: linear-gradient(top, #dddddd 0%, #b7b7b7 100%); } -.ui-tabs .cms-content-header .ui-state-active, .ui-tabs .cms-content-header .ui-widget-content .ui-state-active, .ui-tabs .cms-content-header .ui-widget-header .ui-state-active { background: #ebeff1; } +.ui-tabs .cms-content-header .ui-tabs-nav li a { font-weight: bold; font-size: 11px; padding-top: 8px; } +.ui-tabs .cms-content-header .ui-state-default, .ui-tabs .cms-content-header .ui-widget-content .ui-state-default, .ui-tabs .cms-content-header .ui-widget-header .ui-state-default { background-color: #feffff; background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(0%, #feffff), color-stop(100%, #d6d9da)); background-image: -moz-linear-gradient(top, #feffff 0%, #d6d9da 100%); background-image: linear-gradient(top, #feffff 0%, #d6d9da 100%); } +.ui-tabs .cms-content-header .ui-state-active, .ui-tabs .cms-content-header .ui-widget-content .ui-state-active, .ui-tabs .cms-content-header .ui-widget-header .ui-state-active { background: #eceff1; } -.cms-content-tools { background-color: #dce3e6; padding: 10px; } +.cms-content-tools { background-color: #dde3e6; padding: 10px; width: 230px; overflow: auto; } -.cms-header { background-color: #00111d; background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(0%, #00111d), color-stop(50%, #003050), color-stop(100%, #00111d)); background-image: -moz-linear-gradient(top, #00111d 0%, #003050 50%, #00111d 100%); background-image: linear-gradient(top, #00111d 0%, #003050 50%, #00111d 100%); } -.cms-header * { color: white; } +/** ------------------------------------------------------- Top Left Header and logo area -------------------------------------------------------- */ +.cms-header { background-color: #00111d; position: relative; padding: 16px 8px 8px; line-height: 24px; background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(0%, #00111d), color-stop(50%, #003050), color-stop(100%, #00111d)); background-image: -moz-linear-gradient(top, #00111d 0%, #003050 50%, #00111d 100%); background-image: linear-gradient(top, #00111d 0%, #003050 50%, #00111d 100%); } +.cms-header span { color: white; white-space: no-wrap; text-overflow: ellipsis; display: block; } +.cms-header span a { color: #3ebae0; display: inline; } +.cms-logo { border-bottom: 1px solid #03090c; height: 31px; overflow: hidden; padding: 0 4px; vertical-align: middle; } .cms-logo .version { display: none; } -.cms-logo * { color: #3ebae0; } -.cms-logo a { display: inline-block; height: 25px; width: 25px; float: left; margin-right: 10px; background: url(../images/logo_small.png) no-repeat; text-indent: -9999em; } +.cms-logo a { display: inline-block; height: 25px; width: 25px; float: left; margin-right: 10px; background: url('../images/logo_small.png?1305762003') no-repeat; text-indent: -9999em; } -.cms-login-status .logout-link { display: inline-block; height: 25px; width: 25px; float: left; margin-right: 10px; background: url(../images/logout.png) no-repeat; text-indent: -9999em; } +.cms-login-status { border-top: 1px solid #19435c; height: 23px; padding: 8px 0 0 14px; overflow: hidden; line-height: 16px; font-size: 11px; } +.cms-login-status .logout-link { display: inline-block; height: 16px; width: 16px; float: left; margin-right: 10px; background: url(../images/logout.png) no-repeat; text-indent: -9999em; } .ss-loading-screen, .ss-loading-screen .loading-logo { width: 100%; height: 100%; overflow: hidden; position: absolute; background: #fff; background: -moz-radial-gradient(50% 50% 180deg, circle cover, white, #efefef, #c7c7c7 100%); background: -webkit-gradient(radial, 50% 50%, 350, 50% 50%, 0, from(#e3e3e3), to(white)); z-index: 100000; margin: 0; padding: 0; } @@ -227,6 +246,8 @@ strong { font-weight: bold; } .ss-loading-screen p span.notice { display: inline-block; font-size: 14px; padding: 10px 20px; color: #dc7f00; border: none; -moz-border-radius: 5px; -webkit-border-radius: 5px; -o-border-radius: 5px; -ms-border-radius: 5px; -khtml-border-radius: 5px; border-radius: 5px; } .ss-loading-screen .loading-animation { display: none; position: absolute; left: 49%; top: 75%; } +.cms-content-actions { padding: 8px; } + /** Messages (see sapphire/css/Form.css) */ .message { margin: 1em 0; padding: 0.5em; font-weight: bold; border: 1px black solid; } .message.notice { background-color: #ffbe66; border-color: #ff9300; } @@ -236,7 +257,7 @@ strong { font-weight: bold; } .ModelAdmin .cms-content-tools { width: 300px; } .ModelAdmin .ResultAssemblyBlock { display: none; } -.cms-page-add-form-dialog #PageType li { clear: left; height: 40px; border-bottom: 1px solid #333333; } +.cms-page-add-form-dialog #PageType li { clear: left; height: 40px; border-bottom: 1px solid rgba(107, 120, 123, 0.5); } .cms-page-add-form-dialog #PageType li:hover, .cms-page-add-form-dialog #PageType li.selected { background-color: #ffff99; } .cms-page-add-form-dialog #PageType li input, .cms-page-add-form-dialog #PageType li label, .cms-page-add-form-dialog #PageType li .icon, .cms-page-add-form-dialog #PageType li .title { float: left; } .cms-page-add-form-dialog #PageType li .icon { width: 20px; } @@ -247,6 +268,10 @@ strong { font-weight: bold; } .cms-content-toolbar .cms-tree-view-modes * { display: inline-block; } .cms-content-toolbar .cms-content-batchactions form > * { display: inline-block; } +.cms-preview { width: 1px; overflow: hidden; } +.cms-preview .cms-preview-toggle { width: 10px; } +.cms-preview iframe { width: 100%; height: 100%; } + .cms-preview-header { background-color: #FFBE66; padding: 10px; font-weight: bold; } form.member-profile-form #CsvFile .middleColumn { background: none !important; } @@ -258,7 +283,9 @@ form.member-profile-form .formattingHelpText { margin: 5px auto; color: #333; pa form.member-profile-form .formattingHelpText ul { padding: 0; } form.member-profile-form .formattingHelpText li { font-size: 11px; color: #333; margin-bottom: 2px; } -.cms-preview { background-color: #b0bfc6; } +.cms-content-form { overflow: auto; } + +.cms-preview { background-color: #b0bec7; } .cms-preview .cms-preview-toggle { cursor: pointer; } .cms-preview .cms-preview-toggle a { color: white; font-weight: bold; text-decoration: none; } diff --git a/admin/images/arrow_refresh.gif b/admin/images/arrow_refresh.gif old mode 100644 new mode 100755 diff --git a/admin/images/icons-32.png b/admin/images/icons-32.png deleted file mode 100644 index a272cf47e..000000000 Binary files a/admin/images/icons-32.png and /dev/null differ diff --git a/admin/images/logo.gif b/admin/images/logo.gif old mode 100644 new mode 100755 diff --git a/admin/images/logo_small.png b/admin/images/logo_small.png old mode 100644 new mode 100755 diff --git a/admin/images/logout.png b/admin/images/logout.png old mode 100644 new mode 100755 index 0eaf7841b..a4555cc8e Binary files a/admin/images/logout.png and b/admin/images/logout.png differ diff --git a/admin/images/mainmenu/current.gif b/admin/images/mainmenu/current.gif old mode 100644 new mode 100755 diff --git a/admin/images/mainmenu/currentHover.gif b/admin/images/mainmenu/currentHover.gif old mode 100644 new mode 100755 diff --git a/admin/images/mainmenu/hover.gif b/admin/images/mainmenu/hover.gif old mode 100644 new mode 100755 diff --git a/admin/images/spinner.gif b/admin/images/spinner.gif old mode 100644 new mode 100755 diff --git a/admin/images/textures/footerBg.gif b/admin/images/textures/footerBg.gif old mode 100644 new mode 100755 diff --git a/admin/images/textures/mce_editor.gif b/admin/images/textures/mce_editor.gif old mode 100644 new mode 100755 diff --git a/admin/javascript/.DS_Store b/admin/javascript/.DS_Store old mode 100644 new mode 100755 diff --git a/admin/javascript/AssetTableField.js b/admin/javascript/AssetTableField.js old mode 100644 new mode 100755 diff --git a/admin/javascript/LeftAndMain.AddForm.js b/admin/javascript/LeftAndMain.AddForm.js old mode 100644 new mode 100755 diff --git a/admin/javascript/LeftAndMain.BatchActions.js b/admin/javascript/LeftAndMain.BatchActions.js old mode 100644 new mode 100755 diff --git a/admin/javascript/LeftAndMain.EditForm.js b/admin/javascript/LeftAndMain.EditForm.js old mode 100644 new mode 100755 diff --git a/admin/javascript/LeftAndMain.Preview.js b/admin/javascript/LeftAndMain.Preview.js old mode 100644 new mode 100755 diff --git a/admin/javascript/LeftAndMain.js b/admin/javascript/LeftAndMain.js old mode 100644 new mode 100755 diff --git a/admin/javascript/MemberImportForm.js b/admin/javascript/MemberImportForm.js old mode 100644 new mode 100755 diff --git a/admin/javascript/ModelAdmin.History.js b/admin/javascript/ModelAdmin.History.js old mode 100644 new mode 100755 diff --git a/admin/javascript/ModelAdmin.js b/admin/javascript/ModelAdmin.js old mode 100644 new mode 100755 diff --git a/admin/javascript/jquery-changetracker/README.md b/admin/javascript/jquery-changetracker/README.md old mode 100644 new mode 100755 diff --git a/admin/javascript/jquery-changetracker/lib/jquery.changetracker.js b/admin/javascript/jquery-changetracker/lib/jquery.changetracker.js old mode 100644 new mode 100755 diff --git a/admin/javascript/jquery-changetracker/spec/.tmp_spec.html.49538~ b/admin/javascript/jquery-changetracker/spec/.tmp_spec.html.49538~ old mode 100644 new mode 100755 diff --git a/admin/javascript/jquery-changetracker/spec/.tmp_spec.html.8678~ b/admin/javascript/jquery-changetracker/spec/.tmp_spec.html.8678~ old mode 100644 new mode 100755 diff --git a/admin/javascript/jquery-changetracker/spec/.tmp_spec.html.970~ b/admin/javascript/jquery-changetracker/spec/.tmp_spec.html.970~ old mode 100644 new mode 100755 diff --git a/admin/javascript/jquery-changetracker/spec/.tmp_spec_selectors.html.13329~ b/admin/javascript/jquery-changetracker/spec/.tmp_spec_selectors.html.13329~ old mode 100644 new mode 100755 diff --git a/admin/javascript/jquery-changetracker/spec/.tmp_speed.html.70283~ b/admin/javascript/jquery-changetracker/spec/.tmp_speed.html.70283~ old mode 100644 new mode 100755 diff --git a/admin/javascript/jquery-changetracker/spec/spec.changetracker.basics.js b/admin/javascript/jquery-changetracker/spec/spec.changetracker.basics.js old mode 100644 new mode 100755 diff --git a/admin/javascript/jquery-changetracker/spec/spec.core.js b/admin/javascript/jquery-changetracker/spec/spec.core.js old mode 100644 new mode 100755 diff --git a/admin/javascript/jquery-changetracker/spec/spec.dom.html b/admin/javascript/jquery-changetracker/spec/spec.dom.html old mode 100644 new mode 100755 diff --git a/admin/javascript/jquery-changetracker/spec/spec.rhino.js b/admin/javascript/jquery-changetracker/spec/spec.rhino.js old mode 100644 new mode 100755 diff --git a/admin/javascript/jquery-changetracker/vendor/TrivialReporter.js b/admin/javascript/jquery-changetracker/vendor/TrivialReporter.js old mode 100644 new mode 100755 diff --git a/admin/javascript/jquery-changetracker/vendor/jasmine.css b/admin/javascript/jquery-changetracker/vendor/jasmine.css old mode 100644 new mode 100755 diff --git a/admin/javascript/jquery-changetracker/vendor/jquery-1.3.2.js b/admin/javascript/jquery-changetracker/vendor/jquery-1.3.2.js old mode 100644 new mode 100755 diff --git a/admin/javascript/jquery-fitheighttoparent/jquery.fitheighttoparent.js b/admin/javascript/jquery-fitheighttoparent/jquery.fitheighttoparent.js old mode 100644 new mode 100755 diff --git a/admin/javascript/jquery-fitheighttoparent/test.html b/admin/javascript/jquery-fitheighttoparent/test.html old mode 100644 new mode 100755 diff --git a/admin/javascript/jquery-fitheighttoparent/tests/unit.html b/admin/javascript/jquery-fitheighttoparent/tests/unit.html old mode 100644 new mode 100755 diff --git a/admin/javascript/ssui.core.js b/admin/javascript/ssui.core.js old mode 100644 new mode 100755 diff --git a/admin/scss/_colours.scss b/admin/scss/_colours.scss deleted file mode 100644 index a594b63d8..000000000 --- a/admin/scss/_colours.scss +++ /dev/null @@ -1,44 +0,0 @@ -/** - * This file only contains color definitions. - * Please put any further formatting into _style.scss. - */ - -// colour definitions -$color-base: #B0BFC6; -$color-widget-bg: lighten($color-base, 20%); -$color-dark-bg: #003050; -$color-shadow-light: #aaa; -$color-shadow-dark: #333; -$color-highlight: #FFFF66; -$color-menu-button: #338DC1; // darkened and desaturated as required -$color-text: #444; -$color-text-light: white; -$color-text-light-link: white; -$color-text-dark: #333; -$color-text-dark-link: #3EBAE0; -$color-button-constructive: #77b53f; -$color-button-destructive: #f00; -$color-warning: #FF9300; -$color-error: #FF9300; -$color-notice: #FF9300; - -/* -// simple grayscale theme -$color-base: grayscale(#B0BFC6); -$color-widget-bg: grayscale(lighten($color-base, 20%)); -$color-dark-bg: grayscale(#003050); -$color-shadow-light: grayscale(#aaa); -$color-shadow-dark: grayscale(#333); -$color-highlight: grayscale(#FFFF66); -$color-menu-button: grayscale(#338DC1); -$color-text: grayscale(#444); -$color-text-light: white; -$color-text-light-link: white; -$color-text-dark: grayscale(#333); -$color-text-dark-link: grayscale(#3EBAE0); -$color-button-constructive: grayscale(#77b53f); -$color-button-destructive: grayscale(#f00); -$color-warning: grayscale(#FF9300); -$color-error: grayscale(#FF9300); -$color-notice: grayscale(#FF9300); -*/ \ No newline at end of file diff --git a/admin/scss/_forms.scss b/admin/scss/_forms.scss old mode 100644 new mode 100755 diff --git a/admin/scss/_menu.scss b/admin/scss/_menu.scss old mode 100644 new mode 100755 index 34789b5e7..9d3b88792 --- a/admin/scss/_menu.scss +++ b/admin/scss/_menu.scss @@ -1,8 +1,23 @@ +/** + * Styles for the left hand side menu + * + * @package sapphire + * @subpackage admin + */ +/** ------------------------------------------------------- + * CMS Menu Bar + * -------------------------------------------------------- */ +@import "compass/css3"; + .cms-menu { z-index: 10; - background-color: $color-widget-bg; - @include box-shadow($color-shadow-light, 3px, 0, 3px); + background: $color-menu-background; + border-right: 1px solid $color-menu-border; + width: 250px; + overflow: auto; + @include box-shadow($color-shadow-dark, 2px, 0, 6px); + a { text-decoration: none; } @@ -10,83 +25,119 @@ .cms-menu-list { li { - background-color: $color-base; - @include linear-gradient(color-stops( - $color-base, - darken($color-base, 20%) - )); - border-bottom: 1px solid $color-shadow-light; a { display: block; - height: 32px; + height: 30px; + line-height: 30px; vertical-align: middle; - font-size: 14px; - @include text-shadow($color-shadow-light); + font-size: $font-base-size; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + text-shadow: lighten($color-base, 10%) 1px 1px 0; color: $color-text-dark; padding: 5px; + background-color: $color-base; + + @include linear-gradient(color-stops( + $color-base, + darken($color-base, 8%) + )); + + border-top: 1px solid lighten($color-base, 10%); + border-bottom: 1px solid darken($color-base, 20%); + + &:hover { + text-decoration: none; + background-color: lighten($color-base, 2%); + border-bottom: 1px solid darken($color-base, 15%); + color: lighten($color-text-dark, 5%); + + @include linear-gradient(color-stops( + lighten($color-base, 5%), + $color-base + )); + } + &:focus { + border-top: 1px solid darken($color-base, 5%); + text-decoration: none; + background-color: darken($color-base, 5%); + color: lighten($color-text-dark, 10%); + + @include linear-gradient(color-stops( + darken($color-base, 10%), + darken($color-base, 5%) + )); + } .icon { display: block; float: left; - margin-right: 5px; + margin-right: 4px; @include sprite-background("icons-32.png"); @include sprite-position(1, 1); } .text { display: block; - padding-top: 10px; } } - + &.current { - background-color: $color-menu-button; - @include linear-gradient(color-stops( - $color-menu-button, - darken($color-menu-button, 20%) - )); - - li { - background-color: darken($color-menu-button, 5%); + a { + color: $color-text-light; + text-shadow: darken($color-menu-button, 20%) 0 -1px 0; + border-top: 1px solid lighten($color-menu-button, 10%); + border-bottom: 1px solid darken($color-menu-button, 20%); + background-color: $color-menu-button; @include linear-gradient(color-stops( - darken($color-menu-button, 5%), + $color-menu-button, darken($color-menu-button, 10%) )); } - a { - color: $color-text-light; - @include text-shadow($color-shadow-dark); + ul { + border-top: 1px solid darken($color-menu-button, 20%); + } + + li { + background-color: darken($color-menu-button, 10%); + + a { + font-size: $font-small-size; + padding: 0 10px 0 36px; + height: 32px; + line-height: 32px; + color: lighten($color-menu-button, 45%); + background: none; + border-top: 1px solid $color-menu-button; + border-bottom: 1px solid darken($color-menu-button, 20%); + + &.current, + &:hover { + background: darken($color-menu-button, 5%); + border-top: 1px solid darken($color-menu-button, 5%); + color: $color-text-light; + } + + &:focus { + background: darken($color-menu-button, 15%); + border-top: 1px solid darken($color-menu-button, 20%); + color: lighten($color-menu-button, 60%); + } + + } + + &.current a { + font-weight: bold; + color: $color-text-light; + } + + &.first a { + border-top: none; + } } } - - // nested elements - li { - - - &:first { - @include box-shadow($color-shadow-dark, 0, 4px, 4px); - } - - a { - font-size: 12px; - @include text-shadow($color-shadow-dark); - margin: 0; - padding-left: 30px; - color: $color-text-light; - } - - &.current a { - font-weight: bold; - } - } - } - - li#Menu-CMSMain a .icon {@include sprite-position(1, 1);} - li#Menu-CMSMain.current a .icon, li#Menu-CMSMain a:hover .icon {@include sprite-position(2, 1);} - li#Menu-AssetAdmin a .icon {@include sprite-position(1, 2);} - li#Menu-AssetAdmin.current a .icon, li#Menu-AssetAdmin a:hover .icon {@include sprite-position(2, 2);} - } \ No newline at end of file diff --git a/admin/scss/_style.scss b/admin/scss/_style.scss old mode 100644 new mode 100755 index 4170d8a75..1e0fd04c0 --- a/admin/scss/_style.scss +++ b/admin/scss/_style.scss @@ -13,23 +13,49 @@ * for larger components like the CMS menu or tree (see _tree.scss and _menu.scss). */ -// ######################### Base styles ######################### +/** ---------------------------------------------------- + * Core Styles + * ---------------------------------------------------- */ -body { +html,body { + width: 100%; + height: 100%; + overflow: hidden; + @include global-reset; - font-size: 13px; - font-family: Verdana, Arial, sans-serif; + + font-size: $font-base-size; + font-family: $font-family; color: $color-text; } -body * { - font-size: 13px; +a { + color: $color-text-dark-link; + text-decoration: none; + + &:hover, + &:focus { + text-decoration: underline; + } +} +body .ui-widget { + font-size: $font-base-size; } -body .ui-widget { - font-size: 1em; +.cms-container { + height: 100%; } +.cms-preview, +.cms-menu, +.cms-content, +.cms-content-header, +.cms-content-tools, +.cms-content-form { + @include inline-block; +} + + strong { font-weight: bold; } @@ -38,22 +64,31 @@ strong { .cms-content-header { background-color: darken($color-widget-bg, 20%); + padding: 8px; + height: 32px; + @include linear-gradient(color-stops( darken($color-widget-bg, 20%), darken($color-widget-bg, 30%) )); + h2 { float: left; - padding: 10px; + padding: 8px; font-size: 14px; font-weight: bold; + width: 250px - (10px*2); + } + + & > div { + width: 9999em; + overflow: hidden; } .cms-content-header-tabs { float: left; } - } .ui-tabs .cms-content-header { @@ -63,7 +98,7 @@ strong { a { font-weight: bold; font-size: 11px; - padding-top: 1em; + padding-top: 8px; } } @@ -86,51 +121,75 @@ strong { .cms-content-tools { background-color: darken($color-widget-bg, 5%); - padding: 10px; + padding: 10px; + width: 230px; + overflow: auto; } -// ######################### Header and Logo ######################### + +/** ------------------------------------------------------- + * Top Left Header and logo area + * -------------------------------------------------------- */ .cms-header { background-color: darken($color-dark-bg, 10%); + position: relative; + padding: 16px 8px 8px; + line-height: 24px; + @include linear-gradient(color-stops( darken($color-dark-bg, 10%), $color-dark-bg, darken($color-dark-bg, 10%) )); - * { + span { color: $color-text-light; + white-space: no-wrap; + text-overflow: ellipsis; + display: block; + + a { + color: $color-text-dark-link; + display: inline; + } } } .cms-logo { + border-bottom: 1px solid darken($color-dark-separator, 20%); + height: 31px; + overflow: hidden; + padding: 0 4px; + vertical-align: middle; .version { display: none; } - * { - color: $color-text-dark-link; - } - a { display: inline-block; - height: 25px; - width: 25px; + height: $application-logo-small-ysize; + width: $application-logo-small-xsize; float: left; margin-right: 10px; - background: url(../images/logo_small.png) no-repeat; + background: $application-logo-small no-repeat; text-indent: -9999em; } } .cms-login-status { + border-top: 1px solid $color-dark-separator; + height: 23px; + padding: 8px 0 0 14px; + overflow: hidden; + line-height: 16px; + font-size: 11px; .logout-link { display: inline-block; - height: 25px; - width: 25px; + height: 16px; + width: 16px; float: left; margin-right: 10px; background: url(../images/logout.png) no-repeat; @@ -189,7 +248,7 @@ strong { // ######################### Actions ######################### .cms-content-actions { - + padding: 8px; } // ######################### Messages ######################### @@ -277,6 +336,20 @@ strong { } // ######################### Preview header (remove before release) ######################### +.cms-preview { + width: 1px; // collapsed by default + overflow: hidden; + + .cms-preview-toggle { + width: 10px; + } + + iframe { + width: 100%; + height: 100%; + } +} + .cms-preview-header { background-color: #FFBE66; padding: 10px; @@ -328,7 +401,10 @@ form.member-profile-form { } -// ######################### Other ######################### +.cms-content-form { + overflow: auto; +} + .cms-preview { background-color: $color-base; diff --git a/admin/scss/_tree.scss b/admin/scss/_tree.scss old mode 100644 new mode 100755 diff --git a/admin/scss/_uitheme.scss b/admin/scss/_uitheme.scss old mode 100644 new mode 100755 index 1c70b0c93..a4b026f7b --- a/admin/scss/_uitheme.scss +++ b/admin/scss/_uitheme.scss @@ -31,6 +31,7 @@ .ui-widget-header { background: $color-widget-bg; border: 0; + padding: 0; } .ss-ui-button { diff --git a/admin/scss/layout.scss b/admin/scss/layout.scss deleted file mode 100644 index 0300ff8f3..000000000 --- a/admin/scss/layout.scss +++ /dev/null @@ -1,92 +0,0 @@ -/** - * This file defines the structural layout of the CMS interface. - * Ideally, you should be able to lay out the base elements of the CMS with only this file. - * - * Please put any presentational definitions (color, fonts, backgrounds, paddings) - * into _style.scss or _uitheme.scss instead. - */ - -@import "compass/reset"; -@import "compass/css3"; - -html,body { - width: 100%; - height: 100%; - padding: 0; - margin: 0; - overflow: hidden; // avoid jlayout jitter when resizing -} - -.cms-preview { - width: 1px; // collapsed by default - overflow: hidden; - - .cms-preview-toggle { - width: 10px; - } - - iframe { - width: 100%; - height: 100%; - } -} - -.cms-container { - height: 100% -} - -.cms-menu { - width: 250px; - overflow: auto; -} - -.cms-content { -} - -.cms-preview, -.cms-menu, -.cms-content, -.cms-content-header, -.cms-content-tools, -.cms-content-form { - @include inline-block; -} - -.cms-content-tools { - width: 230px; - padding: 10px; - overflow: auto; -} - -.cms-content-form { - overflow: auto; -} - -.cms-content-header { - height: 40px; - - h2 { - width: 250px - (10px*2) /* padding */ - 4px /* em adjustment hacketyhack */; - } - - & > div { - width: 9999em; - overflow: hidden; - } -} - -.cms-content-actions { - padding: 10px; -} - -.cms-logo { - height: 30px; - overflow: hidden; - vertical-align: middle; -} - -.cms-login-status { - height: 30px; - overflow: hidden; - vertical-align: middle; -} \ No newline at end of file diff --git a/admin/scss/screen.scss b/admin/scss/screen.scss old mode 100644 new mode 100755 index 9b59087e2..e30e89466 --- a/admin/scss/screen.scss +++ b/admin/scss/screen.scss @@ -7,13 +7,24 @@ * Note: By prefixing files with an underscore, they won't create individual CSS files. */ +/** ----------------------------- + * Core Compass Libraries + * ------------------------------ */ @import "compass/reset"; @import "compass/css3"; @import "compass/utilities/sprites/sprite-img"; -@import "colours.scss"; +/** ----------------------------- + * Theme + * ------------------------------ */ +@import "themes/default.scss"; + +/** ----------------------------- + * CMS Components + * ------------------------------ */ @import "tree.scss"; @import "menu.scss"; @import "forms.scss"; @import "uitheme.scss"; -@import "style.scss"; \ No newline at end of file +@import "style.scss"; + diff --git a/admin/scss/themes/_default.scss b/admin/scss/themes/_default.scss new file mode 100755 index 000000000..62b7cc0b8 --- /dev/null +++ b/admin/scss/themes/_default.scss @@ -0,0 +1,53 @@ +/** + * This file contains the default theme definitions for the admin interface. + * + * @package sapphire + * @subpackage admin + */ + +/** ----------------------------------------------- + * Colours + * ------------------------------------------------ */ +$color-base: #b0bec7; + +$color-widget-bg: lighten($color-base, 20%); + +$color-dark-bg: #003050; +$color-dark-separator: #19435c; + +$color-shadow-light: rgba(201, 205, 206, 0.8); +$color-shadow-dark: rgba(107, 120, 123, 0.5); + +$color-highlight: #FFFF66; + +$color-menu-button: #338DC1; +$color-menu-background: #c6d7df; +$color-menu-border: #8c99a1; + +$color-text: #444; +$color-text-light: white; +$color-text-light-link: white; +$color-text-dark: #1f1f1f; +$color-text-dark-link: #3EBAE0; + +$color-button-constructive: #77b53f; +$color-button-destructive: #f00; + +$color-warning: #FF9300; +$color-error: #FF9300; +$color-notice: #FF9300; + +/** ----------------------------------------------- + * Typography + * ------------------------------------------------ */ +$font-family: Verdana, Arial, sans-serif; +$font-base-size: 13px; +$font-small-size: 11px; +$font-base-lineheight: 16px; + +/** ----------------------------------------------- + * Application Logo (CMS Logo) + * ------------------------------------------------ */ +$application-logo-small: image-url("logo_small.png"); +$application-logo-small-ysize: 25px; +$application-logo-small-xsize: 25px; \ No newline at end of file diff --git a/admin/scss/themes/_grayscale.scss b/admin/scss/themes/_grayscale.scss new file mode 100755 index 000000000..7d6d9c18d --- /dev/null +++ b/admin/scss/themes/_grayscale.scss @@ -0,0 +1,33 @@ +/** + * This file contains the grayscale theme definitions for the admin interface. + * + * + * @package sapphire + * @subpackage admin + */ + +/** ----------------------------------------------- + * Colours + * ------------------------------------------------ */ +$color-base: grayscale(#B0BFC6); +$color-widget-bg: grayscale(lighten($color-base, 20%)); +$color-dark-bg: grayscale(#003050); +$color-shadow-light: grayscale(#aaa); +$color-shadow-dark: grayscale(#333); +$color-highlight: grayscale(#FFFF66); +$color-menu-button: grayscale(#338DC1); +$color-text: grayscale(#444); +$color-text-light: white; +$color-text-light-link: white; +$color-text-dark: grayscale(#333); +$color-text-dark-link: grayscale(#3EBAE0); +$color-button-constructive: grayscale(#77b53f); +$color-button-destructive: grayscale(#f00); +$color-warning: grayscale(#FF9300); +$color-error: grayscale(#FF9300); +$color-notice: grayscale(#FF9300); + +/** ----------------------------------------------- + * Typography + * ------------------------------------------------ */ +$default-fonts: Verdana, Arial, sans-serif; \ No newline at end of file diff --git a/admin/templates/CMSTabSet.ss b/admin/templates/CMSTabSet.ss old mode 100644 new mode 100755 diff --git a/admin/templates/Includes/CMSLoadingScreen.ss b/admin/templates/Includes/CMSLoadingScreen.ss old mode 100644 new mode 100755 diff --git a/admin/templates/Includes/LeftAndMain_Content.ss b/admin/templates/Includes/LeftAndMain_Content.ss old mode 100644 new mode 100755 diff --git a/admin/templates/Includes/LeftAndMain_EditForm.ss b/admin/templates/Includes/LeftAndMain_EditForm.ss old mode 100644 new mode 100755 diff --git a/admin/templates/Includes/LeftAndMain_Menu.ss b/admin/templates/Includes/LeftAndMain_Menu.ss old mode 100644 new mode 100755 index 462a7ce06..da5537edd --- a/admin/templates/Includes/LeftAndMain_Menu.ss +++ b/admin/templates/Includes/LeftAndMain_Menu.ss @@ -8,28 +8,28 @@ $SiteConfig.Title
- <% _t('LOGOUT','Log out') %> + <% _t('LOGOUT','Log out') %> <% control CurrentMember %> - <% _t('Hello','Hi') %> - + + <% _t('Hello','Hi') %> <% if FirstName && Surname %>$FirstName $Surname<% else_if FirstName %>$FirstName<% else %>$Email<% end_if %> - + <% end_control %>