Jacky Zhao
2025-09-17 6add0c837e6368d8a198490de25527527513c110
quartz/styles/base.scss
@@ -11,8 +11,7 @@
  width: 100vw;
}
body,
section {
body {
  margin: 0;
  box-sizing: border-box;
  background-color: var(--light);
@@ -40,23 +39,13 @@
ol,
ul,
.katex,
.math {
.math,
.typst-doc,
.typst-doc * {
  color: var(--darkgray);
  fill: var(--darkgray);
  hyphens: auto;
}
p,
ul,
text,
a,
li,
ol,
ul,
.katex,
.math {
  overflow-wrap: anywhere;
  /* tr and td removed from list of selectors for overflow-wrap, allowing them to use default 'normal' property value */
  overflow-wrap: break-word;
  text-wrap: pretty;
}
.math {
@@ -91,7 +80,7 @@
  color: var(--secondary);
  &:hover {
    color: var(--tertiary) !important;
    color: var(--tertiary);
  }
  &.internal {
@@ -101,6 +90,15 @@
    border-radius: 5px;
    line-height: 1.4rem;
    &.broken {
      color: var(--secondary);
      opacity: 0.5;
      transition: opacity 0.2s ease;
      &:hover {
        opacity: 0.8;
      }
    }
    &:has(> img) {
      background-color: transparent;
      border-radius: 0;
@@ -123,16 +121,32 @@
  }
}
.flex-component {
  display: flex;
}
.desktop-only {
  display: initial;
  &.flex-component {
    display: flex;
  }
  @media all and ($mobile) {
    &.flex-component {
      display: none;
    }
    display: none;
  }
}
.mobile-only {
  display: none;
  &.flex-component {
    display: none;
  }
  @media all and ($mobile) {
    &.flex-component {
      display: flex;
    }
    display: initial;
  }
}
@@ -197,7 +211,7 @@
    }
    & .sidebar {
      gap: 2rem;
      gap: 1.2rem;
      top: 0;
      box-sizing: border-box;
      padding: $topSpacing 2rem 2rem 2rem;