Skip to content

Commit

Permalink
theme: cleanup prose config
Browse files Browse the repository at this point in the history
see #857
  • Loading branch information
davidsneighbour committed Apr 16, 2024
1 parent 1e2605f commit 7e76de6
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 58 deletions.
17 changes: 0 additions & 17 deletions assets/scss/05-prose/_components.scss

This file was deleted.

58 changes: 18 additions & 40 deletions assets/scss/05-prose/_prose.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ h6 {
a {
@extend .text-decoration-none;
}

}

h1,
Expand All @@ -30,6 +29,23 @@ h3 {
@extend .border-light-subtle;
}

h1,
h2,
h3,
h4,
h5,
h6 {
.heading-tools {
@extend .float-end;
@extend .ms-2;
@extend .d-none;
}

&:hover .heading-tools {
@extend .d-inline-block;
}
}

p,
li,
dd,
Expand All @@ -41,7 +57,7 @@ td {
@include word-wrap;
}

>p code {
> p code {
background-color: var(--bs-tertiary-bg);
padding: 0.2rem 0.35rem;
}
Expand All @@ -60,51 +76,13 @@ pre {
margin-bottom: 0;
}

table {
$table-color: $body-color;

.dark & {
@extend .table-dark;
}

.light & {
@extend .table-light;
}

code,
pre {
padding: 0.25rem;
}

@extend .table;
@extend .table-bordered;
@extend .table-sm;


td {
@extend .px-2;
@extend .py-1;

&:nth-of-type(1) {
white-space: nowrap;
}
}

th {
@extend .px-2;
@extend .py-1;
}

}

.highlight {
font-size: 1rem;
margin-bottom: $spacer;

.chroma {
padding: 0.3rem;
}

}

.section--meta {
Expand Down
35 changes: 35 additions & 0 deletions assets/scss/05-prose/_tables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,38 @@
}
}
}

table {
$table-color: $body-color;

.dark & {
@extend .table-dark;
}

.light & {
@extend .table-light;
}

code,
pre {
padding: 0.25rem;
}

@extend .table;
@extend .table-bordered;
@extend .table-sm;

td {
@extend .px-2;
@extend .py-1;

&:nth-of-type(1) {
white-space: nowrap;
}
}

th {
@extend .px-2;
@extend .py-1;
}
}
1 change: 0 additions & 1 deletion assets/scss/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@
.prose {
@import "05-prose/prose";
@import "05-prose/footnotes";
@import "05-prose/components";
@import "05-prose/images";
@import "05-prose/tables";
}
Expand Down

0 comments on commit 7e76de6

Please sign in to comment.