|
1 | 1 | /**
|
2 |
| - * @parent bit-docs-generate-html/theme/styles |
3 |
| - * @page bit-docs-generate-html/theme/styles/mixins mixins |
4 |
| - * @group bit-docs-generate-html/theme/styles/mixins/helper #helper |
| 2 | + * @parent bit-docs-generate-html/theme |
| 3 | + * @module bit-docs-generate-html/site/default/static/styles/mixins.less mixins.less |
5 | 4 | *
|
6 | 5 | * @description Mixins for site-wide visual layout.
|
7 | 6 | *
|
8 | 7 | * @body
|
9 | 8 | *
|
10 | 9 | * Mixins are useful as reusable rules that can be added into any declaration.
|
| 10 | + * |
| 11 | + * Read more about mixins [here](http://lesscss.org/features/#mixins-feature). |
11 | 12 | */
|
12 | 13 |
|
13 | 14 | #helper {
|
14 | 15 | /**
|
15 |
| - * @function bit-docs-generate-html/theme/styles/mixins/helper/padding .padding |
16 |
| - * @parent bit-docs-generate-html/theme/styles/mixins/helper |
| 16 | + * @property {ParametricMixin} helper-padding #helper.padding |
17 | 17 | *
|
18 | 18 | * Sets padding for passed sides.
|
19 | 19 | *
|
20 |
| - * @signature `#helper.padding(@sides; @amount: @defaultPadding)` |
| 20 | + * @signature `#helper.padding(@sides; @amount: @defaultPadding);` |
21 | 21 | *
|
22 | 22 | * @param {String} @sides A space-separated list of "sides", like `left right`.
|
23 | 23 | *
|
24 | 24 | * @param {Number} @amount An amount of padding in pixels, defaults to
|
25 |
| - * [bit-docs-generate-html/theme/styles/variables/@defaultPadding @defaultPadding]. |
| 25 | + * [bit-docs-generate-html/site/default/static/styles/variables.less.defaultPadding]. |
26 | 26 | *
|
27 | 27 | * @body
|
28 | 28 | *
|
|
39 | 39 | }
|
40 | 40 |
|
41 | 41 | /**
|
42 |
| - * @function bit-docs-generate-html/theme/styles/mixins/helper/flex .flex |
43 |
| - * @parent bit-docs-generate-html/theme/styles/mixins/helper |
| 42 | + * @property {ParametricMixin} helper-flex #helper.flex |
44 | 43 | *
|
45 | 44 | * Sets flexbox "grow" and "shrink" in most compatible way.
|
46 | 45 | *
|
47 |
| - * @signature `#helper.flex(@grow: 0, @shrink: 1)` |
| 46 | + * @signature `#helper.flex(@grow: 0, @shrink: 1);` |
48 | 47 | *
|
49 | 48 | * @param {Number} @grow The amount this flex item should grow, defaults to 0.
|
50 | 49 | *
|
|
60 | 59 | * }
|
61 | 60 | * ```
|
62 | 61 | */
|
63 |
| - .flex(@grow: 0, @shrink: 1) { |
| 62 | + .flex(@grow: 0; @shrink: 1) { |
64 | 63 | -webkit-box-flex: @grow;
|
65 | 64 | -webkit-flex: @grow @shrink auto;
|
66 | 65 | -moz-box-flex: @grow;
|
|
69 | 68 | }
|
70 | 69 |
|
71 | 70 | /**
|
72 |
| - * @function bit-docs-generate-html/theme/styles/mixins/helper/property-names .property-names |
73 |
| - * @parent bit-docs-generate-html/theme/styles/mixins/helper |
| 71 | + * @property {ParametricMixin} helper-property-names #helper.property-names |
74 | 72 | * @hide
|
75 | 73 | *
|
76 | 74 | * Helper for setting multiple dash properties to same value.
|
77 | 75 | *
|
78 |
| - * @signature `#helper.property-names(@p; @s; @v)` |
| 76 | + * @signature `#helper.property-names(@p; @s; @v: 0);` |
79 | 77 | *
|
80 | 78 | * @param {String} @p The property name to prepend before the dash and string.
|
81 | 79 | *
|
82 | 80 | * @param {String} @s A space-separated list of strings to iterate over.
|
83 | 81 | *
|
84 |
| - * @param {Number} @v The value to set each concatenated property to. |
| 82 | + * @param {Number} @v The value to set each concatenated property to, defaults to 0. |
85 | 83 | *
|
86 | 84 | * @body
|
87 | 85 | *
|
|
97 | 95 | * }
|
98 | 96 | * ```
|
99 | 97 | */
|
100 |
| - .property-names(@p; @s; @v) { |
| 98 | + .property-names(@p; @s; @v: 0) { |
101 | 99 | .-(@i: length(@s)) when (@i > 0) {
|
102 | 100 | @n: extract(@s, @i);
|
103 | 101 | & {@{p}-@{n}: @v}
|
|
109 | 107 | // Flexbox (flexbugs: https://github.com/philipwalton/flexbugs)
|
110 | 108 |
|
111 | 109 | /**
|
112 |
| - * @property bit-docs-generate-html/theme/styles/mixins/display-flex .display-flex |
113 |
| - * @parent bit-docs-generate-html/theme/styles/mixins |
| 110 | + * @property {Mixin} display-flex .display-flex |
114 | 111 | *
|
115 | 112 | * Sets the display to flex using vendor prefixes.
|
116 | 113 | *
|
|
133 | 130 | }
|
134 | 131 |
|
135 | 132 | /**
|
136 |
| - * @property bit-docs-generate-html/theme/styles/mixins/flex-row .flex-row |
137 |
| - * @parent bit-docs-generate-html/theme/styles/mixins |
| 133 | + * @property {Mixin} flex-row .flex-row |
138 | 134 | *
|
139 | 135 | * Sets the display to flex and direction to row using vendor prefixes.
|
140 | 136 | *
|
|
160 | 156 | }
|
161 | 157 |
|
162 | 158 | /**
|
163 |
| - * @property bit-docs-generate-html/theme/styles/mixins/flex-column .flex-column |
164 |
| - * @parent bit-docs-generate-html/theme/styles/mixins |
| 159 | + * @property {Mixin} flex-column .flex-column |
165 | 160 | *
|
166 | 161 | * Sets the display to flex and direction to column using vendor prefixes.
|
167 | 162 | *
|
|
187 | 182 | }
|
188 | 183 |
|
189 | 184 | /**
|
190 |
| - * @property bit-docs-generate-html/theme/styles/mixins/flex-initial .flex-initial |
191 |
| - * @parent bit-docs-generate-html/theme/styles/mixins |
| 185 | + * @property {Mixin} flex-initial .flex-initial |
192 | 186 | *
|
193 | 187 | * Emulates `flex: initial;` in a compatible way using vendor prefixes.
|
194 | 188 | *
|
|
207 | 201 | }
|
208 | 202 |
|
209 | 203 | /**
|
210 |
| - * @property bit-docs-generate-html/theme/styles/mixins/flex-auto .flex-auto |
211 |
| - * @parent bit-docs-generate-html/theme/styles/mixins |
| 204 | + * @property {Mixin} flex-auto .flex-auto |
212 | 205 | *
|
213 | 206 | * Emulates `flex: auto;` in a compatible way using vendor prefixes.
|
214 | 207 | *
|
|
227 | 220 | }
|
228 | 221 |
|
229 | 222 | /**
|
230 |
| - * @property bit-docs-generate-html/theme/styles/mixins/flex-none .flex-none |
231 |
| - * @parent bit-docs-generate-html/theme/styles/mixins |
| 223 | + * @property {Mixin} flex-none .flex-none |
232 | 224 | *
|
233 | 225 | * Emulates `flex: none;` in a compatible way using vendor prefixes.
|
234 | 226 | *
|
|
0 commit comments