Skip to content

Commit 98ca11d

Browse files
author
Ilona Brand
committed
Change all grays on the page to abide by color contrast accessibility standards
1 parent e78de01 commit 98ca11d

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

src/css/application.css

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@
6060

6161
:root {
6262
--color-gray: #eee;
63-
--color-dark-gray: #aaa;
63+
--color-dark-gray: #666;
64+
--color-darker-hover-gray: #444;
6465
--color-green: #00ff85;
6566
--color-yellow: #ffd100;
6667
--color-red: #ff5e4f;
@@ -420,13 +421,13 @@ body {
420421
}
421422

422423
.editors__column-divider {
423-
background-color: var(--color-dark-gray);
424+
background-color: #aaa;
424425
cursor: ew-resize;
425426
min-width: 4px;
426427
}
427428

428429
.editors__row-divider {
429-
background-color: var(--color-dark-gray);
430+
background-color: #aaa;
430431
cursor: ns-resize;
431432
min-height: 4px;
432433
}
@@ -439,7 +440,7 @@ body {
439440
top: 50%;
440441
left: 50%;
441442
margin: -1rem 0 0 -5.5rem;
442-
opacity: 0.4;
443+
color: var(--color-dark-gray);
443444
font-family: Roboto;
444445
user-select: none;
445446
pointer-events: none;
@@ -448,18 +449,17 @@ body {
448449
/** @define label */
449450

450451
.label {
451-
background-color: black;
452+
background-color: var(--color-dark-gray);
452453
border-radius: 4px;
453454
color: white;
454455
cursor: pointer;
455456
font-family: 'Inconsolata';
456457
font-size: 0.8rem;
457-
opacity: 0.2;
458458
padding: 0.2rem;
459459
}
460460

461461
.label:hover {
462-
opacity: 0.5;
462+
background-color: var(--color-darker-hover-gray);
463463
}
464464

465465
/** @define output */
@@ -507,12 +507,12 @@ body {
507507
height: 18px;
508508
position: absolute;
509509
cursor: pointer;
510-
opacity: 0.25;
510+
color: var(--color-dark-gray);
511511
z-index: 1;
512512
}
513513

514514
.preview__button:hover {
515-
opacity: 0.5;
515+
color: var(--color-darker-hover-gray);
516516
}
517517

518518
.preview__button_pop-out {

0 commit comments

Comments
 (0)