Jacky Zhao
2024-02-02 d11a0e71a86eae41735d825d88c3bf7d8dcf949e
quartz/styles/base.scss
@@ -4,10 +4,11 @@
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  overflow-x: hidden;
  width: 100vw;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body,
@@ -27,7 +28,7 @@
}
::selection {
  background: color-mix(in srgb, var(--tertiary) 75%, transparent);
  background: color-mix(in srgb, var(--tertiary) 60%, transparent);
  color: var(--darkgray);
}
@@ -55,7 +56,7 @@
}
a {
  font-weight: 600;
  font-weight: $boldWeight;
  text-decoration: none;
  transition: color 0.2s ease;
  color: var(--secondary);
@@ -69,6 +70,7 @@
    background-color: var(--highlight);
    padding: 0 0.1rem;
    border-radius: 5px;
    line-height: 1.4rem;
    &:has(> img) {
      background-color: none;
@@ -76,6 +78,15 @@
      padding: 0;
    }
  }
  &.external .external-icon {
    height: 1ex;
    margin: 0 0.15em;
    > path {
      fill: var(--dark);
    }
  }
}
.desktop-only {
@@ -162,9 +173,11 @@
    & .sidebar.right {
      right: calc(calc(100vw - $pageWidth) / 2 - $sidePanelWidth);
      flex-wrap: wrap;
      & > * {
        @media all and (max-width: $fullPageWidth) {
          flex: 1;
          min-width: 140px;
        }
      }
    }
@@ -267,7 +280,6 @@
    opacity: 0;
    transition: opacity 0.2s ease;
    transform: translateY(-0.1rem);
    display: inline-block;
    font-family: var(--codeFont);
    user-select: none;
  }
@@ -328,12 +340,13 @@
pre {
  font-family: var(--codeFont);
  padding: 0.5rem;
  padding: 0 0.5rem;
  border-radius: 5px;
  overflow-x: auto;
  border: 1px solid var(--lightgray);
  position: relative;
  &.mermaid {
  &:has(> code.mermaid) {
    border: none;
  }
@@ -345,6 +358,7 @@
    counter-increment: line 0;
    display: grid;
    padding: 0.5rem 0;
    overflow-x: scroll;
    & [data-highlighted-chars] {
      background-color: var(--highlight);