summaryrefslogtreecommitdiff
path: root/Cydia.app/menes
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2008-12-17 07:15:36 +0000
committerJay Freeman (saurik) <saurik@saurik.com>2010-09-30 07:09:21 +0000
commit9dd60d81d336284c6d96d093b6beb4170c6a73c8 (patch)
tree507fdf0d2bf6e80287e6f5f4d3df0f7c5d6dd2fb /Cydia.app/menes
parentad5d065e7ddce3624a386d97074adea63fe48ca9 (diff)
Various interface cleanups.
Diffstat (limited to 'Cydia.app/menes')
-rw-r--r--Cydia.app/menes/menes.js45
-rw-r--r--Cydia.app/menes/style.css25
2 files changed, 52 insertions, 18 deletions
diff --git a/Cydia.app/menes/menes.js b/Cydia.app/menes/menes.js
index 70c5c47..2ca5d7d 100644
--- a/Cydia.app/menes/menes.js
+++ b/Cydia.app/menes/menes.js
@@ -190,19 +190,46 @@ $.prototype = {
});
},
- append: function (html) {
+ append: function (children) {
+ if ($.type(children) == "string")
+ $.each(this, function (node) {
+ var doc = $.document(node);
+
+ // XXX: implement wrapper system
+ var div = doc.createElement("div");
+ div.innerHTML = children;
+
+ while (div.childNodes.length != 0) {
+ var child = div.childNodes[0];
+ node.appendChild(child);
+ }
+ });
+ else
+ $.each(this, function (node) {
+ $.each(children, function (child) {
+ node.appendChild(child);
+ });
+ });
+ },
+
+ xpath: function (expression) {
+ var value = $([]);
+
$.each(this, function (node) {
var doc = $.document(node);
+ var results = doc.evaluate(expression, node, null, XPathResult.ANY_TYPE, null);
+ var result;
+ while (result = results.iterateNext())
+ value.add([result]);
+ });
- // XXX: implement wrapper system
- var div = doc.createElement("div");
- div.innerHTML = html;
+ return value;
+ },
- while (div.childNodes.length != 0) {
- var child = div.childNodes[0];
- node.appendChild(child);
- }
- });
+ clone: function (deep) {
+ return $($.map(this, function (node) {
+ return node.cloneNode(deep);
+ }));
},
descendants: function (expression) {
diff --git a/Cydia.app/menes/style.css b/Cydia.app/menes/style.css
index b067458..0397b5e 100644
--- a/Cydia.app/menes/style.css
+++ b/Cydia.app/menes/style.css
@@ -55,6 +55,8 @@
-webkit-border-radius: 0;
box-sizing: border-box;
-moz-box-sizing: border-box;
+ -ms-box-sizing: border-box;
+ -webkit-box-sizing: border-box;
font-family: inherit;
font-size: 100%;
font-style: inherit;
@@ -62,9 +64,14 @@
margin: 0;
outline: 0;
padding: 0;
+ text-decoration: none;
vertical-align: baseline;
}
+a {
+ color: inherit;
+}
+
sup {
font-size: smaller;
margin-top: -6px;
@@ -98,13 +105,8 @@ dialog > panel {
}
a {
- color: inherit;
- text-decoration: none;
- text-underline-style: dotted;
-}
-
-a {
color: blue;
+ text-underline-style: dotted;
}
strong {
@@ -241,13 +243,18 @@ fieldset > div img.icon {
}
panel > block > p,
-fieldset > div > p {
+fieldset > div > p,
+fieldset > div > ul {
margin: 11px 0;
- text-align: center;
}
fieldset > div > ul {
- margin-left: -20px;
+ margin-left: 13px;
+}
+
+panel > block > p,
+fieldset > div > p {
+ text-align: center;
}
fieldset > div > p:first-child,