Vimium: please add optional dark theme for search

Created on 25 May 2017  路  2Comments  路  Source: philc/vimium

Most helpful comment

Here is a very quick'n dirty CSS override I threw together that you can use to theme your Vomnibar. Just add it to the 'CSS for Vimium UI' section of your Vimium options.

/* Vomnibar Dark CSS (v2) */

#vomnibar ol, #vomnibar ul {
  list-style: none;
  display: none;
}

#vomnibar {
  display: block;
  position: fixed;
  width: calc(100% - 20px); /* adjusted to keep border radius and box-shadow visible*/
  /*min-width: 400px;
  top: 70px;
  left: 50%;*/
  top: 8px;
  left: 8px;
  /*margin: 0 0 0 -40%;*/
  font-family: sans-serif;

  background: #222222;
  text-align: left;
  border-radius: 4px;
  box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.8);
  border: 1px solid #222222;
  z-index: 2139999999; /* One less than hint markers and the help dialog (see ../content_scripts/vimium.css). */
}

#vomnibar input {
  color: #cecece;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 20px;
  height: 34px;
  margin-bottom: 0;
  padding: 4px;
  background-color: #333;
  border-radius: 3px;
  border: 1px solid #333;
  box-shadow: #333 0px 0px 1px;
  width: 100%;
  outline: none;
  box-sizing: border-box;
}

#vomnibar .vomnibarSearchArea {
  display: block;
  padding: 10px;
  background-color: #111;
  border-radius: 4px 4px 0 0;
  border-bottom: 1px solid #333;
}

#vomnibar ul {
  background-color: #101010;
  border-radius: 0 0 4px 4px;
  list-style: none;
  padding: 10px 0;
  padding-top: 0;
}

#vomnibar li {
  border-bottom: 1px solid #3c3c3c;
  line-height: 1.1em;
  padding: 7px 10px;
  font-size: 16px;
  color: #b7b7b7;
  position: relative;
  display: list-item;
  margin: auto;
}

#vomnibar li:last-of-type {
  border-bottom: none;
}

#vomnibar li .vomnibarTopHalf, #vomnibar li .vomnibarBottomHalf {
  display: block;
  overflow: hidden;
}

#vomnibar li .vomnibarBottomHalf {
  font-size: 15px;
  margin-top: 3px;
  padding: 2px 0;
}

#vomnibar li .vomnibarIcon {
  background-position-y: center;
  background-size: 16px;
  background-repeat: no-repeat;
  padding-left: 20px;
}

#vomnibar li .vomnibarSource {
  color: #7b7b7b;
  margin-right: 4px;
}
#vomnibar li .vomnibarRelevancy {
  position: absolute;
  right: 0;
  top: 0;
  padding: 5px;
  background-color: #797979;
  color: white;
  font-family: monospace;
  width: 100px;
  overflow: hidden;
}

#vomnibar li .vomnibarUrl {
  white-space: nowrap;
  color: #488bca;
}

#vomnibar li .vomnibarMatch {
  font-weight: bold;
  color: #50a7ea;
}

#vomnibar li em, #vomnibar li .vomnibarTitle {
  color: #999;
  margin-left: 4px;
  font-weight: normal;
}
#vomnibar li em { font-style: italic; }
#vomnibar li em .vomnibarMatch, #vomnibar li .vomnibarTitle .vomnibarMatch {
  color: #aaa;
}

#vomnibar li.vomnibarSelected {
  background-color: #222222;
  font-weight: normal;
}

#vomnibarInput::selection {
  background-color: #E6EEFB;
}

.vomnibarInsertText {
}

.vomnibarNoInsertText {
  visibility: hidden;
}

All 2 comments

Here is a very quick'n dirty CSS override I threw together that you can use to theme your Vomnibar. Just add it to the 'CSS for Vimium UI' section of your Vimium options.

/* Vomnibar Dark CSS (v2) */

#vomnibar ol, #vomnibar ul {
  list-style: none;
  display: none;
}

#vomnibar {
  display: block;
  position: fixed;
  width: calc(100% - 20px); /* adjusted to keep border radius and box-shadow visible*/
  /*min-width: 400px;
  top: 70px;
  left: 50%;*/
  top: 8px;
  left: 8px;
  /*margin: 0 0 0 -40%;*/
  font-family: sans-serif;

  background: #222222;
  text-align: left;
  border-radius: 4px;
  box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.8);
  border: 1px solid #222222;
  z-index: 2139999999; /* One less than hint markers and the help dialog (see ../content_scripts/vimium.css). */
}

#vomnibar input {
  color: #cecece;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 20px;
  height: 34px;
  margin-bottom: 0;
  padding: 4px;
  background-color: #333;
  border-radius: 3px;
  border: 1px solid #333;
  box-shadow: #333 0px 0px 1px;
  width: 100%;
  outline: none;
  box-sizing: border-box;
}

#vomnibar .vomnibarSearchArea {
  display: block;
  padding: 10px;
  background-color: #111;
  border-radius: 4px 4px 0 0;
  border-bottom: 1px solid #333;
}

#vomnibar ul {
  background-color: #101010;
  border-radius: 0 0 4px 4px;
  list-style: none;
  padding: 10px 0;
  padding-top: 0;
}

#vomnibar li {
  border-bottom: 1px solid #3c3c3c;
  line-height: 1.1em;
  padding: 7px 10px;
  font-size: 16px;
  color: #b7b7b7;
  position: relative;
  display: list-item;
  margin: auto;
}

#vomnibar li:last-of-type {
  border-bottom: none;
}

#vomnibar li .vomnibarTopHalf, #vomnibar li .vomnibarBottomHalf {
  display: block;
  overflow: hidden;
}

#vomnibar li .vomnibarBottomHalf {
  font-size: 15px;
  margin-top: 3px;
  padding: 2px 0;
}

#vomnibar li .vomnibarIcon {
  background-position-y: center;
  background-size: 16px;
  background-repeat: no-repeat;
  padding-left: 20px;
}

#vomnibar li .vomnibarSource {
  color: #7b7b7b;
  margin-right: 4px;
}
#vomnibar li .vomnibarRelevancy {
  position: absolute;
  right: 0;
  top: 0;
  padding: 5px;
  background-color: #797979;
  color: white;
  font-family: monospace;
  width: 100px;
  overflow: hidden;
}

#vomnibar li .vomnibarUrl {
  white-space: nowrap;
  color: #488bca;
}

#vomnibar li .vomnibarMatch {
  font-weight: bold;
  color: #50a7ea;
}

#vomnibar li em, #vomnibar li .vomnibarTitle {
  color: #999;
  margin-left: 4px;
  font-weight: normal;
}
#vomnibar li em { font-style: italic; }
#vomnibar li em .vomnibarMatch, #vomnibar li .vomnibarTitle .vomnibarMatch {
  color: #aaa;
}

#vomnibar li.vomnibarSelected {
  background-color: #222222;
  font-weight: normal;
}

#vomnibarInput::selection {
  background-color: #E6EEFB;
}

.vomnibarInsertText {
}

.vomnibarNoInsertText {
  visibility: hidden;
}

Thank you so much; I was having trouble creating my own theme. This gives me an excellent template. Cheers!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jkbbwr picture jkbbwr  路  3Comments

peter099 picture peter099  路  3Comments

nick-s-b picture nick-s-b  路  4Comments

Semro picture Semro  路  3Comments

haroldcarr picture haroldcarr  路  4Comments