Jacky Zhao
2023-07-23 7db2eda76cf51fd631d385c12a7b411339406067
quartz/styles/base.scss
@@ -1,5 +1,6 @@
@use "./syntax.scss";
@use "./callouts.scss";
@use "./custom.scss";
@use "./variables.scss" as *;
html {
@@ -20,7 +21,17 @@
  border-radius: 5px;
}
p, ul, text, a, tr, td, li, ol, ul, .katex, .math {
p,
ul,
text,
a,
tr,
td,
li,
ol,
ul,
.katex,
.math {
  color: var(--darkgray);
  fill: var(--darkgray);
}
@@ -78,7 +89,7 @@
      font-size: 2rem;
    }
    & li:has(> input[type='checkbox']) {
    & li:has(> input[type="checkbox"]) {
      list-style-type: none;
      padding-left: 0;
      margin-left: -1.4rem;
@@ -143,7 +154,8 @@
    }
  }
  & .center, & footer {
  & .center,
  & footer {
    width: $pageWidth;
    margin-left: auto;
    margin-right: auto;
@@ -194,9 +206,12 @@
  }
}
h1, h2, h3, h4, h5, h6 {
h1,
h2,
h3,
h4,
h5,
h6 {
  &[id] > a[href^="#"] {
    margin: 0 0.5rem;
    opacity: 0;
@@ -276,11 +291,11 @@
      }
    }
    &[data-line-numbers-max-digits='2'] > [data-line]::before {
    &[data-line-numbers-max-digits="2"] > [data-line]::before {
      width: 2rem;
    }
    &[data-line-numbers-max-digits='3'] > [data-line]::before {
    &[data-line-numbers-max-digits="3"] > [data-line]::before {
      width: 3rem;
    }
  }
@@ -295,7 +310,9 @@
  background: var(--lightgray);
}
tbody, li, p {
tbody,
li,
p {
  line-height: 1.5rem;
}
@@ -306,7 +323,8 @@
  border-collapse: collapse;
}
td, th {
td,
th {
  padding: 0.2rem 1rem;
  border: 1px solid var(--gray);
}
@@ -330,7 +348,8 @@
  background-color: var(--lightgray);
}
audio, video {
audio,
video {
  width: 100%;
  border-radius: 5px;
}
@@ -339,7 +358,8 @@
  flex: 1 1 auto;
}
ul.overflow, ol.overflow {
ul.overflow,
ol.overflow {
  height: 400px;
  overflow-y: scroll;
@@ -353,9 +373,9 @@
  &:after {
    pointer-events: none;
    content: '';
    content: "";
    width: 100%;
    height: 50px;
    height: 50px;
    position: absolute;
    left: 0;
    bottom: 0;