commit 749fd97c545ec154214a86ae71f390f0850e7dc9
parent 434e90c8222b04a1552dd967c2e1f18f6858b5af
Author: jacob@thinkpad <jacobouno@protonmail.com>
Date: Thu, 7 May 2020 15:49:40 -0700
add stylesheet, update config
Diffstat:
2 files changed, 130 insertions(+), 16 deletions(-)
diff --git a/vimb/.config/vimb/config b/vimb/.config/vimb/config
@@ -1,39 +1,95 @@
# vim: syntax=cfg
#set status-bar=false
+#set geolocation=never
#set hint-timeout=1
#set media-playback-allows-inline=false
#set spell-checking
+#set dark-mode=true
+
+set scripts=false
+set images=false
-set download-path=dl/
+# default webpage to open
set home-page=.config/homepage/index.html
-#set dark-mode=true
+
+# Path to the default download directory. If no download directory is set,
+# download will be written into current directory. The following pattern will
+# be expanded if the download is started '~/', '~user', '$VAR' and '${VAR}'.
+set download-path=~/dl/
+
+# Command with placeholder '%s' called if form field is opened with $EDITOR to
+# spawn the editor-like `x-terminal-emulator -e vim %s'. To use Gvim as the
+# editor, it's necessary to call it with `-f' to run it in the foreground.
+set editor-command=$TERMINAL -e "$EDITOR %s"
+
+# If enabled the inputbox will be hidden whenever it contains no text.
+set input-autohide=true
+
+# Enable or disable support for WebGL on pages.
+set webgl=true
+
+# While typing a search command, show where the pattern typed so far matches.
+set incsearch=true
+
+# The font family to use as the default for content that does not specify a
+# font.
+set default-font=DejaVu Sans
+
+# The font family used as the default for content using monospace font.
+set monospace-font=DejaVu Sans Mono
+
+# The font family used as the default for content using sans-serif font.
+set sans-serif-font=DejaVu Sans
+
+# The font family used as the default for content using serif font.
+set serif-font=DejaVu Serif
+
+# The default font size used to display text.
+set font-size=15
+
+# Default font size for the monospace font.
+set monospace-font-size=13
+
+# Default Full-Content zoom level in percent. Default is 100.
+set default-zoom=100
+
+# Shortcuts allow the opening of an URI built up from a named template with
+# additional parameters.
+shortcut-add duck=https://duckduckgo.com/?q=$0
+shortcut-add d=http://dict.cc/?s=$0
+shortcut-add g=https://encrypted.google.com/search?q=$0
+shortcut-add y=http://www.youtube.com/results?search_query=$0
+shortcut-add s=https://www.startpage.com/do/dsearch?query=$0
+shortcut-add searx=https://searx.be/?q=$0&categories=general&language=en-US
+
+# Set the shortcut as the default, that is the shortcut to be used if no
+# shortcut is given and the string to open is not an URI.
+shortcut-default duck
+
+# Map page zoom in normal mode to keys commonly used across applications
+# + (zoom in), - (zoom out), = (zoom reset)
+nmap + zI
+nmap - zO
+nmap = zz
+
+set completion-css=color:#fff;background-color:#000;font:10pt monospace
+set completion-selected-css=background-color:#ff0000;
+set completion-hover-css=background-color:#ff0000;
+set input-css=background-color:#000;color:#fff;font:10pt monospace
+
set accelerated-2d-canvas=true
set hardware-acceleration-policy=ondemand
-
set allow-file-access-from-file-urls=false
set allow-universal-access-from-file-urls=false
set cookie-accept=never
-
set default-font=monospace
set font-size=15
set hint-follow-last=false
set hint-keys=asdfjkl
-set images=true
-set incsearch=true
-#set geolocation=never
-set scripts=true
set scroll-step=85
set smooth-scrolling=false
set spacial-navigation=false
set strict-ssl=true
set tabs-to-links=true
-set webgl=true
set webinspector=false
-
-set dns-prefetching=true
-
-set completion-css=color:#fff;background-color:#000;font:10pt monospace
-set completion-selected-css=background-color:#ff0000;
-set completion-hover-css=background-color:#ff0000;
-set input-css=background-color:#000;color:#fff;font:10pt monospace
diff --git a/vimb/.config/vimb/style.css b/vimb/.config/vimb/style.css
@@ -0,0 +1,58 @@
+/* dark theme */
+*,div,pre,textarea,body,input,td,tr,p {
+ background-color: #0a0a10!important;
+ background-color: #111!important;
+ background-image: none !important;
+ color: #f1f1f1 !important;
+}
+h1,h2,h3,h4 {
+ /* background-color: #303030 !important; */
+ color: #ffffff !important;
+}
+a {
+ color: #fa3a3a !important;
+}
+a:hover,a:focus {
+ color: #3afa3a !important;
+}
+a:visited {
+ color: #3a3afa !important;
+}
+img {
+ opacity: .4;
+}
+img:hover {
+ opacity: 1;
+}
+
+/* Hint mode color styling
+ * Color scheme: Base16 Eighties (https://github.com/chriskempson/base16)
+ *
+ * The precedence of the user style is lower than that of the website so you
+ * have to mark your style definition to have higher priority.
+ */
+span[vimbhint^='label'] {
+ background-color: #0a0a0a !important;
+ border: 1px solid #3a3a3a !important;
+ color: #fff !important;
+ font: normal 10pt monospace !important;
+ opacity: 1 !important;
+ padding: .1em .4em !important;
+ text-transform: uppercase !important;
+}
+span[vimbhint='label focus'] {
+ font: bold 10pt monospace !important;
+}
+*[vimbhint^='hint'] {
+ background-color: #2a2a2a !important;
+ color: #5a5a5a !important;
+}
+*[vimbhint='hint focus'] {
+ background-color: #6699cc !important;
+ color: #2d2d2d !important;
+}
+
+/* disable scroll bar */
+body::-webkit-scrollbar {
+ display: none;
+}