Skip to content

Commit f9c204a

Browse files
committed
Fixed modals not dropping down enough
I think this is a bug in newer versions of Stylus (tested on 0.40 and 0.42). It would incorrectly compile the rule as `.modal.in.modal-dialog` instead of `.modal.in .modal-dialog`
1 parent 8f7681e commit f9c204a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

stylus/modals.styl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@
3737
translate(0, -25%);
3838
transition-transform(0.3s ease-out);
3939

40-
&.in .modal-dialog
41-
translate(0, 0)
40+
&.in
41+
.modal-dialog
42+
translate(0, 0)
4243

4344
// Shell div to position the modal with bottom padding
4445
.modal-dialog {

0 commit comments

Comments
 (0)