OperationCode/front-end

View on GitHub
components/Nav/Nav.module.css

Summary

Maintainability
Test Coverage
.NavDesktop {
  height: var(--navBarHeight);
  position: absolute;
  top: var(--navBarTopGutterHeight);
  width: 100%;
  z-index: 10;
}

@media screen and (--mobile-viewport) {
  .NavDesktop {
    display: none;
  }
}

.desktopNavContainer {
  margin: 0 auto;
  max-width: 1400px;
}

.NavDesktop nav {
  background-color: var(--white);
  border-radius: var(--borderRadius);
  display: flex;
  justify-content: space-between;
}

.NavDesktop nav a {
  text-decoration: none;
  font-weight: bolder;
}

.NavDesktop nav li {
  list-style: none;
}

.link {
  display: flex;
  flex-wrap: nowrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.logoLink {
  height: var(--navBarHeight);
}

.logo {
  align-self: center;
  margin-left: 1rem;
  display: flex;
  justify-content: center;
}

.navIcon {
  width: 20px;
  height: 20px;
  margin-bottom: 2px;
  margin-left: -10px;
  margin-right: 10px;
  display: flex;
}

/* One-off differences from other link items */
.donateLink {
  align-items: center;
  background-color: var(--primary);
  border-radius: 0 var(--borderRadius) var(--borderRadius) 0;
  color: var(--secondary);
  height: 100%;
  padding: 0 2rem;
  transition: color 0.2s linear;
}

.donateLink > span {
  align-self: center;
}

.donateLink:focus-visible,
.donateLink:hover {
  color: var(--white);
  cursor: pointer;
  transition: color 0.2s linear;
}