Webapp builder builder - changing the widgets in header controller

1159
8
Jump to solution
09-22-2018 04:04 AM
GarethYoung1
New Contributor III

@ jgeisen Using web appbuilder dev edition (foldable theme) is there a way to change the hover colour and selected colour of the widgets in the header controller widget?

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Gareth,

   Then here are the rules for that position:

.esriOverviewMap.ovwTR .ovwContainer {
    bottom: 0px;
    right: 0px;
    border-bottom: 1px solid #0c2340;
    border-left: 1px solid #0c2340;
    padding-bottom: 2px;
    padding-left: 2px;
}‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍

.esriOverviewMap.ovwTR .ovwShow,
.esriOverviewMap.ovwBL .ovwHide {
  background: url(../images/overview.png) 0px 0px;
  background-image: url(../images/overview.png);
  background-position-x: 0px;
  background-position-y: 0px;
  background-size: initial;
  background-repeat-x: initial;
  background-repeat-y: initial;
  background-attachment: initial;
  background-origin: initial;
  background-clip: initial;
  background-color: initial;
}

.esriOverviewMap.ovwBL .ovwShow,
.esriOverviewMap.ovwTR .ovwHide {
  background: url(../images/overview.png) 0px 0px;
  background-image: url(../images/overview.png);
  background-position-x: 0px;
  background-position-y: 0px;
  background-size: initial;
  background-repeat-x: initial;
  background-repeat-y: initial;
  background-attachment: initial;
  background-origin: initial;
  background-clip: initial;
  background-color: initial;
}

The issue is ../images/overview.png resolves to themes/images/overview.png

View solution in original post

8 Replies
RobertScheitlin__GISP
MVP Emeritus

Gareth,

   The color of the selected icon is controlled by this css rule in the Headercontroller css/style.css:

.jimu-widget-header-controller .icon-node.jimu-state-selected {
    background-color: rgba(0, 0, 0, 0.3);
    opacity: 1;
    border-right-width: initial;
    border-bottom-width: initial;
    border-left-width: initial;
    border-right-color: initial;
    border-bottom-color: initial;
    border-left-color: initial;
    border-style: solid none none;
    border-image: initial;
    border-top: 2px solid rgb(132, 145, 161);
}

Notice the background-color is set to a black with with 30% alpha

This is the css rule that affects the hover:

.jimu-widget-header-controller .icon-node:hover {
    opacity: 1;
}
GarethYoung1
New Contributor III

Thanks Robert

Do you know how I can overwite the following css to change the overview map.  Below is what I have tried to implement? I added this to the commom.css under the theme.

.esriOverviewMap.ovwBR .ovwShow, .esriOverviewMap.ovwTL .ovwHide {
    background: url(../images/overview.png) 0px 0px;
    background-image: url(../images/overview.png);
    background-position-x: 0px;
    background-position-y: 0px;
    background-size: initial;
    background-repeat-x: initial;
    background-repeat-y: initial;
    background-attachment: initial;
    background-origin: initial;
    background-clip: initial;
    background-color: initial;
}
.esriOverviewMap.ovwTR .ovwContainer {
    top: 0px;
    right: 0px;
    border-bottom: 1px solid #0c2340 !Important;
    border-left: 1px solid #0c2340 !Important;
    padding-bottom: 2px;
    padding-left: 2px;
}

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Gareth,

   What corner do you have your overview configured to be shown in?

0 Kudos
GarethYoung1
New Contributor III

Top right

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Gareth,

   Then here are the rules for that position:

.esriOverviewMap.ovwTR .ovwContainer {
    bottom: 0px;
    right: 0px;
    border-bottom: 1px solid #0c2340;
    border-left: 1px solid #0c2340;
    padding-bottom: 2px;
    padding-left: 2px;
}‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍

.esriOverviewMap.ovwTR .ovwShow,
.esriOverviewMap.ovwBL .ovwHide {
  background: url(../images/overview.png) 0px 0px;
  background-image: url(../images/overview.png);
  background-position-x: 0px;
  background-position-y: 0px;
  background-size: initial;
  background-repeat-x: initial;
  background-repeat-y: initial;
  background-attachment: initial;
  background-origin: initial;
  background-clip: initial;
  background-color: initial;
}

.esriOverviewMap.ovwBL .ovwShow,
.esriOverviewMap.ovwTR .ovwHide {
  background: url(../images/overview.png) 0px 0px;
  background-image: url(../images/overview.png);
  background-position-x: 0px;
  background-position-y: 0px;
  background-size: initial;
  background-repeat-x: initial;
  background-repeat-y: initial;
  background-attachment: initial;
  background-origin: initial;
  background-clip: initial;
  background-color: initial;
}

The issue is ../images/overview.png resolves to themes/images/overview.png

RobertScheitlin__GISP
MVP Emeritus

Gareth,

Don't forget to mark this question as answered by clicking on the "Mark Correct" link on the reply that answered your question.

0 Kudos
GarethYoung1
New Contributor III

Thanks Robert.  What URL would I need to use to have the image hosted in an images folder within the Foldable Theme folder?

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Gareth,

background: url(images/overview.png) 0px 0px;
0 Kudos