Google search results change links colors - search

I'm getting crazy to change the colours in the custom google search we have implemented at work... been researching for a few hours and nothing...
we are using this:
<div id="search">
<div id="results_007269481408127051346:b2b1fyxrklw"></div>
</div>
<script type="text/javascript">
var googleSearchIframeName = "results_007269481408127051346:b2b1fyxrklw";
var googleSearchFormName = "searchbox_007269481408127051346:b2b1fyxrklw";
var googleSearchFrameWidth = 600;
var googleSearchFrameborder = 0;
var googleSearchDomain = "www.google.com";
var googleSearchPath = "/cse";
var googleSearchResizeIframe = true;
</script>
<script type="text/javascript"
src="http://www.google.com/afsonline/show_afs_search.js"></script>
Do you know if theres any other var that I can add to these parameters to change the blue and the green color that come by default in the search?
Thanks a lot folks!

When you go to Google Webmaster Tools and then to Labs > Custom Search you can configure a new search engine. There are 4 tabs, in the second tab Look and Feel you can customize its appearance.
This style-sheet should be generated and putting this in your style-sheet should edit its appearance :)
<style type="text/css">
.gsc-control-cse {
font-family: Verdana, sans-serif;
border-color: #FF0000;
background-color: #999999;
}
.gsc-control-cse .gsc-table-result {
font-family: Verdana, sans-serif;
}
input.gsc-input {
border-color: #FFFFCC;
}
input.gsc-search-button {
border-color: #999999;
background-color: #FFCC00;
}
.gsc-tabHeader.gsc-tabhInactive {
border-color: #E9E9E9;
background-color: #E9E9E9;
}
.gsc-tabHeader.gsc-tabhActive {
border-top-color: #FF9900;
border-left-color: #E9E9E9;
border-right-color: #E9E9E9;
background-color: #FFFFFF;
}
.gsc-tabsArea {
border-color: #E9E9E9;
}
.gsc-webResult.gsc-result,
.gsc-results .gsc-imageResult {
border-color: #000000;
background-color: #660000;
}
.gsc-webResult.gsc-result:hover,
.gsc-imageResult:hover {
border-color: #009900;
background-color: #CC33CC;
}
.gsc-webResult.gsc-result.gsc-promotion:hover {
border-color: #009900;
background-color: #CC33CC;
}
.gs-webResult.gs-result a.gs-title:link,
.gs-webResult.gs-result a.gs-title:link b,
.gs-imageResult a.gs-title:link,
.gs-imageResult a.gs-title:link b {
color: #666666;
}
.gs-webResult.gs-result a.gs-title:visited,
.gs-webResult.gs-result a.gs-title:visited b,
.gs-imageResult a.gs-title:visited,
.gs-imageResult a.gs-title:visited b {
color: #C0C0C0;
}
.gs-webResult.gs-result a.gs-title:hover,
.gs-webResult.gs-result a.gs-title:hover b,
.gs-imageResult a.gs-title:hover,
.gs-imageResult a.gs-title:hover b {
color: #999999;
}
.gs-webResult.gs-result a.gs-title:active,
.gs-webResult.gs-result a.gs-title:active b,
.gs-imageResult a.gs-title:active,
.gs-imageResult a.gs-title:active b {
color: #666666;
}
.gsc-cursor-page {
color: #666666;
}
a.gsc-trailing-more-results:link {
color: #666666;
}
.gs-webResult .gs-snippet,
.gs-imageResult .gs-snippet,
.gs-fileFormatType {
color: #CCCCCC;
}
.gs-webResult div.gs-visibleUrl,
.gs-imageResult div.gs-visibleUrl {
color: #330000;
}
.gs-webResult div.gs-visibleUrl-short {
color: #330000;
}
.gs-webResult div.gs-visibleUrl-short {
display: none;
}
.gs-webResult div.gs-visibleUrl-long {
display: block;
}
.gs-promotion div.gs-visibleUrl-short {
display: none;
}
.gs-promotion div.gs-visibleUrl-long {
display: block;
}
.gsc-cursor-box {
border-color: #000000;
}
.gsc-results .gsc-cursor-box .gsc-cursor-page {
border-color: #E9E9E9;
background-color: #660000;
color: #666666;
}
.gsc-results .gsc-cursor-box .gsc-cursor-current-page {
border-color: #FF9900;
background-color: #FFFFFF;
color: #C0C0C0;
}
.gsc-webResult.gsc-result.gsc-promotion {
border-color: #336699;
background-color: #FFFFFF;
}
.gsc-completion-title {
color: #666666;
}
.gsc-completion-snippet {
color: #CCCCCC;
}
.gs-promotion a.gs-title:link,
.gs-promotion a.gs-title:link *,
.gs-promotion .gs-snippet a:link {
color: #0000CC;
}
.gs-promotion a.gs-title:visited,
.gs-promotion a.gs-title:visited *,
.gs-promotion .gs-snippet a:visited {
color: #0000CC;
}
.gs-promotion a.gs-title:hover,
.gs-promotion a.gs-title:hover *,
.gs-promotion .gs-snippet a:hover {
color: #0000CC;
}
.gs-promotion a.gs-title:active,
.gs-promotion a.gs-title:active *,
.gs-promotion .gs-snippet a:active {
color: #0000CC;
}
.gs-promotion .gs-snippet,
.gs-promotion .gs-title .gs-promotion-title-right,
.gs-promotion .gs-title .gs-promotion-title-right * {
color: #000000;
}
.gs-promotion .gs-visibleUrl,
.gs-promotion .gs-visibleUrl-short {
color: #008000;
}</style>

Related

menu location adjusment in shopify

I am hopeless and so I hope you could help us with this. I recently just bought a new theme for our site but I just want to place the menu right under the Logo As shown.
this is the screenshot and fake adjustment of what we hope we could change to
As we pressed F12 to inspect the section, we are only able to find the below code in base.css but dont know how to adjust them.
/* Header menu drawer */
.header__icon--menu .icon {
display: block;
position: absolute;
opacity: 1;
transform: scale(1);
transition: transform 150ms ease, opacity 150ms ease;
}
details:not([open]) > .header__icon--menu .icon-close,
details[open] > .header__icon--menu .icon-hamburger {
visibility: hidden;
opacity: 0;
transform: scale(0.8);
}
.js details[open]:not(.menu-opening) > .header__icon--menu .icon-close {
visibility: hidden;
}
.js details[open]:not(.menu-opening) > .header__icon--menu .icon-hamburger {
visibility: visible;
opacity: 1;
transform: scale(1.07);
}
.header__inline-menu details[open] > .header__submenu {
opacity: 1;
transform: translateY(2.7rem);
animation: animateMenuOpen var(--duration-default) ease;
}
/* Header menu */
.header__inline-menu {
margin-left: -1.2rem;
grid-area: navigation;
display: none;
}
.header__inline-menu .header__menu-item {
font-family: var(--font-header-menu-family);
font-style: var(--font-header-menu-style);
font-weight: var(--font-header-menu-weight);
text-transform: var(--font-header-menu-text-transform);
font-size: 1rem;
letter-spacing: 0.125em;
}
.header--top-center .header__heading-link {
margin-left: 0;
}
#media screen and (min-width: 990px) {
.header__inline-menu {
display: inline-block;
}
.header--middle-left .header__inline-menu {
margin-left: 0;
}
}
.header__menu {
padding: 0 1rem;
}
.header__menu-item {
overflow: hidden;
padding: 1.5rem;
text-decoration: none;
color: rgba(var(--color-foreground), 0.75);
}
.header__inline-menu .header__menu-item {
align-items: flex-start;
}
.header__menu-item > span {
position: relative;
display: flex;
flex-direction: column;
backface-visibility: hidden;
transition: var(--duration-default);
overflow: hidden;
}
.header__menu-item span:not(.header__active-menu-item) > span {
display: flex;
flex-direction: column;
backface-visibility: hidden;
transition: var(--duration-default);
}
.header__menu-item span:not(.header__active-menu-item) > span:after {
position: absolute;
transform: translateY(100%);
display: block;
content: attr(title);
color: rgba(var(--color-foreground));
}
.header__menu-item:hover span:not(.header__active-menu-item) > span {
transform: translateY(-100%);
}
.header__menu-item:hover span:not(.header__active-menu-item):after {
}
.header__menu-item .header__active-menu-item {
color: rgba(var(--color-foreground));
}
.header__icon .header__icon-name {
justify-content: flex-start;
align-items: flex-start;
overflow: hidden;
height: 1.5rem;
text-decoration: none;
font-size: 1rem;
}
.header__icon .header__icon-name span {
display: flex;
flex-direction: column;
align-items: flex-start;
height: auto;
backface-visibility: hidden;
transition: var(--duration-default);
}
.header__icon-name span:after {
display: inline-block;
content: attr(title);
margin-top: 0.8rem;
color: rgb(var(--color-foreground));
}
.header__icon:hover .header__icon-name span {
transform: translateY(calc(-50% - 0.8rem / 2));
}
.header__submenu {
transition: opacity var(--duration-default) ease;
transform: var(--duration-default) ease;
z-index: 15;
}
.header__submenu.list-menu {
padding: 0.9rem 2.2rem 0.9rem 2.2rem;
}
.header__submenu .header__menu-item:after {
right: 2rem;
}
.header__submenu .header__menu-item {
padding: 1.3rem 0;
height: auto;
}
.header__submenu .header__menu-item:hover {
color: rgba(var(--color-foreground), 1);
}
.header__submenu li:not(:last-child) {
border-bottom: 1px solid rgba(var(--color-foreground), 0.2);
}
.header__submenu .header__submenu .header__menu-item {
padding-left: 3rem;
}
.header__menu-item .icon-caret {
right: 0.8rem;
z-index: 0;
}
.header__submenu .icon-caret {
right: 0.5rem;
transform: rotate(-90deg);
}
details-disclosure > details {
position: relative;
}
#media screen and (min-width: 990px) {
.header__submenu .header__submenu .header__menu-item {
padding-left: 0;
}
}

How to list Items in rows of 3 in React

