From 4a999518eb5af38133983cb77d37b82f5bafc04b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20Poupard?= Date: Wed, 16 Oct 2019 12:51:45 +0200 Subject: [PATCH] feat(docs): add a dedicated table variant for contrast ratio tables --- site/docs/4.3/assets/scss/_boosted-docs.scss | 14 ++++++++ site/docs/4.3/utilities/colors.md | 38 ++++++++++---------- 2 files changed, 33 insertions(+), 19 deletions(-) diff --git a/site/docs/4.3/assets/scss/_boosted-docs.scss b/site/docs/4.3/assets/scss/_boosted-docs.scss index 2f5283dd07..19356e09cc 100644 --- a/site/docs/4.3/assets/scss/_boosted-docs.scss +++ b/site/docs/4.3/assets/scss/_boosted-docs.scss @@ -351,3 +351,17 @@ $doc-link-arrow-hover: url("data:image/svg+xml;charset=utf8, %3Csvg%20xmlns%3D%2 .o-switch.btn-group-toggle .doc-label { min-width: 6.25rem; } + +.table-contrast td, +.table-contrast tbody th { + font-weight: 700; +} + +.table-contrast .aa-large-text, +.table-contrast .aa-large-text * { + font-size: 1.25rem; +} + +.table-contrast thead th { + font-size: 1.5rem; +} diff --git a/site/docs/4.3/utilities/colors.md b/site/docs/4.3/utilities/colors.md index 5ca6d1879b..191f77115a 100644 --- a/site/docs/4.3/utilities/colors.md +++ b/site/docs/4.3/utilities/colors.md @@ -62,7 +62,7 @@ You should refer to those tables when using `.text-*` and `.bg-*` utilities to e
- +
@@ -74,31 +74,31 @@ You should refer to those tables when using `.text-*` and `.bg-*` utilities to e - - + + - + - + - - + + - + @@ -106,7 +106,7 @@ You should refer to those tables when using `.text-*` and `.bg-*` utilities to e - + @@ -118,7 +118,7 @@ You should refer to those tables when using `.text-*` and `.bg-*` utilities to e
Core colors contrasts
#000#ff7900AAA#ff7900AAA
#fff AAA
#999 AAA
#fff#f16e00AA Large text#f16e00AA Large text
#000 AAA
#666 AA
- AAA Large text + AAA Large text
#000 AAA
#f16e00 #fff AA Large text
- +
@@ -138,7 +138,7 @@ You should refer to those tables when using `.text-*` and `.bg-*` utilities to e @@ -165,7 +165,7 @@ You should refer to those tables when using `.text-*` and `.bg-*` utilities to e
Functional greys contrasts
#fff AA
- AAA Large text + AAA Large text
- +
@@ -202,7 +202,7 @@ You should refer to those tables when using `.text-*` and `.bg-*` utilities to e
Supporting colors contrasts
- +
@@ -222,10 +222,10 @@ You should refer to those tables when using `.text-*` and `.bg-*` utilities to e - + @@ -236,14 +236,14 @@ You should refer to those tables when using `.text-*` and `.bg-*` utilities to e - - + +
Functional colors contrasts
#000 AA
- AAA Large text + AAA Large text
#fff AA Large text
#cd3c14#000AA Large text#000AA Large text
#fff AA
- AAA Large text + AAA Large text