From: Robert Kaiser Date: Fri, 1 Jun 2007 20:09:33 +0000 (+0200) Subject: add new-help theming to EarlyBlue X-Git-Tag: EarlyBlue-2.0a1~23 X-Git-Url: https://git-public.kairo.at/?a=commitdiff_plain;h=86609099c5905442cd908d7e7309c9551e1102f1;p=themes.git add new-help theming to EarlyBlue --- diff --git a/EarlyBlue/communicator/help.css b/EarlyBlue/communicator/help.css deleted file mode 100644 index 39c984ee..00000000 --- a/EarlyBlue/communicator/help.css +++ /dev/null @@ -1,71 +0,0 @@ -/* ***** BEGIN LICENSE BLOCK ***** - * Version: NPL 1.1/GPL 2.0/LGPL 2.1 - * - * The contents of this file are subject to the Netscape Public License - * Version 1.1 (the "License"); you may not use this file except in - * compliance with the License. You may obtain a copy of the License at - * http://www.mozilla.org/NPL/ - * - * Software distributed under the License is distributed on an "AS IS" basis, - * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License - * for the specific language governing rights and limitations under the - * License. - * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is - * Netscape Communications Corporation. - * Portions created by the Initial Developer are Copyright (C) 1998-1999 - * the Initial Developer. All Rights Reserved. - * - * Contributor(s): - * Joe Hewitt (hewitt@netscape.com) - * Robert Kaiser - * - * Alternatively, the contents of this file may be used under the terms of - * either the GNU General Public License Version 2 or later (the "GPL"), or - * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), - * in which case the provisions of the GPL or the LGPL are applicable instead - * of those above. If you wish to allow use of your version of this file only - * under the terms of either the GPL or the LGPL, and not to allow others to - * use your version of this file under the terms of the NPL, indicate your - * decision by deleting the provisions above and replace them with the notice - * and other provisions required by the GPL or the LGPL. If you do not delete - * the provisions above, a recipient may use your version of this file under - * the terms of any one of the NPL, the GPL or the LGPL. - * - * ***** END LICENSE BLOCK ***** */ - -@import url("chrome://communicator/skin/"); - -@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); - -#helpBackButton { - list-style-image: url("chrome://navigator/skin/icons/back.gif"); -} - -#helpBackButton[disabled="true"] { - list-style-image: url("chrome://navigator/skin/icons/back-disabled.gif") !important; -} - -#helpForwardButton { - list-style-image: url("chrome://navigator/skin/icons/forward.gif"); -} - -#helpForwardButton[disabled="true"] { - list-style-image: url("chrome://navigator/skin/icons/forward-disabled.gif") !important; -} - -/* ::::: primary toolbar buttons ::::: */ - -#print { - list-style-image: url("chrome://global/skin/icons/print.gif"); -} - -#print[disabled="true"] { - list-style-image: url("chrome://global/skin/icons/print-disabled.gif") !important; -} - -#helpHomeButton { - list-style-image: url("chrome://communicator/skin/bookmarks/home.gif"); -} diff --git a/EarlyBlue/communicator/helpOverlay.css b/EarlyBlue/communicator/helpOverlay.css new file mode 100644 index 00000000..40c0bd0b --- /dev/null +++ b/EarlyBlue/communicator/helpOverlay.css @@ -0,0 +1 @@ +/* EarlyBlue help is styled in its own help component */ diff --git a/EarlyBlue/communicator/icons/communicatoricons.png b/EarlyBlue/communicator/icons/communicatoricons.png new file mode 100644 index 00000000..d8187e3d Binary files /dev/null and b/EarlyBlue/communicator/icons/communicatoricons.png differ diff --git a/EarlyBlue/help/help.css b/EarlyBlue/help/help.css new file mode 100644 index 00000000..01cfeff6 --- /dev/null +++ b/EarlyBlue/help/help.css @@ -0,0 +1,123 @@ +/* ***** BEGIN LICENSE BLOCK ***** + * Version: MPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is Mozilla Help CSS + * + * The Initial Developer of the Original Code is + * R.J. Keller + * Portions created by the Initial Developer are Copyright (C) 2003 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): + * Robert Kaiser + * + * Alternatively, the contents of this file may be used under the terms of + * either the GNU General Public License Version 2 or later (the "GPL"), or + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the MPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the MPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** */ + +@import url("chrome://global/skin/"); +@import url("chrome://communicator/skin/"); +@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); + +#HelpToolbar > toolbarbutton { + list-style-image: url("chrome://communicator/skin/icons/communicatoricons.png"); +} + +/* Hide labels for the toolbar because we really don't need them what with the + tooltips */ +#HelpToolbar .toolbarbutton-text { + display: none; +} + +/* With no labels, we don't need the margin on the icon that separates it + from the label */ +#HelpToolbar .toolbarbutton-icon { + -moz-margin-end: 0; +} + +#help-back-button > toolbarbutton, +#help-forward-button > toolbarbutton { + list-style-image: inherit; + -moz-image-region: inherit; +} + +toolbarbutton > dropmarker { + -moz-image-region: auto; +} + +/* Set the minimum sidebar width so the help contents aren't squeezed together.*/ +#help-sidebar { min-width: 15em; width: 20em; max-width: 25em; } + +#search-sidebar-closebutton { + list-style-image: url("chrome://global/skin/icons/close-button.gif"); +} + +/* ----- BACK BUTTON ----- */ + +#help-back-button { + -moz-image-region: rect(42px 25px 63px 0px); +} + +#help-back-button[disabled="true"] { + -moz-image-region: rect(42px 50px 63px 25px); +} + +#help-back-button .toolbarbutton-menubutton-button { + -moz-box-align: end !important; +} + +/* ----- FORWARD BUTTON ----- */ + +#help-forward-button { + -moz-image-region: rect(63px 25px 84px 0px); +} + +#help-forward-button[disabled="true"] { + -moz-image-region: rect(63px 50px 84px 25px); +} + +/* ----- HOME BUTTON ----- */ + +#help-home-button { + -moz-image-region: rect(84px 25px 105px 0px); +} + +#help-home-button[disabled="true"] { + -moz-image-region: rect(84px 50px 105px 25px); +} + +/* ----- PRINT BUTTON ----- */ + +#help-print-button { + -moz-image-region: rect(0px 25px 21px 0px); +} + +#help-print-button[disabled="true"] { + -moz-image-region: rect(0px 50px 21px 25px); +} + +/* ----- OTHER ----- */ + +#context-copy[disabled="true"] { + display: none; +} diff --git a/EarlyBlue/help/helpFileLayout.css b/EarlyBlue/help/helpFileLayout.css new file mode 100644 index 00000000..f6bd1ef5 --- /dev/null +++ b/EarlyBlue/help/helpFileLayout.css @@ -0,0 +1,150 @@ +/* ***** BEGIN LICENSE BLOCK ***** + * Version: MPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is Mozilla Help CSS + * + * The Initial Developer of the Original Code is + * R.J. Keller + * Portions created by the Initial Developer are Copyright (C) 2003 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): + * Jeff Walden + * Steffen Wilberg + * + * Alternatively, the contents of this file may be used under the terms of + * either the GNU General Public License Version 2 or later (the "GPL"), or + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the MPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the MPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** */ + +@import url('chrome://help/content/platformClasses.css'); + +body, td, th, input { + font-family: verdana, sans-serif; + font-size: small; +} + +body { + margin: 2ex; + max-width: 120ex; +} + +:link:hover, +:visited:hover { + color: -moz-activehyperlinktext; +} + +hr { + height: 1px; + background-color: #000; + color: #000; + margin: 2em 0; +} + +a[href^="http://"]:after, +a[href^="https://"]:after { + content: url('chrome://help/skin/Weblink.png'); +} + +:link { color: #039; } +:visited { color: #636; } +:link:hover, :visited:hover { color: #333; } +:link:active, :link:active { color: #000; } + +h1 { font-size: 160%; font-weight: normal; } +h2 { font-size: 150%; font-weight: normal; } +h3 { font-size: 120%; } +h4 { font-size: 100%; } +h5 { font-size: 90%; } +h6 { font-size: 90%; border: 0; } + +h1, h2, h3, h4, h5, h6 { + margin: 1em 0 0.2em 0; + border-bottom: 1px solid #ccc; + font-family: arial, verdana, sans-serif; +} + +li h1, li h2, li h3, li h4, li h5, li h6 { + border: none; +} + + +dt { font-weight: bold; } + +sup { + font-size: 70%; +} + +:link img, +:visited img { + border: 0; +} + +.contentsBox, +.contentsBox > ul, +li { + text-indent: 0px; +} + +.contentsBox > ul, +.contentsBox ul > ul{ + margin: 0 0 0 0; + list-style-type: none; +} + +.contentsBox { + margin-top: 12px; + background-color: #eee; + border: 1px solid #ccc; + width: 300px; + padding: 1em; +} + +.menuPath { + background: #c4d0f4; /* bluish color */ + color: inherit; + padding-left: 1px; /* else bgcolor ends at last char - no space */ + padding-right: 1px; +} + +table { + border-collapse: collapse; +} + +td, th { + border: 1px solid #ddd; /* grey */ + padding: 6px; + vertical-align: top; +} + +th { + background-color: #eee; /* light grey */ + font-weight: bold; + text-align: left; +} + +.noTableBorder, +.noTableBorder td, +.noTableBorder th { + background-color: transparent; + border: 0px solid transparent; +}