Sha256: b01af186d4d0537cda837c14967e21e4c25eea5d95a4395738b9b0160b73507b

Contents?: true

Size: 1.06 KB

Versions: 1

Compression:

Stored size: 1.06 KB

Contents

.search {
  align-items: center;
  border-bottom: $base-border;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  padding-left: $base-spacing;
  padding-right: $base-spacing;
  position: relative;
  width: 100%;
}

.search__clear,
.search__icon {
  svg {
    height: 1em;
    width: 1em;
  }
}

.search__icon {
  path {
    fill: $hint-grey;
    transition: fill $base-duration $base-timing;
  }

  &--active {
    svg {
      fill: $action-color;
    }
  }
}

.search__clear {
  z-index: 2;

  path {
    fill: $hint-grey;
  }

  &:hover path {
    fill: $action-color;
  }
}

.search__input {
  appearance: none;
  border: 0;
  box-shadow: none;
  flex-grow: 1;
  margin: 0;
  padding: ($small-spacing * 1.5) $small-spacing;

  &:focus {
    box-shadow: none;
  }
}

.search__hint {
  color: $hint-grey;
  left: 0;
  opacity: 0;
  position: absolute;
  top: 1em;
  transition: opacity $base-duration $base-timing;
  z-index: 1;

  svg {
    height: 100%;
    width: 100%;
  }

  path,
  rect {
    fill: $action-color;
  }

  &--active {
    opacity: 1;
  }
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
administrate-0.7.0 app/assets/stylesheets/administrate/components/_search.scss