Skip to content

Commit 14ccc22

Browse files
authored
Merge pull request codrops#23 from fbossy/ios8-layout-fix
replace nth-child pseudo selector with nth-of-type as ios8 Safari fails ...
2 parents 810a46c + 2f3b22f commit 14ccc22

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

css/style.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
height: 100%;
2323
top: 0;
2424
left: 0;
25-
}
25+
}
2626

2727
.sl-slide {
2828
z-index: 1;
@@ -63,7 +63,7 @@
6363
padding: 200px 200px 0px 200px;
6464
}
6565

66-
.sl-slide-horizontal .sl-content-slice:nth-child(2) {
66+
.sl-slide-horizontal .sl-content-slice:nth-of-type(2) {
6767
top: 50%;
6868
padding: 0px 200px 200px 200px;
6969
}
@@ -86,7 +86,7 @@
8686
padding: 200px 0px 200px 200px;
8787
}
8888

89-
.sl-slide-vertical .sl-content-slice:nth-child(2) {
89+
.sl-slide-vertical .sl-content-slice:nth-of-type(2) {
9090
left: 50%;
9191
padding: 200px 200px 200px 0px;
9292
}

0 commit comments

Comments
 (0)