Sha256: 3b3588b586c53e82b0b87063995b2e4ff382d202fb6dcb7a70553f9f4ad6fecb

Contents?: true

Size: 1.54 KB

Versions: 24

Compression:

Stored size: 1.54 KB

Contents

[data-controller="navigation--editor--status-bar"] {
  min-height: 3rem;
  line-height: 3rem;
  padding: 0 1.25rem 0 1.5rem;
  background: var(--background);
  color: var(--color);
  border: 1px solid var(--border);
  margin-bottom: 1rem;

  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "status actions";
  align-items: baseline;
  grid-column-gap: 2rem;

  .status-text {
    display: none;
    grid-area: status;
    font-weight: bold;
  }

  &[data-state="published"] .status-text[data-published],
  &[data-state="draft"] .status-text[data-draft],
  &[data-state="dirty"] .status-text[data-dirty] {
    display: unset;
  }

  menu {
    display: inline;
    grid-area: actions;
    margin: 0;
    padding: 0;
  }

  menu > li {
    display: inline;
  }

  .button {
    color: inherit;
    line-height: 1rem;
    margin-left: 0.5rem;
  }

  .button--primary {
    background: var(--color);
    border: 1px solid var(--border);
    color: white;

    &[disabled] {
      background: var(--color);
      opacity: 0.8;
    }
  }

  .button--secondary {
    background: var(--background);
    border: 1px solid var(--border);
    color: var(--color);

    &[disabled] {
      background: var(--background);
    }
  }

  &[data-state="published"] {
    [value="publish"],
    [value="save"],
    [value="revert"],
    [value="discard"] {
      display: none;
    }
  }

  &[data-state="draft"] {
    [value="save"],
    [value="discard"] {
      display: none;
    }
  }

  &[data-state="dirty"] {
    [value="revert"] {
      display: none;
    }
  }
}

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
katalyst-navigation-1.8.4 app/assets/stylesheets/katalyst/navigation/editor/_status-bar.scss
katalyst-navigation-1.8.3 app/assets/stylesheets/katalyst/navigation/editor/_status-bar.scss
katalyst-navigation-1.8.2 app/assets/stylesheets/katalyst/navigation/editor/_status-bar.scss
katalyst-navigation-1.8.1 app/assets/stylesheets/katalyst/navigation/editor/_status-bar.scss
katalyst-navigation-1.8.0 app/assets/stylesheets/katalyst/navigation/editor/_status-bar.scss
katalyst-navigation-1.6.0 app/assets/stylesheets/katalyst/navigation/editor/_status-bar.scss
katalyst-navigation-1.5.2 app/assets/stylesheets/katalyst/navigation/editor/_status-bar.scss
katalyst-navigation-1.5.1 app/assets/stylesheets/katalyst/navigation/editor/_status-bar.scss
katalyst-navigation-1.5.0 app/assets/stylesheets/katalyst/navigation/editor/_status-bar.scss
katalyst-navigation-1.4.1 app/assets/stylesheets/katalyst/navigation/editor/_status-bar.scss
katalyst-navigation-1.4.0 app/assets/stylesheets/katalyst/navigation/editor/_status-bar.scss
katalyst-navigation-1.3.4 app/assets/stylesheets/katalyst/navigation/editor/_status-bar.scss
katalyst-navigation-1.3.3 app/assets/stylesheets/katalyst/navigation/editor/_status-bar.scss
katalyst-navigation-1.3.2 app/assets/stylesheets/katalyst/navigation/editor/_status-bar.scss
katalyst-navigation-1.3.1 app/assets/stylesheets/katalyst/navigation/editor/_status-bar.scss
katalyst-navigation-1.3.0 app/assets/stylesheets/katalyst/navigation/editor/_status-bar.scss
katalyst-navigation-1.2.0 app/assets/stylesheets/katalyst/navigation/editor/_status-bar.scss
katalyst-navigation-1.1.2 app/assets/stylesheets/katalyst/navigation/editor/_status-bar.scss
katalyst-navigation-1.1.1 app/assets/stylesheets/katalyst/navigation/editor/_status-bar.scss
katalyst-navigation-1.1.0 app/assets/stylesheets/katalyst/navigation/editor/_status-bar.scss