pict-section-form 1.0.84 → 1.0.85

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,6 +8,8 @@
8
8
  "Name": "Rectangular Area Calculator",
9
9
  "Description": "Calculate the area of a Rectangle",
10
10
 
11
+ "CustomCSS": "h3 { color: #ff00ff; font-size: 1.5em; }",
12
+
11
13
  "Solvers":
12
14
  [
13
15
  "Area = Height * Width",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pict-section-form",
3
- "version": "1.0.84",
3
+ "version": "1.0.85",
4
4
  "description": "Pict dynamic form sections",
5
5
  "main": "source/Pict-Section-Form.js",
6
6
  "directories": {
@@ -599,6 +599,16 @@ class PictFormMetacontroller extends libPictViewClass
599
599
 
600
600
  this.manifest = tmpManifest;
601
601
 
602
+ // Now see if there is custom CSS
603
+ for (let i = 0; i < tmpSectionList.length; i++)
604
+ {
605
+ let tmpSection = tmpSectionList[i];
606
+ if (('CustomCSS' in tmpSection) && (typeof(tmpSection.CustomCSS) == 'string'))
607
+ {
608
+ this.pict.CSSMap.addCSS(`PSF-SectionCSS-${tmpSection.Hash}`, tmpSection.CustomCSS);
609
+ }
610
+ }
611
+
602
612
  return tmpSectionList;
603
613
  }
604
614