Sha256: 53a75d01cc93f378debcebfaca90deeafa12633fc513176d1aba05b53f534324

Contents?: true

Size: 1.69 KB

Versions: 24

Compression:

Stored size: 1.69 KB

Contents

@use "katalyst/content/editor/variables" as variables;
@use "katalyst/content";

[data-controller="content--editor--container"] {
  --heading--h4: 1rem;
}

[data-controller="content--editor--table"] {
  .content--editor--table-editor {
    // ensure the table editor is easy to target when empty
    &:not(:has(table)) {
      min-height: 4rem !important;
    }

    // tight wrap the table editor around the table and use table borders
    &:has(table) {
      border: none !important;
      padding: 0 !important;
    }

    table {
      width: 100%;
    }

    table,
    th,
    td {
      border: 2px solid black;
    }
  }

  // restore webkit spinners, hidden by govuk
  // these are not ideal, but spinners are much easier to work with for this
  // use case than the default number input, because we submit the form on
  // change to implement the live preview
  input[type="number"]::-webkit-inner-spin-button {
    position: relative;
    right: -1px;
    margin-top: -2px;
    margin-bottom: -4px;
    -webkit-appearance: inner-spin-button !important;
    opacity: 1 !important;
  }
}

[data-enum="state"][data-value="published"] {
  background-color: variables.$status-published-background-color;
  color: variables.$status-published-color;
  border: 1px solid variables.$status-published-border-color;
}

[data-enum="state"][data-value="draft"] {
  background-color: variables.$status-draft-background-color;
  color: variables.$status-draft-color;
  border: 1px solid variables.$status-draft-border-color;
}

[data-enum="state"][data-value="unpublished"] {
  background-color: variables.$status-draft-background-color;
  color: variables.$status-draft-color;
  border: 1px solid variables.$status-draft-border-color;
}

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
katalyst-koi-4.15.1 app/assets/stylesheets/koi/themes/_content.scss
katalyst-koi-4.15.0 app/assets/stylesheets/koi/themes/_content.scss
katalyst-koi-4.14.3 app/assets/stylesheets/koi/themes/_content.scss
katalyst-koi-4.14.2 app/assets/stylesheets/koi/themes/_content.scss
katalyst-koi-4.14.1 app/assets/stylesheets/koi/themes/_content.scss
katalyst-koi-4.14.0 app/assets/stylesheets/koi/themes/_content.scss
katalyst-koi-4.13.2 app/assets/stylesheets/koi/themes/_content.scss
katalyst-koi-4.13.0 app/assets/stylesheets/koi/themes/_content.scss
katalyst-koi-4.12.6 app/assets/stylesheets/koi/themes/_content.scss
katalyst-koi-4.12.5 app/assets/stylesheets/koi/themes/_content.scss
katalyst-koi-4.12.4 app/assets/stylesheets/koi/themes/_content.scss
katalyst-koi-4.12.3 app/assets/stylesheets/koi/themes/_content.scss
katalyst-koi-4.12.2 app/assets/stylesheets/koi/themes/_content.scss
katalyst-koi-4.12.1 app/assets/stylesheets/koi/themes/_content.scss
katalyst-koi-4.12.0 app/assets/stylesheets/koi/themes/_content.scss
katalyst-koi-4.11.2 app/assets/stylesheets/koi/themes/_content.scss
katalyst-koi-4.11.1 app/assets/stylesheets/koi/themes/_content.scss
katalyst-koi-4.11.0 app/assets/stylesheets/koi/themes/_content.scss
katalyst-koi-4.10.3 app/assets/stylesheets/koi/themes/_content.scss
katalyst-koi-4.10.2 app/assets/stylesheets/koi/themes/_content.scss