Merge pull request #326 from christinamakes/text_visibility_updates

css-exercises: color contrast updates for WCAG compliance
This commit is contained in:
Cody Loyd 2023-06-12 09:15:25 -05:00 committed by GitHub
commit a578b252bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
14 changed files with 49 additions and 44 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 18 KiB

View File

@ -1,6 +1,6 @@
.container .text {
background-color: yellow;
color: red;
color: #E00000;
font-size: 20px;
text-align: center;
}
@ -11,4 +11,4 @@ div p
div .text
.container p
*/
*/

Binary file not shown.

Before

Width:  |  Height:  |  Size: 297 KiB

After

Width:  |  Height:  |  Size: 95 KiB

View File

@ -1,4 +1,5 @@
body, html {
body,
html {
height: 100%;
margin: 0;
}
@ -20,19 +21,23 @@ body, html {
}
.header {
background-color: #FFDE22;
background-color: #006157
}
.sidebar {
background-color: #FF7755;
background-color: #005B94
}
.nav {
background-color: #00DDFF;
background-color: #642cde
}
.article {
background-color: #bccbde;
background-color: #7E1DC3
}
.footer {
background-color: #393f4d;
}
.article p {
@ -42,10 +47,6 @@ body, html {
text-align: left;
}
.footer {
background-color: #393f4d;
}
/* SOLUTION */
.container {
@ -65,4 +66,4 @@ body, html {
.footer {
grid-column: 1 / 3;
}
}

View File

@ -1,4 +1,5 @@
body, html {
body,
html {
height: 100%;
margin: 0;
}
@ -20,19 +21,23 @@ body, html {
}
.header {
background-color: #FFDE22;
background-color: #006157;
}
.sidebar {
background-color: #FF7755;
background-color: #005B94;
}
.nav {
background-color: #00DDFF;
background-color: #642cde;
}
.article {
background-color: #bccbde;
background-color: #7E1DC3;
}
.footer {
background-color: #393f4d;
}
.article p {
@ -40,8 +45,4 @@ body, html {
font-family: sans-serif;
color: white;
text-align: left;
}
.footer {
background-color: #393f4d;
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 228 KiB

After

Width:  |  Height:  |  Size: 96 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 267 KiB

After

Width:  |  Height:  |  Size: 97 KiB

View File

@ -1,4 +1,5 @@
body, html {
body,
html {
height: 100%;
margin: 0;
}
@ -20,21 +21,21 @@ body, html {
}
.header {
background-color: #FFDE22;
background-color: #006157;
grid-column: 1 / 3;
}
.sidebar {
background-color: #FF7755;
background-color: #005B94;
grid-row: 2 / 4;
}
.nav {
background-color: #00DDFF;
background-color: #642cde;
}
.article {
background-color: #bccbde;
background-color: #7E1DC3;
}
.article p {
@ -56,4 +57,4 @@ body, html {
grid-template-columns: 1fr 3fr;
grid-template-rows: 1fr 1fr 5fr 1fr;
gap: 15px;
}
}

View File

@ -1,4 +1,5 @@
body, html {
body,
html {
height: 100%;
margin: 0;
}
@ -20,21 +21,21 @@ body, html {
}
.header {
background-color: #FFDE22;
background-color: #006157;
grid-column: 1 / 3;
}
.sidebar {
background-color: #FF7755;
background-color: #005B94;
grid-row: 2 / 4;
}
.nav {
background-color: #00DDFF;
background-color: #642cde;
}
.article {
background-color: #bccbde;
background-color: #7E1DC3;
}
.article p {
@ -47,4 +48,4 @@ body, html {
.footer {
background-color: #393f4d;
grid-column: 1 / 3;
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 466 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 535 KiB

After

Width:  |  Height:  |  Size: 94 KiB

View File

@ -26,7 +26,7 @@
}
.sidebar {
background-color: #FF7755;
background-color: #C50208;
}
.sidebar .photo {
@ -46,7 +46,7 @@
}
.nav {
background-color: #FF7755;
background-color: #C50208;
}
@ -89,7 +89,7 @@
.footer p {
font-size: 13px;
font-weight: normal;
font-weight: normal;
}
/* SOLUTION */
@ -130,8 +130,9 @@
gap: 50px;
}
.side-content, .photo {
display: grid;
.side-content,
.photo {
display: grid;
align-items: center;
}
@ -157,4 +158,4 @@
.footer {
grid-column: 1 / 3;
}
}

View File

@ -25,7 +25,7 @@
}
.sidebar {
background-color: #FF7755;
background-color: #C50208;
}
.sidebar .photo {
@ -45,7 +45,7 @@
}
.nav {
background-color: #FF7755;
background-color: #C50208;
}
.nav ul li {
@ -87,5 +87,5 @@
.footer p {
font-size: 13px;
font-weight: normal;
}
font-weight: normal;
}