Skip to content

Commit

Permalink
Disable pointer events for disabled items
Browse files Browse the repository at this point in the history
  • Loading branch information
benschwarz committed Apr 16, 2013
1 parent e843871 commit f0464be
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 6 deletions.
10 changes: 10 additions & 0 deletions dist/gallery.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@
display: none;
}
.gallery .control-operator:target ~ .item {
pointer-events: none;
opacity: 0;
animation: none;
}
.gallery .control-operator:target + .item {
pointer-events: auto;
opacity: 1;
}
.gallery .control-operator:target ~ .controls .control-button {
Expand All @@ -50,6 +52,7 @@

@keyframes galleryAnimation-2 {
0% {
pointer-events: none;
opacity: 0;
}

Expand All @@ -59,6 +62,7 @@
}

64.28571% {
pointer-events: auto;
opacity: 0;
}
}
Expand Down Expand Up @@ -98,6 +102,7 @@

@keyframes galleryAnimation-3 {
0% {
pointer-events: none;
opacity: 0;
}

Expand All @@ -107,6 +112,7 @@
}

42.85714% {
pointer-events: auto;
opacity: 0;
}
}
Expand Down Expand Up @@ -150,6 +156,7 @@

@keyframes galleryAnimation-4 {
0% {
pointer-events: none;
opacity: 0;
}

Expand All @@ -159,6 +166,7 @@
}

32.14286% {
pointer-events: auto;
opacity: 0;
}
}
Expand Down Expand Up @@ -206,6 +214,7 @@

@keyframes galleryAnimation-5 {
0% {
pointer-events: none;
opacity: 0;
}

Expand All @@ -215,6 +224,7 @@
}

25.71429% {
pointer-events: auto;
opacity: 0;
}
}
Expand Down
2 changes: 1 addition & 1 deletion dist/gallery.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 34 additions & 0 deletions dist/gallery.prefixed.css
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
}

.gallery .control-operator:target ~ .item {
pointer-events: none;
opacity: 0;
-moz-animation: none;
-webkit-animation: none;
Expand All @@ -48,6 +49,7 @@
}

.gallery .control-operator:target + .item {
pointer-events: auto;
opacity: 1
}

Expand Down Expand Up @@ -77,6 +79,7 @@

@keyframes galleryAnimation-2 {
0% {
pointer-events: none;
opacity: 0
}

Expand All @@ -85,6 +88,7 @@
}

64.28571% {
pointer-events: auto;
opacity: 0
}
}
Expand Down Expand Up @@ -138,6 +142,7 @@

@keyframes galleryAnimation-3 {
0% {
pointer-events: none;
opacity: 0
}

Expand All @@ -146,6 +151,7 @@
}

42.85714% {
pointer-events: auto;
opacity: 0
}
}
Expand Down Expand Up @@ -207,6 +213,7 @@

@keyframes galleryAnimation-4 {
0% {
pointer-events: none;
opacity: 0
}

Expand All @@ -215,6 +222,7 @@
}

32.14286% {
pointer-events: auto;
opacity: 0
}
}
Expand Down Expand Up @@ -284,6 +292,7 @@

@keyframes galleryAnimation-5 {
0% {
pointer-events: none;
opacity: 0
}

Expand All @@ -292,6 +301,7 @@
}

25.71429% {
pointer-events: auto;
opacity: 0
}
}
Expand Down Expand Up @@ -403,6 +413,7 @@

@-moz-keyframes galleryAnimation-2 {
0% {
pointer-events: none;
opacity: 0
}

Expand All @@ -411,12 +422,14 @@
}

64.28571% {
pointer-events: auto;
opacity: 0
}
}

@-webkit-keyframes galleryAnimation-2 {
0% {
pointer-events: none;
opacity: 0
}

Expand All @@ -425,12 +438,14 @@
}

64.28571% {
pointer-events: auto;
opacity: 0
}
}

@-o-keyframes galleryAnimation-2 {
0% {
pointer-events: none;
opacity: 0
}

Expand All @@ -439,6 +454,7 @@
}

64.28571% {
pointer-events: auto;
opacity: 0
}
}
Expand Down Expand Up @@ -496,6 +512,7 @@

@-moz-keyframes galleryAnimation-3 {
0% {
pointer-events: none;
opacity: 0
}

Expand All @@ -504,12 +521,14 @@
}

42.85714% {
pointer-events: auto;
opacity: 0
}
}

@-webkit-keyframes galleryAnimation-3 {
0% {
pointer-events: none;
opacity: 0
}

Expand All @@ -518,12 +537,14 @@
}

42.85714% {
pointer-events: auto;
opacity: 0
}
}

@-o-keyframes galleryAnimation-3 {
0% {
pointer-events: none;
opacity: 0
}

Expand All @@ -532,6 +553,7 @@
}

42.85714% {
pointer-events: auto;
opacity: 0
}
}
Expand Down Expand Up @@ -589,6 +611,7 @@

@-moz-keyframes galleryAnimation-4 {
0% {
pointer-events: none;
opacity: 0
}

Expand All @@ -597,12 +620,14 @@
}

32.14286% {
pointer-events: auto;
opacity: 0
}
}

@-webkit-keyframes galleryAnimation-4 {
0% {
pointer-events: none;
opacity: 0
}

Expand All @@ -611,12 +636,14 @@
}

32.14286% {
pointer-events: auto;
opacity: 0
}
}

@-o-keyframes galleryAnimation-4 {
0% {
pointer-events: none;
opacity: 0
}

Expand All @@ -625,6 +652,7 @@
}

32.14286% {
pointer-events: auto;
opacity: 0
}
}
Expand Down Expand Up @@ -682,6 +710,7 @@

@-moz-keyframes galleryAnimation-5 {
0% {
pointer-events: none;
opacity: 0
}

Expand All @@ -690,12 +719,14 @@
}

25.71429% {
pointer-events: auto;
opacity: 0
}
}

@-webkit-keyframes galleryAnimation-5 {
0% {
pointer-events: none;
opacity: 0
}

Expand All @@ -704,12 +735,14 @@
}

25.71429% {
pointer-events: auto;
opacity: 0
}
}

@-o-keyframes galleryAnimation-5 {
0% {
pointer-events: none;
opacity: 0
}

Expand All @@ -718,6 +751,7 @@
}

25.71429% {
pointer-events: auto;
opacity: 0
}
}
Loading

0 comments on commit f0464be

Please sign in to comment.