From 257b57f94d45f02b12e2dc9a99641d1b1dd533fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=98=99=E2=97=A6=20The=20Tablet=20=E2=9D=80=20GamerGirla?= =?UTF-8?q?ndCo=20=E2=97=A6=E2=9D=A7?= Date: Wed, 10 Jan 2024 14:19:25 -0500 Subject: [PATCH] fetch a11ychecker css --- plugins/a11ychecker/css/annotations.css | 38 +++++++++++++++++++++++++ scripts/fetchLatest.js | 3 +- 2 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 plugins/a11ychecker/css/annotations.css diff --git a/plugins/a11ychecker/css/annotations.css b/plugins/a11ychecker/css/annotations.css new file mode 100644 index 0000000..3f01e9a --- /dev/null +++ b/plugins/a11ychecker/css/annotations.css @@ -0,0 +1,38 @@ +/*! + * Tiny Accessibility Checker Plugin + * + * Copyright (c) 2023 Ephox Corporation DBA Tiny Technologies, Inc. + * Licensed under the Tiny commercial license. See https://www.tiny.cloud/legal/ + * + * Version: 3.3.1-77 + */ + +[data-ephox-foam-a11y-violation] { + outline: 1px solid; + position: relative; +} +[data-ephox-foam-a11y-violation][data-ephox-foam-a11y-current-violation] { + outline-width: 2px; + transition: outline-width .1s ease-in-out, background-color .1s ease-in-out; +} +[data-ephox-foam-a11y-violation][data-ephox-foam-a11y-severity-info] { + outline-color: #3498db; +} +[data-ephox-foam-a11y-violation][data-ephox-foam-a11y-severity-warn] { + outline-color: #e67e22; +} +[data-ephox-foam-a11y-violation][data-ephox-foam-a11y-severity-error] { + outline-color: #e74c3c; +} +[data-ephox-foam-a11y-violation][data-ephox-foam-a11y-current-violation="info"] { + outline-color: rgba(52,152,219,.25); + background-color: rgba(52,152,219,.25); +} +[data-ephox-foam-a11y-violation][data-ephox-foam-a11y-current-violation="warning"] { + outline-color: rgba(230,126,34,.25); + background-color: rgba(230,126,34,.25); +} +[data-ephox-foam-a11y-violation][data-ephox-foam-a11y-current-violation="error"] { + outline-color: rgba(231,76,60,.25); + background-color: rgba(231,76,60,.25); +} diff --git a/scripts/fetchLatest.js b/scripts/fetchLatest.js index c0d15d3..17fa358 100644 --- a/scripts/fetchLatest.js +++ b/scripts/fetchLatest.js @@ -27,7 +27,8 @@ async function main() { await fetchAux("/tinymce.d.ts"); await fetchAux("/models/dom/model.min.js"); await fetchAux("/icons/default/icons.min.js"); - await fetchAux("/plugins/powerpaste/js/wordimport.js") + await fetchAux("/plugins/powerpaste/js/wordimport.js"); + await fetchAux("/plugins/a11ychecker/css/annotations.css") for(let t of skins) { await fetchAux(`/skins/content/${t}/content.min.css`) }