I have a list of items that I want to display in rows of 3 but it's not displaying in 3 rows. it works in the normal HTML but doesn't work in React.
Here is my Event Component
const Event = (props) => (
<div className="wrap">
<div className="tile">
<img src={props.event.eventImage} />
<div className="text">
<h1>{props.event.title}</h1>
<h2 className="animate-text">More lorem ipsum bacon ipsum.</h2>
<p className="animate-text">{props.event.description}</p>
<div className="dots">
<span />
<span />
<span />
</div>
</div>
</div>
</div>
);
export default class EventsList extends Component {
constructor(props) {
super(props);
this.state = { events: [] };
}
componentDidMount() {
axios
.get("http://localhost:9000/events/")
.then((response) => {
this.setState({ events: response.data });
})
.catch(function (error) {
console.log(error);
});
}
eventList() {
return this.state.events.map(function (currentEvent, i) {
return <Event event={currentEvent} key={i} />;
});
}
render() {
return (
<div>
<div className="row">{this.eventList()}</div>
</div>
);
}
}
and my css
.wrap {
margin: 50px auto 0 auto;
width: 100%;
display: flex;
align-items: space-around;
max-width: 1200px;
}
.tile {
width: 380px;
height: 380px;
margin: 10px;
background-color: #99aeff;
display: inline-block;
background-size: cover;
position: relative;
cursor: pointer;
transition: all 0.4s ease-out;
box-shadow: 0px 35px 77px -17px rgba(0, 0, 0, 0.44);
overflow: hidden;
color: white;
font-family: "Roboto";
}
.tile img {
height: 100%;
width: 100%;
position: absolute;
top: 0;
left: 0;
z-index: 0;
transition: all 0.4s ease-out;
}
.tile .text {
/* z-index:99; */
position: absolute;
padding: 30px;
height: calc(100% - 60px);
}
.tile h1 {
font-weight: 300;
margin: 0;
text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}
.tile h2 {
font-weight: 100;
margin: 20px 0 0 0;
font-style: italic;
transform: translateX(200px);
}
.tile p {
font-weight: 300;
margin: 20px 0 0 0;
line-height: 25px;
/* opacity:0; */
transform: translateX(-200px);
transition-delay: 0.2s;
}
.animate-text {
opacity: 0;
transition: all 0.6s ease-in-out;
}
.tile:hover {
/* background-color:#99aeff; */
box-shadow: 0px 35px 77px -17px rgba(0, 0, 0, 0.64);
transform: scale(1.05);
}
.tile:hover img {
opacity: 0.2;
}
.tile:hover .animate-text {
transform: translateX(0);
opacity: 1;
}
.dots {
position: absolute;
bottom: 20px;
right: 30px;
margin: 0 auto;
width: 30px;
height: 30px;
color: currentColor;
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-around;
}
.dots span {
width: 5px;
height: 5px;
background-color: currentColor;
border-radius: 50%;
display: block;
opacity: 0;
transition: transform 0.4s ease-out, opacity 0.5s ease;
transform: translateY(30px);
}
.tile:hover span {
opacity: 1;
transform: translateY(0px);
}
.dots span:nth-child(1) {
transition-delay: 0.05s;
}
.dots span:nth-child(2) {
transition-delay: 0.1s;
}
.dots span:nth-child(3) {
transition-delay: 0.15s;
}
#media (max-width: 1000px) {
.wrap {
flex-direction: column;
width: 400px;
}
}
This is how it's displaying.
But this is what I want to achieve.
I am new to React and I'm learning by building a project.
Here is codepen link of what I want to achieve.
Codepen Link
I have a feeling it's your css, you have your wrap class stretching the whole row width and within it, there is a tile that's only 380px.
Consider making row a grid with three columns.
Ciao, you can use display: 'in-line' like this:
return <Event event={currentEvent} key={i} style={{display: 'in-line'}}/>;

Dark theme for Perforce P4V Helix on Linux?

