From ee6f4bad8fb1ca05422f48d3739b6e276a4e5464 Mon Sep 17 00:00:00 2001 From: Eric Eggert Date: Tue, 26 Nov 2019 11:12:27 +0100 Subject: [PATCH 1/2] Use CSS & JavaScript to show a possible solution for scrollable tables Signed-off-by: Eric Eggert --- content/index.md | 72 +++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 71 insertions(+), 1 deletion(-) diff --git a/content/index.md b/content/index.md index a518f286c..46024461b 100755 --- a/content/index.md +++ b/content/index.md @@ -14,6 +14,44 @@ footer: >

Developed by the Education and Outreach Working Group (EOWG). Developed as part of the WAI-Guide Project funded by the European Commission (EC) under the Horizon 2020 program (Grant Agreement 822245).

navigation: next: /curricula/introduction-to-web-accessibility/ +inline_css: | + .tablewrapper>div { + overflow-x: scroll; + } + .tablewrapper>div { + position:relative; + } + .tablewrapper:before { + display: block; + content: "Scroll to see the full table. ↔"; + text-align: right; + font-weight: bold; + } + .tablewrapper>div { + background-image: + linear-gradient(to right, var(--line-grey), transparent), + linear-gradient(to left, var(--line-grey), transparent); + background-size: 1rem, 1rem; + background-repeat: no-repeat, no-repeat; + background-position: left, right; + } + .tablewrapper.scrolled-to-right>div { + background-image: + linear-gradient(to right, var(--line-grey), transparent); + background-size: 1rem; + background-repeat: no-repeat; + background-position: left; + } + .tablewrapper.scrolled-to-left>div { + background-image: + linear-gradient(to left, var(--line-grey), transparent); + background-size: 1rem; + background-repeat: no-repeat; + background-position: right; + } + .tablewrapper table { + mix-blend-mode: multiply; + } --- ## Introduction @@ -62,6 +100,8 @@ The table below shows how this resource could address different roles. Currently only the first curriculum "Introduction to Web Accessibility" is available. Other curricula will follow, and will be linked from here. +
+
@@ -164,4 +204,34 @@ is available. Other curricula will follow, and will be linked from here.
-

Rows refer to three levels: basic, intermediate, and advanced. Columns refer to five roles: developer, designer, author, manager, and tester.

\ No newline at end of file +
+
+

Rows refer to three levels: basic, intermediate, and advanced. Columns refer to five roles: developer, designer, author, manager, and tester.

+ + \ No newline at end of file From 52ddaccdd0efb3255804546c544761073de6641f Mon Sep 17 00:00:00 2001 From: Eric Eggert Date: Tue, 26 Nov 2019 11:32:37 +0100 Subject: [PATCH 2/2] CSS fixes Signed-off-by: Eric Eggert --- content/index.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/content/index.md b/content/index.md index 46024461b..42a890aeb 100755 --- a/content/index.md +++ b/content/index.md @@ -29,24 +29,24 @@ inline_css: | } .tablewrapper>div { background-image: - linear-gradient(to right, var(--line-grey), transparent), - linear-gradient(to left, var(--line-grey), transparent); + linear-gradient(to right, var(--line-grey), rgba(255,255,255,0)), + linear-gradient(to left, var(--line-grey), rgba(255,255,255,0)); background-size: 1rem, 1rem; - background-repeat: no-repeat, no-repeat; + background-repeat: repeat-y, repeat-y; background-position: left, right; } .tablewrapper.scrolled-to-right>div { background-image: - linear-gradient(to right, var(--line-grey), transparent); + linear-gradient(to right, var(--line-grey), rgba(255,255,255,0)); background-size: 1rem; - background-repeat: no-repeat; + background-repeat: repeat-y; background-position: left; } .tablewrapper.scrolled-to-left>div { background-image: - linear-gradient(to left, var(--line-grey), transparent); + linear-gradient(to left, var(--line-grey), rgba(255,255,255,0)); background-size: 1rem; - background-repeat: no-repeat; + background-repeat: repeat-y; background-position: right; } .tablewrapper table {