<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Styling zoom slider - claro.css in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/styling-zoom-slider-claro-css/m-p/661087#M61714</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi&lt;BR /&gt;I am trying to integrate a map into a customer template, using their stylesheets etc, with the Javascript API.&lt;BR /&gt;&lt;BR /&gt;I notice that if I include claro.css into my file, it styles everything on the page. It contains default styling which I simply don't want or need. &lt;BR /&gt;&lt;BR /&gt;What I really want is to have the zoom slider styled properly, but I don't see how I can achieve this without all the other CSS that I don't need.&lt;BR /&gt;&lt;BR /&gt;I'm new to ArcGIS Server and the JS API so would be grateful if someone can advise how I can access styling on the zoom slider without other styles I don't need.&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can overwrite certain style in claro.css by add your overwritten style on your page:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;style type="text/css"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.theStlyOnClaro.css&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/style&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 May 2011 13:06:35 GMT</pubDate>
    <dc:creator>HemingZhu</dc:creator>
    <dc:date>2011-05-16T13:06:35Z</dc:date>
    <item>
      <title>Styling zoom slider - claro.css</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/styling-zoom-slider-claro-css/m-p/661086#M61713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to integrate a map into a customer template, using their stylesheets etc, with the Javascript API.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I notice that if I include claro.css into my file, it styles everything on the page. It contains default styling which I simply don't want or need. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I really want is to have the zoom slider styled properly, but I don't see how I can achieve this without all the other CSS that I don't need.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm new to ArcGIS Server and the JS API so would be grateful if someone can advise how I can access styling on the zoom slider without other styles I don't need.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2011 12:37:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/styling-zoom-slider-claro-css/m-p/661086#M61713</guid>
      <dc:creator>AlistairDorman-Smith</dc:creator>
      <dc:date>2011-05-16T12:37:24Z</dc:date>
    </item>
    <item>
      <title>Re: Styling zoom slider - claro.css</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/styling-zoom-slider-claro-css/m-p/661087#M61714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi&lt;BR /&gt;I am trying to integrate a map into a customer template, using their stylesheets etc, with the Javascript API.&lt;BR /&gt;&lt;BR /&gt;I notice that if I include claro.css into my file, it styles everything on the page. It contains default styling which I simply don't want or need. &lt;BR /&gt;&lt;BR /&gt;What I really want is to have the zoom slider styled properly, but I don't see how I can achieve this without all the other CSS that I don't need.&lt;BR /&gt;&lt;BR /&gt;I'm new to ArcGIS Server and the JS API so would be grateful if someone can advise how I can access styling on the zoom slider without other styles I don't need.&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can overwrite certain style in claro.css by add your overwritten style on your page:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;style type="text/css"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.theStlyOnClaro.css&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/style&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2011 13:06:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/styling-zoom-slider-claro-css/m-p/661087#M61714</guid>
      <dc:creator>HemingZhu</dc:creator>
      <dc:date>2011-05-16T13:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: Styling zoom slider - claro.css</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/styling-zoom-slider-claro-css/m-p/661088#M61715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately that suggestion you have made is not practical. It's not feasible to redefine everything that claro.css defines, as that will mean a lot of unnecessary time being spent and extra code being generated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't really want to use claro.css anyway. I have a customer's template and branding guidelines which do the job - all I want to do is be able to style the zoom slider somehow. But unfortunately the styles seem to be locked away and I need to find a way of accessing them.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone suggest a way to style the zoom slider?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2011 07:45:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/styling-zoom-slider-claro-css/m-p/661088#M61715</guid>
      <dc:creator>AlistairDorman-Smith</dc:creator>
      <dc:date>2011-05-17T07:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: Styling zoom slider - claro.css</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/styling-zoom-slider-claro-css/m-p/661089#M61716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Thanks for the reply.&lt;BR /&gt;&lt;BR /&gt;Unfortunately that suggestion you have made is not practical. It's not feasible to redefine everything that claro.css defines, as that will mean a lot of unnecessary time being spent and extra code being generated.&lt;BR /&gt;&lt;BR /&gt;I don't really want to use claro.css anyway. I have a customer's template and branding guidelines which do the job - all I want to do is be able to style the zoom slider somehow. But unfortunately the styles seem to be locked away and I need to find a way of accessing them.&lt;BR /&gt;&lt;BR /&gt;Can anyone suggest a way to style the zoom slider?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I didn't suggest you redefine everything in the claro.css. What i said is only overwrite the style that defined the zoom slider. It is a common practice.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2011 11:40:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/styling-zoom-slider-claro-css/m-p/661089#M61716</guid>
      <dc:creator>HemingZhu</dc:creator>
      <dc:date>2011-05-17T11:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: Styling zoom slider - claro.css</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/styling-zoom-slider-claro-css/m-p/661090#M61717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think I have misunderstood your original suggestion, but I would be grateful if you could expand further.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;claro.css contains reset css for default fonts, sizes, margins etc to be used. And then it does contain - like you say - the styling for the zoom slider and popups.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But short of redefining everything, I'm not sure I follow your suggestion!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I don't want all the body.claro to be defined, but I do want classes like&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.dijitSliderButtonInner &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;which are part of the slider.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There's a good chance I'm missing something obvious here, but grateful if you could explain further!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2011 14:13:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/styling-zoom-slider-claro-css/m-p/661090#M61717</guid>
      <dc:creator>AlistairDorman-Smith</dc:creator>
      <dc:date>2011-05-17T14:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: Styling zoom slider - claro.css</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/styling-zoom-slider-claro-css/m-p/661091#M61718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I think I have misunderstood your original suggestion, but I would be grateful if you could expand further.&lt;BR /&gt;&lt;BR /&gt;claro.css contains reset css for default fonts, sizes, margins etc to be used. And then it does contain - like you say - the styling for the zoom slider and popups.&lt;BR /&gt;&lt;BR /&gt;But short of redefining everything, I'm not sure I follow your suggestion!&lt;BR /&gt;&lt;BR /&gt;If I don't want all the body.claro to be defined, but I do want classes like&lt;BR /&gt;.dijitSliderButtonInner &lt;BR /&gt;which are part of the slider.&lt;BR /&gt;&lt;BR /&gt;There's a good chance I'm missing something obvious here, but grateful if you could explain further!&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't know exactly which style you want to overwrite. If it is just simple ones like width, height etc., you could use: esri.config.defaults.map.slider={left:"30px",top:"30px",width:null,height:"200px"} or esri.config.defaults.map.sliderLabel ={tick:5,labels:null,style:"width:2em; font-family:Verdana; font-size:75%;"} in your init() to change the default slider look. if you want change specific style like .dijitSliderButtonInner in the claro.css. you could do like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;style type="text/css"&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; .dijitSliderButtonInner {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; visibility: visible; !important&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/style&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;it will overwrite .dijitSliderButtonInner in you claro.css.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2011 16:52:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/styling-zoom-slider-claro-css/m-p/661091#M61718</guid>
      <dc:creator>HemingZhu</dc:creator>
      <dc:date>2011-05-17T16:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: Styling zoom slider - claro.css</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/styling-zoom-slider-claro-css/m-p/661092#M61719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;thanks for your reply. I've attached a screenshot of the issue I have - because I haven't included claro.css in my page (to avoid getting all the unwanted reset styles), the attached image shows what my zoom slider looks like at the moment!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Not very attractive!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your reply seemed to indicate the practical option available to me is to refined the classes used to style this slider, but is there any way to find out a complete list? Maybe there is and that's a silly question but I don't know! If I open claro.css, it's a compressed css file, so hard to easily get the info out of there (again, unless I'm missing something!).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The same thing happens with my popups, so these would need to be styled too.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2011 13:54:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/styling-zoom-slider-claro-css/m-p/661092#M61719</guid>
      <dc:creator>AlistairDorman-Smith</dc:creator>
      <dc:date>2011-05-19T13:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: Styling zoom slider - claro.css</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/styling-zoom-slider-claro-css/m-p/661093#M61720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;thanks for your reply. I've attached a screenshot of the issue I have - because I haven't included claro.css in my page (to avoid getting all the unwanted reset styles), the attached image shows what my zoom slider looks like at the moment!&lt;BR /&gt;&lt;BR /&gt;Not very attractive!&lt;BR /&gt;&lt;BR /&gt;Your reply seemed to indicate the practical option available to me is to refined the classes used to style this slider, but is there any way to find out a complete list? Maybe there is and that's a silly question but I don't know! If I open claro.css, it's a compressed css file, so hard to easily get the info out of there (again, unless I'm missing something!).&lt;BR /&gt;&lt;BR /&gt;The same thing happens with my popups, so these would need to be styled too.&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;dojo css files are pretty well designed for the most parts. It is recommended that you should include in the page and overwrite those style(s) only if you don't like them. It would be nice for ESRI to have detail doc about those css so we don't spend a lot of time digging out ourself.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2011 14:35:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/styling-zoom-slider-claro-css/m-p/661093#M61720</guid>
      <dc:creator>HemingZhu</dc:creator>
      <dc:date>2011-05-19T14:35:15Z</dc:date>
    </item>
    <item>
      <title>Re: Styling zoom slider - claro.css</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/styling-zoom-slider-claro-css/m-p/661094#M61721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've now solved this issue and it turns out it was very simple!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;All the ESRI documentation that I've read tells you to apply the claro class to the body tag, but actually, I only need to apply it to the map div.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It's one of those things that is so simple, you over look it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 May 2011 12:19:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/styling-zoom-slider-claro-css/m-p/661094#M61721</guid>
      <dc:creator>AlistairDorman-Smith</dc:creator>
      <dc:date>2011-05-20T12:19:30Z</dc:date>
    </item>
    <item>
      <title>Re: Styling zoom slider - claro.css</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/styling-zoom-slider-claro-css/m-p/661095#M61722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I've now solved this issue and it turns out it was very simple!&lt;BR /&gt;All the ESRI documentation that I've read tells you to apply the claro class to the body tag, but actually, I only need to apply it to the map div.&lt;BR /&gt;&lt;BR /&gt;It's one of those things that is so simple, you over look it.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am glad that you find your solution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is logical because most of the components (slider, scale bar, pan arrow) are with the map. However, if you are using toolbar, attribute inspector, template picker etc or some other dojo coponents datagrid etc, you still need to style them. A common way is to apply the css to the body tag.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 May 2011 12:34:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/styling-zoom-slider-claro-css/m-p/661095#M61722</guid>
      <dc:creator>HemingZhu</dc:creator>
      <dc:date>2011-05-20T12:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: Styling zoom slider - claro.css</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/styling-zoom-slider-claro-css/m-p/661096#M61723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, I can see why it would be useful to apply the claro class to a wider context on the page to access other styling.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In this particular example of what I was doing I don't need that (as I was using a customer template) so this worked out well for me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm still a little weary of the theme css files setting global styles for pages, but at least I'm aware of the issue now for any future project.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 May 2011 12:51:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/styling-zoom-slider-claro-css/m-p/661096#M61723</guid>
      <dc:creator>AlistairDorman-Smith</dc:creator>
      <dc:date>2011-05-20T12:51:39Z</dc:date>
    </item>
  </channel>
</rss>

