Color Customization in HTML5 Viewer
Hello,
I am trying to change colors in my HTML5 viewer. I am not a developer and just found out about css files. Does anybody have any pre-written codes for setting the color of the toolbar, layer list, home panel, etc, that they can share with me? Any help would be much appreciated!
Thanks,
Denise
0
-
I should probably mention, I only want to change the colors for one site. Thanks! 0 -
What version of the viewer are you using? 0 -
I am currently running 2.9.2, although I beleive we will be upgrading to the most current version soon. Thanks! 0 -
Also, I found the css files, but this is all that is in any of them: /* Put custom styling for all shells in this file. Put custom images in the Custom subfolder of the Images directory. */
I found the following in another post and pasted it in, and it works. I just have no idea what all the properties are called that I want to customize.0 -
.HomePanelContainerView .panel-scroll-container { background-color: #e6ecff; }
0 -
If those styles do not exist in the custom/desktop.css file, you can simply add them (being careful not to put new styles inside an existing one) using this format: .panel-scroll-container { background: #ddddff; }
0 -
You can usually find the style in question by right-clicking on the place you want to change the colour of, choose 'Inspect' from the popup menu. This will open the browsers developer tools window and should highlight the object in question. It should list (location may depend on browser being used) all the styles applicable to that object. You can modify property values interactively (click on the existing values) and try out your changes before adding them to the custom .css files. 0 -
That worked perfectly! Thank you! Is there a way to change the background for the panel title, tabs, and arrow buttons, shown in the (poorly) annotated picture below, as well as the color of lines between layers? 0 -
Oh, I just saw your comment about "inspect". That helps a lot! Thank you so much Peter! 0 -
So I've had a lot of success changing the colors of most of the elements I want, but there is a sort of halo around the toggle button for the tool labels. I've tried several different things to try to match it to the color under "Tool Labels", but I've tried has worked. I feel like it has to be somewhere in div.toolbar-tab-container.bound-visible, but the only object I found that I would think it is is input.input-checkbox. However, that seemed to change the color behind the checkmark. Could it maybe be linked to another element? In case it helps, here is what I have so far: .panel-scroll-container { background-color: #f0f4ff; } .panel-title { background-color: #f0f4ff; } .panel-header-contents { background-color: #f0f4ff; } .panel-header { background-color: #3366ff; } button.chevron-right-16 { background-color: #f0f4ff; } div.layer-contents { border-bottom: 1px solid #ccd9ff; } div.filter-control { background-color: #f0f4ff; } div.button-tab-strip { background-color: #b5cfe3; } div.button-tab-strip button.tab-active { background-color: #f0f4ff; } div.toolbar-group.bound-visible { background-color: #f0f4ff; } div.toolbar-group.bound-visible { border: 1px solid #ccd9ff; } li.toolbar-tab.tb-tab-active { background-color: #f0f4ff; } li.toolbar-tab { background-color: #dbe7f0; } div.toolbar-tab-container.bound-visible { background-color: #b5cfe3; } li.toolbar-label-toggle label.gcx-toggle span.input-label { background-color: #b5cfe3; }
0 -
Hi Denise, 0 -
Hello Wayne, 0 -
Right, my mistake, I thought that's what you meant. I looked for the CSS that would control that but I couldn't find a unique selector. Maybe Peter or someone else can find one. 0 -
Denise, .toolbar-label-toggle .gcx-toggle .input-label:before { box-shadow: 0 0 0 0.275em #00F0F0; }
and change the #00F0F0 rgb value to whatever you want the background colour to be.0 -
Peter, 0 -
Does anyone know how to get rid of the sign out button and dropdown on the banner? 0 -
Hi Denise,
Wayne
0 -
Hello Wayne, 0 -
Oh OK, you can always try CSS, something like - 0 -
That worked Perfectly! Thanks, Wayne! 0 -
Does anyone know how to change the background color of the I Want To menu items (not the actual I Want To Button or the global menu items)? I've tried several different things, but the only one I tried that worked also changed the background color of the map. 0 -
what is the element name to change the color of Sign-In? 0 -
did you try adding: .wtm-list { background: #abcdef; }
to your css file? I assume that wtm = Want To Menu0 -
Thanks for the suggestion, Peter! I just tried that, but it doesn't seem to work. 0 -
@Patrick, .sign-out button, .sign-in button { color: red !important; }
0 -
@Denise, 0 -
Peter, *I Want To Menu* .wtm-list { background: #f0f4ff; }
Thanks,0 -
Denise, /* put your comments here */
0 -
Peter, 0 -
Does anybody know an easy way to change the background color of Map Tips? I was able to change the background color of most of it with the following code, but it left a white gap. div.map-tip-view-header { background-color: #f0f4ff; } div.map-tip-view-contents.region-active { background-color: #f0f4ff; }
_img_ alt="User-added image" src="https://latitudegeo--c.na53.content.force.com/servlet/rtaImage?eid=907f2000000XddO&feoid=Body&refid=0EMf2000000YBd1"_/_img_div.map-tip-view { background-color: #f0f4ff; }
Thanks,0
Please sign in to leave a comment.
Comments
32 comments