aperta-principium/Interclip

View on GitHub
scss/_adminbar.scss

Summary

Maintainability
Test Coverage
ul#menu,
#adminbar {
  line-height: initial;
}

#adminbar {
  width: calc(100% - 20px);
  padding: 6px 0;
  border: 1px solid black;
  border-top: none;
  display: flex;
  justify-content: start;
  flex-direction: row;
  padding-left: 9px;
  padding-right: 9px;
  color: white;

  span a {
    text-decoration: none;
    color: white;

    &:hover {
      text-decoration: underline;
    }
  }

  &:not(.staging) {
    background: #588d6a;
  }

  &.staging {
    background: #f15922;
  }

  span:not(:last-child):not(:first-child) {
    padding-left: 7px;
    padding-right: 15px;
  }
}

.ending {
  margin-left: auto;
}

.subitem {
  display: none;
}

#user-greet:hover .subitem,
#adminbar:focus {
  display: inline-block;
}

#branch-select {
  width: 8em;
}