@ulu/frontend 0.1.0-beta.26 → 0.1.0-beta.28
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.
- package/CHANGELOG.md +15 -0
- package/dist/ulu-frontend.min.css +1 -1
- package/dist/ulu-frontend.min.js +2 -1
- package/docs-dev/changelog/index.html +52 -1
- package/docs-dev/demos/card/index.html +86 -48
- package/docs-dev/demos/data-table/index.html +25 -25
- package/docs-dev/demos/popovers/index.html +102 -4
- package/docs-dev/sass/components/card/index.html +1 -1
- package/docs-dev/sass/components/popover/index.html +22 -23
- package/docs-dev/sass/core/utils/index.html +210 -85
- package/js/ui/popover.js +1 -0
- package/package.json +1 -1
- package/scss/_utils.scss +34 -9
- package/scss/components/_popover.scss +76 -38
- package/types/ui/popover.d.ts.map +1 -1
|
@@ -5065,6 +5065,9 @@
|
|
|
5065
5065
|
<li><a href="#function-number-info">number-info()</a>
|
|
5066
5066
|
</li>
|
|
5067
5067
|
|
|
5068
|
+
<li><a href="#function-add-unit">add-unit()</a>
|
|
5069
|
+
</li>
|
|
5070
|
+
|
|
5068
5071
|
<li><a href="#function-map-merge">map-merge()</a>
|
|
5069
5072
|
</li>
|
|
5070
5073
|
|
|
@@ -5121,6 +5124,9 @@
|
|
|
5121
5124
|
|
|
5122
5125
|
<li><a href="#function-pixel-to-em">pixel-to-em()</a>
|
|
5123
5126
|
</li>
|
|
5127
|
+
|
|
5128
|
+
<li><a href="#function-hypotenuse">hypotenuse()</a>
|
|
5129
|
+
</li>
|
|
5124
5130
|
</ol>
|
|
5125
5131
|
</li>
|
|
5126
5132
|
</ol>
|
|
@@ -5395,8 +5401,8 @@
|
|
|
5395
5401
|
<li><strong>File:</strong> _utils.scss</li>
|
|
5396
5402
|
<li><strong>Group:</strong> utils</li>
|
|
5397
5403
|
<li><strong>Type:</strong> mixin</li>
|
|
5398
|
-
<li><strong>Lines (comments):</strong>
|
|
5399
|
-
<li><strong>Lines (code):</strong>
|
|
5404
|
+
<li><strong>Lines (comments):</strong> 491-494</li>
|
|
5405
|
+
<li><strong>Lines (code):</strong> 496-503</li>
|
|
5400
5406
|
</ul>
|
|
5401
5407
|
</details>
|
|
5402
5408
|
<h4 id="parameters-4" tabindex="-1">Parameters</h4>
|
|
@@ -5638,7 +5644,7 @@
|
|
|
5638
5644
|
<li><strong>Group:</strong> utils</li>
|
|
5639
5645
|
<li><strong>Type:</strong> function</li>
|
|
5640
5646
|
<li><strong>Lines (comments):</strong> 130-131</li>
|
|
5641
|
-
<li><strong>Lines (code):</strong> 133-
|
|
5647
|
+
<li><strong>Lines (code):</strong> 133-153</li>
|
|
5642
5648
|
</ul>
|
|
5643
5649
|
</details>
|
|
5644
5650
|
<h4 id="parameters-9" tabindex="-1">Parameters</h4>
|
|
@@ -5669,7 +5675,69 @@
|
|
|
5669
5675
|
<tbody>
|
|
5670
5676
|
<tr>
|
|
5671
5677
|
<td style="text-align:left">Map</td>
|
|
5672
|
-
<td style="text-align:left">With properties (unit, value)</td>
|
|
5678
|
+
<td style="text-align:left">With properties (unit, value, invalid [true/false if not number])</td>
|
|
5679
|
+
</tr>
|
|
5680
|
+
</tbody>
|
|
5681
|
+
</table>
|
|
5682
|
+
<h4 id="throw-1" tabindex="-1">Throw</h4>
|
|
5683
|
+
<ul>
|
|
5684
|
+
<li $number="">Expected Number, got #{ meta.type-of($number) } for #</li>
|
|
5685
|
+
</ul>
|
|
5686
|
+
<h4 id="require-5" tabindex="-1">Require</h4>
|
|
5687
|
+
<ul>
|
|
5688
|
+
<li><a href="/frontend/sass/core/utils/#function-strip-unit">strip-unit()</a></li>
|
|
5689
|
+
</ul>
|
|
5690
|
+
<div class="sassdoc-item-header">
|
|
5691
|
+
<h3 id="function-add-unit" tabindex="-1">add-unit()</h3>
|
|
5692
|
+
<div class="sassdoc-item-header__labels">
|
|
5693
|
+
<span class="tag tag--primary"><strong>Function</strong></span>
|
|
5694
|
+
</div>
|
|
5695
|
+
</div>
|
|
5696
|
+
<p>Adds unit to unitless number</p>
|
|
5697
|
+
<details>
|
|
5698
|
+
<summary>File Information</summary>
|
|
5699
|
+
<ul>
|
|
5700
|
+
<li><strong>File:</strong> _utils.scss</li>
|
|
5701
|
+
<li><strong>Group:</strong> utils</li>
|
|
5702
|
+
<li><strong>Type:</strong> function</li>
|
|
5703
|
+
<li><strong>Lines (comments):</strong> 155-158</li>
|
|
5704
|
+
<li><strong>Lines (code):</strong> 160-162</li>
|
|
5705
|
+
</ul>
|
|
5706
|
+
</details>
|
|
5707
|
+
<h4 id="parameters-10" tabindex="-1">Parameters</h4>
|
|
5708
|
+
<table>
|
|
5709
|
+
<thead>
|
|
5710
|
+
<tr>
|
|
5711
|
+
<th style="text-align:left">Name</th>
|
|
5712
|
+
<th style="text-align:left">Type</th>
|
|
5713
|
+
<th style="text-align:left">Description</th>
|
|
5714
|
+
</tr>
|
|
5715
|
+
</thead>
|
|
5716
|
+
<tbody>
|
|
5717
|
+
<tr>
|
|
5718
|
+
<td style="text-align:left">$number</td>
|
|
5719
|
+
<td style="text-align:left"><code>Number</code></td>
|
|
5720
|
+
<td style="text-align:left">The unitless number to add unit to</td>
|
|
5721
|
+
</tr>
|
|
5722
|
+
<tr>
|
|
5723
|
+
<td style="text-align:left">$unit</td>
|
|
5724
|
+
<td style="text-align:left"><code>String</code></td>
|
|
5725
|
+
<td style="text-align:left">The unit to add to number</td>
|
|
5726
|
+
</tr>
|
|
5727
|
+
</tbody>
|
|
5728
|
+
</table>
|
|
5729
|
+
<h4 id="returns-2" tabindex="-1">Returns</h4>
|
|
5730
|
+
<table>
|
|
5731
|
+
<thead>
|
|
5732
|
+
<tr>
|
|
5733
|
+
<th style="text-align:left">Type</th>
|
|
5734
|
+
<th style="text-align:left">Description</th>
|
|
5735
|
+
</tr>
|
|
5736
|
+
</thead>
|
|
5737
|
+
<tbody>
|
|
5738
|
+
<tr>
|
|
5739
|
+
<td style="text-align:left">String</td>
|
|
5740
|
+
<td style="text-align:left">Number with unit attached (can't be used in maths)</td>
|
|
5673
5741
|
</tr>
|
|
5674
5742
|
</tbody>
|
|
5675
5743
|
</table>
|
|
@@ -5686,11 +5754,11 @@
|
|
|
5686
5754
|
<li><strong>File:</strong> _utils.scss</li>
|
|
5687
5755
|
<li><strong>Group:</strong> utils</li>
|
|
5688
5756
|
<li><strong>Type:</strong> function</li>
|
|
5689
|
-
<li><strong>Lines (comments):</strong>
|
|
5690
|
-
<li><strong>Lines (code):</strong>
|
|
5757
|
+
<li><strong>Lines (comments):</strong> 164-168</li>
|
|
5758
|
+
<li><strong>Lines (code):</strong> 170-178</li>
|
|
5691
5759
|
</ul>
|
|
5692
5760
|
</details>
|
|
5693
|
-
<h4 id="parameters-
|
|
5761
|
+
<h4 id="parameters-11" tabindex="-1">Parameters</h4>
|
|
5694
5762
|
<table>
|
|
5695
5763
|
<thead>
|
|
5696
5764
|
<tr>
|
|
@@ -5717,7 +5785,7 @@
|
|
|
5717
5785
|
</tr>
|
|
5718
5786
|
</tbody>
|
|
5719
5787
|
</table>
|
|
5720
|
-
<h4 id="returns-
|
|
5788
|
+
<h4 id="returns-3" tabindex="-1">Returns</h4>
|
|
5721
5789
|
<table>
|
|
5722
5790
|
<thead>
|
|
5723
5791
|
<tr>
|
|
@@ -5745,11 +5813,11 @@
|
|
|
5745
5813
|
<li><strong>File:</strong> _utils.scss</li>
|
|
5746
5814
|
<li><strong>Group:</strong> utils</li>
|
|
5747
5815
|
<li><strong>Type:</strong> function</li>
|
|
5748
|
-
<li><strong>Lines (comments):</strong>
|
|
5749
|
-
<li><strong>Lines (code):</strong>
|
|
5816
|
+
<li><strong>Lines (comments):</strong> 180-183</li>
|
|
5817
|
+
<li><strong>Lines (code):</strong> 185-190</li>
|
|
5750
5818
|
</ul>
|
|
5751
5819
|
</details>
|
|
5752
|
-
<h4 id="parameters-
|
|
5820
|
+
<h4 id="parameters-12" tabindex="-1">Parameters</h4>
|
|
5753
5821
|
<table>
|
|
5754
5822
|
<thead>
|
|
5755
5823
|
<tr>
|
|
@@ -5771,7 +5839,7 @@
|
|
|
5771
5839
|
</tr>
|
|
5772
5840
|
</tbody>
|
|
5773
5841
|
</table>
|
|
5774
|
-
<h4 id="returns-
|
|
5842
|
+
<h4 id="returns-4" tabindex="-1">Returns</h4>
|
|
5775
5843
|
<table>
|
|
5776
5844
|
<thead>
|
|
5777
5845
|
<tr>
|
|
@@ -5784,11 +5852,11 @@
|
|
|
5784
5852
|
</tr>
|
|
5785
5853
|
</tbody>
|
|
5786
5854
|
</table>
|
|
5787
|
-
<h4 id="throw-
|
|
5855
|
+
<h4 id="throw-2" tabindex="-1">Throw</h4>
|
|
5788
5856
|
<ul>
|
|
5789
5857
|
<li>map-has(): Incorrect type for $map (should be map)</li>
|
|
5790
5858
|
</ul>
|
|
5791
|
-
<h4 id="require-
|
|
5859
|
+
<h4 id="require-6" tabindex="-1">Require</h4>
|
|
5792
5860
|
<ul>
|
|
5793
5861
|
<li><a href="/frontend/sass/core/breakpoint/#function-get">get()</a></li>
|
|
5794
5862
|
</ul>
|
|
@@ -5807,11 +5875,11 @@
|
|
|
5807
5875
|
<li><strong>File:</strong> _utils.scss</li>
|
|
5808
5876
|
<li><strong>Group:</strong> utils</li>
|
|
5809
5877
|
<li><strong>Type:</strong> function</li>
|
|
5810
|
-
<li><strong>Lines (comments):</strong>
|
|
5811
|
-
<li><strong>Lines (code):</strong>
|
|
5878
|
+
<li><strong>Lines (comments):</strong> 192-193</li>
|
|
5879
|
+
<li><strong>Lines (code):</strong> 195-203</li>
|
|
5812
5880
|
</ul>
|
|
5813
5881
|
</details>
|
|
5814
|
-
<h4 id="require-
|
|
5882
|
+
<h4 id="require-7" tabindex="-1">Require</h4>
|
|
5815
5883
|
<ul>
|
|
5816
5884
|
<li><a href="/frontend/sass/core/utils/#function-map-merge">map-merge()</a></li>
|
|
5817
5885
|
</ul>
|
|
@@ -5828,11 +5896,11 @@
|
|
|
5828
5896
|
<li><strong>File:</strong> _utils.scss</li>
|
|
5829
5897
|
<li><strong>Group:</strong> utils</li>
|
|
5830
5898
|
<li><strong>Type:</strong> function</li>
|
|
5831
|
-
<li><strong>Lines (comments):</strong>
|
|
5832
|
-
<li><strong>Lines (code):</strong>
|
|
5899
|
+
<li><strong>Lines (comments):</strong> 205-206</li>
|
|
5900
|
+
<li><strong>Lines (code):</strong> 208-215</li>
|
|
5833
5901
|
</ul>
|
|
5834
5902
|
</details>
|
|
5835
|
-
<h4 id="returns-
|
|
5903
|
+
<h4 id="returns-5" tabindex="-1">Returns</h4>
|
|
5836
5904
|
<table>
|
|
5837
5905
|
<thead>
|
|
5838
5906
|
<tr>
|
|
@@ -5860,11 +5928,11 @@
|
|
|
5860
5928
|
<li><strong>File:</strong> _utils.scss</li>
|
|
5861
5929
|
<li><strong>Group:</strong> utils</li>
|
|
5862
5930
|
<li><strong>Type:</strong> function</li>
|
|
5863
|
-
<li><strong>Lines (comments):</strong>
|
|
5864
|
-
<li><strong>Lines (code):</strong>
|
|
5931
|
+
<li><strong>Lines (comments):</strong> 217-217</li>
|
|
5932
|
+
<li><strong>Lines (code):</strong> 218-226</li>
|
|
5865
5933
|
</ul>
|
|
5866
5934
|
</details>
|
|
5867
|
-
<h4 id="require-
|
|
5935
|
+
<h4 id="require-8" tabindex="-1">Require</h4>
|
|
5868
5936
|
<ul>
|
|
5869
5937
|
<li><a href="/frontend/sass/core/breakpoint/#function-get">get()</a></li>
|
|
5870
5938
|
</ul>
|
|
@@ -5881,11 +5949,11 @@
|
|
|
5881
5949
|
<li><strong>File:</strong> _utils.scss</li>
|
|
5882
5950
|
<li><strong>Group:</strong> utils</li>
|
|
5883
5951
|
<li><strong>Type:</strong> function</li>
|
|
5884
|
-
<li><strong>Lines (comments):</strong>
|
|
5885
|
-
<li><strong>Lines (code):</strong>
|
|
5952
|
+
<li><strong>Lines (comments):</strong> 229-233</li>
|
|
5953
|
+
<li><strong>Lines (code):</strong> 234-253</li>
|
|
5886
5954
|
</ul>
|
|
5887
5955
|
</details>
|
|
5888
|
-
<h4 id="parameters-
|
|
5956
|
+
<h4 id="parameters-13" tabindex="-1">Parameters</h4>
|
|
5889
5957
|
<table>
|
|
5890
5958
|
<thead>
|
|
5891
5959
|
<tr>
|
|
@@ -5917,12 +5985,12 @@
|
|
|
5917
5985
|
</tr>
|
|
5918
5986
|
</tbody>
|
|
5919
5987
|
</table>
|
|
5920
|
-
<h4 id="throw-
|
|
5988
|
+
<h4 id="throw-3" tabindex="-1">Throw</h4>
|
|
5921
5989
|
<ul>
|
|
5922
5990
|
<li>map-contains-any(): Incorrect type for $map (should be map)</li>
|
|
5923
5991
|
<li>map-contains-any(): Incorrect type for $keys (should be list)</li>
|
|
5924
5992
|
</ul>
|
|
5925
|
-
<h4 id="require-
|
|
5993
|
+
<h4 id="require-9" tabindex="-1">Require</h4>
|
|
5926
5994
|
<ul>
|
|
5927
5995
|
<li><a href="/frontend/sass/core/breakpoint/#function-get">get()</a></li>
|
|
5928
5996
|
</ul>
|
|
@@ -5939,11 +6007,11 @@
|
|
|
5939
6007
|
<li><strong>File:</strong> _utils.scss</li>
|
|
5940
6008
|
<li><strong>Group:</strong> utils</li>
|
|
5941
6009
|
<li><strong>Type:</strong> function</li>
|
|
5942
|
-
<li><strong>Lines (comments):</strong>
|
|
5943
|
-
<li><strong>Lines (code):</strong>
|
|
6010
|
+
<li><strong>Lines (comments):</strong> 255-259</li>
|
|
6011
|
+
<li><strong>Lines (code):</strong> 261-287</li>
|
|
5944
6012
|
</ul>
|
|
5945
6013
|
</details>
|
|
5946
|
-
<h4 id="parameters-
|
|
6014
|
+
<h4 id="parameters-14" tabindex="-1">Parameters</h4>
|
|
5947
6015
|
<table>
|
|
5948
6016
|
<thead>
|
|
5949
6017
|
<tr>
|
|
@@ -5970,7 +6038,7 @@
|
|
|
5970
6038
|
</tr>
|
|
5971
6039
|
</tbody>
|
|
5972
6040
|
</table>
|
|
5973
|
-
<h4 id="returns-
|
|
6041
|
+
<h4 id="returns-6" tabindex="-1">Returns</h4>
|
|
5974
6042
|
<table>
|
|
5975
6043
|
<thead>
|
|
5976
6044
|
<tr>
|
|
@@ -5985,11 +6053,11 @@
|
|
|
5985
6053
|
</tr>
|
|
5986
6054
|
</tbody>
|
|
5987
6055
|
</table>
|
|
5988
|
-
<h4 id="throw-
|
|
6056
|
+
<h4 id="throw-4" tabindex="-1">Throw</h4>
|
|
5989
6057
|
<ul>
|
|
5990
6058
|
<li>Arguments must be a list, use single list for single argument ie</li>
|
|
5991
6059
|
</ul>
|
|
5992
|
-
<h4 id="require-
|
|
6060
|
+
<h4 id="require-10" tabindex="-1">Require</h4>
|
|
5993
6061
|
<ul>
|
|
5994
6062
|
<li><a href="/frontend/sass/core/breakpoint/#function-get">get()</a></li>
|
|
5995
6063
|
</ul>
|
|
@@ -6006,11 +6074,11 @@
|
|
|
6006
6074
|
<li><strong>File:</strong> _utils.scss</li>
|
|
6007
6075
|
<li><strong>Group:</strong> utils</li>
|
|
6008
6076
|
<li><strong>Type:</strong> function</li>
|
|
6009
|
-
<li><strong>Lines (comments):</strong>
|
|
6010
|
-
<li><strong>Lines (code):</strong>
|
|
6077
|
+
<li><strong>Lines (comments):</strong> 289-293</li>
|
|
6078
|
+
<li><strong>Lines (code):</strong> 295-311</li>
|
|
6011
6079
|
</ul>
|
|
6012
6080
|
</details>
|
|
6013
|
-
<h4 id="parameters-
|
|
6081
|
+
<h4 id="parameters-15" tabindex="-1">Parameters</h4>
|
|
6014
6082
|
<table>
|
|
6015
6083
|
<thead>
|
|
6016
6084
|
<tr>
|
|
@@ -6058,11 +6126,11 @@
|
|
|
6058
6126
|
<li><strong>File:</strong> _utils.scss</li>
|
|
6059
6127
|
<li><strong>Group:</strong> utils</li>
|
|
6060
6128
|
<li><strong>Type:</strong> function</li>
|
|
6061
|
-
<li><strong>Lines (comments):</strong>
|
|
6062
|
-
<li><strong>Lines (code):</strong>
|
|
6129
|
+
<li><strong>Lines (comments):</strong> 313-317</li>
|
|
6130
|
+
<li><strong>Lines (code):</strong> 319-327</li>
|
|
6063
6131
|
</ul>
|
|
6064
6132
|
</details>
|
|
6065
|
-
<h4 id="parameters-
|
|
6133
|
+
<h4 id="parameters-16" tabindex="-1">Parameters</h4>
|
|
6066
6134
|
<table>
|
|
6067
6135
|
<thead>
|
|
6068
6136
|
<tr>
|
|
@@ -6084,7 +6152,7 @@
|
|
|
6084
6152
|
</tr>
|
|
6085
6153
|
</tbody>
|
|
6086
6154
|
</table>
|
|
6087
|
-
<h4 id="returns-
|
|
6155
|
+
<h4 id="returns-7" tabindex="-1">Returns</h4>
|
|
6088
6156
|
<table>
|
|
6089
6157
|
<thead>
|
|
6090
6158
|
<tr>
|
|
@@ -6115,11 +6183,11 @@
|
|
|
6115
6183
|
<li><strong>File:</strong> _utils.scss</li>
|
|
6116
6184
|
<li><strong>Group:</strong> utils</li>
|
|
6117
6185
|
<li><strong>Type:</strong> function</li>
|
|
6118
|
-
<li><strong>Lines (comments):</strong>
|
|
6119
|
-
<li><strong>Lines (code):</strong>
|
|
6186
|
+
<li><strong>Lines (comments):</strong> 329-333</li>
|
|
6187
|
+
<li><strong>Lines (code):</strong> 335-343</li>
|
|
6120
6188
|
</ul>
|
|
6121
6189
|
</details>
|
|
6122
|
-
<h4 id="parameters-
|
|
6190
|
+
<h4 id="parameters-17" tabindex="-1">Parameters</h4>
|
|
6123
6191
|
<table>
|
|
6124
6192
|
<thead>
|
|
6125
6193
|
<tr>
|
|
@@ -6141,7 +6209,7 @@
|
|
|
6141
6209
|
</tr>
|
|
6142
6210
|
</tbody>
|
|
6143
6211
|
</table>
|
|
6144
|
-
<h4 id="returns-
|
|
6212
|
+
<h4 id="returns-8" tabindex="-1">Returns</h4>
|
|
6145
6213
|
<table>
|
|
6146
6214
|
<thead>
|
|
6147
6215
|
<tr>
|
|
@@ -6169,11 +6237,11 @@
|
|
|
6169
6237
|
<li><strong>File:</strong> _utils.scss</li>
|
|
6170
6238
|
<li><strong>Group:</strong> utils</li>
|
|
6171
6239
|
<li><strong>Type:</strong> function</li>
|
|
6172
|
-
<li><strong>Lines (comments):</strong>
|
|
6173
|
-
<li><strong>Lines (code):</strong>
|
|
6240
|
+
<li><strong>Lines (comments):</strong> 345-349</li>
|
|
6241
|
+
<li><strong>Lines (code):</strong> 351-366</li>
|
|
6174
6242
|
</ul>
|
|
6175
6243
|
</details>
|
|
6176
|
-
<h4 id="parameters-
|
|
6244
|
+
<h4 id="parameters-18" tabindex="-1">Parameters</h4>
|
|
6177
6245
|
<table>
|
|
6178
6246
|
<thead>
|
|
6179
6247
|
<tr>
|
|
@@ -6204,7 +6272,7 @@
|
|
|
6204
6272
|
</tr>
|
|
6205
6273
|
</tbody>
|
|
6206
6274
|
</table>
|
|
6207
|
-
<h4 id="returns-
|
|
6275
|
+
<h4 id="returns-9" tabindex="-1">Returns</h4>
|
|
6208
6276
|
<table>
|
|
6209
6277
|
<thead>
|
|
6210
6278
|
<tr>
|
|
@@ -6236,8 +6304,8 @@
|
|
|
6236
6304
|
<li><strong>File:</strong> _utils.scss</li>
|
|
6237
6305
|
<li><strong>Group:</strong> utils</li>
|
|
6238
6306
|
<li><strong>Type:</strong> function</li>
|
|
6239
|
-
<li><strong>Lines (comments):</strong>
|
|
6240
|
-
<li><strong>Lines (code):</strong>
|
|
6307
|
+
<li><strong>Lines (comments):</strong> 368-383</li>
|
|
6308
|
+
<li><strong>Lines (code):</strong> 385-401</li>
|
|
6241
6309
|
</ul>
|
|
6242
6310
|
</details>
|
|
6243
6311
|
<h4 id="examples-2" tabindex="-1">Examples</h4>
|
|
@@ -6250,7 +6318,7 @@
|
|
|
6250
6318
|
<span class="pjs-token pjs-property">left</span><span class="pjs-token pjs-punctuation">:</span> map.<span class="pjs-token pjs-function">get</span><span class="pjs-token pjs-punctuation">(</span><span class="pjs-token pjs-variable">$spacing</span><span class="pjs-token pjs-punctuation">,</span> <span class="pjs-token pjs-string">"left"</span><span class="pjs-token pjs-punctuation">)</span><span class="pjs-token pjs-punctuation">;</span>
|
|
6251
6319
|
<span class="pjs-token pjs-comment">// left = 2em</span>
|
|
6252
6320
|
<span class="pjs-token pjs-punctuation">}</span></code></pre>
|
|
6253
|
-
<h4 id="parameters-
|
|
6321
|
+
<h4 id="parameters-19" tabindex="-1">Parameters</h4>
|
|
6254
6322
|
<table>
|
|
6255
6323
|
<thead>
|
|
6256
6324
|
<tr>
|
|
@@ -6267,7 +6335,7 @@
|
|
|
6267
6335
|
</tr>
|
|
6268
6336
|
</tbody>
|
|
6269
6337
|
</table>
|
|
6270
|
-
<h4 id="returns-
|
|
6338
|
+
<h4 id="returns-10" tabindex="-1">Returns</h4>
|
|
6271
6339
|
<table>
|
|
6272
6340
|
<thead>
|
|
6273
6341
|
<tr>
|
|
@@ -6282,7 +6350,7 @@
|
|
|
6282
6350
|
</tr>
|
|
6283
6351
|
</tbody>
|
|
6284
6352
|
</table>
|
|
6285
|
-
<h4 id="throw-
|
|
6353
|
+
<h4 id="throw-5" tabindex="-1">Throw</h4>
|
|
6286
6354
|
<ul>
|
|
6287
6355
|
<li>Spacing has more than 4 arguments (not correct shorthand)</li>
|
|
6288
6356
|
</ul>
|
|
@@ -6299,8 +6367,8 @@
|
|
|
6299
6367
|
<li><strong>File:</strong> _utils.scss</li>
|
|
6300
6368
|
<li><strong>Group:</strong> utils</li>
|
|
6301
6369
|
<li><strong>Type:</strong> function</li>
|
|
6302
|
-
<li><strong>Lines (comments):</strong>
|
|
6303
|
-
<li><strong>Lines (code):</strong>
|
|
6370
|
+
<li><strong>Lines (comments):</strong> 403-412</li>
|
|
6371
|
+
<li><strong>Lines (code):</strong> 414-416</li>
|
|
6304
6372
|
</ul>
|
|
6305
6373
|
</details>
|
|
6306
6374
|
<h4 id="examples-3" tabindex="-1">Examples</h4>
|
|
@@ -6311,7 +6379,7 @@
|
|
|
6311
6379
|
<span class="pjs-token pjs-property">top</span><span class="pjs-token pjs-punctuation">:</span> <span class="pjs-token pjs-function">get-spacing-top</span><span class="pjs-token pjs-punctuation">(</span><span class="pjs-token pjs-variable">$user-padding</span><span class="pjs-token pjs-punctuation">)</span><span class="pjs-token pjs-punctuation">;</span>
|
|
6312
6380
|
<span class="pjs-token pjs-comment">// top = 2em</span>
|
|
6313
6381
|
<span class="pjs-token pjs-punctuation">}</span></code></pre>
|
|
6314
|
-
<h4 id="parameters-
|
|
6382
|
+
<h4 id="parameters-20" tabindex="-1">Parameters</h4>
|
|
6315
6383
|
<table>
|
|
6316
6384
|
<thead>
|
|
6317
6385
|
<tr>
|
|
@@ -6328,7 +6396,7 @@
|
|
|
6328
6396
|
</tr>
|
|
6329
6397
|
</tbody>
|
|
6330
6398
|
</table>
|
|
6331
|
-
<h4 id="returns-
|
|
6399
|
+
<h4 id="returns-11" tabindex="-1">Returns</h4>
|
|
6332
6400
|
<table>
|
|
6333
6401
|
<thead>
|
|
6334
6402
|
<tr>
|
|
@@ -6341,7 +6409,7 @@
|
|
|
6341
6409
|
</tr>
|
|
6342
6410
|
</tbody>
|
|
6343
6411
|
</table>
|
|
6344
|
-
<h4 id="require-
|
|
6412
|
+
<h4 id="require-11" tabindex="-1">Require</h4>
|
|
6345
6413
|
<ul>
|
|
6346
6414
|
<li><a href="/frontend/sass/core/breakpoint/#function-get">get()</a></li>
|
|
6347
6415
|
<li><a href="/frontend/sass/core/utils/#function-get-spacing">get-spacing()</a></li>
|
|
@@ -6359,8 +6427,8 @@
|
|
|
6359
6427
|
<li><strong>File:</strong> _utils.scss</li>
|
|
6360
6428
|
<li><strong>Group:</strong> utils</li>
|
|
6361
6429
|
<li><strong>Type:</strong> function</li>
|
|
6362
|
-
<li><strong>Lines (comments):</strong>
|
|
6363
|
-
<li><strong>Lines (code):</strong>
|
|
6430
|
+
<li><strong>Lines (comments):</strong> 418-427</li>
|
|
6431
|
+
<li><strong>Lines (code):</strong> 429-431</li>
|
|
6364
6432
|
</ul>
|
|
6365
6433
|
</details>
|
|
6366
6434
|
<h4 id="examples-4" tabindex="-1">Examples</h4>
|
|
@@ -6371,7 +6439,7 @@
|
|
|
6371
6439
|
<span class="pjs-token pjs-property">right</span><span class="pjs-token pjs-punctuation">:</span> <span class="pjs-token pjs-function">get-spacing-right</span><span class="pjs-token pjs-punctuation">(</span><span class="pjs-token pjs-variable">$user-padding</span><span class="pjs-token pjs-punctuation">)</span><span class="pjs-token pjs-punctuation">;</span>
|
|
6372
6440
|
<span class="pjs-token pjs-comment">// right = 2em</span>
|
|
6373
6441
|
<span class="pjs-token pjs-punctuation">}</span></code></pre>
|
|
6374
|
-
<h4 id="parameters-
|
|
6442
|
+
<h4 id="parameters-21" tabindex="-1">Parameters</h4>
|
|
6375
6443
|
<table>
|
|
6376
6444
|
<thead>
|
|
6377
6445
|
<tr>
|
|
@@ -6388,7 +6456,7 @@
|
|
|
6388
6456
|
</tr>
|
|
6389
6457
|
</tbody>
|
|
6390
6458
|
</table>
|
|
6391
|
-
<h4 id="returns-
|
|
6459
|
+
<h4 id="returns-12" tabindex="-1">Returns</h4>
|
|
6392
6460
|
<table>
|
|
6393
6461
|
<thead>
|
|
6394
6462
|
<tr>
|
|
@@ -6401,7 +6469,7 @@
|
|
|
6401
6469
|
</tr>
|
|
6402
6470
|
</tbody>
|
|
6403
6471
|
</table>
|
|
6404
|
-
<h4 id="require-
|
|
6472
|
+
<h4 id="require-12" tabindex="-1">Require</h4>
|
|
6405
6473
|
<ul>
|
|
6406
6474
|
<li><a href="/frontend/sass/core/breakpoint/#function-get">get()</a></li>
|
|
6407
6475
|
<li><a href="/frontend/sass/core/utils/#function-get-spacing">get-spacing()</a></li>
|
|
@@ -6419,8 +6487,8 @@
|
|
|
6419
6487
|
<li><strong>File:</strong> _utils.scss</li>
|
|
6420
6488
|
<li><strong>Group:</strong> utils</li>
|
|
6421
6489
|
<li><strong>Type:</strong> function</li>
|
|
6422
|
-
<li><strong>Lines (comments):</strong>
|
|
6423
|
-
<li><strong>Lines (code):</strong>
|
|
6490
|
+
<li><strong>Lines (comments):</strong> 433-442</li>
|
|
6491
|
+
<li><strong>Lines (code):</strong> 444-446</li>
|
|
6424
6492
|
</ul>
|
|
6425
6493
|
</details>
|
|
6426
6494
|
<h4 id="examples-5" tabindex="-1">Examples</h4>
|
|
@@ -6431,7 +6499,7 @@
|
|
|
6431
6499
|
<span class="pjs-token pjs-property">bottom</span><span class="pjs-token pjs-punctuation">:</span> <span class="pjs-token pjs-function">get-spacing-bottom</span><span class="pjs-token pjs-punctuation">(</span><span class="pjs-token pjs-variable">$user-padding</span><span class="pjs-token pjs-punctuation">)</span><span class="pjs-token pjs-punctuation">;</span>
|
|
6432
6500
|
<span class="pjs-token pjs-comment">// bottom = 2em</span>
|
|
6433
6501
|
<span class="pjs-token pjs-punctuation">}</span></code></pre>
|
|
6434
|
-
<h4 id="parameters-
|
|
6502
|
+
<h4 id="parameters-22" tabindex="-1">Parameters</h4>
|
|
6435
6503
|
<table>
|
|
6436
6504
|
<thead>
|
|
6437
6505
|
<tr>
|
|
@@ -6448,7 +6516,7 @@
|
|
|
6448
6516
|
</tr>
|
|
6449
6517
|
</tbody>
|
|
6450
6518
|
</table>
|
|
6451
|
-
<h4 id="returns-
|
|
6519
|
+
<h4 id="returns-13" tabindex="-1">Returns</h4>
|
|
6452
6520
|
<table>
|
|
6453
6521
|
<thead>
|
|
6454
6522
|
<tr>
|
|
@@ -6461,7 +6529,7 @@
|
|
|
6461
6529
|
</tr>
|
|
6462
6530
|
</tbody>
|
|
6463
6531
|
</table>
|
|
6464
|
-
<h4 id="require-
|
|
6532
|
+
<h4 id="require-13" tabindex="-1">Require</h4>
|
|
6465
6533
|
<ul>
|
|
6466
6534
|
<li><a href="/frontend/sass/core/breakpoint/#function-get">get()</a></li>
|
|
6467
6535
|
<li><a href="/frontend/sass/core/utils/#function-get-spacing">get-spacing()</a></li>
|
|
@@ -6479,8 +6547,8 @@
|
|
|
6479
6547
|
<li><strong>File:</strong> _utils.scss</li>
|
|
6480
6548
|
<li><strong>Group:</strong> utils</li>
|
|
6481
6549
|
<li><strong>Type:</strong> function</li>
|
|
6482
|
-
<li><strong>Lines (comments):</strong>
|
|
6483
|
-
<li><strong>Lines (code):</strong>
|
|
6550
|
+
<li><strong>Lines (comments):</strong> 448-457</li>
|
|
6551
|
+
<li><strong>Lines (code):</strong> 459-461</li>
|
|
6484
6552
|
</ul>
|
|
6485
6553
|
</details>
|
|
6486
6554
|
<h4 id="examples-6" tabindex="-1">Examples</h4>
|
|
@@ -6491,7 +6559,7 @@
|
|
|
6491
6559
|
<span class="pjs-token pjs-property">left</span><span class="pjs-token pjs-punctuation">:</span> <span class="pjs-token pjs-function">get-spacing-left</span><span class="pjs-token pjs-punctuation">(</span><span class="pjs-token pjs-variable">$user-padding</span><span class="pjs-token pjs-punctuation">)</span><span class="pjs-token pjs-punctuation">;</span>
|
|
6492
6560
|
<span class="pjs-token pjs-comment">// left = 2em</span>
|
|
6493
6561
|
<span class="pjs-token pjs-punctuation">}</span></code></pre>
|
|
6494
|
-
<h4 id="parameters-
|
|
6562
|
+
<h4 id="parameters-23" tabindex="-1">Parameters</h4>
|
|
6495
6563
|
<table>
|
|
6496
6564
|
<thead>
|
|
6497
6565
|
<tr>
|
|
@@ -6508,7 +6576,7 @@
|
|
|
6508
6576
|
</tr>
|
|
6509
6577
|
</tbody>
|
|
6510
6578
|
</table>
|
|
6511
|
-
<h4 id="returns-
|
|
6579
|
+
<h4 id="returns-14" tabindex="-1">Returns</h4>
|
|
6512
6580
|
<table>
|
|
6513
6581
|
<thead>
|
|
6514
6582
|
<tr>
|
|
@@ -6521,7 +6589,7 @@
|
|
|
6521
6589
|
</tr>
|
|
6522
6590
|
</tbody>
|
|
6523
6591
|
</table>
|
|
6524
|
-
<h4 id="require-
|
|
6592
|
+
<h4 id="require-14" tabindex="-1">Require</h4>
|
|
6525
6593
|
<ul>
|
|
6526
6594
|
<li><a href="/frontend/sass/core/breakpoint/#function-get">get()</a></li>
|
|
6527
6595
|
<li><a href="/frontend/sass/core/utils/#function-get-spacing">get-spacing()</a></li>
|
|
@@ -6542,8 +6610,8 @@
|
|
|
6542
6610
|
<li><strong>File:</strong> _utils.scss</li>
|
|
6543
6611
|
<li><strong>Group:</strong> utils</li>
|
|
6544
6612
|
<li><strong>Type:</strong> function</li>
|
|
6545
|
-
<li><strong>Lines (comments):</strong>
|
|
6546
|
-
<li><strong>Lines (code):</strong>
|
|
6613
|
+
<li><strong>Lines (comments):</strong> 463-465</li>
|
|
6614
|
+
<li><strong>Lines (code):</strong> 467-469</li>
|
|
6547
6615
|
</ul>
|
|
6548
6616
|
</details>
|
|
6549
6617
|
<h4 id="related-links" tabindex="-1">Related Links</h4>
|
|
@@ -6563,11 +6631,11 @@
|
|
|
6563
6631
|
<li><strong>File:</strong> _utils.scss</li>
|
|
6564
6632
|
<li><strong>Group:</strong> utils</li>
|
|
6565
6633
|
<li><strong>Type:</strong> function</li>
|
|
6566
|
-
<li><strong>Lines (comments):</strong>
|
|
6567
|
-
<li><strong>Lines (code):</strong>
|
|
6634
|
+
<li><strong>Lines (comments):</strong> 471-476</li>
|
|
6635
|
+
<li><strong>Lines (code):</strong> 478-480</li>
|
|
6568
6636
|
</ul>
|
|
6569
6637
|
</details>
|
|
6570
|
-
<h4 id="parameters-
|
|
6638
|
+
<h4 id="parameters-24" tabindex="-1">Parameters</h4>
|
|
6571
6639
|
<table>
|
|
6572
6640
|
<thead>
|
|
6573
6641
|
<tr>
|
|
@@ -6599,7 +6667,7 @@
|
|
|
6599
6667
|
</tr>
|
|
6600
6668
|
</tbody>
|
|
6601
6669
|
</table>
|
|
6602
|
-
<h4 id="returns-
|
|
6670
|
+
<h4 id="returns-15" tabindex="-1">Returns</h4>
|
|
6603
6671
|
<table>
|
|
6604
6672
|
<thead>
|
|
6605
6673
|
<tr>
|
|
@@ -6612,7 +6680,7 @@
|
|
|
6612
6680
|
</tr>
|
|
6613
6681
|
</tbody>
|
|
6614
6682
|
</table>
|
|
6615
|
-
<h4 id="require-
|
|
6683
|
+
<h4 id="require-15" tabindex="-1">Require</h4>
|
|
6616
6684
|
<ul>
|
|
6617
6685
|
<li><a href="/frontend/sass/core/breakpoint/#variable-sizes">$sizes</a></li>
|
|
6618
6686
|
</ul>
|
|
@@ -6629,11 +6697,11 @@
|
|
|
6629
6697
|
<li><strong>File:</strong> _utils.scss</li>
|
|
6630
6698
|
<li><strong>Group:</strong> utils</li>
|
|
6631
6699
|
<li><strong>Type:</strong> function</li>
|
|
6632
|
-
<li><strong>Lines (comments):</strong>
|
|
6633
|
-
<li><strong>Lines (code):</strong>
|
|
6700
|
+
<li><strong>Lines (comments):</strong> 482-485</li>
|
|
6701
|
+
<li><strong>Lines (code):</strong> 487-489</li>
|
|
6634
6702
|
</ul>
|
|
6635
6703
|
</details>
|
|
6636
|
-
<h4 id="parameters-
|
|
6704
|
+
<h4 id="parameters-25" tabindex="-1">Parameters</h4>
|
|
6637
6705
|
<table>
|
|
6638
6706
|
<thead>
|
|
6639
6707
|
<tr>
|
|
@@ -6655,7 +6723,7 @@
|
|
|
6655
6723
|
</tr>
|
|
6656
6724
|
</tbody>
|
|
6657
6725
|
</table>
|
|
6658
|
-
<h4 id="returns-
|
|
6726
|
+
<h4 id="returns-16" tabindex="-1">Returns</h4>
|
|
6659
6727
|
<table>
|
|
6660
6728
|
<thead>
|
|
6661
6729
|
<tr>
|
|
@@ -6669,6 +6737,63 @@
|
|
|
6669
6737
|
<td style="text-align:left">Em Conversion</td>
|
|
6670
6738
|
</tr>
|
|
6671
6739
|
</tbody>
|
|
6740
|
+
</table>
|
|
6741
|
+
<div class="sassdoc-item-header">
|
|
6742
|
+
<h3 id="function-hypotenuse" tabindex="-1">hypotenuse()</h3>
|
|
6743
|
+
<div class="sassdoc-item-header__labels">
|
|
6744
|
+
<span class="tag tag--primary"><strong>Function</strong></span>
|
|
6745
|
+
</div>
|
|
6746
|
+
</div>
|
|
6747
|
+
<p>Calculates the hypotenuse of a triangle</p>
|
|
6748
|
+
<ul>
|
|
6749
|
+
<li>Can be used to get length between two corners of a rectangle</li>
|
|
6750
|
+
</ul>
|
|
6751
|
+
<details>
|
|
6752
|
+
<summary>File Information</summary>
|
|
6753
|
+
<ul>
|
|
6754
|
+
<li><strong>File:</strong> _utils.scss</li>
|
|
6755
|
+
<li><strong>Group:</strong> utils</li>
|
|
6756
|
+
<li><strong>Type:</strong> function</li>
|
|
6757
|
+
<li><strong>Lines (comments):</strong> 505-509</li>
|
|
6758
|
+
<li><strong>Lines (code):</strong> 511-513</li>
|
|
6759
|
+
</ul>
|
|
6760
|
+
</details>
|
|
6761
|
+
<h4 id="parameters-26" tabindex="-1">Parameters</h4>
|
|
6762
|
+
<table>
|
|
6763
|
+
<thead>
|
|
6764
|
+
<tr>
|
|
6765
|
+
<th style="text-align:left">Name</th>
|
|
6766
|
+
<th style="text-align:left">Type</th>
|
|
6767
|
+
<th style="text-align:left">Description</th>
|
|
6768
|
+
</tr>
|
|
6769
|
+
</thead>
|
|
6770
|
+
<tbody>
|
|
6771
|
+
<tr>
|
|
6772
|
+
<td style="text-align:left">$width</td>
|
|
6773
|
+
<td style="text-align:left"><code>Number</code></td>
|
|
6774
|
+
<td style="text-align:left">The width of the triangle</td>
|
|
6775
|
+
</tr>
|
|
6776
|
+
<tr>
|
|
6777
|
+
<td style="text-align:left">$height</td>
|
|
6778
|
+
<td style="text-align:left"><code>Number</code></td>
|
|
6779
|
+
<td style="text-align:left">The height of the triangle</td>
|
|
6780
|
+
</tr>
|
|
6781
|
+
</tbody>
|
|
6782
|
+
</table>
|
|
6783
|
+
<h4 id="returns-17" tabindex="-1">Returns</h4>
|
|
6784
|
+
<table>
|
|
6785
|
+
<thead>
|
|
6786
|
+
<tr>
|
|
6787
|
+
<th style="text-align:left">Type</th>
|
|
6788
|
+
<th style="text-align:left">Description</th>
|
|
6789
|
+
</tr>
|
|
6790
|
+
</thead>
|
|
6791
|
+
<tbody>
|
|
6792
|
+
<tr>
|
|
6793
|
+
<td style="text-align:left">Number</td>
|
|
6794
|
+
<td style="text-align:left">Hypotenuse of a triangle</td>
|
|
6795
|
+
</tr>
|
|
6796
|
+
</tbody>
|
|
6672
6797
|
</table>
|
|
6673
6798
|
|
|
6674
6799
|
</div>
|