Add global declaration to $prop assignment.

This commit is contained in:
kapito 2016-04-26 16:22:20 +01:00 committed by Matt Westcott
parent 83bfaf14a8
commit eecec1b7ce
2 changed files with 3 additions and 2 deletions

View file

@ -126,6 +126,7 @@ Contributors
* Tomas Olander
* Andrew Tork Baker
* Vincent Audebert
* Jack Paine
Translators
===========

View file

@ -298,11 +298,11 @@ $positions: (
@for $i from 1 through $max-items {
@if $vertical == 'bottom' {
$prop: 'nth-last-child';
$prop: 'nth-last-child' !global;
}
@if $vertical == 'top' {
$prop: 'nth-child';
$prop: 'nth-child' !global;
}
&:#{unquote($prop)}(#{$i}) {