Browse Source

Merge pull request #692 from Illyism/master

Accessible reveal
pull/701/head
Jack Lukic 11 years ago
parent
commit
815c49fddd
1 changed files with 36 additions and 17 deletions
  1. 53
      src/elements/reveal.less

53
src/elements/reveal.less

@ -132,10 +132,12 @@
left: 100% !important; left: 100% !important;
width: 100% !important; width: 100% !important;
} }
.ui.slide.reveal:hover > .visible.content {
.ui.slide.reveal:hover > .visible.content,
.ui.slide.reveal:focus > .visible.content, {
left: -100% !important; left: -100% !important;
} }
.ui.slide.reveal:hover > .hidden.content {
.ui.slide.reveal:hover > .hidden.content,
.ui.slide.reveal:focus > .hidden.content {
left: 0% !important; left: 0% !important;
} }
@ -146,11 +148,13 @@
left: auto !important; left: auto !important;
right: 100% !important; right: 100% !important;
} }
.ui.right.slide.reveal:hover > .visible.content {
.ui.right.slide.reveal:hover > .visible.content,
.ui.right.slide.reveal:focus > .visible.content {
left: 100% !important; left: 100% !important;
right: auto !important; right: auto !important;
} }
.ui.right.slide.reveal:hover > .hidden.content {
.ui.right.slide.reveal:hover > .hidden.content,
.ui.right.slide.reveal:focus > .hidden.content {
left: auto !important; left: auto !important;
right: 0% !important; right: 0% !important;
} }
@ -167,11 +171,13 @@
right: auto !important; right: auto !important;
bottom: auto !important; bottom: auto !important;
} }
.ui.slide.up.reveal:hover > .visible.content {
.ui.slide.up.reveal:hover > .visible.content,
.ui.slide.up.reveal:focus > .visible.content {
top: -100% !important; top: -100% !important;
left: 0% !important; left: 0% !important;
} }
.ui.slide.up.reveal:hover > .hidden.content {
.ui.slide.up.reveal:hover > .hidden.content,
.ui.slide.up.reveal:focus > .hidden.content {
top: 0% !important; top: 0% !important;
left: 0% !important; left: 0% !important;
} }
@ -188,11 +194,13 @@
bottom: 100% !important; bottom: 100% !important;
left: 0% !important; left: 0% !important;
} }
.ui.slide.down.reveal:hover > .visible.content {
.ui.slide.down.reveal:hover > .visible.content,
.ui.slide.down.reveal:focus > .visible.content {
left: 0% !important; left: 0% !important;
bottom: -100% !important; bottom: -100% !important;
} }
.ui.slide.down.reveal:hover > .hidden.content {
.ui.slide.down.reveal:hover > .hidden.content,
.ui.slide.down.reveal:focus > .hidden.content {
left: 0% !important; left: 0% !important;
bottom: 0% !important; bottom: 0% !important;
} }
@ -206,7 +214,8 @@
.ui.fade.reveal > .visible.content { .ui.fade.reveal > .visible.content {
opacity: 1; opacity: 1;
} }
.ui.fade.reveal:hover > .visible.content {
.ui.fade.reveal:hover > .visible.content,
.ui.fade.reveal:focus > .visible.content {
opacity: 0; opacity: 0;
} }
@ -223,7 +232,9 @@
right: 0% !important; right: 0% !important;
} }
.ui.move.reveal:hover > .visible.content, .ui.move.reveal:hover > .visible.content,
.ui.move.left.reveal:hover > .visible.content {
.ui.move.left.reveal:hover > .visible.content,
.ui.move.reveal:focus > .visible.content,
.ui.move.left.reveal:focus > .visible.content {
right: 100% !important; right: 100% !important;
} }
@ -233,7 +244,8 @@
bottom: auto !important; bottom: auto !important;
left: 0% !important; left: 0% !important;
} }
.ui.move.right.reveal:hover > .visible.content {
.ui.move.right.reveal:hover > .visible.content,
.ui.move.right.reveal:focus > .visible.content {
left: 100% !important; left: 100% !important;
} }
@ -244,7 +256,8 @@
bottom: 0% !important; bottom: 0% !important;
} }
.ui.move.up.reveal:hover > .visible.content {
.ui.move.up.reveal:hover > .visible.content,
.ui.move.up.reveal:focus > .visible.content {
bottom: 100% !important; bottom: 100% !important;
} }
@ -256,7 +269,8 @@
top: 0% !important; top: 0% !important;
bottom: auto !important; bottom: auto !important;
} }
.ui.move.down.reveal:hover > .visible.content {
.ui.move.down.reveal:hover > .visible.content,
.ui.move.down.reveal:focus > .visible.content {
top: 100% !important; top: 100% !important;
} }
@ -288,7 +302,9 @@
transform-origin: bottom right; transform-origin: bottom right;
} }
.ui.rotate.reveal:hover > .visible.content, .ui.rotate.reveal:hover > .visible.content,
.ui.rotate.right.reveal:hover > .visible.content {
.ui.rotate.right.reveal:hover > .visible.content,
.ui.rotate.reveal:focus > .visible.content,
.ui.rotate.right.reveal:focus > .visible.content {
-webkit-transform: rotate(110deg); -webkit-transform: rotate(110deg);
-moz-transform: rotate(110deg); -moz-transform: rotate(110deg);
-o-transform: rotate(110deg); -o-transform: rotate(110deg);
@ -303,7 +319,8 @@
-ms-transform-origin: bottom left; -ms-transform-origin: bottom left;
transform-origin: bottom left; transform-origin: bottom left;
} }
.ui.rotate.left.reveal:hover > .visible.content {
.ui.rotate.left.reveal:hover > .visible.content,
.ui.rotate.left.reveal:focus > .visible.content {
-webkit-transform: rotate(-110deg); -webkit-transform: rotate(-110deg);
-moz-transform: rotate(-110deg); -moz-transform: rotate(-110deg);
-o-transform: rotate(-110deg); -o-transform: rotate(-110deg);
@ -325,7 +342,8 @@
-ms-transition: none !important; -ms-transition: none !important;
transition: none !important; transition: none !important;
} }
.ui.disabled.reveal:hover > .visible.content {
.ui.disabled.reveal:hover > .visible.content,
.ui.disabled.reveal:focus > .visible.content {
position: static !important; position: static !important;
display: block !important; display: block !important;
opacity: 1 !important; opacity: 1 !important;
@ -335,7 +353,8 @@
bottom: auto !important; bottom: auto !important;
transform: none !important; transform: none !important;
} }
.ui.disabled.reveal:hover > .hidden.content {
.ui.disabled.reveal:hover > .hidden.content,
.ui.disabled.reveal:focus > .hidden.content {
display: none !important; display: none !important;
} }

Loading…
Cancel
Save