Skip to content

Commit

Permalink
fixed typo in css
Browse files Browse the repository at this point in the history
  • Loading branch information
GianiStatie committed Sep 3, 2024
1 parent 35cdb66 commit bc86ef2
Showing 1 changed file with 33 additions and 22 deletions.
55 changes: 33 additions & 22 deletions quartz/styles/base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ section {
padding: 0 0.1rem;
border-radius: 5px;
}

::selection {
background: color-mix(in srgb, var(--tertiary) 60%, rgba(255, 255, 255, 0));
color: var(--darkgray);
Expand Down Expand Up @@ -90,6 +91,7 @@ a {
border-radius: 0;
padding: 0;
}

&.tag-link {
&::before {
content: "#";
Expand All @@ -101,21 +103,23 @@ a {
height: 1ex;
margin: 0 0.15em;

> path {
>path {
fill: var(--dark);
}
}
}

.desktop-only {
display: initial;

@media all and (max-width: $fullPageWidth) {
display: none;
}
}

.mobile-only {
display: none;

@media all and (max-width: $fullPageWidth) {
display: initial;
}
Expand All @@ -129,7 +133,7 @@ a {
}

& article {
& > h1 {
&>h1 {
font-size: 2rem;
}

Expand All @@ -144,19 +148,20 @@ a {
color: var(--gray);
}

& li > * {
& li>* {
margin-top: 0;
margin-bottom: 0;
}

p > strong {
p>strong {
color: var(--dark);
}
}

& > #quartz-body {
&>#quartz-body {
width: 100%;
display: flex;

@media all and (max-width: $fullPageWidth) {
flex-direction: column;
}
Expand All @@ -172,6 +177,7 @@ a {
box-sizing: border-box;
padding: 0 4rem;
position: fixed;

@media all and (max-width: $fullPageWidth) {
position: initial;
flex-direction: row;
Expand All @@ -184,6 +190,7 @@ a {
& .sidebar.left {
z-index: 1;
left: calc(calc(100vw - $pageWidth) / 2 - $sidePanelWidth);

@media all and (max-width: $fullPageWidth) {
gap: 0;
align-items: center;
Expand All @@ -193,7 +200,8 @@ a {
& .sidebar.right {
right: calc(calc(100vw - $pageWidth) / 2 - $sidePanelWidth);
flex-wrap: wrap;
& > * {

&>* {
@media all and (max-width: $fullPageWidth) {
flex: 1;
min-width: 140px;
Expand All @@ -214,6 +222,7 @@ a {

& .page-header {
margin: $topSpacing auto 0 auto;

@media all and (max-width: $fullPageWidth) {
margin-top: 2rem;
}
Expand All @@ -224,6 +233,7 @@ a {
margin-left: auto;
margin-right: auto;
width: $pageWidth;

@media all and (max-width: $fullPageWidth) {
width: initial;
margin-left: 0;
Expand Down Expand Up @@ -288,7 +298,7 @@ thead {
font-weight: revert;
margin-bottom: 0;

article > & > a[role="anchor"] {
article>&>a[role="anchor"] {
color: var(--dark);
background-color: transparent;
}
Expand All @@ -300,7 +310,7 @@ h3,
h4,
h5,
h6 {
&[id] > a[href^="#"] {
&[id]>a[href^="#"] {
margin: 0 0.5rem;
opacity: 0;
transition: opacity 0.2s ease;
Expand All @@ -309,7 +319,7 @@ h6 {
user-select: none;
}

&[id]:hover > a {
&[id]:hover>a {
opacity: 1;
}
}
Expand Down Expand Up @@ -347,7 +357,7 @@ figure[data-rehype-pretty-code-figure] {
line-height: 1.6rem;
position: relative;

& > [data-rehype-pretty-code-title] {
&>[data-rehype-pretty-code-title] {
font-family: var(--codeFont);
font-size: 0.9rem;
padding: 0.1rem 0.5rem;
Expand All @@ -358,7 +368,7 @@ figure[data-rehype-pretty-code-figure] {
color: var(--darkgray);
}

& > pre {
&>pre {
padding: 0;
}
}
Expand All @@ -375,7 +385,7 @@ pre {
border: none;
}

& > code {
&>code {
background: none;
padding: 0;
font-size: 0.85rem;
Expand All @@ -390,7 +400,7 @@ pre {
border-radius: 5px;
}

& > [data-line] {
&>[data-line] {
padding: 0 0.25rem;
box-sizing: border-box;
border-left: 3px solid transparent;
Expand All @@ -411,11 +421,11 @@ pre {
}
}

&[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;
}
}
Expand All @@ -439,7 +449,7 @@ p {
.table-container {
overflow-x: auto;

& > table {
&>table {
margin: 1rem;
padding: 1.5rem;
border-collapse: collapse;
Expand All @@ -449,7 +459,7 @@ p {
min-width: 75px;
}

& > * {
&>* {
line-height: 2rem;
}
}
Expand All @@ -467,6 +477,7 @@ td {

tr {
border-bottom: 1px solid var(--lightgray);

&:last-child {
border-bottom: none;
}
Expand All @@ -478,7 +489,7 @@ img {
margin: 1rem 0;
}

p > img + em {
p>img+em {
display: block;
transform: translateY(-1rem);
}
Expand Down Expand Up @@ -514,7 +525,7 @@ ol.overflow {
content: "";
clear: both;

& > li:last-of-type {
&>li:last-of-type {
margin-bottom: 30px;
}

Expand All @@ -537,6 +548,7 @@ ol.overflow {
padding-left: 1rem;
}
}

img[alt$=">"] {
float: right;
width: 300px;
Expand All @@ -555,9 +567,8 @@ img[alt$="><"] {
display: block;
max-width: 100%;
margin: auto;
float: none!important;
float: none !important;
}
=======

.katex-display {
overflow-x: auto;
Expand All @@ -570,4 +581,4 @@ iframe.pdf {
height: 100%;
width: 100%;
border-radius: 5px;
}
}

0 comments on commit bc86ef2

Please sign in to comment.