/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */


:root {
  color-scheme: light dark;
}

:is(lexxy-toolbar) {
  position: sticky;
  top: 0;
  z-index: 10;

  button {
    background-color: light-dark(#f0f0f0, #2b2b2b);

    &[aria-pressed="true"] {
      background-color: light-dark(var(--lexxy-color-selected), #3b3b3b);
    }
  }
}

lexxy-editor code {
  font-family: monospace;
  display: block;
  background-color: light-dark(#f8f8f8, #1e1e1e);
  padding: 1em;
  overflow-x: auto;
}
lexxy-editor ul {
  list-style-type: disc;
  margin-left: 2em;
}
lexxy-editor a {
  color: #0066cc;
  text-decoration: none;
  cursor: pointer;
}

lexxy-editor a:is(:hover, :focus) { color: #004499; }

.lexxy-content {
  color: light-dark(#222, #ddd);
}