Sha256: b3b1ff9cca3591588ad623a9745013813f8ad30806a673f79e036de15bf2acf8

Contents?: true

Size: 1.18 KB

Versions: 81

Compression:

Stored size: 1.18 KB

Contents

@import "govuk/components/input/input";
$search-icon-size: 40px;

.gem-c-input__search-icon {
  display: block;
  position: relative;
  margin-bottom: -$search-icon-size;
  z-index: 1;
  width: $search-icon-size;
  height: $search-icon-size;
  @if $govuk-typography-use-rem {
    margin-bottom: -(govuk-px-to-rem($search-icon-size));
    height: govuk-px-to-rem($search-icon-size);
  }
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36' width='40' height='40'%3E%3Cpath d='M25.7 24.8L21.9 21c.7-1 1.1-2.2 1.1-3.5 0-3.6-2.9-6.5-6.5-6.5S10 13.9 10 17.5s2.9 6.5 6.5 6.5c1.6 0 3-.6 4.1-1.5l3.7 3.7 1.4-1.4zM12 17.5c0-2.5 2-4.5 4.5-4.5s4.5 2 4.5 4.5-2 4.5-4.5 4.5-4.5-2-4.5-4.5z' fill='currentColor'%3E%3C/path%3E%3C/svg%3E") no-repeat -3px center;
}

// this overrides styles from static that break the look of the component
// unfortunately we then need to override the override for the search icon variant
// TODO: remove these styles once static is made less aggressive
.gem-c-input.govuk-input {
  margin: 0;
  min-width: 0;
  padding: govuk-spacing(1);
  box-sizing: border-box;

  &.gem-c-input--with-search-icon {
    padding-left: govuk-spacing(6);
  }
}

Version data entries

81 entries across 81 versions & 1 rubygems

Version Path
govuk_publishing_components-30.2.0 app/assets/stylesheets/govuk_publishing_components/components/_input.scss
govuk_publishing_components-30.1.0 app/assets/stylesheets/govuk_publishing_components/components/_input.scss
govuk_publishing_components-30.0.0 app/assets/stylesheets/govuk_publishing_components/components/_input.scss
govuk_publishing_components-29.15.3 app/assets/stylesheets/govuk_publishing_components/components/_input.scss
govuk_publishing_components-29.15.2 app/assets/stylesheets/govuk_publishing_components/components/_input.scss
govuk_publishing_components-29.15.1 app/assets/stylesheets/govuk_publishing_components/components/_input.scss
govuk_publishing_components-29.15.0 app/assets/stylesheets/govuk_publishing_components/components/_input.scss
govuk_publishing_components-29.14.0 app/assets/stylesheets/govuk_publishing_components/components/_input.scss
govuk_publishing_components-29.13.0 app/assets/stylesheets/govuk_publishing_components/components/_input.scss
govuk_publishing_components-29.12.1 app/assets/stylesheets/govuk_publishing_components/components/_input.scss
govuk_publishing_components-29.12.0 app/assets/stylesheets/govuk_publishing_components/components/_input.scss
govuk_publishing_components-29.11.0 app/assets/stylesheets/govuk_publishing_components/components/_input.scss
govuk_publishing_components-29.10.0 app/assets/stylesheets/govuk_publishing_components/components/_input.scss
govuk_publishing_components-29.9.0 app/assets/stylesheets/govuk_publishing_components/components/_input.scss
govuk_publishing_components-29.8.0 app/assets/stylesheets/govuk_publishing_components/components/_input.scss
govuk_publishing_components-29.7.0 app/assets/stylesheets/govuk_publishing_components/components/_input.scss
govuk_publishing_components-29.6.0 app/assets/stylesheets/govuk_publishing_components/components/_input.scss
govuk_publishing_components-29.5.0 app/assets/stylesheets/govuk_publishing_components/components/_input.scss
govuk_publishing_components-29.4.0 app/assets/stylesheets/govuk_publishing_components/components/_input.scss
govuk_publishing_components-29.3.0 app/assets/stylesheets/govuk_publishing_components/components/_input.scss