Skip to content

Building 70 Projects ranging from beginner to advanced so anyone can — learn from, build upon, use as a reference, or even copy directly. Owned by my cybersecurity company 👇

2.7 KB
Raw Blame
// ===================
// ©AngelaMos | 2026
// search-panel.module.scss
// ===================

@use 'index' as *;

.frame {
  height: 100%;
  min-height: 360px;
}

.count {
  font-family: $font-mono;
  color: $ash;
}

.body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
}

.controls {
  display: flex;
  flex-direction: column;
  gap: $space-3;
  padding: $space-3;
  border-bottom: 1px solid $line-faint;
}

.inputWrap {
  display: flex;
  align-items: center;
  gap: $space-2;
  padding: $space-2 $space-3;
  background: $void;
  border: 1px solid $line;
  @include transition-fast;

  // The caret already announces focus, so the field only whispers: a faint
  // lift of the ground and a hairline that barely warms. No ring, no flare.
  &:focus-within {
    background: $ink-900;
    border-color: $line-strong;
  }
}

.busy {
  border-color: $volt;
}

.prompt {
  font-family: $font-mono;
  font-size: $font-size-base;
  font-weight: 700;
  color: $fire;
}

.input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  font-family: $font-mono;
  font-size: $font-size-sm;
  letter-spacing: 0.02em;
  color: $bone;

  &::placeholder {
    color: $soot;
  }
}

.kinds {
  display: flex;
  flex-wrap: wrap;
  gap: $space-1-5;
}

.kindBtn {
  padding: 2px 8px;
  font-family: $font-mono;
  font-size: $font-size-3xs;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: $dust;
  background: $ink-800;
  border: 1px solid $line-faint;
  @include transition-fast;

  @include hover {
    color: $paper;
    border-color: $line-strong;
  }

  &:active {
    transform: translateY(1px);
  }
}

// The selected filter is a quiet bordered state, not a white slab: bright text
// and a near-white hairline against the same dark fill the others sit on.
.kindOn {
  color: $chalk;
  background: $ink-600;
  border-color: $ash;
}

.results {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.row {
  display: grid;
  grid-template-columns: 52px minmax(150px, 1.4fr) minmax(120px, 1fr) auto auto;
  align-items: center;
  gap: $space-3;
  padding: $space-2 $space-3;
  border-bottom: 1px solid $line-faint;

  &:hover {
    background: $ink-800;
  }
}

.value {
  @include truncate;

  font-family: $font-mono;
  font-size: $font-size-2xs;
  color: $volt-soft;
}

.label {
  @include truncate;

  font-size: $font-size-2xs;
  color: $paper;
}

.source {
  @include truncate;

  max-width: 150px;
  font-family: $font-mono;
  font-size: $font-size-3xs;
  color: $dust;
}

.empty {
  padding: $space-8 $space-4;
  text-align: center;
  font-family: $font-mono;
  font-size: $font-size-3xs;
  line-height: 1.6;
  letter-spacing: 0.06em;
  color: $soot;
}