summaryrefslogtreecommitdiffstats
path: root/.conkerorrc
diff options
context:
space:
mode:
authorGravatar Tom Willemsen2013-02-04 20:27:24 +0100
committerGravatar Tom Willemsen2013-02-04 20:27:51 +0100
commit14a7381aa82dacf8c93e0fa33d0d035b4f633d9b (patch)
tree6e32a4bda8f232cbadad0382c373ce0d1d77db17 /.conkerorrc
parent9cd4c8ed8ca61df9a2839cb3b151b71f15c5e0a6 (diff)
downloaddotfiles-14a7381aa82dacf8c93e0fa33d0d035b4f633d9b.tar.gz
dotfiles-14a7381aa82dacf8c93e0fa33d0d035b4f633d9b.zip
conkeror: Add style for conkeror start page
Diffstat (limited to '.conkerorrc')
-rw-r--r--.conkerorrc/init.js17
-rw-r--r--.conkerorrc/styles/Makefile2
-rw-r--r--.conkerorrc/styles/help.css19
3 files changed, 31 insertions, 7 deletions
diff --git a/.conkerorrc/init.js b/.conkerorrc/init.js
index 96b5dde..6957245 100644
--- a/.conkerorrc/init.js
+++ b/.conkerorrc/init.js
@@ -23,6 +23,15 @@ function ext_title_format(window) {
+ window.buffers.current.description;
}
+function oni_add_sheet(css) {
+ let (sheet = get_home_directory()) {
+ sheet.append(".conkerorrc");
+ sheet.append("styles");
+ sheet.append(css);
+ register_user_stylesheet(make_uri(sheet));
+ };
+}
+
function oni_before_quit_func() {
var w = get_recent_conkeror_window();
var result = (w == null) ||
@@ -268,9 +277,5 @@ function read_url_local_port_handler(input)
read_url_handler_list = [read_url_local_port_handler,
read_url_github_command_handler];
-let (sheet = get_home_directory()) {
- sheet.append(".conkerorrc");
- sheet.append("styles");
- sheet.append("github.css");
- register_user_stylesheet(make_uri(sheet));
-};
+oni_add_sheet("github.css");
+oni_add_sheet("help.css");
diff --git a/.conkerorrc/styles/Makefile b/.conkerorrc/styles/Makefile
index db06cf3..fb44500 100644
--- a/.conkerorrc/styles/Makefile
+++ b/.conkerorrc/styles/Makefile
@@ -1,4 +1,4 @@
DESTDIR:=$(DESTDIR)/styles
-objects=github.css
+objects=github.css help.css
include ../../dotfiles.mk
diff --git a/.conkerorrc/styles/help.css b/.conkerorrc/styles/help.css
new file mode 100644
index 0000000..03888b6
--- /dev/null
+++ b/.conkerorrc/styles/help.css
@@ -0,0 +1,19 @@
+@-moz-document url(chrome://conkeror-help/content/help.html) {
+ body {
+ background: #111113 !important;
+ color: #eeeeec !important;
+ }
+
+ a {
+ color: #ffbb56 !important;
+ }
+
+ a:visited {
+ color: #ee82ee !important;
+ }
+
+ pre, .key {
+ background: #222224 !important;
+ font-family: "Envy Code R" !important;
+ }
+}