mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-04-02 19:13:32 +02:00
Italicize new news items for a much needed sharper visual distinction.
This commit is contained in:
@@ -725,7 +725,8 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
|
|||||||
let t = tags;
|
let t = tags;
|
||||||
tags = array(betas.iterate(tags)).map(function (m) m[1]);
|
tags = array(betas.iterate(tags)).map(function (m) m[1]);
|
||||||
|
|
||||||
let group = tags.length && !tags.some(function (t) t == beta) ? "HelpNewsOld" : "";
|
let group = !tags.length ? "" :
|
||||||
|
!tags.some(function (t) t == beta) ? "HelpNewsOld" : "HelpNewsNew";
|
||||||
if (i === 0 && li) {
|
if (i === 0 && li) {
|
||||||
li.@highlight = group;
|
li.@highlight = group;
|
||||||
group = "";
|
group = "";
|
||||||
|
|||||||
@@ -652,7 +652,8 @@ var ConfigBase = Class("ConfigBase", {
|
|||||||
|
|
||||||
HelpNews position: relative;
|
HelpNews position: relative;
|
||||||
HelpNewsOld opacity: .7;
|
HelpNewsOld opacity: .7;
|
||||||
HelpNewsTag position: absolute; left: 100%; padding-left: 1em; color: #527BBD; opacity: .6; white-space: pre;
|
HelpNewsNew font-style: italic;
|
||||||
|
HelpNewsTag font-style: normal; position: absolute; left: 100%; padding-left: 1em; color: #527BBD; opacity: .6; white-space: pre;
|
||||||
|
|
||||||
HelpHead;html|h1,html|h2,html|h3,html|h4;dactyl://help/* {
|
HelpHead;html|h1,html|h2,html|h3,html|h4;dactyl://help/* {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
|||||||
@@ -78,11 +78,11 @@ var Services = Module("Services", {
|
|||||||
this.addClass("Process", "@mozilla.org/process/util;1", Ci.nsIProcess, "init");
|
this.addClass("Process", "@mozilla.org/process/util;1", Ci.nsIProcess, "init");
|
||||||
this.addClass("StreamChannel","@mozilla.org/network/input-stream-channel;1",
|
this.addClass("StreamChannel","@mozilla.org/network/input-stream-channel;1",
|
||||||
[Ci.nsIChannel, Ci.nsIInputStreamChannel, Ci.nsIRequest], "setURI");
|
[Ci.nsIChannel, Ci.nsIInputStreamChannel, Ci.nsIRequest], "setURI");
|
||||||
|
this.addClass("StreamCopier", "@mozilla.org/network/async-stream-copier;1",Ci.nsIAsyncStreamCopier, "init");
|
||||||
this.addClass("String", "@mozilla.org/supports-string;1", Ci.nsISupportsString, "data");
|
this.addClass("String", "@mozilla.org/supports-string;1", Ci.nsISupportsString, "data");
|
||||||
this.addClass("StringStream", "@mozilla.org/io/string-input-stream;1", Ci.nsIStringInputStream, "data");
|
this.addClass("StringStream", "@mozilla.org/io/string-input-stream;1", Ci.nsIStringInputStream, "data");
|
||||||
this.addClass("Transfer", "@mozilla.org/transfer;1", Ci.nsITransfer, "init");
|
this.addClass("Transfer", "@mozilla.org/transfer;1", Ci.nsITransfer, "init");
|
||||||
this.addClass("Timer", "@mozilla.org/timer;1", Ci.nsITimer, "initWithCallback");
|
this.addClass("Timer", "@mozilla.org/timer;1", Ci.nsITimer, "initWithCallback");
|
||||||
this.addClass("StreamCopier", "@mozilla.org/network/async-stream-copier;1",Ci.nsIAsyncStreamCopier, "init");
|
|
||||||
this.addClass("Xmlhttp", "@mozilla.org/xmlextras/xmlhttprequest;1", Ci.nsIXMLHttpRequest);
|
this.addClass("Xmlhttp", "@mozilla.org/xmlextras/xmlhttprequest;1", Ci.nsIXMLHttpRequest);
|
||||||
this.addClass("XPathEvaluator", "@mozilla.org/dom/xpath-evaluator;1", Ci.nsIDOMXPathEvaluator);
|
this.addClass("XPathEvaluator", "@mozilla.org/dom/xpath-evaluator;1", Ci.nsIDOMXPathEvaluator);
|
||||||
this.addClass("ZipReader", "@mozilla.org/libjar/zip-reader;1", Ci.nsIZipReader, "open");
|
this.addClass("ZipReader", "@mozilla.org/libjar/zip-reader;1", Ci.nsIZipReader, "open");
|
||||||
|
|||||||
@@ -88,7 +88,7 @@
|
|||||||
buffer. [b6]
|
buffer. [b6]
|
||||||
- :javascript! now opens a Read Eval Print Loop. [b6]
|
- :javascript! now opens a Read Eval Print Loop. [b6]
|
||||||
- Added -arg flag to :map. [b6]
|
- Added -arg flag to :map. [b6]
|
||||||
- :extensions has been replaced with a more powerful :addons.
|
- :extensions has been replaced with a more powerful :addons. [b6]
|
||||||
- Added -literal flag to :command. [b6]
|
- Added -literal flag to :command. [b6]
|
||||||
- Added :completions command. [b6]
|
- Added :completions command. [b6]
|
||||||
- Added :cookies command. [b3]
|
- Added :cookies command. [b3]
|
||||||
|
|||||||
Reference in New Issue
Block a user