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 👇

3.3 KB
Raw Blame
// ©AngelaMos | 2026
// TopStrip.module.scss

.strip {
  position: relative;
  grid-area: topstrip;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 36px;
  padding-left: max(12px, env(safe-area-inset-left));
  padding-right: max(12px, env(safe-area-inset-right));
  border-bottom: 1px solid var(--rule-strong);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at center, rgb(255, 255, 255, 5%) 1px, transparent 1.2px);
  background-size: 6px 6px;
  background-position: 0 0;
}

.strip::before,
.strip::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 96px;
  pointer-events: none;
}

.strip::before {
  left: 0;
  background: linear-gradient(to right, var(--bg) 35%, transparent 100%);
}

.strip::after {
  right: 0;
  background: linear-gradient(to left, var(--bg) 35%, transparent 100%);
}

.left {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  z-index: 1;
}

.title {
  font-family: var(--font-sans);
  font-size: var(--type-label);
  font-weight: 500;
  letter-spacing: var(--letter-spacing-label);
  text-transform: uppercase;
  color: var(--fg-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ciaButton {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: center;
  padding: 3px 10px;
  background: transparent;
  border: 1px solid color-mix(in sRGB, var(--accent) 40%, transparent);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  cursor: pointer;
  z-index: 1;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;

  &:hover {
    background: color-mix(in sRGB, var(--accent) 12%, transparent);
    border-color: var(--accent);
    color: var(--fg-1);
  }

  &:active {
    background: color-mix(in sRGB, var(--accent) 22%, transparent);
  }

  &:focus-visible {
    outline: 1px solid var(--accent);
    outline-offset: 2px;
  }
}

.ciaIcon {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
}

.right {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
  z-index: 1;
}

@media (width <= 749px),
(height <= 550px) and (orientation: landscape) and (width >= 600px) {
  .ciaButton {
    display: none;
  }

  .strip {
    grid-template-columns: 1fr auto;
  }
}

.fullscreenWrap {
  position: relative;
  display: inline-flex;
}

.pwaHint {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 200px;
  padding: 8px 10px;
  background: var(--bg);
  border: 1px solid var(--fg-3);
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.04em;
  line-height: 1.5;
  color: var(--fg-1);
  text-transform: none;
  white-space: normal;
  z-index: 100;
  pointer-events: none;

  strong {
    color: var(--accent);
    font-weight: 600;
  }
}

.iconButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  width: 24px;
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--fg-3);
  cursor: pointer;

  &:hover {
    color: var(--fg-1);
  }

  &:focus-visible {
    outline: 1px solid var(--fg-2);
    outline-offset: 1px;
  }
}