conkeror: Add style for conkeror start page

This commit is contained in:
Tom Willemsen 2013-02-04 20:27:24 +01:00
parent 9cd4c8ed8c
commit 14a7381aa8
3 changed files with 31 additions and 7 deletions

View file

@ -23,6 +23,15 @@ function ext_title_format(window) {
+ window.buffers.current.description; + 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() { function oni_before_quit_func() {
var w = get_recent_conkeror_window(); var w = get_recent_conkeror_window();
var result = (w == null) || 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_handler_list = [read_url_local_port_handler,
read_url_github_command_handler]; read_url_github_command_handler];
let (sheet = get_home_directory()) { oni_add_sheet("github.css");
sheet.append(".conkerorrc"); oni_add_sheet("help.css");
sheet.append("styles");
sheet.append("github.css");
register_user_stylesheet(make_uri(sheet));
};

View file

@ -1,4 +1,4 @@
DESTDIR:=$(DESTDIR)/styles DESTDIR:=$(DESTDIR)/styles
objects=github.css objects=github.css help.css
include ../../dotfiles.mk include ../../dotfiles.mk

View file

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