sidebar.css

.sidebar {
  width: 3rem;
  padding: 1.5rem 0.5rem;
  margin: 0.5rem 0.5rem;

  padding-left: 0;
  margin-left: 0;
  position: fixed;

  height: calc(100% - 4rem - 2px);
  top: 0;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  pointer-events: none;
}

.sidebar > * {
  pointer-events: auto;
}

.url-path {
  padding-left: 1rem;
  align-self: center; /* do not flex grow */
  writing-mode: vertical-rl;
  text-orientation: sideways;
  text-align: left;
  vertical-align: right;
  line-height: 20px;
  font-size: 14px;
  font-family: monospace;
  pointer-events: auto;
}

.sidebar .current {
  font-weight: 500;
}

@media only screen and (max-width: 500px) {
  .sidebar {
    right: 0;
    bottom: 0;
    z-index: 2;
  }

  .url-path {
    background-color: black;
    border-radius: 28px;
    border: 1px solid white;
    padding: 15px 4px;
    opacity: 0.5;
  }

  .url-path > * {
    opacity: 1;
  }
}
Revisions
DateHash
2024-04-13
2024-01-28
2023-10-25
Navigation
NextSidebar.ts
UpSidebar