Browse Source

Fixed help for 2.47+

Exalm 7 years ago
parent
commit
a7530065cf

+ 3 - 1
theme/chrome.manifest

@@ -1,4 +1,3 @@
-skin	help			gnomerunner/1.0	help/
 skin	navigator		gnomerunner/1.0	navigator/
 skin	editor			gnomerunner/1.0	editor/
 skin	communicator	gnomerunner/1.0	communicator/
@@ -44,6 +43,9 @@ style	chrome://communicator/content/aboutPrivateBrowsing.xul	chrome://communicat
 style	about:privatebrowsing									chrome://communicator/skin/aboutPrivateBrowsing-new.css	appversion>=2.37
 style	about:privatebrowsing									chrome://communicator/skin/aboutPrivateBrowsing-old.css	appversion<2.37
 
+#Help styling
+skin	help			gnomerunner/1.0	help/	appversion<2.47
+
 # Lightning
 skin	gnomerunner-calendar	gnomerunner/1.0 extensions/calendar/
 style	chrome://global/content/customizeToolbar.xul					chrome://gnomerunner-calendar/skin/lightning-toolbar.css

+ 0 - 0
theme/help/Weblink-rtl.png → theme/communicator/helpviewer/Weblink-rtl.png


+ 0 - 0
theme/help/Weblink.png → theme/communicator/helpviewer/Weblink.png


+ 137 - 0
theme/communicator/helpviewer/help.css

@@ -0,0 +1,137 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
+@import url("chrome://global/skin/");
+@import url("chrome://communicator/skin/");
+@import url("chrome://communicator/skin/helpOverlay.css");
+@import url("chrome://icons/skin/icon-theme-default.css");
+@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
+
+#HelpToolbar toolbarbutton {
+  -moz-box-orient: horizontal !important;
+  min-width: 0px;
+  margin: 0 !important;
+  padding: 4px 5px;
+}
+
+#help-back-button {
+  list-style-image: var(--icon-go-previous-24);
+}
+
+#help-back-button[disabled="true"] {
+  list-style-image: var(--icon-go-previous-24-dis);
+}
+
+#help-back-button:-moz-locale-dir(rtl) {
+  list-style-image: var(--icon-go-previous-rtl-24);
+}
+
+#help-back-button[disabled="true"]:-moz-locale-dir(rtl) {
+  list-style-image: var(--icon-go-previous-rtl-24-dis);
+}
+
+#help-forward-button {
+  list-style-image: var(--icon-go-next-24);
+}
+
+#help-forward-button[disabled="true"] {
+  list-style-image: var(--icon-go-next-24-dis);
+}
+
+#help-forward-button:-moz-locale-dir(rtl) {
+  list-style-image: var(--icon-go-next-rtl-24);
+}
+
+#help-forward-button[disabled="true"]:-moz-locale-dir(rtl) {
+  list-style-image: var(--icon-go-next-rtl-24);
+}
+
+#help-home-button {
+  list-style-image: var(--icon-go-home-24);
+}
+
+#help-home-button[disabled="true"] {
+  list-style-image: var(--icon-go-home-24-dis);
+}
+
+#help-print-button {
+  list-style-image: var(--icon-document-print-24);
+}
+
+#help-print-button[disabled="true"] {
+  list-style-image: var(--icon-document-print-24-dis) !important;
+}
+
+/* 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;
+}
+
+/* Set the minimum sidebar width so the help contents aren't squeezed together.*/
+#help-sidebar { min-width: 15em; width: 20em; max-width: 25em; }
+
+#context-copy[disabled="true"] {
+  display: none;
+}
+
+/**** menuitem stock icons ****/
+menuitem:not([type]) {
+  -moz-binding: url("chrome://global/content/bindings/menu.xml#menuitem-iconic");
+}
+
+#context-back {
+  list-style-image: var(--icon-go-previous-16);
+}
+
+#context-back:-moz-locale-dir(rtl) {
+  list-style-image: var(--icon-go-previous-rtl-16);
+}
+
+#context-back[disabled="true"] {
+  list-style-image: var(--icon-go-previous-16-dis);
+}
+
+#context-back[disabled="true"]:-moz-locale-dir(rtl) {
+  list-style-image: var(--icon-go-previous-rtl-16-dis);
+}
+
+#context-forward {
+  list-style-image: var(--icon-go-next-16);
+}
+
+#context-forward:-moz-locale-dir(rtl) {
+  list-style-image: var(--icon-go-next-rtl-16);
+}
+
+#context-forward[disabled="true"] {
+  list-style-image: var(--icon-go-next-16-dis);
+}
+
+#context-forward[disabled="true"]:-moz-locale-dir(rtl) {
+  list-style-image: var(--icon-go-next-rtl-16-dis);
+}
+
+#context-copy {
+  list-style-image: var(--icon-edit-copy-16);
+}
+
+#context-selectall {
+  list-style-image: var(--icon-edit-select-all-16);
+}
+
+#zoom-in {
+  list-style-image: var(--icon-zoom-in-16);
+}
+
+#zoom-out {
+  list-style-image: var(--icon-zoom-out-16);
+}
+

