diff options
author | marcysutton <holla@marcysutton.com> | 2015-06-05 14:02:46 -0400 |
---|---|---|
committer | marcysutton <holla@marcysutton.com> | 2015-06-05 14:02:46 -0400 |
commit | 242f2d6c964111dc3d9a3dd958f80537a6223f13 (patch) | |
tree | 102ac7a255628c7859d3f03938e34cde78d4ee5c /css | |
parent | f0cf1f54d04088d241acf81eef42bd878a9f02ba (diff) | |
download | perl-software-in-gnu-guix-242f2d6c964111dc3d9a3dd958f80537a6223f13.tar perl-software-in-gnu-guix-242f2d6c964111dc3d9a3dd958f80537a6223f13.tar.gz |
accessibility: controls as buttons, not divs
Diffstat (limited to 'css')
-rw-r--r-- | css/reveal.css | 25 | ||||
-rw-r--r-- | css/reveal.scss | 26 |
2 files changed, 28 insertions, 23 deletions
diff --git a/css/reveal.css b/css/reveal.css index 258e975..a83c155 100644 --- a/css/reveal.css +++ b/css/reveal.css @@ -156,58 +156,61 @@ body { bottom: 10px; -webkit-user-select: none; } -.reveal .controls div { +.reveal .controls button { + padding: 0; position: absolute; opacity: 0.05; width: 0; height: 0; + background-color: transparent; border: 12px solid transparent; -webkit-transform: scale(0.9999); -ms-transform: scale(0.9999); transform: scale(0.9999); -webkit-transition: all 0.2s ease; transition: all 0.2s ease; + -webkit-appearance: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } -.reveal .controls div.enabled { +.reveal .controls button.enabled { opacity: 0.7; cursor: pointer; } -.reveal .controls div.enabled:active { +.reveal .controls button.enabled:active { margin-top: 1px; } -.reveal .controls div.navigate-left { +.reveal .controls button.navigate-left { top: 42px; border-right-width: 22px; border-right-color: #000; } -.reveal .controls div.navigate-left.fragmented { +.reveal .controls button.navigate-left.fragmented { opacity: 0.3; } -.reveal .controls div.navigate-right { +.reveal .controls button.navigate-right { left: 74px; top: 42px; border-left-width: 22px; border-left-color: #000; } -.reveal .controls div.navigate-right.fragmented { +.reveal .controls button.navigate-right.fragmented { opacity: 0.3; } -.reveal .controls div.navigate-up { +.reveal .controls button.navigate-up { left: 42px; border-bottom-width: 22px; border-bottom-color: #000; } -.reveal .controls div.navigate-up.fragmented { +.reveal .controls button.navigate-up.fragmented { opacity: 0.3; } -.reveal .controls div.navigate-down { +.reveal .controls button.navigate-down { left: 42px; top: 74px; border-top-width: 22px; border-top-color: #000; } -.reveal .controls div.navigate-down.fragmented { +.reveal .controls button.navigate-down.fragmented { opacity: 0.3; } /********************************************* diff --git a/css/reveal.scss b/css/reveal.scss index 3321c98..a8558a9 100644 --- a/css/reveal.scss +++ b/css/reveal.scss @@ -214,66 +214,68 @@ body { -webkit-user-select: none; } -.reveal .controls div { +.reveal .controls button { + padding: 0; position: absolute; opacity: 0.05; width: 0; height: 0; + background-color: transparent; border: 12px solid transparent; transform: scale(.9999); transition: all 0.2s ease; - + -webkit-appearance: none; -webkit-tap-highlight-color: rgba( 0, 0, 0, 0 ); } -.reveal .controls div.enabled { +.reveal .controls button.enabled { opacity: 0.7; cursor: pointer; } -.reveal .controls div.enabled:active { +.reveal .controls button.enabled:active { margin-top: 1px; } - .reveal .controls div.navigate-left { + .reveal .controls button.navigate-left { top: 42px; border-right-width: 22px; border-right-color: #000; } - .reveal .controls div.navigate-left.fragmented { + .reveal .controls button.navigate-left.fragmented { opacity: 0.3; } - .reveal .controls div.navigate-right { + .reveal .controls button.navigate-right { left: 74px; top: 42px; border-left-width: 22px; border-left-color: #000; } - .reveal .controls div.navigate-right.fragmented { + .reveal .controls button.navigate-right.fragmented { opacity: 0.3; } - .reveal .controls div.navigate-up { + .reveal .controls button.navigate-up { left: 42px; border-bottom-width: 22px; border-bottom-color: #000; } - .reveal .controls div.navigate-up.fragmented { + .reveal .controls button.navigate-up.fragmented { opacity: 0.3; } - .reveal .controls div.navigate-down { + .reveal .controls button.navigate-down { left: 42px; top: 74px; border-top-width: 22px; border-top-color: #000; } - .reveal .controls div.navigate-down.fragmented { + .reveal .controls button.navigate-down.fragmented { opacity: 0.3; } |