diff options
author | Mark Otto <otto@github.com> | 2012-11-28 14:17:50 +0400 |
---|---|---|
committer | Mark Otto <otto@github.com> | 2012-11-28 14:17:50 +0400 |
commit | 296b8384050746b11c02bde2e68954981c3ec5fe (patch) | |
tree | 0b037f226ba224c8fe721384a630feac951eb02c /less | |
parent | bf3a5df371dc58cc4030bf0177b2be964054d4d8 (diff) |
Fixes #5616: scope carousel state classes to immediate children only
Diffstat (limited to 'less')
-rw-r--r-- | less/carousel.less | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/less/carousel.less b/less/carousel.less index 33f98ac4d2..072884d4f7 100644 --- a/less/carousel.less +++ b/less/carousel.less @@ -17,48 +17,48 @@ .carousel { - .item { + > .item { display: none; position: relative; .transition(.6s ease-in-out left); } // Account for jankitude on images - .item > img { + > .item > img { display: block; line-height: 1; } - .active, - .next, - .prev { display: block; } + > .active, + > .next, + > .prev { display: block; } - .active { + > .active { left: 0; } - .next, - .prev { + > .next, + > .prev { position: absolute; top: 0; width: 100%; } - .next { + > .next { left: 100%; } - .prev { + > .prev { left: -100%; } - .next.left, - .prev.right { + > .next.left, + > .prev.right { left: 0; } - .active.left { + > .active.left { left: -100%; } - .active.right { + > .active.right { left: 100%; } |