Sha256: 4a0d4c30d0a628858049c5f3c7e120d3a0babaabe711900160b5df269ee96270

Contents?: true

Size: 1.37 KB

Versions: 153

Compression:

Stored size: 1.37 KB

Contents

.gem-c-show-password__input-wrapper {
  display: table; // IE fallback
  display: flex;
  width: 100%;
  flex-direction: column;

  @include govuk-media-query($from: mobile) {
    flex-direction: row;
  }

  .gem-c-input--with-password {
    display: table-cell;

    &:focus {
      z-index: 1;
    }

    &::-ms-reveal {
      display: none;
    }
  }
}

.gem-c-show-password__toggle {
  @include govuk-font(19);
  z-index: 0;
  display: table-cell; // IE fallback
  padding: govuk-spacing(1) govuk-spacing(3);
  min-width: 5em; // stops the button width jumping when the text changes
  color: $govuk-link-colour;
  text-decoration: underline;
  background: govuk-colour("white");
  border: solid 2px $govuk-input-border-colour;
  white-space: nowrap;
  cursor: pointer;

  @include govuk-media-query($until: mobile) {
    padding: govuk-spacing(1);
    width: 100%;
    margin-top: -2px;
    white-space: normal;
  }

  @include govuk-media-query($from: mobile) {
    margin-left: -2px;
    margin-top: 0;
    margin-bottom: 0;
  }

  &:hover {
    color: $govuk-link-hover-colour;
    @include govuk-link-hover-decoration;
  }

  &:focus {
    z-index: 1;
    background: $govuk-focus-colour;
    color: $govuk-focus-text-colour;
    outline: 0;
  }

  &:active {
    z-index: 1;
    background: govuk-colour("white");
    border-color: $govuk-focus-colour;
    color: $govuk-link-active-colour;
  }
}

Version data entries

153 entries across 153 versions & 1 rubygems

Version Path
govuk_publishing_components-34.12.0 app/assets/stylesheets/govuk_publishing_components/components/_show-password.scss
govuk_publishing_components-34.11.0 app/assets/stylesheets/govuk_publishing_components/components/_show-password.scss
govuk_publishing_components-34.10.1 app/assets/stylesheets/govuk_publishing_components/components/_show-password.scss
govuk_publishing_components-34.10.0 app/assets/stylesheets/govuk_publishing_components/components/_show-password.scss
govuk_publishing_components-34.9.1 app/assets/stylesheets/govuk_publishing_components/components/_show-password.scss
govuk_publishing_components-34.9.0 app/assets/stylesheets/govuk_publishing_components/components/_show-password.scss
govuk_publishing_components-34.8.1 app/assets/stylesheets/govuk_publishing_components/components/_show-password.scss
govuk_publishing_components-34.8.0 app/assets/stylesheets/govuk_publishing_components/components/_show-password.scss
govuk_publishing_components-34.7.1 app/assets/stylesheets/govuk_publishing_components/components/_show-password.scss
govuk_publishing_components-34.7.0 app/assets/stylesheets/govuk_publishing_components/components/_show-password.scss
govuk_publishing_components-34.6.0 app/assets/stylesheets/govuk_publishing_components/components/_show-password.scss
govuk_publishing_components-34.5.1 app/assets/stylesheets/govuk_publishing_components/components/_show-password.scss
govuk_publishing_components-34.5.0 app/assets/stylesheets/govuk_publishing_components/components/_show-password.scss
govuk_publishing_components-34.4.2 app/assets/stylesheets/govuk_publishing_components/components/_show-password.scss
govuk_publishing_components-34.4.1 app/assets/stylesheets/govuk_publishing_components/components/_show-password.scss
govuk_publishing_components-34.4.0 app/assets/stylesheets/govuk_publishing_components/components/_show-password.scss
govuk_publishing_components-34.3.0 app/assets/stylesheets/govuk_publishing_components/components/_show-password.scss
govuk_publishing_components-34.2.0 app/assets/stylesheets/govuk_publishing_components/components/_show-password.scss
govuk_publishing_components-34.1.3 app/assets/stylesheets/govuk_publishing_components/components/_show-password.scss
govuk_publishing_components-34.1.2 app/assets/stylesheets/govuk_publishing_components/components/_show-password.scss