mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-23 21:03:32 +01:00
Experimental new Hint style. Lets see how vitriolic the reaction is.
This commit is contained in:
@@ -350,11 +350,12 @@ var ConfigBase = Class("ConfigBase", {
|
|||||||
|
|
||||||
Bell background-color: black !important;
|
Bell background-color: black !important;
|
||||||
|
|
||||||
Hint;;*;FontFixed {
|
Hint;;* {
|
||||||
font-weight: bold !important;
|
font: bold 10px "Droid Sans Mono", monospace !important;
|
||||||
background-color: red;
|
padding: 0 1px;
|
||||||
color: white;
|
border: 1px solid black;
|
||||||
padding: 0px 1px;
|
background: #fff8e7;
|
||||||
|
color: black;
|
||||||
}
|
}
|
||||||
Hint::after;;* content: attr(text) !important;
|
Hint::after;;* content: attr(text) !important;
|
||||||
HintElem;;* background-color: yellow !important; color: black !important;
|
HintElem;;* background-color: yellow !important; color: black !important;
|
||||||
|
|||||||
@@ -103,6 +103,8 @@ var Highlights = Module("Highlight", {
|
|||||||
obj.set("defaultExtends", obj.defaultExtends.split(","));
|
obj.set("defaultExtends", obj.defaultExtends.split(","));
|
||||||
obj.set("agent", agent);
|
obj.set("agent", agent);
|
||||||
|
|
||||||
|
obj.set("defaultValue", Styles.append("", obj.get("defaultValue")));
|
||||||
|
|
||||||
let old = this.highlight[obj.class];
|
let old = this.highlight[obj.class];
|
||||||
this.highlight[obj.class] = obj;
|
this.highlight[obj.class] = obj;
|
||||||
// This *must* come before any other property changes.
|
// This *must* come before any other property changes.
|
||||||
|
|||||||
@@ -329,7 +329,7 @@ var Styles = Module("Styles", {
|
|||||||
|
|
||||||
let match, i = 0;
|
let match, i = 0;
|
||||||
while ((!match || match[0]) && (match = Styles.propertyPattern.exec(str)))
|
while ((!match || match[0]) && (match = Styles.propertyPattern.exec(str)))
|
||||||
if (always && !i++ || match[0])
|
if (always && !i++ || match[0] && match[3])
|
||||||
yield this.Property.fromArray(match);
|
yield this.Property.fromArray(match);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user