<?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: CSS Naming conflicts within API in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/css-naming-conflicts-within-api/m-p/703890#M65552</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;+1 to this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I had to rename the .container class in Bootstrap, which I'm sure will bite me when they update Bootstrap and I forget about it &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Nov 2013 22:35:25 GMT</pubDate>
    <dc:creator>StephenLead</dc:creator>
    <dc:date>2013-11-06T22:35:25Z</dc:date>
    <item>
      <title>CSS Naming conflicts within API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/css-naming-conflicts-within-api/m-p/703888#M65550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;While there may be other cases, the use of the class 'container' in such a generic form is causing conflicts when trying to incorporate Bootstrap styling into an ESRI map based site.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ex. within a map-display / map class : &amp;lt;div id="map_div_root" class="container".....&amp;lt;div id="map_div_container" class="container"&amp;gt;..&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the generic use of "container" generates a side effect of a max-width of the map being set by Bootstrap.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;While this can be overcome with some basic css, would using an esri- prefix within js.api generated objects all but eliminate current and future css conflicts?&amp;nbsp; Some of the more popular "add-ons" are revising their naming conventions to avoid such conflicts (Font Awesome is a great example as they just changed their icon- prefix to fa-).&amp;nbsp; Just an idea/suggestion.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Nov 2013 21:51:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/css-naming-conflicts-within-api/m-p/703888#M65550</guid>
      <dc:creator>HeathClark</dc:creator>
      <dc:date>2013-11-06T21:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: CSS Naming conflicts within API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/css-naming-conflicts-within-api/m-p/703889#M65551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;An "esri-" prefix would be awesome. You should submit that to &lt;/SPAN&gt;&lt;A href="http://ideas.arcgis.com/"&gt;http://ideas.arcgis.com/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Nov 2013 21:57:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/css-naming-conflicts-within-api/m-p/703889#M65551</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2013-11-06T21:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: CSS Naming conflicts within API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/css-naming-conflicts-within-api/m-p/703890#M65552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;+1 to this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I had to rename the .container class in Bootstrap, which I'm sure will bite me when they update Bootstrap and I forget about it &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Nov 2013 22:35:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/css-naming-conflicts-within-api/m-p/703890#M65552</guid>
      <dc:creator>StephenLead</dc:creator>
      <dc:date>2013-11-06T22:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: CSS Naming conflicts within API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/css-naming-conflicts-within-api/m-p/703891#M65553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;+1 to this.&lt;BR /&gt;&lt;BR /&gt;I had to rename the .container class in Bootstrap, which I'm sure will bite me when they update Bootstrap and I forget about it &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For what its worth:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I just added [HTML]#map_div_container, #map_div_root&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; max-width:10000000px;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}[/HTML] to my template/default .css file.&amp;nbsp; Simple solution without messing with Bootstrap.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;dh&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2013 20:40:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/css-naming-conflicts-within-api/m-p/703891#M65553</guid>
      <dc:creator>HeathClark</dc:creator>
      <dc:date>2013-11-25T20:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: CSS Naming conflicts within API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/css-naming-conflicts-within-api/m-p/703892#M65554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;As eitdhc suggested, I would just edit the default stylesheet instead of messing with bootstrap settings.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In esri.css:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;.map .container {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; border: medium none;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; height: 100%;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; left: 0;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; margin: 0;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; overflow: hidden;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; padding: 0;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; position: relative;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; top: 0;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; width: 100% &lt;/SPAN&gt;&lt;STRONG&gt;!important;&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As expected, there is no specific styling for a standalone '.container' node in esri.css. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It must be a child of a '.map' div.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2013 21:30:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/css-naming-conflicts-within-api/m-p/703892#M65554</guid>
      <dc:creator>JonathanUihlein</dc:creator>
      <dc:date>2013-11-25T21:30:09Z</dc:date>
    </item>
  </channel>
</rss>