Is there a way to get a dark theme for the Perforce P4V Helix GUI on Ubuntu Linux 16.04 LTS?
Another dark style:
LightweightTextView
{
background-color: /*#ffffff*/ #222222;
color: #cccccc;
}
/*
Modal lists can't figure out focus well
but we can hardcode them safely
*/
DefinitionTree::branch:selected {
background-color: /*#0088CC*/ #006600;
}
DefinitionTree::branch:selected:hover {
background-color: /*#0085C7*/ #008800;
}
DefinitionTree::item:selected {
background-color: /*#0088CC*/ #006600;
}
DefinitionTree::item:selected:hover {
background-color: /*#0085C7*/ #008800;
}
TFilterView::branch:selected {
background-color: /*#0088CC*/ #006600;
}
TFilterView::branch:selected:hover {
background-color: /*#0085C7*/ #008800;
}
TFilterView::item:selected {
background-color: /*#0088CC*/ #006600;
}
TFilterView::item:selected:hover {
background-color: /*#0085C7*/ #008800;
}
UIPreferencesDialog QTreeWidget::branch:selected {
background-color: /*#0088CC*/ #006600;
}
UIPreferencesDialog QTreeWidget::branch:selected:hover {
background-color: /*#0085C7*/ #008800;
}
UIPreferencesDialog QTreeWidget::item:selected {
background-color: /*#0088CC*/ #006600;
}
UIPreferencesDialog QTreeWidget::item:selected:hover {
background-color: /*#0085C7*/ #008800;
}
QTreeView::branch:selected {
background-color: /*#0088CC*/ #006600;
}
QTreeView::branch:selected:hover {
background-color: /*#0085C7*/ #008800;
}
QTreeView::item:selected {
background-color: /*#0088CC*/ #006600;
}
QTreeView::item:selected:hover {
background-color: /*#0085C7*/ #008800;
}
QTableWidget::item:selected {
background-color: /*#0088CC*/ #006600;
}
QTableWidget:item:selected:hover {
background-color: /*#0085C7*/ #008800;
}
ConnectionPane::item:selected {
background-color: /*#0088CC*/ #006600;
}
ConnectionPane:item:selected:hover {
background-color: /*#0085C7*/ #008800;
}
QAbstractItemView {
background-color: /*#ffffff*/ #222222;
color: /*#000000*/ #cccccc;
}
QAbstractItemView[hasFocus="false"]::item:selected {
background-color: #AAAAAA;
}
QAbstractItemView[hasFocus="false"]::item:selected:hover {
background-color: #999999;
}
QAbstractItemView[hasFocus="true"]::item:selected {
background-color: /*#0088CC*/ #006600;
}
QAbstractItemView[hasFocus="true"]::item:selected:hover {
background-color: /*#0085C7*/ #008800;
}
QAbstractItemView[hasFocus="false"]::branch:selected {
background-color: #AAAAAA;
}
QAbstractItemView[hasFocus="false"]::branch:selected:hover {
background-color: #999999;
}
QAbstractItemView[hasFocus="true"]::branch:selected {
background-color: /*#0088CC*/ #006600;
}
QAbstractItemView[hasFocus="true"]::branch:selected:hover {
background-color: /*#0085C7*/ #008800;
}
QAbstractItemView::item:hover {
background: /*#F8F8F8*/ #666666;
}
QAbstractItemView::branch:hover {
background: /*#F8F8F8*/ #666666;
}
QAbstractItemView::branch:has-children:!has-siblings:closed,
QAbstractItemView::branch:closed:has-children:has-siblings {
border-image: none;
image: url(:/directory_collapsed.png);
}
QAbstractItemView::branch:open:has-children:!has-siblings,
QAbstractItemView::branch:open:has-children:has-siblings {
border-image: none;
image: url(:/directory_expanded.png);
}
QRadioButton {
color: /*#000000*/ #cccccc;
}
QCheckBox {
color: /*#000000*/ #cccccc;
}
/*
QCheckBox::indicator:unchecked {
background-color: #222222;
}
QCheckBox::indicator:checked {
background-color: #cccccc;
}
*/
QComboBox
{
selection-background-color: #5091bc;
background-color: /*#ffffff*/ #222222;
}
QComboBox:hover
{
background-color: /*#ffffff*/ #222222;
}
QComboBox:on
{
background-color: #777777;
selection-background-color: #777777;
}
QComboBox QAbstractItemView
{
background-color: /*#ffffff*/ #222222;
}
QHeaderView::section {
background-color: /*#e2edf5*/ #336633;
color: /*#5e707d*/ #cccccc;
padding: 0.125em;
border-top: 0em;
border-bottom: 0em;
border-left: 0em;
border-right: 0.062em solid #c2cfd8;
/* font-size: 11px; */
}
QLineEdit {
selection-background-color: #9ABFD9;
background-color: /*#ffffff*/ #222222;
color: /*#000000*/ #cccccc;
}
MostRecentCombo {
color: /*#000000*/ #cccccc;
}
QComboBox {
color: /*#000000*/ #cccccc;
}
QLineEdit[readOnly="true"]
{
color: /*#000000*/ #cccccc;
background: transparent;
}
QMainWindow {
background-color: #222222;
color: #cccccc;
}
QMainWindow::separator {
width: 0.062em;
height: 0.062em;
}
QMenuBar {
background-color: /*#f0f0f0*/ #202020;
selection-background-color: /*#9ABFD9*/ #606060;
color: /*#000000*/ #cccccc;
}
QMenu {
background-color: /*#ffffff*/ #202020; /* sets background of the menu */
border: 0.062em solid /*#999999*/ #666666;
padding-top: 0.31em;
}
QMenu::item {
/* sets background of menu item. set this to something non-transparent
if you want menu color and menu item color to be different */
background-color: transparent;
color: #cccccc;
}
QMenu::item:selected {
color: #ffffff;
background-color: /*#5091bc*/ #666666;
}
QMenu::item:disabled {
color: #666666;
}
QProgressBar
{
border: 0.062em solid #dddddd;
border-radius: 0em;
text-align: center;
}
QProgressBar::chunk {
background-color: #0088cc;
width: 0.62em;
margin: 0.062em;
}
QPushButton {
background-color: /*#f0f0f0*/ #444444;
color: /*black*/ #cccccc;
}
QPushButton:disabled {
color: #888888;
}
QScrollBar:horizontal {
border-top: 0.062em solid /*#dddddd*/ #000000;
background-color: /*#eeeeee*/ #444444;
height: 0.75em;
margin: 0em 0.75em 0 0.75em;
}
QScrollBar::handle:horizontal
{
background-color: /*#cccccc*/ #aaaaaa;
min-height: 1.1em;
}
QScrollBar::add-line:horizontal {
border-top: 0.062em solid /*#dddddd*/ #000000;
border-radius: 0em;
background-color: /*#eeeeee*/ #444444;
width: 0.75em;
subcontrol-position: right;
subcontrol-origin: margin;
}
QScrollBar::sub-line:horizontal {
border-top: 0.062em solid /*#dddddd*/ #000000;
border-radius: 0px;
background-color: /*#eeeeee*/ #444444;
width: 0.75em;
subcontrol-position: left;
subcontrol-origin: margin;
}
QScrollBar::left-arrow
{
height: 0.75em;
width: 0.75em;
image: url(:/scroll_left_arrow.png);
}
QScrollBar::right-arrow
{
height: 0.75em;
width: 0.75em;
image: url(:/scroll_right_arrow.png);
}
QScrollBar:vertical
{
background-color: /*#eeeeee*/ #444444;
width: 0.75em;
margin: 0.75em 0 0.75em 0;
border-left: 0.062em solid /*#dddddd*/ #000000;
}
QScrollBar::handle:vertical
{
background-color: /*#cccccc*/ #aaaaaa;
min-height: 1.1em;
border-radius: 0em;
}
QScrollBar::add-line:vertical
{
border-left: 0.062em solid /*#dddddd*/ #000000;
border-radius: 0em;
background-color: /*#eeeeee*/ #444444;
height: 0.75em;
subcontrol-position: bottom;
subcontrol-origin: margin;
}
QScrollBar::sub-line:vertical
{
border-left: 0.062em solid /*#dddddd*/ #000000;
border-radius: 0em;
background-color: /*#eeeeee*/ #444444;
height: 0.75em;
subcontrol-position: top;
subcontrol-origin: margin;
}
QScrollBar::up-arrow
{
height: 0.75em;
width: 0.75em;
image: url(:/scroll_up_arrow.png);
}
QScrollBar::down-arrow
{
height: 0.75em;
width: 0.75em;
image: url(:/scroll_down_arrow.png);
}
QSplitter {
background-color: transparent;
width: 0.4em;
height: 0.4em;
}
/* Main horizontal above log pane only*/
QSplitter#centralSplitter::handle {
height: 0.4em;
width: 0.25em;
background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 /*#a7a7a7*/ #444444, stop: 0.17 /*#a7a7a7*/ #444444,
stop: 0.18 transparent, stop: 0.83 transparent,
stop: 0.84 /*#a7a7a7*/ #444444, stop: 1.0 /*#a7a7a7*/ #444444);
}
QSplitter::handle:horizontal {
height: 0.25em;
width: 0.25em;
background-color: qlineargradient(x1: 0, y1: 0, x2: 1, y2: 0,
stop: 0 /*#a7a7a7*/ #444444, stop: 0.17 /*#a7a7a7*/ #444444,
stop: 0.18 transparent, stop: 1.0 transparent);
image: url(:/splitter_handle_horizontal.png);
}
QSplitter::handle:vertical {
height: 0.25em;
width: 0.25em;
background-color: transparent;
image: url(:/splitter_handle_vertical.png);
}
QSplitter#P4MergeSplitter::handle:vertical {
background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 /*#a7a7a7*/ #444444, stop: 0.17 /*#a7a7a7*/ #444444,
stop: 0.18 transparent, stop: 0.83 transparent,
stop: 0.84 /*#a7a7a7*/ #444444, stop: 1.0 /*#a7a7a7*/ #444444);
}
P4mSplitter {
width: 3.12em;
}
QSplitterHandle {
background-color: /*#f0f0f0*/ #000000;
}
QTabBar::tab {
color: /*#888888*/ #aaaaaa;
background-color: /*#ededed*/ #333333;
border-left: none;
border-right: 0.062em solid /*#dddddd*/ #666666;
border-bottom: 0.062em solid #555555;
min-width: 0.5em;
padding: 0.32em;
margin-bottom: 0.13em;
}
QTabBar::tab:hover {
color: /*#444444*/ #aaaaaa;
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 /*#fdfdfd*/ #444444, stop: 0.89 /*#fdfdfd*/ #444444,
stop: 0.9 /*#a7a7a7*/ #666666, stop: 1.0 /*#a7a7a7*/ #666666);
margin-bottom: 0.13em;
}
QTabBar::tab:selected {
color: /*#444444*/ #cccccc;
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 /*#fdfdfd*/ #555555, stop: 0.89 /*#fdfdfd*/ #555555,
stop: 0.9 /*#a7a7a7*/ #aaccaa, stop: 1.0 /*#a7a7a7*/ #aaccaa);
border-top-left-radius: 0em;
border-top-right-radius: 0em;
margin-bottom: 0.13em;
}
QTabBar::tab:!selected { /* make non-selected tabs look smaller */
margin-top: 0em;
}
QTabBar::tab:first:selected { /* the first selected tab has nothing to overlap with on the left */
margin-left: 0;
}
QTabBar::tab:last:selected { /* the last selected tab has nothing to overlap with on the right */
margin-right: 0;
}
QTabBar::tab:only-one { /* if there is only one tab, we don't want overlapping margins */
margin: 0;
}
QTabBar::close-button {
image: url(:/clear_icon.png);
margin-bottom: 0.25em;
}
QTabBar {
background-color: /*#f0f0f0*/ #333333;
}
QTabWidget::tab-bar {
background-color: /*#ededed*/ #222222;
left: 0em;
}
QTabWidget::pane {
border: 1px solid #666666;
}
QTextEdit[readOnly="true"]
{
color: /*#000000*/ #cccccc;
padding: 0em;
background-color: transparent;
border: 0.062em solid rgba(0,0,0,10);
}
QTextEdit[readOnly="false"]
{
color: /*#000000*/ #cccccc;
background-color: /*#ffffff*/ #222222;
}
QDialog {
background-color: /*#f0f0f0*/ #333333;
}
QToolBar {
background-color: /*#ededed*/ #333333;
padding: 0.25em;
}
QStackedWidget {
background-color: /*#f0f0f0*/ #333333;
}
QWidget#centralWidget {
background-color: /*#f0f0f0*/ #333333;
}
UISpecList {
background-color: /*#f0f0f0*/ #333333;
}
UIWorkspace2 QToolBar {
background-color: /*#ededed*/ #333333;
spacing: 0.94em;
s}
QToolBar#P4VToolBar::separator:horizontal {
height: 6.25em;
width: 0.125em;
background-color: qlineargradient(x1: 0, y1: 0, x2: 1, y2: 0,
stop: 0 /*#d8d8d8*/ #666666, stop: 0.5 /*#d8d8d8*/#666666,
stop: 0.6 /*#ffffff*/ #444444, stop: 1.0 /*#ffffff*/ #444444);
}
QToolBar#P4VToolBar::separator:vertical {
height: 0.125em;
width: 6.25em;
color: #FFFFFF;
background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 /*#d8d8d8*/ #666666, stop: 0.5 /*#d8d8d8*/#666666,
stop: 0.6 /*#ffffff*/ #444444, stop: 1.0 /*#ffffff*/ #444444);
}
QToolBar#AddressBar {
background-color: /*#ededed*/ #333333;
}
QToolBar#P4VToolBar QToolButton {
color: /*#333333*/ #cccccc;
/* font-size: 10px;*/
}
QScrollArea#filterScrollArea QWidget#filterScrollWidget {
background-color: /*#f0f0f0*/ #333333;
}
QScrollArea#filterScrollArea QToolButton {
background-color: /*#f0f0f0*/ #333333;
}
UIFilterWidget {
background-color: /*#f0f0f0*/ #333333;
}
WorkspaceStatusBar {
background-color: /*#f0f0f0*/ #333333;
color: /*#000000*/ #cccccc;
}
QFrame#ExtendedTabWidget-mCornerWidget {
background-color: /*#f0f0f0*/ #333333;
}
UIWorkspaceWidget {
background-color: /*#f0f0f0*/ #333333;
}
QFrame {
background-color: #333333;
color: #cccccc;
border-color: #000000;
}
QGroupBox {
color: #aaaaaa;
}
QToolBar#P4VToolBar QToolButton:hover {
background-color: /*#ededed*/ #333333;
color: /*#333333*/ #cccccc;
}
QToolBar#P4VToolBar QToolButton:disabled {
color: /*#cccccc*/ #666666;
}
QToolTip {
border: 0.062em solid /*#e5d36c*/ #000000;
background-color: /*#fdfdc9*/ #666666;
color: /*#000000*/ #eeeeee;
border-radius: 0em;
opacity: 250;
/* font-size: 11px;*/
}
QWidget#UIChangeWindow_QWidget {
background-color: /*#fafafa*/ #3a3a3a;
}
QWidget#InnerWidget_for_QScrollArea {
background-color: transparent;
}
RevDetails {
background-color: /*#ededed*/ #222222;
}
RevDetails QLabel {
color: #777777;
}
Gui--DirectoryTreeView {
background-color: /*#f1f4f9*/ #222222;
}
Gui--DirectoryTreeView::item:hover {
background-color: /*#E5E8ED*/ #666666;
}
Gui--DirectoryTreeView::branch:hover {
background-color: /*#E5E8ED*/ #666666;
}
UIBrowseUsersDialog {
background-color: /*#f0f0f0*/ #333333;
}
Gui--PasswordDialog {
background-color: /*#f0f0f0*/ #333333;
}
QDialogButtonBox {
background-color: transparent;
}
UISpecPicker {
background-color: /*#f0f0f0*/ #333333;
}
UIClearableComboBox QPushButton {
min-width:0em;
background-color:transparent;
}
UIConfigurationDialog {
background-color: /*#f0f0f0*/ #333333;
color: /*#888888*/ #cccccc;
}
UITabTitleWidget QStackedWidget#qt_tabwidget_stackedwidget {
background-color: /*#f1f4f9*/ #333333;
}
QStatusBar {
max-height: 1.3em;
}
Gui--FormWidget {
background-color: transparent;
}
UISpecWindow {
background-color: /*#fafafa*/ #222222;
}
UISpecWindow QLabel {
color: /*#666666*/ #aaaaaa;
}
QLabel {
color: /*#000000*/ #cccccc;
}
P4V added a dark theme option in version 2019.2.
You can activate it in the display settings (requires restart):
Edit / Preferences / Display / Application / Application color scheme
Short answer: no.
Longer answer: since P4V is built on Qt, in theory it should be possible to apply modified "styles" to it, but I have never heard of anyone doing this successfully. IIRC there are a lot of custom UI widgets that aren't style-able.
EDIT - This theme doesn't work correctly with the latest version of P4V, I recommend mokoto's answer above!
I've modified the Default.qss inside Perforce/P4VResources/skins to create my own dark theme.
I'll Post it here, I added comments and mainly just edited hex code values. Feel free to use and modify.
!https://imgur.com/a/IyvSX54
/* DARK THEME - JP */
/* Modified */
/* Log Window Text */
LightweightTextView
{
background-color: #1E1E1E;
color: #A0A0A0;
}
/* Generic Text */
QLabel {
background-color: #1E1E1E;
color: #A0A0A0;
}
/* History/Pending/Submitted Items */
QAbstractItemView {
background-color: #1E1E1E;
color: #A0A0A0;
}
/* Window In Focus */
QAbstractItemView[hasFocus="true"]::item:selected:hover {
background-color: #0085C7;
color: #D3D3D3;
}
QAbstractItemView[hasFocus="true"]::branch:selected:hover {
background-color: #0085C7;
color: #D3D3D3;
}
QAbstractItemView[hasFocus="true"]::item:selected {
background-color: #2B4D73;
color: #A0A0A0;
}
QAbstractItemView[hasFocus="true"]::branch:selected {
background-color: #2B4D73;
color: #A0A0A0;
}
/* Window Out Of Focus */
QAbstractItemView[hasFocus="false"]::item:selected:hover {
background-color: #0085C7;
color: #D3D3D3;
}
QAbstractItemView[hasFocus="false"]::branch:selected:hover {
background-color: #0085C7;
}
QAbstractItemView[hasFocus="false"]::item:selected {
background-color: #343434;
color: #A0A0A0;
}
QAbstractItemView[hasFocus="false"]::branch:selected {
background-color: #343434;
color: #A0A0A0;
}
QAbstractItemView::item:hover {
background-color: #0085C7;
color: #D3D3D3;
}
QAbstractItemView::branch:hover {
background-color: #0085C7;
color: #D3D3D3;
}
/* Expand/Collapse Icons */
QAbstractItemView::branch:has-children:!has-siblings:closed,
QAbstractItemView::branch:closed:has-children:has-siblings {
background-color: #1E1E1E;
border-image: none;
image: url(:/directory_collapsed.png);
}
QAbstractItemView::branch:open:has-children:!has-siblings,
QAbstractItemView::branch:open:has-children:has-siblings {
background-color: #1E1E1E;
border-image: none;
image: url(:/directory_expanded.png);
}
/* List Headers */
QHeaderView::section {
background-color: #404040;
color: #808080;
padding: 2px;
border-top: 0px;
border-bottom: 0px;
border-left: 0px;
border-right: 1px solid #c2cfd8;
font-size: 11px;
}
/* Text Input Boxes */
QLineEdit {
selection-background-color: #0085C7;
background-color: #5E5E5E;
color: #ffffff;
}
/* Unmodified */
/*
Modal lists can't figure out focus well
but we can hardcode them safely
*/
DefinitionTree::branch:selected {
background-color: #0088CC;
}
DefinitionTree::branch:selected:hover {
background-color: #0085C7;
}
DefinitionTree::item:selected {
background-color: #0088CC;
}
DefinitionTree::item:selected:hover {
background-color: #0085C7;
}
TFilterView::branch:selected {
background-color: #0088CC;
}
TFilterView::branch:selected:hover {
background-color: #0085C7;
}
TFilterView::item:selected {
background-color: #0088CC;
}
TFilterView::item:selected:hover {
background-color: #0085C7;
}
UIPreferencesDialog QTreeWidget::branch:selected {
background-color: #0088CC;
}
UIPreferencesDialog QTreeWidget::branch:selected:hover {
background-color: #0085C7;
}
UIPreferencesDialog QTreeWidget::item:selected {
background-color: #0088CC;
}
UIPreferencesDialog QTreeWidget::item:selected:hover {
background-color: #0085C7;
}
QTreeView::branch:selected {
background-color: #0088CC;
}
QTreeView::branch:selected:hover {
background-color: #0085C7;
}
QTreeView::item:selected {
background-color: #0088CC;
}
QTreeView::item:selected:hover {
background-color: #0085C7;
}
QTableWidget::item:selected {
background-color: #0088CC;
}
QTableWidget:item:selected:hover {
background-color: #0085C7;
}
ConnectionPane::item:selected {
background-color: #0088CC;
}
ConnectionPane:item:selected:hover {
background-color: #0085C7;
}
/*---------------------------------*/
/* NOT SURE WHAT THIS STUFF IS YET */
/*---------------------------------*/
QSplitter#P4MergeSplitter::handle:vertical {
background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 #a7a7a7, stop: 0.17 #a7a7a7,
stop: 0.18 transparent, stop: 0.83 transparent,
stop: 0.84 #a7a7a7, stop: 1.0 #a7a7a7);
}
P4mSplitter {
width: 50px;
}
QSplitterHandle {
background-color: #f0f0f0;
}
QTabBar::tab {
background-color: #1E1E1E;
color: #A0A0A0;
border-left: none;
border-right: 1px solid #dddddd;
min-width: 8ex;
padding: 5px;
margin-bottom: 2px;
}
QTabBar::close-button {
image: url(:/clear_icon.png);
margin-bottom: 4px;
}
QTabWidget::tab-bar {
background-color: #ededed;
left: 0px;
}
QToolBar {
background-color: #ededed;
padding: 4px;
}
UISpecList {
background-color: #f0f0f0;
}
QToolBar#P4VToolBar::separator:vertical {
height: 2px;
width: 100px;
color: #FFFFFF;
background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 #d8d8d8, stop: 0.5 #d8d8d8,
stop: 0.6 #ffffff, stop: 1.0 #ffffff);
}
UIFilterWidget {
background-color: #f0f0f0;
}
WorkspaceStatusBar {
background-color: #f0f0f0;
color: #000000;
}
QWidget#UIChangeWindow_QWidget {
background-color: #fafafa;
}
QWidget#InnerWidget_for_QScrollArea {
background-color: transparent;
}
RevDetails {
background-color: #ededed;
}
RevDetails QLabel {
color: #777777;
}
UIBrowseUsersDialog {
background-color: #f0f0f0;
}
Gui--PasswordDialog {
background-color: #f0f0f0;
}
QDialogButtonBox {
background-color: transparent;
}
UISpecPicker {
background-color: #f0f0f0;
}
UIClearableComboBox QPushButton {
min-width:0px;
background-color:transparent;
}
Gui--FormWidget {
background-color: transparent;
}
/*--------------------------------------------------------------------*/
/* THIS STUFF HAS BEEN MODIFIED BUT FOR SOME REASON IT CAN'T BE MOVED */
/*--------------------------------------------------------------------*/
/* Check Box */
QCheckBox {
background-color: #transparent;
color: #ffffff;
}
/* Combo Boxes */
QComboBox
{
selection-background-color: #5091bc;
background-color: #5E5E5E;
color: #ffffff;
}
QComboBox:hover
{
background-color: #8E8E8E;
color: #ffffff;
}
QComboBox:on
{
background-color: #777777;
selection-background-color: #777777;
}
QComboBox QAbstractItemView
{
background-color: #1E1E1E;
color: #ffffff;
}
MostRecentCombo {
background-color: #1E1E1E;
color: #ffffff;
}
QComboBox {
background-color: #5E5E5E;
color: #ffffff;
}
/* Read Only Text */
QLineEdit[readOnly="true"]
{
color: #ffffff;
background: transparent;
}
/* Title Bar Menu */
QMainWindow::separator {
width: 1px;
height: 1px;
}
QMenuBar {
background-color: #1E1E1E;
selection-background-color: #9ABFD9;
color: #A0A0A0;
}
QMenu {
background-color: #1E1E1E;
color: #A0A0A0;
border: 1px solid #999999;
padding-top: 5px;
}
QMenu::item {
/* sets background of menu item. set this to something non-transparent
if you want menu color and menu item color to be different */
background-color: transparent;
}
QMenu::item:selected {
color: #ffffff;
background-color: #5091bc;
}
/* Progress Bar Background */
QProgressBar
{
border: 1px solid #5E5E5E;
border-radius: 0px;
text-align: center;
}
/* Progress Bar Chunks */
QProgressBar::chunk {
background-color: #0088cc;
width: 10px;
margin: 1px;
}
/* Common Buttons */
QPushButton {
background-color: #1E1E1E;
color: #A0A0A0;
}
/* Scroll Bar Horizontal */
QScrollBar:horizontal {
border-top: 1px solid #ffffff;
background-color: #1E1E1E;
height: 13px;
margin: 0px 13px 0 13px;
}
QScrollBar::handle:horizontal
{
background-color: #5E5E5E;
min-height: 20px;
}
QScrollBar::add-line:horizontal {
border-top: 1px solid #ffffff;
border-radius: 0px;
background-color: #1E1E1E;
width: 13px;
subcontrol-position: right;
subcontrol-origin: margin;
}
QScrollBar::sub-line:horizontal {
border-top: 1px solid #ffffff;
border-radius: 0px;
background-color: #1E1E1E;
width: 13px;
subcontrol-position: left;
subcontrol-origin: margin;
}
QScrollBar::left-arrow
{
background-color: #5E5E5E;
height: 10px;
width: 10px;
image: url(:/scroll_left_arrow.png);
}
QScrollBar::right-arrow
{
background-color: #5E5E5E;
height: 10px;
width: 10px;
image: url(:/scroll_right_arrow.png);
}
/* Scroll Bar Vertical */
QScrollBar:vertical
{
background-color: #1E1E1E;
width: 13px;
margin: 13px 0 13px 0;
border-left: 1px solid #ffffff;
}
QScrollBar::handle:vertical
{
background-color: #5E5E5E;
min-height: 20px;
border-radius: 0px;
}
QScrollBar::add-line:vertical
{
border-left: 1px solid #ffffff;
border-radius: 0px;
background-color: #1E1E1E;
height: 13px;
subcontrol-position: bottom;
subcontrol-origin: margin;
}
QScrollBar::sub-line:vertical
{
border-left: 1px solid #ffffff;
border-radius: 0px;
background-color: #1E1E1E;
height: 13px;
subcontrol-position: top;
subcontrol-origin: margin;
}
QScrollBar::up-arrow
{
background-color: #5E5E5E;
height: 10px;
width: 10px;
image: url(:/scroll_up_arrow.png);
}
QScrollBar::down-arrow
{
background-color: #5E5E5E;
height: 10px;
width: 10px;
image: url(:/scroll_down_arrow.png);
}
/* Area Behind Filter Options */
QSplitter {
background-color: #1E1E1E;
width: 6px;
height: 6px;
}
/* Main horizontal above log pane only*/
QSplitter#centralSplitter::handle {
height: 6px;
width: 4px;
background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 #5E5E5E, stop: 0.17 #5E5E5E,
stop: 0.18 #5E5E5E, stop: 0.83 #5E5E5E,
stop: 0.84 #5E5E5E, stop: 1.0 #5E5E5E);
}
/* Horizontal Splitter Handle */
QSplitter::handle:horizontal {
height: 4px;
width: 4px;
background-color: qlineargradient(x1: 0, y1: 0, x2: 1, y2: 0,
stop: 0 #5E5E5E, stop: 0.17 #5E5E5E,
stop: 0.18 #5E5E5E, stop: 1.0 #5E5E5E);
image: url(:/splitter_handle_horizontal.png);
}
/* Vertical Splitter Handle */
QSplitter::handle:vertical {
height: 4px;
width: 4px;
background-color: #5E5E5E;
image: url(:/splitter_handle_vertical.png);
}
/* When hovering over a tab */
QTabBar::tab:hover {
color: #D3D3D3;
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 #ff0000, stop: 0.89 #ff0000,
stop: 0.9 #ff0000, stop: 1.0 #ff0000);
margin-bottom: 2px;
}
/* When a tab that is not the first or last has been selected */
QTabBar::tab:selected {
color: #A0A0A0;
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 #5E5E5E, stop: 0.89 #5E5E5E,
stop: 0.9 #5E5E5E, stop: 1.0 #5E5E5E);
border-top-left-radius: 0px;
border-top-right-radius: 0px;
margin-bottom: 2px;
}
/* When a tab is not selected */
QTabBar::tab:!selected { /* make non-selected tabs look smaller */
background-color: #1E1E1E;
color: #A0A0A0;
margin-top: 0px;
}
/* When the first tab has been selected */
QTabBar::tab:first:selected { /* the first selected tab has nothing to overlap with on the left */
background-color: #5E5E5E;
color: #A0A0A0;
margin-left: 0;
}
/* When the last tab has been selected */
QTabBar::tab:last:selected { /* the last selected tab has nothing to overlap with on the right */
background-color: #5E5E5E;
color: #A0A0A0;
margin-right: 0;
}
/* Single Tab Background */
QTabBar::tab:only-one { /* if there is only one tab, we don't want overlapping margins */
background-color: #5E5E5E;
color: #A0A0A0;
margin: 0;
}
/* Line Under Tabs */
QTabBar {
background-color: #1E1E1E;
}
/* Pop Up Window Text Boxes */
QTextEdit[readOnly="true"]
{
background-color: #5E5E5E;
color: #ffffff;
padding: 0px;
border: 1px solid rgba(0,0,0,10);
}
QTextEdit[readOnly="false"]
{
background-color: #5E5E5E;
color: #ffffff;
}
/* Pop Up Dialog */
QDialog {
background-color: #1E1E1E;
color: #A0A0A0;
}
/* Initial Pop Up Dialog */
QStackedWidget {
background-color: #1E1E1E;
color: #A0A0A0;
}
/* Center Sliding Widget */
QWidget#centralWidget {
background-color: #5E5E5E;
color: #A0A0A0;
}
/* Tool Bar Background */
UIWorkspace2 QToolBar {
background-color: #1E1E1E;
color: #A0A0A0;
spacing: 15px;
}
/* Tool Bar Horizontal Separator */
QToolBar#P4VToolBar::separator:horizontal {
height: 100px;
width: 2px;
color: #A0A0A0;
background-color: qlineargradient(x1: 0, y1: 0, x2: 1, y2: 0,
stop: 0 #5E5E5E, stop: 0.5 #5E5E5E,
stop: 0.6 #5E5E5E, stop: 1.0 #5E5E5E);
}
/* Address Bar Background */
QToolBar#AddressBar {
background-color: #1E1E1E;
color: #A0A0A0;
}
/* Buttons */
QToolBar#P4VToolBar QToolButton {
background-color: #1E1E1E;
color: #808080;
font-size: 10px;
}
/* Filter Panel */
QScrollArea#filterScrollArea QWidget#filterScrollWidget {
background-color: #1E1E1E;
color: #A0A0A0;
}
/* + & - buttons */
QScrollArea#filterScrollArea QToolButton {
background-color: #5E5E5E;
color: #A0A0A0;
}
/* Widget Background */
QFrame#ExtendedTabWidget-mCornerWidget {
background-color: #5E5E5E;
color: #A0A0A0;
}
/* Generic Background Space */
UIWorkspaceWidget {
background-color: #1E1E1E;
color: #A0A0A0;
}
/* Button Hover */
QToolBar#P4VToolBar QToolButton:hover {
background-color: #1E1E1E;
color: #A0A0A0;
}
/* Button Disabled */
QToolBar#P4VToolBar QToolButton:disabled {
background-color: #1E1E1E;
color: #404040;
}
/* Tool Tips */
QToolTip {
border: 1px solid #e5d36c;
background-color: #fdfdc9;
color: #000000;
border-radius: 0px;
opacity: 250;
font-size: 11px;
}
/* Depo/Workspace Panel */
Gui--DirectoryTreeView {
background-color: #1E1E1E;
color: #A0A0A0;
}
Gui--DirectoryTreeView::item:hover {
background-color: #0085C7;
color: #D3D3D3;
}
Gui--DirectoryTreeView::branch:hover {
background-color: #0085C7;
color: #D3D3D3;
}
/* Common Background */
UIConfigurationDialog {
background-color: #1E1E1E;
color: #A0A0A0;
}
/* Border for Depo/Workspace Panel */
UITabTitleWidget QStackedWidget#qt_tabwidget_stackedwidget {
background-color: #1E1E1E;
color: #A0A0A0;
}
/* Bar At Bottom Of Window */
QStatusBar {
background-color: #1E1E1E;
color: #A0A0A0;
max-height: 20px;
margin-bottom: 1px;
}
/* Pop Up Window Background */
UISpecWindow {
background-color: #1E1E1E;
}
/* Pop Up Window Text */
UISpecWindow QLabel {
color: #A0A0A0;
}
There is a very slight enhancement of your dark theme:
I changed the text much lighter color (easier to read)
I set the color of disabled elements in the menu bar to darker gray so you notice them less
I did not check the entire theme, may be there are some text area where the color might not change or changes but should not
please be indulgent if you find one of those :-)
here is the file with the modification:
/* DARK THEME - JP */
/* Modified */
/* Log Window Text */
LightweightTextView
{
background-color: #1E1E1E;
color: #A0A0A0;
}
/* Generic Text */
QLabel {
background-color: #1E1E1E;
color: #d9d9d9;
}
/* History/Pending/Submitted Items */
QAbstractItemView {
background-color: #1E1E1E;
color: #d9d9d9;
}
/* Window In Focus */
QAbstractItemView[hasFocus="true"]::item:selected:hover {
background-color: #0085C7;
color: #D3D3D3;
}
QAbstractItemView[hasFocus="true"]::branch:selected:hover {
background-color: #0085C7;
color: #D3D3D3;
}
QAbstractItemView[hasFocus="true"]::item:selected {
background-color: #2B4D73;
color: #d9d9d9;
}
QAbstractItemView[hasFocus="true"]::branch:selected {
background-color: #2B4D73;
color: #d9d9d9;
}
/* Window Out Of Focus */
QAbstractItemView[hasFocus="false"]::item:selected:hover {
background-color: #0085C7;
color: #D3D3D3;
}
QAbstractItemView[hasFocus="false"]::branch:selected:hover {
background-color: #0085C7;
}
QAbstractItemView[hasFocus="false"]::item:selected {
background-color: #343434;
color: #d9d9d9;
}
QAbstractItemView[hasFocus="false"]::branch:selected {
background-color: #343434;
color: #d9d9d9;
}
QAbstractItemView::item:hover {
background-color: #0085C7;
color: #D3D3D3;
}
QAbstractItemView::branch:hover {
background-color: #0085C7;
color: #D3D3D3;
}
/* Expand/Collapse Icons */
QAbstractItemView::branch:has-children:!has-siblings:closed,
QAbstractItemView::branch:closed:has-children:has-siblings {
background-color: #1E1E1E;
border-image: none;
image: url(:/directory_collapsed.png);
}
QAbstractItemView::branch:open:has-children:!has-siblings,
QAbstractItemView::branch:open:has-children:has-siblings {
background-color: #1E1E1E;
border-image: none;
image: url(:/directory_expanded.png);
}
/* List Headers */
QHeaderView::section {
background-color: #404040;
color: #808080;
padding: 2px;
border-top: 0px;
border-bottom: 0px;
border-left: 0px;
border-right: 1px solid #c2cfd8;
font-size: 11px;
}
/* Text Input Boxes */
QLineEdit {
selection-background-color: #0085C7;
background-color: #5E5E5E;
color: #ffffff;
}
/* Unmodified */
/*
Modal lists can't figure out focus well
but we can hardcode them safely
*/
DefinitionTree::branch:selected {
background-color: #0088CC;
}
DefinitionTree::branch:selected:hover {
background-color: #0085C7;
}
DefinitionTree::item:selected {
background-color: #0088CC;
}
DefinitionTree::item:selected:hover {
background-color: #0085C7;
}
TFilterView::branch:selected {
background-color: #0088CC;
}
TFilterView::branch:selected:hover {
background-color: #0085C7;
}
TFilterView::item:selected {
background-color: #0088CC;
}
TFilterView::item:selected:hover {
background-color: #0085C7;
}
UIPreferencesDialog QTreeWidget::branch:selected {
background-color: #0088CC;
}
UIPreferencesDialog QTreeWidget::branch:selected:hover {
background-color: #0085C7;
}
UIPreferencesDialog QTreeWidget::item:selected {
background-color: #0088CC;
}
UIPreferencesDialog QTreeWidget::item:selected:hover {
background-color: #0085C7;
}
QTreeView::branch:selected {
background-color: #0088CC;
}
QTreeView::branch:selected:hover {
background-color: #0085C7;
}
QTreeView::item:selected {
background-color: #0088CC;
}
QTreeView::item:selected:hover {
background-color: #0085C7;
}
QTableWidget::item:selected {
background-color: #0088CC;
}
QTableWidget:item:selected:hover {
background-color: #0085C7;
}
ConnectionPane::item:selected {
background-color: #0088CC;
}
ConnectionPane:item:selected:hover {
background-color: #0085C7;
}
/*---------------------------------*/
/* NOT SURE WHAT THIS STUFF IS YET */
/*---------------------------------*/
QSplitter#P4MergeSplitter::handle:vertical {
background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 #a7a7a7, stop: 0.17 #a7a7a7,
stop: 0.18 transparent, stop: 0.83 transparent,
stop: 0.84 #a7a7a7, stop: 1.0 #a7a7a7);
}
P4mSplitter {
width: 50px;
}
QSplitterHandle {
background-color: #f0f0f0;
}
QTabBar::tab {
background-color: #1E1E1E;
color: #d9d9d9;
border-left: none;
border-right: 1px solid #dddddd;
min-width: 8ex;
padding: 5px;
margin-bottom: 2px;
}
QTabBar::close-button {
image: url(:/clear_icon.png);
margin-bottom: 4px;
}
QTabWidget::tab-bar {
background-color: #ededed;
left: 0px;
}
QToolBar {
background-color: #ededed;
padding: 4px;
}
UISpecList {
background-color: #f0f0f0;
}
QToolBar#P4VToolBar::separator:vertical {
height: 2px;
width: 100px;
color: #FFFFFF;
background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 #d8d8d8, stop: 0.5 #d8d8d8,
stop: 0.6 #ffffff, stop: 1.0 #ffffff);
}
UIFilterWidget {
background-color: #f0f0f0;
}
WorkspaceStatusBar {
background-color: #f0f0f0;
color: #000000;
}
QWidget#UIChangeWindow_QWidget {
background-color: #fafafa;
}
QWidget#InnerWidget_for_QScrollArea {
background-color: transparent;
}
RevDetails {
background-color: #ededed;
}
RevDetails QLabel {
color: #777777;
}
UIBrowseUsersDialog {
background-color: #f0f0f0;
}
Gui--PasswordDialog {
background-color: #f0f0f0;
}
QDialogButtonBox {
background-color: transparent;
}
UISpecPicker {
background-color: #f0f0f0;
}
UIClearableComboBox QPushButton {
min-width:0px;
background-color:transparent;
}
Gui--FormWidget {
background-color: transparent;
}
/*--------------------------------------------------------------------*/
/* THIS STUFF HAS BEEN MODIFIED BUT FOR SOME REASON IT CAN'T BE MOVED */
/*--------------------------------------------------------------------*/
/* Check Box */
QCheckBox {
background-color: #transparent;
color: #ffffff;
}
/* Combo Boxes */
QComboBox
{
selection-background-color: #5091bc;
background-color: #5E5E5E;
color: #ffffff;
}
QComboBox:hover
{
background-color: #8E8E8E;
color: #ffffff;
}
QComboBox:on
{
background-color: #777777;
selection-background-color: #777777;
}
QComboBox QAbstractItemView
{
background-color: #1E1E1E;
color: #ffffff;
}
MostRecentCombo {
background-color: #1E1E1E;
color: #ffffff;
}
QComboBox {
background-color: #5E5E5E;
color: #ffffff;
}
/* Read Only Text */
QLineEdit[readOnly="true"]
{
color: #ffffff;
background: transparent;
}
/* Title Bar Menu */
QMainWindow::separator {
width: 1px;
height: 1px;
}
QMenuBar {
background-color: #1E1E1E;
selection-background-color: #9ABFD9;
color: #d9d9d9;
}
QMenu {
background-color: #1E1E1E;
color: #d9d9d9;
border: 1px solid #999999;
padding-top: 5px;
}
QMenu::item {
/* sets background of menu item. set this to something non-transparent
if you want menu color and menu item color to be different */
background-color: transparent;
}
QMenu::item:selected {
color: #ffffff;
background-color: #5091bc;
}
QMenu::item:disabled {
color: #8c8c8c;
}
/* Progress Bar Background */
QProgressBar
{
border: 1px solid #5E5E5E;
border-radius: 0px;
text-align: center;
}
/* Progress Bar Chunks */
QProgressBar::chunk {
background-color: #0088cc;
width: 10px;
margin: 1px;
}
/* Common Buttons */
QPushButton {
background-color: #1E1E1E;
color: #d9d9d9;
}
/* Scroll Bar Horizontal */
QScrollBar:horizontal {
border-top: 1px solid #ffffff;
background-color: #1E1E1E;
height: 13px;
margin: 0px 13px 0 13px;
}
QScrollBar::handle:horizontal
{
background-color: #5E5E5E;
min-height: 20px;
}
QScrollBar::add-line:horizontal {
border-top: 1px solid #ffffff;
border-radius: 0px;
background-color: #1E1E1E;
width: 13px;
subcontrol-position: right;
subcontrol-origin: margin;
}
QScrollBar::sub-line:horizontal {
border-top: 1px solid #ffffff;
border-radius: 0px;
background-color: #1E1E1E;
width: 13px;
subcontrol-position: left;
subcontrol-origin: margin;
}
QScrollBar::left-arrow
{
background-color: #5E5E5E;
height: 10px;
width: 10px;
image: url(:/scroll_left_arrow.png);
}
QScrollBar::right-arrow
{
background-color: #5E5E5E;
height: 10px;
width: 10px;
image: url(:/scroll_right_arrow.png);
}
/* Scroll Bar Vertical */
QScrollBar:vertical
{
background-color: #1E1E1E;
width: 13px;
margin: 13px 0 13px 0;
border-left: 1px solid #ffffff;
}
QScrollBar::handle:vertical
{
background-color: #5E5E5E;
min-height: 20px;
border-radius: 0px;
}
QScrollBar::add-line:vertical
{
border-left: 1px solid #ffffff;
border-radius: 0px;
background-color: #1E1E1E;
height: 13px;
subcontrol-position: bottom;
subcontrol-origin: margin;
}
QScrollBar::sub-line:vertical
{
border-left: 1px solid #ffffff;
border-radius: 0px;
background-color: #1E1E1E;
height: 13px;
subcontrol-position: top;
subcontrol-origin: margin;
}
QScrollBar::up-arrow
{
background-color: #5E5E5E;
height: 10px;
width: 10px;
image: url(:/scroll_up_arrow.png);
}
QScrollBar::down-arrow
{
background-color: #5E5E5E;
height: 10px;
width: 10px;
image: url(:/scroll_down_arrow.png);
}
/* Area Behind Filter Options */
QSplitter {
background-color: #1E1E1E;
width: 6px;
height: 6px;
}
/* Main horizontal above log pane only*/
QSplitter#centralSplitter::handle {
height: 6px;
width: 4px;
background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 #5E5E5E, stop: 0.17 #5E5E5E,
stop: 0.18 #5E5E5E, stop: 0.83 #5E5E5E,
stop: 0.84 #5E5E5E, stop: 1.0 #5E5E5E);
}
/* Horizontal Splitter Handle */
QSplitter::handle:horizontal {
height: 4px;
width: 4px;
background-color: qlineargradient(x1: 0, y1: 0, x2: 1, y2: 0,
stop: 0 #5E5E5E, stop: 0.17 #5E5E5E,
stop: 0.18 #5E5E5E, stop: 1.0 #5E5E5E);
image: url(:/splitter_handle_horizontal.png);
}
/* Vertical Splitter Handle */
QSplitter::handle:vertical {
height: 4px;
width: 4px;
background-color: #5E5E5E;
image: url(:/splitter_handle_vertical.png);
}
/* When hovering over a tab */
QTabBar::tab:hover {
color: #D3D3D3;
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 #ff0000, stop: 0.89 #ff0000,
stop: 0.9 #ff0000, stop: 1.0 #ff0000);
margin-bottom: 2px;
}
/* When a tab that is not the first or last has been selected */
QTabBar::tab:selected {
color: #d9d9d9;
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 #5E5E5E, stop: 0.89 #5E5E5E,
stop: 0.9 #5E5E5E, stop: 1.0 #5E5E5E);
border-top-left-radius: 0px;
border-top-right-radius: 0px;
margin-bottom: 2px;
}
/* When a tab is not selected */
QTabBar::tab:!selected { /* make non-selected tabs look smaller */
background-color: #1E1E1E;
color: #d9d9d9;
margin-top: 0px;
}
/* When the first tab has been selected */
QTabBar::tab:first:selected { /* the first selected tab has nothing to overlap with on the left */
background-color: #5E5E5E;
color: #d9d9d9;
margin-left: 0;
}
/* When the last tab has been selected */
QTabBar::tab:last:selected { /* the last selected tab has nothing to overlap with on the right */
background-color: #5E5E5E;
color: #d9d9d9;
margin-right: 0;
}
/* Single Tab Background */
QTabBar::tab:only-one { /* if there is only one tab, we don't want overlapping margins */
background-color: #5E5E5E;
color: #d9d9d9;
margin: 0;
}
/* Line Under Tabs */
QTabBar {
background-color: #1E1E1E;
}
/* Pop Up Window Text Boxes */
QTextEdit[readOnly="true"]
{
background-color: #5E5E5E;
color: #ffffff;
padding: 0px;
border: 1px solid rgba(0,0,0,10);
}
QTextEdit[readOnly="false"]
{
background-color: #5E5E5E;
color: #ffffff;
}
/* Pop Up Dialog */
QDialog {
background-color: #1E1E1E;
color: #d9d9d9;
}
/* Initial Pop Up Dialog */
QStackedWidget {
background-color: #1E1E1E;
color: #d9d9d9;
}
/* Center Sliding Widget */
QWidget#centralWidget {
background-color: #5E5E5E;
color: #d9d9d9;
}
/* Tool Bar Background */
UIWorkspace2 QToolBar {
background-color: #1E1E1E;
color: #d9d9d9;
spacing: 15px;
}
/* Tool Bar Horizontal Separator */
QToolBar#P4VToolBar::separator:horizontal {
height: 100px;
width: 2px;
color: #d9d9d9;
background-color: qlineargradient(x1: 0, y1: 0, x2: 1, y2: 0,
stop: 0 #5E5E5E, stop: 0.5 #5E5E5E,
stop: 0.6 #5E5E5E, stop: 1.0 #5E5E5E);
}
/* Address Bar Background */
QToolBar#AddressBar {
background-color: #1E1E1E;
color: #d9d9d9;
}
/* Buttons */
QToolBar#P4VToolBar QToolButton {
background-color: #1E1E1E;
color: #808080;
font-size: 10px;
}
/* Filter Panel */
QScrollArea#filterScrollArea QWidget#filterScrollWidget {
background-color: #1E1E1E;
color: #d9d9d9;
}
/* + & - buttons */
QScrollArea#filterScrollArea QToolButton {
background-color: #5E5E5E;
color: #d9d9d9;
}
/* Widget Background */
QFrame#ExtendedTabWidget-mCornerWidget {
background-color: #5E5E5E;
color: #d9d9d9;
}
/* Generic Background Space */
UIWorkspaceWidget {
background-color: #1E1E1E;
color: #d9d9d9;
}
/* Button Hover */
QToolBar#P4VToolBar QToolButton:hover {
background-color: #1E1E1E;
color: #d9d9d9;
}
/* Button Disabled */
QToolBar#P4VToolBar QToolButton:disabled {
background-color: #1E1E1E;
color: #404040;
}
/* Tool Tips */
QToolTip {
border: 1px solid #e5d36c;
background-color: #fdfdc9;
color: #000000;
border-radius: 0px;
opacity: 250;
font-size: 11px;
}
/* Depo/Workspace Panel */
Gui--DirectoryTreeView {
background-color: #1E1E1E;
color: #d9d9d9;
}
Gui--DirectoryTreeView::item:hover {
background-color: #0085C7;
color: #D3D3D3;
}
Gui--DirectoryTreeView::branch:hover {
background-color: #0085C7;
color: #D3D3D3;
}
/* Common Background */
UIConfigurationDialog {
background-color: #1E1E1E;
color: #d9d9d9;
}
/* Border for Depo/Workspace Panel */
UITabTitleWidget QStackedWidget#qt_tabwidget_stackedwidget {
background-color: #1E1E1E;
color: #d9d9d9;
}
/* Bar At Bottom Of Window */
QStatusBar {
background-color: #1E1E1E;
color: #d9d9d9;
max-height: 20px;
margin-bottom: 1px;
}
/* Pop Up Window Background */
UISpecWindow {
background-color: #1E1E1E;
}
/* Pop Up Window Text */
UISpecWindow QLabel {
color: #d9d9d9;
}

