We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54ce126 commit 80b84aaCopy full SHA for 80b84aa
Tests/syntax_test_scss.scss
@@ -764,3 +764,20 @@ nav ul {
764
}
765
766
767
+//=============================================================================
768
+// Function
769
+// https://sass-lang.com/documentation/at-rules/function/
770
771
+@function fibonacci($n) {
772
+ $sequence: 0 1;
773
+ @for $_ from 1 through $n {
774
+ $new: nth($sequence, length($sequence)) + nth($sequence, length($sequence) - 1);
775
+ $sequence: append($sequence, $new);
776
+ }
777
+ @return nth($sequence, length($sequence));
778
+}
779
+
780
+.sidebar {
781
+ float: left;
782
+ margin-left: fibonacci(4) * 1px;
783
0 commit comments