December-software-project/sort-algo

View on GitHub
src/component/navigationMenu/styles.css

Summary

Maintainability
Test Coverage
.nav-bar {
  align-items: center;
  background: transparent;
  display: flex;
  height: 75px;
  overflow: hidden;
  padding-top: 20px;
  position: fixed;
  top: 0;
  transition: 0.6s;
  width: 100%;
  z-index: 50;
}

.nav-bar.sticky {
  background: #fff;
  box-shadow: -1px -2px 17px 1px rgba(232, 238, 255, 1);
  height: 60px;
  padding: 0;
}

.nav-bar ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 0;
  width: 60%;
}

.nav-bar a {
  color: white;
  font-size: 18px;
  font-weight: 500;
  position: relative;
  text-align: justify;
  text-decoration: none;
}

.nav-logo a {
  font-size: 24px;
  font-weight: 700;
}

.nav-bar.sticky a {
  color: #454545;
}

.nav-menu li {
  display: inline-block;
  margin: 0 1rem;
  padding-inline: 0.5em;
}

.nav-menu a.active {
  border-bottom: 1.5px solid #fff;
  color: #fff;
}

.nav-menu a:hover {
  color: #b6b8ff;
  border-color: #e7e7fc;
}

.nav-logo {
  align-items: center;
  color: #5467ff;
  display: flex;
  justify-content: center;
  width: 40%;
}

.nav-logo a:hover {
  color: #fff;
}

/* Behaviour of the navigation menu after scrolling. */

.nav-bar.sticky .nav-logo a {
  color: #5467ff;
}

.nav-bar.sticky .nav-menu a:hover {
  color: #5467ff;
}

.nav-bar.sticky .nav-menu a.active {
  border-bottom: 1.5px solid #a5aefc;
  color: #5467ff;
}

@media screen and (max-width: 500px) {
  .nav-menu {
    display: none;
    height: 0;
  }
}