Why is my node.js etcd client getting html

My etcd instance is running locally and I can perform get and set using the cli
// set
etcdctl set /services/myservice "{\"hostname\": \"127.0.0.1\", \"port\": 3000}"
//get
etcdctl get services/myservice
// results in -> {"hostname": "127.0.0.1", "port": 3000}
but when I use the node-etc module
var Etcd = require('node-etcd');
var etcd = new Etcd(['http://localhost:2379', 'http://localhost:4001']);
etc.get('services/myservice', { wait: true}, function (err, value){
console.log(err, value);
});
I get value is HTML (see below) instead of the same result as the cli. This was working a few weeks ago so I am not sure if I have
I also find that when I don't include hosts and just use new Etcd() I get an internal HTML page with references to proxy issues: "The requested website is blocked by [insert company name] Proxy due to potential malicious activity or other security reasons."
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" data-adblockkey="MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAKrfIMFkSaoTSqKmC+BrghK0CpDHc0MuVzmMHin8LIORhpXbped+iYhSnZurWnEO0zcKcVIrzp026LVc5pMB9bUCAwEAAQ==_mHzvOc3GBNo9sxVki+5Fe+E9GsbiT2+mBIEtU+yAIW6jw6Uds6VUD5RSkqMfuUSrcw4AYCrFOWaaWSRGDzU8pw==">
<head>
<script type="text/javascript">
var abp;
</script>
<script type="text/javascript" src="http://www.http.com/px.js?ch=1"></script>
<script type="text/javascript" src="http://www.http.com/px.js?ch=2"></script>
<script type="text/javascript">
function handleABPDetect() {
try {
var imglog = document.createElement("img");
imglog.src = "http://www.http.com/rg-logabpstatus.php?a=WVpqOEdZZldDTWo4VWF0M0pNa1pBek0xQnE1WVlqR2VaQ0Frd0V4TUxmcDAvOFN2WnhHYS8weFFEeTZTRHlleTM0UFk3UDhzemxqSWFRdXlFdXpIUGc9PQ==&b=" + abp;
document.body.appendChild(imglog);
} catch (err) {}
}
try {
window.onload = handleABPDetect();
} catch (err) {}
</script>
<title>http.com</title>
<meta http-equiv="Content-Type" content="text/html; charset=">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable = no">
<style type="text/css">
* {
margin: 0;
padding: 0
}
a {
text-decoration: none;
outline: none
}
a:hover {
text-indent: 0;
cursor: pointer
}
.clearfix:after {
visibility: hidden;
display: block;
font-size: 0;
content: " ";
clear: both;
height: 0
}
* html .clearfix {
zoom: 1
}
*:first-child+html .clearfix {
zoom: 1
}
body {
font-family: Arial, Helvetica, sans-serif;
background: url(http://c.rmgserving.com/rmgpsc/7867/body-bg.gif) 0 0 repeat #000
}
/*.arrows{background:url(http://b.rmgserving.com/rmgpsc/7867/arrows.jpg)}*/
#main-wrap {
background: url(http://a.rmgserving.com/rmgpsc/7867/header-bg.jpg) top center no-repeat;
background-size: 100% 100px
}
.container {
width: 960px;
margin: 0 auto
}
.header {
height: 100px
}
/*commented for new design */
/*.leftblk{float:left; overflow:hidden}
.leftblk img{float: left; margin-top: 23px; padding-right: 15px;}*/
/*.domain_name{float:left; line-height:100px; font-size:26px; font-weight:normal; color:#fff}*/
.searchbox {
float: right;
width: 410px;
* width: 420px;
_width: 420px;
height: 28px !important;
padding-top: 2px;
margin-top: 35px;
/*padding-left:33px;background:url(http://d.rmgserving.com/rmgpsc/7868/srch-bg-caf2.gif) 0 0 no-repeat*/
}
.content {
padding-bottom: 10px;
background: #202020
}
/**RESPOSIVE CHANGES MADE HERE**/
.domain_name {
line-height: normal;
font-size: 26px;
font-weight: normal;
color: #fff;
margin-top: 35px
}
.leftblk {
float: left;
width: 39%;
word-wrap: break-word;
background: url(http://c.rmgserving.com/rmgpsc/7867/logo1.png) no-repeat center left;
padding-left: 70px;
height: 100px;
overflow: hidden;
}
.frt_arr {
float: left;
width: 30%;
height: 425px;
background: url(http://d.rmgserving.com/rmgpsc/7983/frst_arr.jpg);
background-position: 10px 70px;
background-repeat: no-repeat;
background-size: 90%
}
.lst_arr {
float: left;
width: 30%;
height: 425px;
background: url(http://b.rmgserving.com/rmgpsc/7983/last_arr.jpg);
background-position: 0px 70px;
background-repeat: no-repeat;
background-size: 90%
}
.kwd_bloack {
float: left;
width: 40%;
margin-top: 74px
}
/**RESPOSIVE CHANGES END HERE**/
.bottom_bg {
height: 44px;
/*background:#181818; */
margin-top: 34px
}
.bottom_rs {
width: 960px;
height: 44px;
overflow: hidden;
margin: 0 auto;
position: relative
}
#bot_rs {
padding-top: 9px
}
.separator {
position: absolute;
top: 0;
left: 156px;
width: 5px;
height: 44px;
border-left: 2px solid #282828;
background: url(http://a.rmgserving.com/rmgpsc/7867/sep-arw.gif) center center no-repeat
}
.footer-nav {
width: 100%;
height: 74px;
text-align: center;
color: #c0c0c0;
}
.footer-nav a {
font-size: 12px;
line-height: 74px;
color: #c0c0c0;
padding: 0 5px;
text-decoration: underline
}
.footer-nav a:hover {
text-decoration: none
}
.inquire {
text-align: right;
padding-top: 10px;
color: #fff
}
.inquire a {
font-size: 12px;
font-weight: normal;
color: #fff
}
.sale-msg {
background: #fff;
color: #4b4b4b;
text-align: center;
font-size: 14px;
width: 100%;
top: 0;
left: 0
}
.sale-msg a {
text-decoration: none;
color: #079ce9;
font-size: 14px;
}
.sale-msg a:hover,
.bottom_rs ul li a:hover,
.mid_rs ul li a:hover,
.inquire a:hover {
text-decoration: underline
}
#media not all and (min-width: 970px) {
.container {
width: 95%
}
.bottom_bg {
display: none
}
.footer-nav a {
line-height: 45px
}
}
#media not all and (min-width: 840px) {
.frt_arr {
display: none
}
.lst_arr {
display: none
}
.kwd_bloack {
float: none;
width: 95%;
margin: 0 auto;
padding-top: 10px
}
.leftblk {
float: none;
height: 50px;
background-size: 35px;
padding-left: 50px;
width: auto
}
.domain_name {
line-height: normal;
font-size: 20px;
margin-top: 0;
padding-top: 15px
}
.searchbox {
float: none;
margin-top: 10px;
padding-top: 0;
width: auto;
}
}
</style>
<script type="text/javascript" src="http://www.google.com/adsense/domains/caf.js"></script>
</head>
<body onload="" onunload="" onBeforeUnload="">
<noscript>
<meta http-equiv="refresh" content="0;url=http://www.http.com/rg-erdr.php?_rpo=t ntZzFFI&_rdm=9f1NJXf43BJvmfNf4.JvV&p=J1c4gcvmfN9ffFGoFgXoYVa%7C%40%7CbzGzTE%2C5f95zbT%2C5f95Et%7C%40%7CX55g.JvV%7C%40%7C%7C%40%7C%7C%40%7CZzbHzEZHE%7C%40%7CzHZZFTH%7C%40%7CK-%7C%40%7C19c4NW4cGFHzTEtTEGZGzTbT%7C%40%7Ct+nh8llbj%7C%40%7Ct+7zFZKFH&ga=5rKI1sSSBwFmmNY4RDXg%2BB7VS0yzNgnQ9JpHpsLHSsvFu0NyshpFxWu0exObFAo5IdFZQrTZujcZjrXONxp3PxtPV7ezER14zh7kWG69e5lf08niAgSfUKiyBSByBIQgw92X314XjQy5h09a65wi7JIhzrLV0PReUb%2F7SMvquCNLeg70qvVfr7kkYTx9Z4NO&t=gnojs" />
<center>
<p style="padding:1em; font-size:1.5em;">For search results please CLICK HERE.</p>
</center>
</noscript>
<script type="text/javascript" language="javascript">
function __gpup(url, height, width, name) {
sw = window.open(url, name, 'height=' + height + ',width=' + width + ',location=no,toolbar=0,resizable=1,scrollbars=1');
if (window.focus) {
sw.focus()
};
return false;
};
</script>
<script text="text/javascript">
var design = {
'pageOptions': {
'pubId': '',
'resultsPageBaseUrl': '',
'fontFamily': 'arial',
'hl': 'en',
'maxTermLength': 29,
'adtest': 'on',
'clicktrackUrl': '',
'fontFamilyAttribution': 'arial',
'type': 'pageoptions',
'pageLoadedCallback': function(requestAccepted, status) {
document.body.style.visibility = 'visible';
if (!requestAccepted) {}
}
},
'searchboxBlock': {
'container': 'searchbox',
'type': 'searchbox',
'fontSizeSearchInput': 16,
'fontSizeSearchButton': 13,
'widthSearchInput': 215,
'colorSearchButton': '#e2e2e2',
'hideSearchInputBorder': false,
'hideSearchButtonBorder': false
},
'mainrs': {
'container': 'main_rs',
'type': 'relatedsearch',
'colorBackground': 'transparent',
'number': 6,
'fontSizeTitle': 19,
'titleBold': true,
'colorTitleLink': '#079ce9',
'noTitleUnderline': false,
'lineHeightTitle': 30,
'fontFamily': 'arial',
'horizontalAlignment': 'center',
'fontSizeAttribution': 13,
'colorAttribution': '#ababab',
'attributionBold': true,
'attributionUppercase': false,
'attributionSpacingBelow': 36,
'rolloverLinkUnderline': false,
'rolloverLinkColor': '#00c800',
'colorAdSeparator': '#202020'
}
};
</script>
<div id="main-wrap" class="clearfix">
<div class="container clearfix">
<div class="header clearfix">
<div class="leftblk">
<!-- <img src="http://c.rmgserving.com/rmgpsc/7867/logo1.png" /> -->
<h3 class="domain_name">http.com</h3>
</div>
<div class="searchbox clearfix" id="searchbox"></div>
</div>
<div class="content clearfix">
<div class="arrows frt_arr"></div>
<div class="kwd_bloack clearfix" id="main_rs"></div>
<div class="arrows lst_arr"></div>
</div>
</div>
<div class="bottom_bg clearfix">
<div class="bottom_rs clearfix">
<!--<span class="separator"></span>-->
</div>
</div>
<div class="footer-nav">
Privacy Policy </div>
</div>
<script type="text/javascript" language="javascript">
window._debug = false;
window._dumpdata = false;
var _cflp = true;
var pgld = true;
var totRS = -1;
var cntRS = 0;
var _cfstc = false;
var _cfblocker = true;
var _cfrg = true;
var _cfHelp = _cfHelp || {};
_cfHelp.design = design || {};
_cfHelp.servVars = {
"webadfl": "webads.php",
"_clhdl": "http:\/\/www.http.com\/rg-cltrack.php?&gr=%5B%7Crdr_url%7C%5D&gm=1WHI0lwrG0Sxkx4PsD8qyCOUd1dkaI2X1l8SGG1fMSd7bfeWMBF%2FyegsqR%2BZliS%2FkmMLg273bT8VsQ1oofKDtwu2BLulOOE9e9f%2FGbKVB3y9mwzTRLUiokCVqtb5Zk84C2EVcNaF2G3r9Bp3RsH1xfXrZC%2BE8YGoveyKL4ONQKcLbTlODzh%2BgHyFxmaFdMqH&gc=11101851242258318844884&gi=XYb9MaQozttVcq86LfylD8RNPuvlew8QArHjQzucy26g%2BlAY%2F2uHYh%2BA6ff50kcc1PxTBiLUWCU4jHCv3wduaWHfl%2Fk8mkRKtWu8EB0jglLzw7eeSqi3ynxhbG7655Fy%2FLKMke6nBiTt%2FuiCvqlrvF1W%2F0MGzePy07JWvEsPuPqNBujvQaw3gGby3VkjIxfm2atlkRoPbyOyKYholPIgVyyBcIBJQvM3kSCiRXOyaMpxjTprto%2B0LbFQmRT0%2Bv05GchdCqw0KwcBJr1GshmWISk5vXG28qmhuRBFtwmFZTdpEHObgOZuOhjtcRKzp6QcLHJxeH43ucmzlzBBC8rUhA%3D%3D",
"kchst": "http:\/\/www.http.com\/",
"kcpg": "render",
"kcprm": "ga=5rKI1sSSBwFmmNY4RDXg%2BB7VS0yzNgnQ9JpHpsLHSsvFu0NyshpFxWu0exObFAo5IdFZQrTZujcZjrXONxp3PxtPV7ezER14zh7kWG69e5lf08niAgSfUKiyBSByBIQgw92X314XjQy5h09a65wi7JIhzrLV0PReUb%2F7SMvquCNLeg70qvVfr7kkYTx9Z4NO&gqsg=4OVo54jg6Fc8v4dgaRWvLlUoQfiT9l0g4KypdpyKIkp3XttitvahDJPyd8JV8AMP&maxads=0&gerf=NIVtBZ66fMb06L%2FzgSYcSUpDtBcVFLddp21rUKg8Zvs%3D&wait=true",
"jtchdl": "0",
"lkwtkn": null,
"qry": null,
"cntry": "IE",
"prvid": 1566375,
"lgky": "VFJIcUJEQUZtMGQ3dVY0amZaMmFIVi8vL2g2WUVmRkQxNVp6eEJRcSs1WFl3K3cvZFFISS9aN1Y4NE1KamNIUi95TW04Q3p6ek9RejR1N1pRemlJS1hORjIzNEF2Z3d3TGkyUGhGNkJxREdyRDJLNzZoWVMraXd0cFZGK1hiWTY5aGNYRTlmOHlDa3E5bmpLTHRtelJ3PT0%3D",
"_aftrprss": "",
"wclhdl": "http:\/\/www.http.com\/webclk?&gr=%5B%7Crdr_url%7C%5D&gm=N3DjGjxerDa%2B8Ln3%2B884CDaIWdGzXLcE6PGovrvm8cwEqFKj9%2FsSAw13RemOENdu59z53RIAX7qKedB%2BbC7k6lI6gFbOxQR7qkhujpZqsJMhUo0JnsgwBv6eY8R4QxT34RDgzTHG7pSdzqCdYGLMkjkrWeoByyf1I3drNmqLJoXF8CRTdNMoZwb5HxP8G2KL&gc=11101851242258318844501&gi=3asGzSvNXUezIegH6SkVMB9oHMTe%2BRtyB0XjQzqrg%2BegxXIIXBBR%2FNpmg%2FEpOC3SbbpbaUmlcSRdngRk3viiaUqqjkydC5SRcNAQIHAVCSz4CcvOsJgD4kJKepiaVN2MkCXSlbZfRbnV4Lj3QWLNCEpoUpJaD8GoKU2ZiKd%2B2wDKToaj236za8yEZZnAejv7CqvZi7bAnoT7LFHAT4YfVQYDvpwbpObRothY86AABfVVWr%2BDuudu2Z1HgnO7kRUJx945jHKd%2BHgj7szCxsb6xBb7wBlUblacTda5uwQKPLtiF5n7ChXCCJTf%2BYsC%2FDDegcmi71Z8FBC6SLSZ%2FYvsJQ%3D%3D",
"is_webad_enabled": 0,
"loaderimage": "http:\/\/c.rmgserving.com\/rmgisc\/loader.gif",
"_afdad": 1,
"noredir": 0,
"erpub": "oversee11_3ph_adult_xml",
"erch": "372",
"erpubcln": "ca-dp-oversee11_3ph_xml",
"erchcln": "000307",
"ghu": "http:\/\/www.http.com\/rg-erdr.php?_rpo=t ntZzFFI&_rdm=9f1NJXf43BJvmfNf4.JvV&p=J1c4gcvmfN9ffFGoFgXoYVa%7C%40%7CbzGzTE%2C5f95zbT%2C5f95Et%7C%40%7CX55g.JvV%7C%40%7C%7C%40%7C%7C%40%7CZzbHzEZHE%7C%40%7CzHZZFTH%7C%40%7CK-%7C%40%7C19c4NW4cGFHzTEtTEGZGzTbT%7C%40%7Ct+nh8llbj%7C%40%7Ct+7zFZKFH&ga=5rKI1sSSBwFmmNY4RDXg%2BB7VS0yzNgnQ9JpHpsLHSsvFu0NyshpFxWu0exObFAo5IdFZQrTZujcZjrXONxp3PxtPV7ezER14zh7kWG69e5lf08niAgSfUKiyBSByBIQgw92X314XjQy5h09a65wi7JIhzrLV0PReUb%2F7SMvquCNLeg70qvVfr7kkYTx9Z4NO"
};
_cfHelp.newOpts = {
"pageoptions": {
"kw": "http",
"pubId": "dp-oversee32_3ph_xml",
"channel": "012174,test107,test49",
"hl": "",
"adtest": "off",
"resultsPageBaseUrl": "http:\/\/www.http.com\/?ga=5rKI1sSSBwFmmNY4RDXg%2BB7VS0yzNgnQ9JpHpsLHSsvFu0NyshpFxWu0exObFAo5IdFZQrTZujcZjrXONxp3PxtPV7ezER14zh7kWG69e5lf08niAgSfUKiyBSByBIQgw92X314XjQy5h09a65wi7JIhzrLV0PReUb%2F7SMvquCNLeg70qvVfr7kkYTx9Z4NO&gqsg=4OVo54jg6Fc8v4dgaRWvLlUoQfiT9l0g4KypdpyKIkp3XttitvahDJPyd8JV8AMP&maxads=0&gerf=1NwSv6zgpkznlToCcC1LUPxAge73x0kzNUyoFwPpLQw%3D&wait=true",
"clicktrackUrl": "http:\/\/www.http.com\/rg-cltrack.php?&gr=http%3A%2F%2Fgoogle.com%2F%3FRMGcaf%261437578625&gm=lCHzRGQVmF5GbI%2FoJNvHO9F0H1pK6b4imVg4sD83gr0zwhCg7kUY7A5JisFIua0ovWZYB4g4CbZlK6DDWhXlYS%2FoGwafEe2w6vLAAhtarOqSrags%2FXIb7w%2BHM0BEJgeyKmMXhVQya9xYRoVUupKo7SfWKOP26QW4BeaSRA7pvaleohDknqEJ8irgK41FOPBr&gc=11101851242258318844252&gi=dqJeJ2LIBm6EoVjrQxF%2FslKeVO2MMfAIGz5LwKTbfKTDn9L7haFS7W3vKNwbjSGhC5JthqkexETQM8mEun%2F4M5TCzM0Vphb237zGYUpoBtB1%2BdaJoSRcYUFKnr9lF6i32soKngUvevO7DHx9BHSz7sCMXYPLkJicrRb7WxfYNRWz0plNCCbrW8HYaPbhclR9gVbhSwIUdzpMjwGFrNyh%2B9iqRYF%2BX0wFzLunKbgTnLdmXJuP0Vm%2BjkU%2BC4rprcocV7pcHhlR0%2FKP2vHSKAlWTPcuCA9P04LbPqttMcdlol%2Fpm%2BAeIg79dx%2Bb28yVLKBEpMifhq6%2BT%2B2LndQdLFX%2FCoMvHjee%2BMfVwkRgY8%2F9hqFI%2B9UvBLgcgjCtTYSruCn7",
"domainRegistrant": "as-drid-2351749742621707",
"optimizeTerms": false,
"terms": "[\"Domain Registration\",\"Network Monitoring\",\"Email Hosting\",\"Website Hosting\",\"Network Monitoring Software\",\"High Speed internet\",\"Cable Internet\",\"Broadband Internet\",\"Web Security\",\"Dial-Up Internet\",\"Wireless Internet Providers\",\"Unlimited Broadband\",\"Internet Speed Check\",\"Compare Broadband\",\"Cheap Internet Service\",\"Best Broadband Deals\",\"Internet Solutions\",\"Internet Music\",\"Internet Help\",\"Internet Telephony\",\"Business Internet Providers\",\"Broadband Availability\",\"Prepaid Wireless Internet\",\"Internet Florists\",\"Mobile Wireless Internet\"]",
"uiOptimize": false,
"domainName": "http.com"
},
"relatedsearch": {
"adLoadedCallback": function(cnm, ld) {
if (pgld && !ld && _cfrg && !_cfstc && _cflp) {
cntRS++;
if (cntRS >= totRS && totRS != -1) {
window.location = "http://www.http.com/?_stc_=1"
}
}
}
},
"textads": {
"adLoadedCallback": function(cnm, ld) {}
},
"imagead": {
"adLoadedCallback": function(cnm, ld) {}
},
"ads": {
"adLoadedCallback": function(cnm, ld) {}
}
};
_cfHelp.newOpts.pageoptions["pageLoadedCallback"] = function(requestAccepted, status) {
this.onPageLoad(requestAccepted, status);
_cfblocker = false
};
try {
if (abp) {
_cfHelp.newOpts.pageoptions['channel'] = _cfHelp.newOpts.pageoptions['channel'] + ',test101'
}
} catch (e) {}
</script>
<script type="text/javascript" src="http://a.rmgserving.com/rmgdsc/newcafv2.js?1.1"></script>
</body>
</html>

Visited link is changing the color of hover

I am really confused... I have this code:
a {
float: left;
padding: 5px 20px;
}
a:link {
text-decoration: none;
color: #008B45;
}
a:hover {
color: #00FF00;
font-weight: bold;
}
a:visited {
color: #EE9A00;
}
but the link after I visited it the a links are not changin the color according to a:hover... why?
Thank you
I don't know exactly why but I guess it's because the attribute :visited is preferred to :hover. In order to make this work you have to add "!important" at the end of the color statement. Like this:
a {
float: left;
padding: 5px 20px;
}
a:link {
text-decoration: none;
color: #008B45;
}
a:hover {
color: #00FF00 !important;
font-weight: bold;
}
a:visited {
color: #EE9A00;
}

Resources