Skip to content

Commit

Permalink
Increase contrast of admonitions to WCAG AAA, inline code to AA (#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
vsalvino authored Nov 22, 2021
1 parent 7d5a18f commit bea8a26
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 10 deletions.
3 changes: 3 additions & 0 deletions docs/examples/admonitions.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
```eval_rst note:: Notes can provide complementary information.
```

```eval_rst seealso:: The world is your oyster.
```

```eval_rst tip:: Speak softly and carry a big stick; you will go far.
```

Expand Down
7 changes: 4 additions & 3 deletions sass/_component_admotion.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// - Horizontal Buttons
//
.admonition {
background-color: theme-color-level('dark', -11);
background-color: theme-color-level('info', -11);
margin: $spacer 0;
padding: $spacer;
box-shadow: $box-shadow-sm;
Expand All @@ -23,8 +23,9 @@
padding: ($spacer / 2) $spacer;
margin: -$spacer;
margin-bottom: $spacer;
color: color-yiq(theme-color('dark'));
background-color: theme-color('dark');
color: color-yiq(theme-color('info'));
background-color: theme-color('info');
font-weight: $font-weight-bold;
&:before {
@include fa-icon;
content: fa-content($fa-var-info-circle);
Expand Down
7 changes: 4 additions & 3 deletions sass/_component_version.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
padding: ($spacer / 2) $spacer;
margin: -$spacer;
margin-bottom: $spacer;
font-weight: $font-weight-bold;
&:before {
@include fa-icon;
font-family: 'Font Awesome 5 Free';
Expand All @@ -23,10 +24,10 @@
}
}
.versionadded {
background-color: theme-color-level('info', -11);
background-color: theme-color-level('success', -11);
.versionmodified {
color: color-yiq(theme-color('info'));
background-color: theme-color('info');
color: color-yiq(theme-color('success'));
background-color: theme-color('success');
&:before {
content: fa-content($fa-var-info-circle);
}
Expand Down
8 changes: 4 additions & 4 deletions sass/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ $indigo: #251657;
$bright-green: #3beccd;

$primary: $indigo;
$success: #5cb85c;
$info: #5bc0de;
$success: #006363;
$info: #3f428b;
$warning: #f0ad4e;
$danger: #d9534f;
$danger: #a72925;


$link-color: $primary;
Expand All @@ -36,7 +36,7 @@ $yiq-contrasted-threshold: 160;
//
// Code Colors
// --------------------------------------------------
$code-color: #ee0028;
$code-color: #d02040;
$code-color-file: hsl(328, 100%, 50%);
$code-color-html: hsl(275, 100%, 40%);
$code-color-js: hsl(128, 100%, 20%);
Expand Down

0 comments on commit bea8a26

Please sign in to comment.