Select to view content in your preferred language

JSON Change Background of Widget Button

2867
11
Jump to solution
10-20-2017 01:39 PM
Lake_Worth_BeachAdmin
Frequent Contributor

Whats the config to change the widget buttons background color (not the icon). 

Tags (2)
0 Kudos
11 Replies
RobertScheitlin__GISP
MVP Emeritus

Yep

RobertScheitlin__GISP
MVP Emeritus

This is what I use:

.jimu-widget-onscreen-icon {
  position: absolute;
  cursor: pointer;
  border-radius: 4px;
  background-color: rgb(34, 157, 123);
  -ms-filter: "Alpha(opacity=20)";
  background-color: rgba(34, 157, 123, 0.2);
}

.jimu-widget-onscreen-icon.jimu-state-selected {
  background-color: rgb(34, 157, 123);
  -ms-filter: "Alpha(opacity=80)";
    background-color: rgba(34, 157, 123, 0.8);
}

.jimu-widget-onscreen-icon:hover{
  background-color: rgb(34, 157, 123);
  -ms-filter: "Alpha(opacity=40)";
  background-color: rgba(34, 157, 123, 0.4);
}