@import "trix";

trix-toolbar {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 8px;
  margin-bottom: 10px;
}

trix-toolbar .trix-button-group {
  border: 0;
  margin-right: 6px;
}

trix-toolbar .trix-button {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
}

trix-toolbar .trix-button:hover {
  background: rgba(255, 255, 255, 0.12);
}

trix-toolbar .trix-button.trix-active {
  background: rgba(16, 185, 129, 0.25);
  border-color: rgba(16, 185, 129, 0.5);
  color: #ecfdf5;
}

trix-toolbar .trix-button:not([data-trix-attribute="bold"]):not([data-trix-attribute="italic"]):not([data-trix-attribute="strike"]) {
  display: none;
}

trix-toolbar .trix-button[data-trix-attribute="bold"],
trix-toolbar .trix-button[data-trix-attribute="italic"],
trix-toolbar .trix-button[data-trix-attribute="strike"] {
  font-size: 0;
  position: relative;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

trix-toolbar .trix-button[data-trix-attribute="bold"]::before,
trix-toolbar .trix-button[data-trix-attribute="italic"]::before,
trix-toolbar .trix-button[data-trix-attribute="strike"]::before {
  font-size: 12px;
  letter-spacing: 0.02em;
  color: currentColor;
}

trix-toolbar .trix-button[data-trix-attribute="bold"]::before { content: "B"; font-weight: 700; }
trix-toolbar .trix-button[data-trix-attribute="italic"]::before { content: "I"; }
trix-toolbar .trix-button[data-trix-attribute="strike"]::before { content: "S"; text-decoration: line-through; }

trix-editor {
  min-height: 12rem;
  color: #e2e8f0;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
