From a5c5a349c32f0a91d5d980bad87626b504640503 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Tue, 1 Apr 2014 17:52:52 -0400 Subject: [PATCH] Move dashboard.css out of packages and fix icon css --- CRM/Contact/Page/DashBoard.php | 2 +- css/dashboard.css | 195 +++++++++++++++++++++++++++++++++ 2 files changed, 196 insertions(+), 1 deletion(-) create mode 100644 css/dashboard.css diff --git a/CRM/Contact/Page/DashBoard.php b/CRM/Contact/Page/DashBoard.php index ef0df34142..6ef7b94e4b 100644 --- a/CRM/Contact/Page/DashBoard.php +++ b/CRM/Contact/Page/DashBoard.php @@ -49,7 +49,7 @@ class CRM_Contact_Page_DashBoard extends CRM_Core_Page { // Add dashboard js and css $resources = CRM_Core_Resources::singleton(); $resources->addScriptFile('civicrm', 'js/jquery/jquery.dashboard.js', 0, 'html-header', FALSE); - $resources->addStyleFile('civicrm', 'packages/jquery/css/dashboard.css'); + $resources->addStyleFile('civicrm', 'css/dashboard.css'); $config = CRM_Core_Config::singleton(); diff --git a/css/dashboard.css b/css/dashboard.css new file mode 100644 index 0000000000..739aa51a06 --- /dev/null +++ b/css/dashboard.css @@ -0,0 +1,195 @@ +/** +* @file +* CSS for the jQuery.dashboard() plugin. +* +* Released under the GNU General Public License. See LICENSE.txt. +*/ + +#crm-container .column { + float: left; + margin: 0; + /* padding-bottom and min-height make sure that there is always a sizable drop zone. */ + min-height: 400px; + height: 400px; + height: auto !important; + padding: 0 0 250px; + list-style-type: none; +} + +#crm-container .column-0 { + width: 40%; +} + +#crm-container .column-1 { + width: 60%; +} + +/* The placeholder that indicates where a dragged widget will land if dropped now. */ +#crm-container .placeholder { + margin: 5px; + border: 3px dashed pink; +} + +/* Spacing between widgets. */ +#crm-container li.widget, #crm-container li.empty-placeholder { margin: 6px 3px; } +#crm-container li.widget { + padding: 0px; +} + +/* Spacing inside widgets. */ +#crm-container .widget-wrapper { + padding: 0px; + overflow-x:auto; + margin-right: .25em +} + +/* wodget header / title */ +#crm-container .widget-header { + background:#CDE8FE none repeat scroll 0 0; + color:#000; + cursor:move; + display:inline; + font-size:1.2em; + margin:0; +} + +/* widget content / body*/ +#crm-container .widget-content { + background-color: #ffffff; + padding:0.5em; +} + +/* Standards-browsers do this anyway because all inner block elements are floated. IE doesn't because it's crap. */ +#crm-container .widget-controls { + background-color:#CDE8FE; + display:block; + padding:5px 0px; +} + +#crm-container .widget-icon, #crm-container .full-screen-close-icon img { + display: block; + float: right; + margin-left: 2px; + margin-top: 2px; + cursor: pointer; +} + +#full-screen-header { + display: block; + padding: .2em .4em; + background: #F0F0E8; + /* Although this is an link, it doesn't have an href="" attribute. */ + cursor: pointer; +} + +/* Make the throbber in-yer-face. */ +#crm-container .throbber { + text-align: right; + background:url("../packages/jquery/css/images/throbber.gif") no-repeat scroll 0 0 transparent; + height:20px; + width:20px; +} + +#crm-container p.loadtext { + margin:1.6em 0 0 26px; +} + +#crm-container .widget-icon { + background-image:url('../packages/jquery/jquery-ui/css/theme/images/ui-icons_222222_256x240.png'); + height:16px; + width:16px; + padding-right:2px; + float: left; + border-radius: 2px; +} +#crm-container .widget-icon.minimize-icon { + background-position:-63px -17px; +} + +#crm-container .widget-icon.maximize-icon { + background-position:-31px -18px; +} + +#crm-container .widget-icon.fullscreen-icon { + background-position:-48px -80px; + float:right; +} +#crm-container .widget-icon.close-icon { + float:right; +} +#crm-container .widget-icon:hover { + background-color: rgba(255, 255, 255, 0.8); +} + +/* CSS for Dashlets */ + +#crm-container #available-dashlets { + width: 98%; + border: 2px dashed pink; + background-color: #999999; + min-height:40px; +} + +#crm-container .dash-column { + border: 2px solid #696969; + min-height: 100px; + background-color: #EEEEEE +} + +#crm-container .dashlets-header { + font-weight: bold; +} + +#crm-container #dashlets-header-col-0 { + float: left; + width: 40%; +} + +#crm-container #dashlets-header-col-1 { + margin-left: 42%; + width: 56%; +} + +#crm-container #existing-dashlets-col-0 { + float: left; + width: 40%; +} + +#crm-container #existing-dashlets-col-1 { + margin-left: 42%; + width: 56%; +} + +#crm-container .portlet { + margin: .5em; + width: 75%; + display: inline-block; +} + +#crm-container .portlet-header { + margin: 0.3em; + padding: 0.5em; + cursor: pointer; +} + +#crm-container #available-dashlets .portlet { + width: auto; +} + +#crm-container .portlet-header .ui-icon { + float: right; +} + +#crm-container .portlet-content { + padding: 0.4em; +} + +#crm-container .ui-sortable-placeholder { + border: 1px dotted black; + visibility: visible !important; + height: 50px !important; +} + +#crm-container .ui-sortable-placeholder * { + visibility: hidden; +} -- 2.25.1