Skip to content

Commit ff82799

Browse files
lucperkinsjgthms
authored andcommitted
Add is-relative helper plus docs
1 parent 394fd36 commit ff82799

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

docs/documentation/modifiers/helpers.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,9 @@
6363
<td><code>is-sr-only</code></td>
6464
<td>Hide elements <strong>visually</strong> but keep the element available to be announced by a <strong>screen reader</strong></td>
6565
</tr>
66+
<tr>
67+
<td><code>is-relative</code></td>
68+
<td>Applies <code>position: relative</code> to the element.</td>
69+
</tr>
6670
</tbody>
6771
</table>

sass/base/helpers.sass

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,3 +274,6 @@ $displays: 'block' 'flex' 'inline' 'inline-block' 'inline-flex'
274274

275275
.is-unselectable
276276
@extend %unselectable
277+
278+
.is-relative
279+
position: relative

0 commit comments

Comments
 (0)