1
0
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:
Kris Maglione
2010-12-31 22:40:33 -05:00
parent 54a3974a2a
commit ac8347dc03
3 changed files with 9 additions and 6 deletions

View File

@@ -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;

View File

@@ -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.

View File

@@ -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);
},