diff --git a/transitions/cascade-transition.html b/transitions/cascade-transition.html index 0993228..551c911 100644 --- a/transitions/cascade-transition.html +++ b/transitions/cascade-transition.html @@ -10,90 +10,90 @@ - polyfill-next-selector { content: ':host(.cascade) > * [cascade] > div'; } - :host(.cascade) ::content > * /deep/ [cascade] > div { + polyfill-next-selector { content: ':host(.cascade) > * [cascade] > *'; } + :host(.cascade) ::content > * /deep/ [cascade] > * { -webkit-transition: -webkit-transform {{g.transitions.cascadeDuration || g.transitions.duration}} cubic-bezier(0.4, 0, 0.2, 1), opacity {{g.transitions.cascadeFadeDuration || g.transitions.duration}} cubic-bezier(0.4, 0, 0.2, 1); transition: transform {{g.transitions.cascadeDuration || g.transitions.duration}} cubic-bezier(0.4, 0, 0.2, 1), opacity {{g.transitions.cascadeFadeDuration || g.transitions.duration}} cubic-bezier(0.4, 0, 0.2, 1); } - polyfill-next-selector { content: ':host(.cascade) > * [cascade] > div:nth-of-type(2)'; } - :host(.cascade) ::content > * /deep/ [cascade] > div:nth-of-type(2) { + polyfill-next-selector { content: ':host(.cascade) > * [cascade] > *:nth-child(2)'; } + :host(.cascade) ::content > * /deep/ [cascade] > *:nth-child(2) { -webkit-transition-delay: 0.05s; transition-delay: 0.05s; } - polyfill-next-selector { content: ':host(.cascade) > * [cascade] > div:nth-of-type(3)'; } - :host(.cascade) ::content > * /deep/ [cascade] > div:nth-of-type(3) { + polyfill-next-selector { content: ':host(.cascade) > * [cascade] > *:nth-child(3)'; } + :host(.cascade) ::content > * /deep/ [cascade] > *:nth-child(3) { -webkit-transition-delay: 0.1s; transition-delay: 0.1s; } - polyfill-next-selector { content: ':host(.cascade) > * [cascade] > div:nth-of-type(4)'; } - :host(.cascade) ::content > * /deep/ [cascade] > div:nth-of-type(4) { + polyfill-next-selector { content: ':host(.cascade) > * [cascade] > *:nth-child(4)'; } + :host(.cascade) ::content > * /deep/ [cascade] > *:nth-child(4) { -webkit-transition-delay: 0.15s; transition-delay: 0.15s; } - polyfill-next-selector { content: ':host(.cascade) > * [cascade] > div:nth-of-type(5)'; } - :host(.cascade) ::content > * /deep/ [cascade] > div:nth-of-type(5) { + polyfill-next-selector { content: ':host(.cascade) > * [cascade] > *:nth-child(5)'; } + :host(.cascade) ::content > * /deep/ [cascade] > *:nth-child(5) { -webkit-transition-delay: 0.2s; transition-delay: 0.2s; } - polyfill-next-selector { content: ':host(.cascade) > * [cascade] > div:nth-of-type(6)'; } - :host(.cascade) ::content > * /deep/ [cascade] > div:nth-of-type(6) { + polyfill-next-selector { content: ':host(.cascade) > * [cascade] > *:nth-child(6)'; } + :host(.cascade) ::content > * /deep/ [cascade] > *:nth-child(6) { -webkit-transition-delay: 0.25s; transition-delay: 0.25s; } - polyfill-next-selector { content: ':host(.cascade) > * [cascade] > div:nth-of-type(7)'; } - :host(.cascade) ::content > * /deep/ [cascade] > div:nth-of-type(7) { + polyfill-next-selector { content: ':host(.cascade) > * [cascade] > *:nth-child(7)'; } + :host(.cascade) ::content > * /deep/ [cascade] > *:nth-child(7) { -webkit-transition-delay: 0.3s; transition-delay: 0.3s; } - polyfill-next-selector { content: ':host(.cascade) > * [cascade] > div:nth-of-type(8)'; } - :host(.cascade) ::content > * /deep/ [cascade] > div:nth-of-type(8) { + polyfill-next-selector { content: ':host(.cascade) > * [cascade] > *:nth-child(8)'; } + :host(.cascade) ::content > * /deep/ [cascade] > *:nth-child(8) { -webkit-transition-delay: 0.35s; transition-delay: 0.35s; } - polyfill-next-selector { content: ':host(.cascade) > * [cascade] > div:nth-of-type(9)'; } - :host(.cascade) ::content > * /deep/ [cascade] > div:nth-of-type(9) { + polyfill-next-selector { content: ':host(.cascade) > * [cascade] > *:nth-child(9)'; } + :host(.cascade) ::content > * /deep/ [cascade] > *:nth-child(9) { -webkit-transition-delay: 0.4s; transition-delay: 0.4s; } - polyfill-next-selector { content: ':host(.cascade) > * [cascade] > div:nth-of-type(10)'; } - :host(.cascade) ::content > * /deep/ [cascade] > div:nth-of-type(10) { + polyfill-next-selector { content: ':host(.cascade) > * [cascade] > *:nth-child(10)'; } + :host(.cascade) ::content > * /deep/ [cascade] > *:nth-child(10) { -webkit-transition-delay: 0.45s; transition-delay: 0.45s; } - polyfill-next-selector { content: ':host(.cascade) > * [cascade] > div:nth-of-type(11)'; } - :host(.cascade) ::content > * /deep/ [cascade] > div:nth-of-type(11) { + polyfill-next-selector { content: ':host(.cascade) > * [cascade] > *:nth-child(11)'; } + :host(.cascade) ::content > * /deep/ [cascade] > *:nth-child(11) { -webkit-transition-delay: 0.5s; transition-delay: 0.5s; } - polyfill-next-selector { content: ':host(.cascade) > * [cascade] > div:nth-of-type(12)'; } - :host(.cascade) ::content > * /deep/ [cascade] > div:nth-of-type(12) { + polyfill-next-selector { content: ':host(.cascade) > * [cascade] > *:nth-child(12)'; } + :host(.cascade) ::content > * /deep/ [cascade] > *:nth-child(12) { -webkit-transition-delay: 0.55s; transition-delay: 0.55s; } - polyfill-next-selector { content: '.core-selected [cascade] > div'; } - ::content > .core-selected /deep/ [cascade] > div { + polyfill-next-selector { content: '.core-selected [cascade] > *'; } + ::content > .core-selected /deep/ [cascade] > * { } - polyfill-next-selector { content: '[animate]:not(.core-selected) [cascade] > div'; } - ::content > [animate]:not(.core-selected) /deep/ [cascade] > div { + polyfill-next-selector { content: '[animate]:not(.core-selected) [cascade] > *'; } + ::content > [animate]:not(.core-selected) /deep/ [cascade] > * { -webkit-transform: translateY(100%); transform: translateY(100%); } - polyfill-next-selector { content: '[animate]:not(.core-selected) [cascade][fade] > div'; } - ::content > [animate]:not(.core-selected) /deep/ [cascade][fade] > div { + polyfill-next-selector { content: '[animate]:not(.core-selected) [cascade][fade] > *'; } + ::content > [animate]:not(.core-selected) /deep/ [cascade][fade] > * { opacity: 0; } diff --git a/transitions/list-cascade.html b/transitions/list-cascade.html index 4a4c205..d9e1927 100644 --- a/transitions/list-cascade.html +++ b/transitions/list-cascade.html @@ -11,48 +11,49 @@ - polyfill-next-selector { content: ':host.list-cascade > * [list-cascade]'; } - :host(.list-cascade) ::content > * [list-cascade] * { + polyfill-next-selector { content: ':host.list-cascade > * [list-cascade] > *'; } + :host(.list-cascade) ::content > * [list-cascade] > * { -webkit-transition: -webkit-transform 1s cubic-bezier(0.4, 0, 0.2, 1), opacity {{g.transitions.cascade || g.transitions.duration}} cubic-bezier(0.4, 0, 0.2, 1); transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1), opacity {{g.transitions.cascade || g.transitions.duration}} cubic-bezier(0.4, 0, 0.2, 1); } - polyfill-next-selector { content: ':host > .core-selected [list-cascade] *'; } - ::content > .core-selected [list-cascade] * { + polyfill-next-selector { content: ':host > .core-selected [list-cascade] > *'; } + ::content > .core-selected [list-cascade] > * { -webkit-transform: none; transform: none; } - polyfill-next-selector { content: ':host > *:not(.core-selected) [list-cascade] *'; } - ::content > *:not(.core-selected) [list-cascade] * { + polyfill-next-selector { content: ':host > *:not(.core-selected) [list-cascade] > *'; } + ::content > *:not(.core-selected) [list-cascade] > * { -webkit-transform: translateY(200%); transform: translateY(200%); opacity: 0.2; } - polyfill-next-selector { content: ':host > .core-selected [list-cascade] *:nth-child(2)'; } - ::content > .core-selected [list-cascade] *:nth-child(2) { + polyfill-next-selector { content: ':host > .core-selected [list-cascade] > *:nth-child(2)'; } + ::content > .core-selected [list-cascade] > *:nth-child(2) { -webkit-transition-delay: 0.1s; transition-delay: 0.1s; } - polyfill-next-selector { content: ':host > .core-selected [list-cascade] *:nth-child(3)'; } - ::content > .core-selected [list-cascade] *:nth-child(3) { + polyfill-next-selector { content: ':host > .core-selected [list-cascade] > *:nth-child(3)'; } + ::content > .core-selected [list-cascade] > *:nth-child(3) { -webkit-transition-delay: 0.2s; transition-delay: 0.2s; } - polyfill-next-selector { content: ':host > .core-selected [list-cascade] *:nth-child(4)'; } - ::content > .core-selected [list-cascade] *:nth-child(4) { + polyfill-next-selector { content: ':host > .core-selected [list-cascade] > *:nth-child(4)'; } + ::content > .core-selected [list-cascade] > *:nth-child(4) { -webkit-transition-delay: 0.3s; transition-delay: 0.3s; } - polyfill-next-selector { content: ':host > .core-selected [list-cascade] *:nth-child(5)'; } - ::content > .core-selected [list-cascade] *:nth-child(5) { + polyfill-next-selector { content: ':host > .core-selected [list-cascade] > *:nth-child(5)'; } + ::content > .core-selected [list-cascade] > *:nth-child(5) { -webkit-transition-delay: 0.4s; transition-delay: 0.4s; } + diff --git a/transitions/tile-cascade.html b/transitions/tile-cascade.html index 61ef94d..4cabf24 100644 --- a/transitions/tile-cascade.html +++ b/transitions/tile-cascade.html @@ -10,92 +10,93 @@ - polyfill-next-selector { content: ':host(.tile-cascade) > * [tile-cascade] > div'; } - :host(.tile-cascade) ::content > * /deep/ [tile-cascade] > div { + polyfill-next-selector { content: ':host(.tile-cascade) > * [tile-cascade] > *'; } + :host(.tile-cascade) ::content > * /deep/ [tile-cascade] > * { -webkit-transition: -webkit-transform {{g.transitions.cascadeDuration || g.transitions.duration}} cubic-bezier(0.4, 0, 0.2, 1), opacity {{g.transitions.cascadeFadeDuration || g.transitions.duration}} cubic-bezier(0.4, 0, 0.2, 1); transition: transform {{g.transitions.cascadeDuration || g.transitions.duration}} cubic-bezier(0.4, 0, 0.2, 1), opacity {{g.transitions.cascadeFadeDuration || g.transitions.duration}} cubic-bezier(0.4, 0, 0.2, 1); } - polyfill-next-selector { content: ':host(.tile-cascade) > * [tile-cascade] > div:nth-of-type(2)'; } - :host(.tile-cascade) ::content > * /deep/ [tile-cascade] > div:nth-of-type(2) { + polyfill-next-selector { content: ':host(.tile-cascade) > * [tile-cascade] > *:nth-child(2)'; } + :host(.tile-cascade) ::content > * /deep/ [tile-cascade] > *:nth-child(2) { -webkit-transition-delay: 0.05s; transition-delay: 0.05s; } - polyfill-next-selector { content: ':host(.tile-cascade) > * [tile-cascade] > div:nth-of-type(3)'; } - :host(.tile-cascade) ::content > * /deep/ [tile-cascade] > div:nth-of-type(3) { + polyfill-next-selector { content: ':host(.tile-cascade) > * [tile-cascade] > *:nth-child(3)'; } + :host(.tile-cascade) ::content > * /deep/ [tile-cascade] > *:nth-child(3) { -webkit-transition-delay: 0.1s; transition-delay: 0.1s; } - polyfill-next-selector { content: ':host(.tile-cascade) > * [tile-cascade] > div:nth-of-type(4)'; } - :host(.tile-cascade) ::content > * /deep/ [tile-cascade] > div:nth-of-type(4) { + polyfill-next-selector { content: ':host(.tile-cascade) > * [tile-cascade] > *:nth-child(4)'; } + :host(.tile-cascade) ::content > * /deep/ [tile-cascade] > *:nth-child(4) { -webkit-transition-delay: 0.15s; transition-delay: 0.15s; } - polyfill-next-selector { content: ':host(.tile-cascade) > * [tile-cascade] > div:nth-of-type(5)'; } - :host(.tile-cascade) ::content > * /deep/ [tile-cascade] > div:nth-of-type(5) { + polyfill-next-selector { content: ':host(.tile-cascade) > * [tile-cascade] > *:nth-child(5)'; } + :host(.tile-cascade) ::content > * /deep/ [tile-cascade] > *:nth-child(5) { -webkit-transition-delay: 0.2s; transition-delay: 0.2s; } - polyfill-next-selector { content: ':host(.tile-cascade) > * [tile-cascade] > div:nth-of-type(6)'; } - :host(.tile-cascade) ::content > * /deep/ [tile-cascade] > div:nth-of-type(6) { + polyfill-next-selector { content: ':host(.tile-cascade) > * [tile-cascade] > *:nth-child(6)'; } + :host(.tile-cascade) ::content > * /deep/ [tile-cascade] > *:nth-child(6) { -webkit-transition-delay: 0.25s; transition-delay: 0.25s; } - polyfill-next-selector { content: ':host(.tile-cascade) > * [tile-cascade] > div:nth-of-type(7)'; } - :host(.tile-cascade) ::content > * /deep/ [tile-cascade] > div:nth-of-type(7) { + polyfill-next-selector { content: ':host(.tile-cascade) > * [tile-cascade] > *:nth-child(7)'; } + :host(.tile-cascade) ::content > * /deep/ [tile-cascade] > *:nth-child(7) { -webkit-transition-delay: 0.3s; transition-delay: 0.3s; } - polyfill-next-selector { content: ':host(.tile-cascade) > * [tile-cascade] > div:nth-of-type(8)'; } - :host(.tile-cascade) ::content > * /deep/ [tile-cascade] > div:nth-of-type(8) { + polyfill-next-selector { content: ':host(.tile-cascade) > * [tile-cascade] > *:nth-child(8)'; } + :host(.tile-cascade) ::content > * /deep/ [tile-cascade] > *:nth-child(8) { -webkit-transition-delay: 0.35s; transition-delay: 0.35s; } - polyfill-next-selector { content: ':host(.tile-cascade) > * [tile-cascade] > div:nth-of-type(9)'; } - :host(.tile-cascade) ::content > * /deep/ [tile-cascade] > div:nth-of-type(9) { + polyfill-next-selector { content: ':host(.tile-cascade) > * [tile-cascade] > *:nth-child(9)'; } + :host(.tile-cascade) ::content > * /deep/ [tile-cascade] > *:nth-child(9) { -webkit-transition-delay: 0.4s; transition-delay: 0.4s; } - polyfill-next-selector { content: ':host(.tile-cascade) > * [tile-cascade] > div:nth-of-type(10)'; } - :host(.tile-cascade) ::content > * /deep/ [tile-cascade] > div:nth-of-type(10) { + polyfill-next-selector { content: ':host(.tile-cascade) > * [tile-cascade] > *:nth-child(10)'; } + :host(.tile-cascade) ::content > * /deep/ [tile-cascade] > *:nth-child(10) { -webkit-transition-delay: 0.45s; transition-delay: 0.45s; } - polyfill-next-selector { content: ':host(.tile-cascade) > * [tile-cascade] > div:nth-of-type(11)'; } - :host(.tile-cascade) ::content > * /deep/ [tile-cascade] > div:nth-of-type(11) { + polyfill-next-selector { content: ':host(.tile-cascade) > * [tile-cascade] > *:nth-child(11)'; } + :host(.tile-cascade) ::content > * /deep/ [tile-cascade] > *:nth-child(11) { -webkit-transition-delay: 0.5s; transition-delay: 0.5s; } - polyfill-next-selector { content: ':host(.tile-cascade) > * [tile-cascade] > div:nth-of-type(12)'; } - :host(.tile-cascade) ::content > * /deep/ [tile-cascade] > div:nth-of-type(12) { + polyfill-next-selector { content: ':host(.tile-cascade) > * [tile-cascade] > *:nth-child(12)'; } + :host(.tile-cascade) ::content > * /deep/ [tile-cascade] > *:nth-child(12) { -webkit-transition-delay: 0.55s; transition-delay: 0.55s; } - polyfill-next-selector { content: '.core-selected [tile-cascade] > div'; } - ::content > .core-selected /deep/ [tile-cascade] > div { + polyfill-next-selector { content: '.core-selected [tile-cascade] > *'; } + ::content > .core-selected /deep/ [tile-cascade] > * { } - polyfill-next-selector { content: '[animate]:not(.core-selected) [tile-cascade] > div'; } - ::content > [animate]:not(.core-selected) /deep/ [tile-cascade] > div { + polyfill-next-selector { content: '[animate]:not(.core-selected) [tile-cascade] > *'; } + ::content > [animate]:not(.core-selected) /deep/ [tile-cascade] > * { -webkit-transform: translateY(100%); transform: translateY(100%); } - polyfill-next-selector { content: '[animate]:not(.core-selected) [tile-cascade][fade] > div'; } - ::content > [animate]:not(.core-selected) /deep/ [tile-cascade][fade] > div { + polyfill-next-selector { content: '[animate]:not(.core-selected) [tile-cascade][fade] > *'; } + ::content > [animate]:not(.core-selected) /deep/ [tile-cascade][fade] > * { opacity: 0; } +