Skip to content

Commit 2efe7f2

Browse files
authored
Merge pull request #11 from dotcomaki/main
Fix tables and code blocks contrast
2 parents f369377 + eb3c254 commit 2efe7f2

3 files changed

Lines changed: 24 additions & 10 deletions

File tree

_sass/color_schemes/codeday-dark.scss

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,12 @@ $nav-child-link-color: $gray-400;
1111
$sidebar-color: $gray-900;
1212
$base-button-color: $modes-dark-placeholder;
1313
$btn-primary-color: $blue-200;
14-
$code-background-color: $modes-dark-border;
15-
$code-linenumber-color: $modes-dark-textLight;
14+
$code-background-color: $gray-900;
15+
$code-linenumber-color: $gray-400;
1616
$feedback-color: $gray-800;
17-
$table-background-color: $modes-dark-placeholder;
17+
$table-background-color: $gray-700;
1818
$search-background-color: $modes-dark-placeholder;
1919
$search-result-preview-color: $modes-dark-textLight;
2020
$border-color: $modes-dark-border;
21+
22+
@import "./vendor/accessible-pygments/github-dark";

_sass/color_schemes/codeday-light.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ $nav-child-link-color: $modes-light-textLight;
1111
$sidebar-color: $gray-100;
1212
$base-button-color: $modes-light-placeholder;
1313
$btn-primary-color: $blue-200;
14-
$code-background-color: $modes-light-border;
14+
$code-background-color: $gray-50;
1515
$code-linenumber-color: $modes-light-textLight;
1616
$feedback-color: $gray-50;
17-
$table-background-color: $modes-light-placeholder;
17+
$table-background-color: $red-50;
1818
$search-background-color: $modes-light-placeholder;
1919
$search-result-preview-color: $modes-light-textLight;
2020
$border-color: $modes-light-border;

mentor-training/when2meet-guide.md

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,23 @@ As mentees fill in their availability, the grid updates in real time.
5757

5858
### Understanding the color grid
5959

60-
| Color | Meaning |
61-
| --- | --- |
62-
| **Dark green** | Highest overlap - everyone is available |
63-
| **Light green** | Partial overlap - hover to see who is free |
64-
| **White** | No overlap at this time |
60+
<style>
61+
.w2m-table { border-collapse: collapse; width: 100%; }
62+
.w2m-table th { background-color: #3a3a3a !important; color: #ffffff !important; padding: 0.5em 1em; text-align: left; }
63+
.w2m-table td { padding: 0.5em 1em; border: 1px solid #555 !important; }
64+
.w2m-dark td { background-color: #267326 !important; color: #ffffff !important; }
65+
.w2m-light td { background-color: #8ec97d !important; color: #0e2e08 !important; }
66+
.w2m-white td { background-color: #ffffff !important; color: #000000 !important; }
67+
</style>
68+
69+
<table class="w2m-table">
70+
<thead><tr><th>Color</th><th>Meaning</th></tr></thead>
71+
<tbody>
72+
<tr class="w2m-dark"><td><strong>Dark green</strong></td><td>Highest overlap — everyone is available</td></tr>
73+
<tr class="w2m-light"><td><strong>Light green</strong></td><td>Partial overlap — hover to see who is free</td></tr>
74+
<tr class="w2m-white"><td><strong>White</strong></td><td>No overlap at this time</td></tr>
75+
</tbody>
76+
</table>
6577

6678
**Hover over any block to see a list of exactly who is available at that time.**
6779

0 commit comments

Comments
 (0)