mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-05 10:45:46 +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;
|
||||
|
||||
Hint;;*;FontFixed {
|
||||
font-weight: bold !important;
|
||||
background-color: red;
|
||||
color: white;
|
||||
padding: 0px 1px;
|
||||
Hint;;* {
|
||||
font: bold 10px "Droid Sans Mono", monospace !important;
|
||||
padding: 0 1px;
|
||||
border: 1px solid black;
|
||||
background: #fff8e7;
|
||||
color: black;
|
||||
}
|
||||
Hint::after;;* content: attr(text) !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("agent", agent);
|
||||
|
||||
obj.set("defaultValue", Styles.append("", obj.get("defaultValue")));
|
||||
|
||||
let old = this.highlight[obj.class];
|
||||
this.highlight[obj.class] = obj;
|
||||
// This *must* come before any other property changes.
|
||||
|
||||
@@ -329,7 +329,7 @@ var Styles = Module("Styles", {
|
||||
|
||||
let match, i = 0;
|
||||
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);
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user