menu {
  display: flex;
  list-style: none;
  li {
    padding-inline: 3px;
  }
}

menu > li:not(:first-child){
    ::before{
        content: "| ";
    }
}