+ 157 - 0
theme/communicator/helpviewer/helpFileLayout.css

@@ -0,0 +1,157 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
+@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://communicator/skin/helpviewer/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 .2em;
+  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: 0;
+}
+
+.contentsBox > ul,
+.contentsBox ul > ul {
+  margin: 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;
+  padding: 6px;
+  vertical-align: top;
+}
+
+th {
+  background-color: #eee;
+  font-weight: bold;
+  text-align: start;
+}
+
+.noTableBorder,
+.noTableBorder td,
+.noTableBorder th {
+  background-color: transparent;
+  border: none;
+}

+ 2 - 130
theme/help/help.css

@@ -2,134 +2,6 @@
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-@import url("chrome://global/skin/");
-@import url("chrome://icons/skin/icon-theme-default.css");
-@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
-
-#HelpToolbar toolbarbutton {
-  -moz-box-orient: horizontal !important;
-  min-width: 0px;
-  margin: 0 !important;
-  padding: 4px 5px;
-}
-
-#help-back-button {
-  list-style-image: var(--icon-go-previous-24);
-}
-
-#help-back-button[disabled="true"] {
-  list-style-image: var(--icon-go-previous-24-dis);
-}
-
-#help-back-button:-moz-locale-dir(rtl) {
-  list-style-image: var(--icon-go-previous-rtl-24);
-}
-
-#help-back-button[disabled="true"]:-moz-locale-dir(rtl) {
-  list-style-image: var(--icon-go-previous-rtl-24-dis);
-}
-
-#help-forward-button {
-  list-style-image: var(--icon-go-next-24);
-}
-
-#help-forward-button[disabled="true"] {
-  list-style-image: var(--icon-go-next-24-dis);
-}
-
-#help-forward-button:-moz-locale-dir(rtl) {
-  list-style-image: var(--icon-go-next-rtl-24);
-}
-
-#help-forward-button[disabled="true"]:-moz-locale-dir(rtl) {
-  list-style-image: var(--icon-go-next-rtl-24);
-}
-
-#help-home-button {
-  list-style-image: var(--icon-go-home-24);
-}
-
-#help-home-button[disabled="true"] {
-  list-style-image: var(--icon-go-home-24-dis);
-}
-
-#help-print-button {
-  list-style-image: var(--icon-document-print-24);
-}
-
-#help-print-button[disabled="true"] {
-  list-style-image: var(--icon-document-print-24-dis) !important;
-}
-
-/* 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;
-}
-
-/* Set the minimum sidebar width so the help contents aren't squeezed together.*/
-#help-sidebar { min-width: 15em; width: 20em; max-width: 25em; }
-
-#context-copy[disabled="true"] {
-  display: none;
-}
-
-/**** menuitem stock icons ****/
-menuitem:not([type]) {
-  -moz-binding: url("chrome://global/content/bindings/menu.xml#menuitem-iconic");
-}
-
-#context-back {
-  list-style-image: var(--icon-go-previous-16);
-}
-
-#context-back:-moz-locale-dir(rtl) {
-  list-style-image: var(--icon-go-previous-rtl-16);
-}
-
-#context-back[disabled="true"] {
-  list-style-image: var(--icon-go-previous-16-dis);
-}
-
-#context-back[disabled="true"]:-moz-locale-dir(rtl) {
-  list-style-image: var(--icon-go-previous-rtl-16-dis);
-}
-
-#context-forward {
-  list-style-image: var(--icon-go-next-16);
-}
-
-#context-forward:-moz-locale-dir(rtl) {
-  list-style-image: var(--icon-go-next-rtl-16);
-}
-
-#context-forward[disabled="true"] {
-  list-style-image: var(--icon-go-next-16-dis);
-}
-
-#context-forward[disabled="true"]:-moz-locale-dir(rtl) {
-  list-style-image: var(--icon-go-next-rtl-16-dis);
-}
-
-#context-copy {
-  list-style-image: var(--icon-edit-copy-16);
-}
-
-#context-selectall {
-  list-style-image: var(--icon-edit-select-all-16);
-}
-
-#zoom-in {
-  list-style-image: var(--icon-zoom-in-16);
-}
-
-#zoom-out {
-  list-style-image: var(--icon-zoom-out-16);
-}
+/* For compatibility with SM 2.46 and older */
 
+@import url("chrome://communicator/skin/helpviewer/help.css");

+ 2 - 152
theme/help/helpFileLayout.css

@@ -2,156 +2,6 @@
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-@import url('chrome://help/content/platformClasses.css');
+/* For compatibility with SM 2.46 and older */
 
-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 .2em;
-  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: 0;
-}
-
-.contentsBox > ul,
-.contentsBox ul > ul {
-  margin: 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;
-  padding: 6px;
-  vertical-align: top;
-}
-
-th {
-  background-color: #eee;
-  font-weight: bold;
-  text-align: start;
-}
-
-.noTableBorder,
-.noTableBorder td,
-.noTableBorder th {
-  background-color: transparent;
-  border: none;
-}
+@import url("chrome://communicator/skin/helpviewer/helpFileLayout.css");