/*
 * Mirrors App\Presentation\RichTextColors; RichTextColorsTest fails if they drift.
 * Hand-written on purpose — public/css/ is gulp output, this directory is not.
 */

.wysiwyg-color-black {
  color: #333333;
}

.wysiwyg-color-red {
  color: #B52B27;
}

.wysiwyg-color-orange {
  color: #C05621;
}

.wysiwyg-color-green {
  color: #4D7C5C;
}

.wysiwyg-color-blue {
  color: #2557A2;
}

.wysiwyg-color-purple {
  color: #6B4C9A;
}

/*
 * Retired colors. The dropdown no longer offers these, but details saved before this
 * palette existed still carry them, so they render as the nearest current color rather
 * than losing their emphasis. `white` takes the darkest entry — it was invisible on a
 * white page even when it was offered.
 */

.wysiwyg-color-gray,
.wysiwyg-color-silver {
  color: #6E6E6E;
}

.wysiwyg-color-white {
  color: #333333;
}

.wysiwyg-color-maroon {
  color: #B52B27;
}

.wysiwyg-color-yellow {
  color: #C05621;
}

.wysiwyg-color-lime,
.wysiwyg-color-olive {
  color: #4D7C5C;
}

.wysiwyg-color-teal,
.wysiwyg-color-aqua,
.wysiwyg-color-navy {
  color: #2557A2;
}

.wysiwyg-color-fuchsia {
  color: #6B4C9A;
}

/*
 * Toolbar swatches. bootstrap-wysihtml5.css paints these with the raw HTML color names
 * and !important, so matching it is the only way to make the swatch agree with the text
 * it produces.
 */

ul.wysihtml5-toolbar div[data-wysihtml5-command-value="black"] {
  background: #333333 !important;
}

ul.wysihtml5-toolbar div[data-wysihtml5-command-value="red"] {
  background: #B52B27 !important;
}

ul.wysihtml5-toolbar div[data-wysihtml5-command-value="orange"] {
  background: #C05621 !important;
}

ul.wysihtml5-toolbar div[data-wysihtml5-command-value="green"] {
  background: #4D7C5C !important;
}

ul.wysihtml5-toolbar div[data-wysihtml5-command-value="blue"] {
  background: #2557A2 !important;
}

ul.wysihtml5-toolbar div[data-wysihtml5-command-value="purple"] {
  background: #6B4C9A !important;
}
