Sha256: 4a43b768e812956c3a5a1d3b04e0fb2d8487950907f721df1b590bf343d160ea

Contents?: true

Size: 1.03 KB

Versions: 17

Compression:

Stored size: 1.03 KB

Contents

@use "katalyst/content/editor";

[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;
  }
}

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
katalyst-koi-4.9.3 app/assets/stylesheets/koi/themes/_content.scss
katalyst-koi-4.9.2 app/assets/stylesheets/koi/themes/_content.scss
katalyst-koi-4.9.1 app/assets/stylesheets/koi/themes/_content.scss
katalyst-koi-4.9.0 app/assets/stylesheets/koi/themes/_content.scss
katalyst-koi-4.8.1 app/assets/stylesheets/koi/themes/_content.scss
katalyst-koi-4.8.0 app/assets/stylesheets/koi/themes/_content.scss
katalyst-koi-4.7.3 app/assets/stylesheets/koi/themes/_content.scss
katalyst-koi-4.6.0 app/assets/stylesheets/koi/themes/_content.scss
katalyst-koi-4.5.9 app/assets/stylesheets/koi/themes/_content.scss
katalyst-koi-4.5.8 app/assets/stylesheets/koi/themes/_content.scss
katalyst-koi-4.5.7 app/assets/stylesheets/koi/themes/_content.scss
katalyst-koi-4.5.6 app/assets/stylesheets/koi/themes/_content.scss
katalyst-koi-4.5.5 app/assets/stylesheets/koi/themes/_content.scss
katalyst-koi-4.5.4 app/assets/stylesheets/koi/themes/_content.scss
katalyst-koi-4.5.3 app/assets/stylesheets/koi/themes/_content.scss
katalyst-koi-4.5.2 app/assets/stylesheets/koi/themes/_content.scss
katalyst-koi-4.5.1 app/assets/stylesheets/koi/themes/_content.scss