<?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: Novice Question: Can I load external 'package' from provide style template for Hub content? in ArcGIS Hub Questions</title>
    <link>https://community.esri.com/t5/arcgis-hub-questions/novice-question-can-i-load-external-package-from/m-p/1153959#M5137</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/436512"&gt;@ChrisMalam&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;While I understand the need to have consistent looking web properties, we do not provide the ability to link to external packages or modify CSS at a global level due to issues in the past where other folks' stylesheets would collide with our own and break our product's layout.&lt;/P&gt;&lt;P&gt;It looks like your component probably does require some CSS to render properly and that the package you're referencing is more like a standalone framework. Our framework for Hub is Bootstrap 3 and Calcite. In order to duplicate the styling attached to&amp;nbsp;&lt;STRONG&gt;.uikit-callout .spf-callout&lt;/STRONG&gt;, you'd want to inspect it on the Public Face site and then apply the associated attributes via embedded stylesheet on Hub with a Text Card. Embedded styles go between&amp;nbsp;&lt;STRONG&gt;&amp;lt;style&amp;gt;&amp;lt;/style&amp;gt;&lt;/STRONG&gt; tags.&lt;BR /&gt;&lt;BR /&gt;Looking at the Public Face source code for that callout, these are the styles you'd want to insert between style tags to get a comparably branded callout. (One thing to note, Hub applies font family by whatever is set in Theme &amp;gt; Base Font / Heading Font, so if you're trying to target fonts that do not naturally occur on the end user's laptop, you'll want to set the URL over there.)&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2022-03-15 at 2.34.49 PM.png" style="width: 392px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/36414i1D849E6918D2B01A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2022-03-15 at 2.34.49 PM.png" alt="Screen Shot 2022-03-15 at 2.34.49 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 15 Mar 2022 18:47:34 GMT</pubDate>
    <dc:creator>KlaraSchmitt</dc:creator>
    <dc:date>2022-03-15T18:47:34Z</dc:date>
    <item>
      <title>Novice Question: Can I load external 'package' from provide style template for Hub content?</title>
      <link>https://community.esri.com/t5/arcgis-hub-questions/novice-question-can-i-load-external-package-from/m-p/1153579#M5134</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am currently putting together an ArcGIS Hub site to present work program-specific content that includes a mix of written content, images and ArcGIS apps. I have so far been able to achieve everything we need with a mix of the standard drag-and-drop and tweaking of HTML by frankensteining code snippets from various places.&lt;/P&gt;&lt;P&gt;One significant issue that I have encountered, however, is that my workplace has website style guidelines in place, which are packaged up into a product called Single Public Face (SPF) 2.0. There are example code snippets provided (e.g. &lt;A href="https://www.act.gov.au/spf/components/content/callout" target="_self"&gt;link&lt;/A&gt;) to produce different features; the screenshot below is one example:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ChrisMalam_1-1647293713967.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/36301i995016759EA3E571/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ChrisMalam_1-1647293713967.png" alt="ChrisMalam_1-1647293713967.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However, when I used this code block in ArcGIS Hub, this is what I got (i.e. without the fancy border):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ChrisMalam_2-1647293988440.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/36302iAD5A5407734D9159/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ChrisMalam_2-1647293988440.png" alt="ChrisMalam_2-1647293988440.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Other examples result in more significant differences, particularly where there are dynamic elements involved, such as accordions. I figure that my issue lies in this line of code, where the "callout" is a specific reference within "uikit" or "spf":&lt;/P&gt;&lt;PRE&gt;&amp;lt;div class="uikit-callout spf-callout" aria-label="Callout"&amp;gt;&lt;/PRE&gt;&lt;P&gt;To me the solution would be to somehow load this SPF 2.0 product as a package, coming from more of a background in python or R, but as I don't really understand the nuts and bolts of HTML I don't know if this is possible to do in ArcGIS Hub, and if so, how I would go about including this in my code blocks?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As some additional context, the following introduction is taken from the &lt;A href="https://actgovproject.bitbucket.io/?p=overview-overview" target="_self"&gt;website&lt;/A&gt;&amp;nbsp;resource provided by my workplace for SPF 2.0:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;ACT Government single public face (SPF) UI Kit 1.0 is an iterative style guide that contains self-contained interface designs and related code. The purpose of the SPF UI Kit 1.0 is to create a consistent style and core functionality across the collective ACT Government online presence. The UI kit itself is structured using atomic design approach and is built in the open source&lt;A href="http://patternlab.io/" target="_blank" rel="external noopener"&gt;Pattern Lab&lt;/A&gt;platform.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Many thanks for taking the time to read this post - any assistance is much appreciated!&lt;/P&gt;</description>
      <pubDate>Mon, 14 Mar 2022 22:15:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-hub-questions/novice-question-can-i-load-external-package-from/m-p/1153579#M5134</guid>
      <dc:creator>ChrisMalam</dc:creator>
      <dc:date>2022-03-14T22:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: Novice Question: Can I load external 'package' from provide style template for Hub content?</title>
      <link>https://community.esri.com/t5/arcgis-hub-questions/novice-question-can-i-load-external-package-from/m-p/1153959#M5137</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/436512"&gt;@ChrisMalam&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;While I understand the need to have consistent looking web properties, we do not provide the ability to link to external packages or modify CSS at a global level due to issues in the past where other folks' stylesheets would collide with our own and break our product's layout.&lt;/P&gt;&lt;P&gt;It looks like your component probably does require some CSS to render properly and that the package you're referencing is more like a standalone framework. Our framework for Hub is Bootstrap 3 and Calcite. In order to duplicate the styling attached to&amp;nbsp;&lt;STRONG&gt;.uikit-callout .spf-callout&lt;/STRONG&gt;, you'd want to inspect it on the Public Face site and then apply the associated attributes via embedded stylesheet on Hub with a Text Card. Embedded styles go between&amp;nbsp;&lt;STRONG&gt;&amp;lt;style&amp;gt;&amp;lt;/style&amp;gt;&lt;/STRONG&gt; tags.&lt;BR /&gt;&lt;BR /&gt;Looking at the Public Face source code for that callout, these are the styles you'd want to insert between style tags to get a comparably branded callout. (One thing to note, Hub applies font family by whatever is set in Theme &amp;gt; Base Font / Heading Font, so if you're trying to target fonts that do not naturally occur on the end user's laptop, you'll want to set the URL over there.)&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2022-03-15 at 2.34.49 PM.png" style="width: 392px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/36414i1D849E6918D2B01A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2022-03-15 at 2.34.49 PM.png" alt="Screen Shot 2022-03-15 at 2.34.49 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2022 18:47:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-hub-questions/novice-question-can-i-load-external-package-from/m-p/1153959#M5137</guid>
      <dc:creator>KlaraSchmitt</dc:creator>
      <dc:date>2022-03-15T18:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: Novice Question: Can I load external 'package' from provide style template for Hub content?</title>
      <link>https://community.esri.com/t5/arcgis-hub-questions/novice-question-can-i-load-external-package-from/m-p/1155574#M5141</link>
      <description>&lt;P&gt;Thank you for this explanation, Klara.&lt;/P&gt;&lt;P&gt;While I had a sneaking suspicion that the public face was a standalone framework that would not integrate with ArcGIS Hub, this look-alike callout box is brilliant, thank you! Also really good to know about setting the font style under Themes, have been able to select our preferred fonts.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2022 04:36:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-hub-questions/novice-question-can-i-load-external-package-from/m-p/1155574#M5141</guid>
      <dc:creator>ChrisMalam</dc:creator>
      <dc:date>2022-03-21T04:36:52Z</dc:date>
    </item>
  </channel>
</rss>

