From cd51159c89df65299e36dd9b8b8bfe52f6afa0e0 Mon Sep 17 00:00:00 2001 From: Glen Robson Date: Fri, 2 Aug 2024 15:54:16 +0100 Subject: [PATCH 1/5] First try for adding colour to the table --- css/style.css | 1 + recipe/matrix.md | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/css/style.css b/css/style.css index 4b973830a..9233a356d 100644 --- a/css/style.css +++ b/css/style.css @@ -41,4 +41,5 @@ code { .viewer td { border: none !important; + text-align: center !important; } diff --git a/recipe/matrix.md b/recipe/matrix.md index 1d3932929..0c49c02af 100644 --- a/recipe/matrix.md +++ b/recipe/matrix.md @@ -72,17 +72,17 @@ The possible values for viewer support are YES, NO or Partial. Click on the reci {% if current.id == viewer %} {% if current.support == "full" %} - YES + Yes {% else if current.support == "partial" %} - Partial + Partial {% else %} - YES + Yes {% endif %} {% else %} {% if recipe.viewers contains viewer %} - YES + Yes {% else %} - NO + No {% endif %} {% endif %} From 84b58cf3231352d90e775f3291609b06739d460d Mon Sep 17 00:00:00 2001 From: Glen Robson Date: Fri, 9 Aug 2024 17:50:37 +0100 Subject: [PATCH 2/5] Adding icons --- assets/images/icons/not_allowed.png | Bin 0 -> 485 bytes assets/images/icons/optional.png | Bin 0 -> 476 bytes assets/images/icons/recommended.png | Bin 0 -> 620 bytes assets/images/icons/required.png | Bin 0 -> 508 bytes 4 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 assets/images/icons/not_allowed.png create mode 100644 assets/images/icons/optional.png create mode 100644 assets/images/icons/recommended.png create mode 100644 assets/images/icons/required.png diff --git a/assets/images/icons/not_allowed.png b/assets/images/icons/not_allowed.png new file mode 100644 index 0000000000000000000000000000000000000000..b8f873d23eaa36f4adaab868376164374cad0fe8 GIT binary patch literal 485 zcmVPx#1ZP1_K>z@;j|==^1poj532;bRa{vGi!vFvd!vV){sAK>D02y>eSaefwW^{L9 za%BK;VQFr3E^cLXAT%y8E;2FkAZe8V00C7=L_t(IPt}vlO2a@DhR3~6;8GXPB)W1Z zb|yhY(0aiO>T9?V5fSg=Mi6`*X(p*p(H4IA&Ndbr`R>SDve{aX47)9Qh0fPP>5)#nli zY7s|j;SN4h4F!Kxoh`|qe8YI-_}~@2d-@V$jCv$CkgF~{;(3(APAKA$00000NkvXXu0mjfr)kRW literal 0 HcmV?d00001 diff --git a/assets/images/icons/optional.png b/assets/images/icons/optional.png new file mode 100644 index 0000000000000000000000000000000000000000..e5c33ab38f8c350246ff45812e239f4a9f09931d GIT binary patch literal 476 zcmV<20VDp2P)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!vFvd!vV){sAK>D02y>eSaefwW^{L9 za%BK;VQFr3E^cLXAT%y8E;2FkAZe8V00B%%L_t(IPh+4j`2U|#a!tI3*xCeFu{DV< zB5M*<8U8acLS=~u{OjWd#MdRZN~}wGCb2H@KQb0ym+%-UUN5{Mi5IFIKagCVU@NgU z;VDqlXCR&ka+$=MBzf`m@d}dblHA1CCQJk3uRwzz0M(g7wP6P!!+Xy_53y3Z0Dl1!k&s6cK@rXa+N3A?pcg|b0~aRQl@A)G+Vk4UUdyf3;c ziw7!<06^z=0uB2hx+-1*Dnt-SZc38_di|Tk`ovnO5EQHmWd=&T0@~OO6(JgkuSuK% z)b|j`M8v-6+C+U&3`%ZHwuTB34J6jadw}$cu1r>e3NbKLwc?pnAdv0jg#_7@%t500UGlzEA+Q3Rv<10|NlitK7rH S3=pIM0000Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!vFvd!vV){sAK>D02y>eSaefwW^{L9 za%BK;VQFr3E^cLXAT%y8E;2FkAZe8V00G=dL_t(IPrXz@YZE~jonR>lidM6`Godyj zt%wI(L{D0T8jF|erMX#lW|s>3AEcM|Pzp*f#lMj4&TcHF7m-}@KeR{{QjtP1hg{Y- z$p>l7Hf|33;6Zr%y~j86%@_86QF}C2h}}6`d(WIuF4?>O9Tt?&(bw#7^b6aGPFWq7f52v(rVU-;)DNy zq|D&jeQLZ`#h)e#z&e>HgLkz>N@h5rdJo?re)fi9VAhF8^27>UPSRf?_Fhh*krt2D z8>R7?gR`B`)$^8(!a^9>H?&MQmuL_a}P>AI< z455y?Ca-$;NKS_dHS2^gxy4^8{I4D zf4~U(3VrQr)w@XLBOpm~B6M%r_)9aL=0iEtw_^VujQs{(P;EX@%2wC_0000Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!vFvd!vV){sAK>D02y>eSaefwW^{L9 za%BK;VQFr3E^cLXAT%y8E;2FkAZe8V00C@CL_t(IPra0@P6I&{hNlUIAV9QqXInN1 zE&?1#LP+5Oz<`2w&uo*1kYG?aG?Jjus9t7TMR2?T2nYfU4niRz$QmeT+Y=hn({|VN zPd+pIpKo{eCI+5()f=--Zr&$$u`^D~A#;d~5H1N&}cxqjxPGM_QYItOZ`tdM(c`!nncBFBSm~uei zkTmV!jeh3K{lT3*k*1YoF*C&#!{8LMlcYnTQ7c?242cRXlMc6A&aQH$F!&cmIw2A! zJHwU2V3pN0=`alu!6)^~6$7E+1uc=5jDm|NY&i%xOPY34CKJblwT^N>G`u-ixfp5w zM^@Z4zEgE}kO4o_x-7YA8s{Uc-dd3F8BhFytkYQU*aelqhjfa+s?SateAyLsCiSjG y^$@u}9!izGMN4}dmVwQrh9z;HkJ8aWM2KHWEcS}+hJgYA0000 Date: Fri, 9 Aug 2024 18:10:48 +0100 Subject: [PATCH 3/5] Trying links instead of images --- recipe/matrix.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/recipe/matrix.md b/recipe/matrix.md index 7f72acff1..0f9842dc1 100644 --- a/recipe/matrix.md +++ b/recipe/matrix.md @@ -43,7 +43,7 @@ Currently [Mirador 3](https://projectmirador.org/), the [Universal Viewer](https ## Viewer Matrix -The possible values for viewer support are YES, NO or Partial. Click on the recipe name to see links to supporting viewers' behaviour with the recipe manifest. This will allow you to see whether it achieves the required function in the way you expect. +The possible values for viewer support are YES - , NO - or Partial - ![Partial][PARTIAL]. Click on the recipe name to see links to supporting viewers' behaviour with the recipe manifest. This will allow you to see whether it achieves the required function in the way you expect. {% for topic in page.topics %} {% if topic.key %} {% assign topic_key = topic.key %} @@ -82,7 +82,7 @@ The possible values for viewer support are YES, NO or Partial. Click on the reci {% if recipe.viewers contains viewer %} Yes {% else %} - No + ![No][NO] {% endif %} {% endif %} @@ -91,3 +91,7 @@ The possible values for viewer support are YES, NO or Partial. Click on the reci {% endfor %} {% endfor %} + +[YES]: {{ site.cookbook_url | absolute_url }}/assets/images/icons/required.png +[NO]: {{ site.cookbook_url | absolute_url }}/assets/images/icons/not_allowed.png +[PARTIAL]: {{ site.cookbook_url | absolute_url }}/assets/images/icons/recommended.png \ No newline at end of file From e17188930ffd2b7cba19dcee0e9aa3bb991ce6b9 Mon Sep 17 00:00:00 2001 From: Glen Robson Date: Fri, 9 Aug 2024 18:32:58 +0100 Subject: [PATCH 4/5] Updating description --- .../images/icons/{not_allowed.png => no.png} | Bin .../icons/{recommended.png => partial.png} | Bin assets/images/icons/{required.png => yes.png} | Bin recipe/matrix.md | 22 +++++++++--------- 4 files changed, 11 insertions(+), 11 deletions(-) rename assets/images/icons/{not_allowed.png => no.png} (100%) rename assets/images/icons/{recommended.png => partial.png} (100%) rename assets/images/icons/{required.png => yes.png} (100%) diff --git a/assets/images/icons/not_allowed.png b/assets/images/icons/no.png similarity index 100% rename from assets/images/icons/not_allowed.png rename to assets/images/icons/no.png diff --git a/assets/images/icons/recommended.png b/assets/images/icons/partial.png similarity index 100% rename from assets/images/icons/recommended.png rename to assets/images/icons/partial.png diff --git a/assets/images/icons/required.png b/assets/images/icons/yes.png similarity index 100% rename from assets/images/icons/required.png rename to assets/images/icons/yes.png diff --git a/recipe/matrix.md b/recipe/matrix.md index 0f9842dc1..4b0f27a80 100644 --- a/recipe/matrix.md +++ b/recipe/matrix.md @@ -43,7 +43,7 @@ Currently [Mirador 3](https://projectmirador.org/), the [Universal Viewer](https ## Viewer Matrix -The possible values for viewer support are YES - , NO - or Partial - ![Partial][PARTIAL]. Click on the recipe name to see links to supporting viewers' behaviour with the recipe manifest. This will allow you to see whether it achieves the required function in the way you expect. +The possible values for viewer support are Yes - ![Yes][YES]{:title="Yes"}, No - ![No][NO]{:title="No"} or Partial - ![Partial][PARTIAL]{:title="Partial"}. Click on the recipe name to see links to supporting viewers' behaviour with the recipe manifest. This will allow you to see whether it achieves the required function in the way you expect. {% for topic in page.topics %} {% if topic.key %} {% assign topic_key = topic.key %} @@ -59,9 +59,9 @@ The possible values for viewer support are YES - - Recipe + Recipe {% for viewer in page.viewers %} - {{ viewer }} + {{ viewer }} {% endfor %} {% for recipe in sorted %} @@ -72,17 +72,17 @@ The possible values for viewer support are YES - {% if current.id == viewer %} {% if current.support == "full" %} - Yes + Yes {% else if current.support == "partial" %} - Partial + Partial {% else %} - Yes + Yes {% endif %} {% else %} {% if recipe.viewers contains viewer %} - Yes + Yes {% else %} - ![No][NO] + No {% endif %} {% endif %} @@ -92,6 +92,6 @@ The possible values for viewer support are YES - - Recipe + Recipe {% for viewer in page.viewers %} - {{ viewer }} + {{ viewer }} {% endfor %} {% for recipe in sorted %}