Commit Graph

6 Commits

Author SHA1 Message Date
Allie Sadler 682d4188c2
fix code colors for accessibility (#16282)
* fix code colors for accessibility

* change light pink color
2022-12-06 09:22:58 +00:00
Allie Sadler fef904be8d
Align with Design System (#16201)
* add DDS colors to docs and change main variables and style.scss sheet

* find and replace colors from color-palette-2 and deprecate palette 2

* find and replace colors from color-palette-3 and deprecate palette 3

* more alignment with colors

* change typography

* typography tweaks

* fix fonts

* dark mode and accessibility

* review changes

* icons

* icons

* icons

* accessibility fix on footer

* review comments
2022-11-30 15:57:19 +00:00
Sebastiaan van Stijn bd6a07bbb6
_scss: only disable text-selection in "console" code blocks
We don't want users to copy the prompt and process output in
"console" blocks, but for other code blocks (bash scripts, yaml)
copying comments should not be disabled.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-04-20 15:16:55 +02:00
Sebastiaan van Stijn 19b3b40f5b
_scss: show regular "text" cursor for prompt
Show a "text" cursor for the prompt. Even though the prompt itself is not
selectable, make it appear as if it is, so that users don't get confused
when they try to select an example for copying.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-03-02 16:08:17 +01:00
Sebastiaan van Stijn a987f04d05
highlighting: make comments, prompt and command-output non-selectable
Prevent selecting comments, command-output and command-prompt in shell
examples that use the "console" lexer/highlighter to allow easier copying.
See https://github.com/rouge-ruby/rouge/issues/1023

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-03-02 15:02:25 +01:00
Sebastiaan van Stijn 1c2a455346
styles.css: include code-highlight styles in main css document
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-10-14 14:39:53 +02:00