<?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: Where should other css files be placed? in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/where-should-other-css-files-be-placed/m-p/780440#M2562</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Terry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Did you create a new .css file or did you just add you new css rules to the existing style.css?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;If you want all new apps that use your widget to have this css then yes you need to place it in the stemApp as well.&lt;/LI&gt;&lt;LI&gt;That depends on the answer to my question above. Normally if you just add the css rule to the style.css then if you have the css rule selector correct it will just get applied. If you have created a new something.css then you have to import that css style sheet to your code (I have never had the need to do this as I always just add the rule to the existing style.css).&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Aug 2015 17:02:48 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2015-08-05T17:02:48Z</dc:date>
    <item>
      <title>Where should other css files be placed?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/where-should-other-css-files-be-placed/m-p/780437#M2559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where is the best place to put other css files, such as bootstrap.css etc? How does one make the custom widget refer to these stylesheets?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Putting them anywhere in the WAB folder and then doctoring the \client\stemapp\init.js by adding references in the resources object works, but feels like a hack. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;resources = resources.concat([&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; window.apiUrl + 'dojo/resources/dojo.css',&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; window.apiUrl + 'dijit/themes/claro/claro.css',&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; window.apiUrl + 'esri/css/esri.css',&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; window.apiUrl + 'dojox/layout/resources/ResizeHandle.css',&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; window.path + 'jimu.js/css/jimu.css',&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; window.path + 'libs/jquery-2.1.1.min.js&lt;/P&gt;&lt;P&gt;]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have a more elegant solution?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jun 2015 02:09:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/where-should-other-css-files-be-placed/m-p/780437#M2559</guid>
      <dc:creator>AndrewTerwiel</dc:creator>
      <dc:date>2015-06-19T02:09:12Z</dc:date>
    </item>
    <item>
      <title>Re: Where should other css files be placed?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/where-should-other-css-files-be-placed/m-p/780438#M2560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If these CSS files are used by only one widget, it's better to put them in widget's folder. But if they are shared, resources array is a good place to put.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a topic about loading 3rd resource.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/158966"&gt;Uncaught Error: Bootstrap's JavaScript requires jQuery&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jun 2015 09:01:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/where-should-other-css-files-be-placed/m-p/780438#M2560</guid>
      <dc:creator>JunshanLiu</dc:creator>
      <dc:date>2015-06-19T09:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: Where should other css files be placed?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/where-should-other-css-files-be-placed/m-p/780439#M2561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I created my css. in the custom widget/css folder.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; do I need it in the stemapp section as well as the project section?&lt;/P&gt;&lt;P&gt;2. how do I call the new css so that it overrides a previous css?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2015 14:24:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/where-should-other-css-files-be-placed/m-p/780439#M2561</guid>
      <dc:creator>TerryGustafson</dc:creator>
      <dc:date>2015-08-05T14:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: Where should other css files be placed?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/where-should-other-css-files-be-placed/m-p/780440#M2562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Terry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Did you create a new .css file or did you just add you new css rules to the existing style.css?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;If you want all new apps that use your widget to have this css then yes you need to place it in the stemApp as well.&lt;/LI&gt;&lt;LI&gt;That depends on the answer to my question above. Normally if you just add the css rule to the style.css then if you have the css rule selector correct it will just get applied. If you have created a new something.css then you have to import that css style sheet to your code (I have never had the need to do this as I always just add the rule to the existing style.css).&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2015 17:02:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/where-should-other-css-files-be-placed/m-p/780440#M2562</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-08-05T17:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: Where should other css files be placed?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/where-should-other-css-files-be-placed/m-p/780441#M2563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I would like to just add the rules to the existing style.css.  Where do I place the rule selector so that it overrides the dgrid.css?  I would think the style.css for the widget I’m working on would get called somewhere but I’m struggling to understand where..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2015 17:39:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/where-should-other-css-files-be-placed/m-p/780441#M2563</guid>
      <dc:creator>TerryGustafson</dc:creator>
      <dc:date>2015-08-05T17:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: Where should other css files be placed?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/where-should-other-css-files-be-placed/m-p/780442#M2564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Terry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Assuming you are using the dgrid in your widgets code then the fact that you have a css rule in your widgets style.css means that it will override the default dgrids css. Once again assuming that you are using the proper css selector syntax.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2015 17:51:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/where-should-other-css-files-be-placed/m-p/780442#M2564</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-08-05T17:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: Where should other css files be placed?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/where-should-other-css-files-be-placed/m-p/780443#M2565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is what my style.css looks like.   All I added was the .dgrid at the bottom..  Hoping it would override the previous css request but it seems to get overridden when I look at the developer tool.  Here is a snap shot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@import url("../common.css");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.jimu-widget-geoprocessing&lt;SPAN __jive_macro_name="height"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;.jimu-widget-geoprocessing .jimu-viewstack&lt;SPAN __jive_macro_name="padding"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;.jimu-widget-geoprocessing .section&lt;SPAN __jive_macro_name="overflow"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;.jimu-widget-geoprocessing .opts [class*="col"]&lt;SPAN __jive_macro_name="height"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;.jimu-widget-geoprocessing .opts a.help{&lt;/P&gt;&lt;P&gt;  line-height: 45px;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;.jimu-widget-geoprocessing .section.opts{&lt;/P&gt;&lt;P&gt;  margin-top: 20px;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;.jimu-widget-geoprocessing .section .jimu-btn&lt;SPAN __jive_macro_name="float"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;.jimu-widget-geoprocessing .info&lt;SPAN __jive_macro_name="display"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;.jimu-widget-geoprocessing .info .text{&lt;/P&gt;&lt;P&gt;  text-align: center;&lt;/P&gt;&lt;P&gt;  width: 100%;&lt;/P&gt;&lt;P&gt;  bottom: 0;&lt;/P&gt;&lt;P&gt;  position: absolute;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;.jimu-widget-geoprocessing .input-node, .jimu-widget-geoprocessing .output-node&lt;SPAN __jive_macro_name="overflow"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;.jimu-widget-geoprocessing .input-node&amp;gt;.input-label, .jimu-widget-geoprocessing .output-node&amp;gt;.output-label&lt;SPAN __jive_macro_name="overflow"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;.jimu-widget-geoprocessing .input-node&amp;gt;.editor-container, .jimu-widget-geoprocessing .output-node&amp;gt;.renderer-container{&lt;/P&gt;&lt;P&gt;  margin-top: 5px;&lt;/P&gt;&lt;P&gt;  width: 100%;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.TabTheme .jimu-widget-geoprocessing .jimu-tab&amp;gt;.control&amp;gt;.tab.jimu-state-selected{&lt;/P&gt;&lt;P&gt;  border-top: 0;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.jimu-widget-geoprocessing li{&lt;/P&gt;&lt;P&gt;  list-style: none;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.jimu-widget-geoprocessing .error-message{&lt;/P&gt;&lt;P&gt;  text-align: left;&lt;/P&gt;&lt;P&gt;  width: 100%;&lt;/P&gt;&lt;P&gt;  margin-top: 10px;&lt;/P&gt;&lt;P&gt;  color: #FF0000;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.dgrid &lt;SPAN __jive_macro_name="height"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2015 18:22:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/where-should-other-css-files-be-placed/m-p/780443#M2565</guid>
      <dc:creator>TerryGustafson</dc:creator>
      <dc:date>2015-08-05T18:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: Where should other css files be placed?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/where-should-other-css-files-be-placed/m-p/780444#M2566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Terry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Is you post missing something or are you thinking that adding .dgrid to the css will overwrite the default? You have to specify the css properties that you want to overwrite or the default ones will always be used.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2015 18:39:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/where-should-other-css-files-be-placed/m-p/780444#M2566</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-08-05T18:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: Where should other css files be placed?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/where-should-other-css-files-be-placed/m-p/780445#M2567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes my post was missing the rest..&amp;nbsp; I had &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;.dgrid {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #7f007f; font-size: 10pt;"&gt;height&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;: &lt;/SPAN&gt;&lt;EM style=": ; color: #2a00e1; font-size: 10pt;"&gt;auto&lt;/EM&gt;&lt;SPAN style="font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;at the bottom of the style.css for the widget I'm working on..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2015 18:45:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/where-should-other-css-files-be-placed/m-p/780445#M2567</guid>
      <dc:creator>TerryGustafson</dc:creator>
      <dc:date>2015-08-05T18:45:57Z</dc:date>
    </item>
    <item>
      <title>Re: Where should other css files be placed?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/where-should-other-css-files-be-placed/m-p/780446#M2568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Terry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I am not use if auto is going to work but if you may have to use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="font-size: 10pt;"&gt;.dgrid {&lt;/SPAN&gt;
&lt;SPAN style="color: #7f007f; font-size: 10pt;"&gt;&amp;nbsp; height&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;: &lt;/SPAN&gt;&lt;EM style="color: #2a00e1; font-size: 10pt;"&gt;auto !important&lt;/EM&gt;&lt;SPAN style="font-size: 10pt;"&gt;;&lt;/SPAN&gt;
&lt;SPAN style="font-size: 10pt;"&gt;}&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 08:48:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/where-should-other-css-files-be-placed/m-p/780446#M2568</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-12T08:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: Where should other css files be placed?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/where-should-other-css-files-be-placed/m-p/780447#M2569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like the auto does not want to work but I put a fixed size of 7em and the !important made it override the dgrid.css..  Still not sure why auto size would not work as its listed for css as an option.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2015 19:42:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/where-should-other-css-files-be-placed/m-p/780447#M2569</guid>
      <dc:creator>TerryGustafson</dc:creator>
      <dc:date>2015-08-05T19:42:36Z</dc:date>
    </item>
  </channel>
</rss>

