Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
81 changes: 64 additions & 17 deletions book/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ html {

.chapter .section li.chapter-item {
line-height: inherit;
padding: .5rem .5rem 0 .5rem;
padding: 0.5rem 0.5rem 0 0.5rem;
}

.content {
Expand All @@ -28,32 +28,73 @@ html {
}

/* 2 1.75 1.5 1.25 1 .875 */
.content h1 { font-size: 2em }
.content h2 { font-size: 1.75em }
.content h3 { font-size: 1.5em }
.content h4 { font-size: 1.25em }
.content h5 { font-size: 1em }
.content h6 { font-size: .875em }
.content h1 {
font-size: 2em;
}
.content h2 {
font-size: 1.75em;
}
.content h3 {
font-size: 1.5em;
}
.content h4 {
font-size: 1.25em;
}
.content h5 {
font-size: 1em;
}
.content h6 {
font-size: 0.875em;
}

.content h1,
.content h2,
.content h3,
.content h4 {
font-weight: 500;
margin-top: 1.275em;
margin-bottom: .875em;
margin-bottom: 0.875em;
}

aside {
--space: 1.25rem;
margin-top: 4rem;
margin-bottom: 4rem;
padding-left: var(--space);
color: var(--fg);
padding-bottom: var(--space);
/* TODO: use a custom color here */
border-left: 4px solid var(--links);
position: relative;
color: var(--fg);
background-color: var(--quote-bg);
padding-top: 4rem;
&::before {
font-weight: bold;
position: absolute;
top: var(--space);
left: var(--space);
}
}

/* TODO: customize border color based on aside type */
aside.tip::before {
content: "💡 Tip";
}
aside.note::before {
content: "ℹ️ Note";
}

.content p,
.content ol,
.content ul,
.content table {
margin-top: 0;
margin-bottom: .875em;
margin-bottom: 0.875em;
}

.content ul li {
margin-bottom: .25rem;
margin-bottom: 0.25rem;
}

.content ul {
Expand All @@ -62,18 +103,18 @@ html {

.content ul ul,
.content ol ul {
margin-bottom: .5rem;
margin-bottom: 0.5rem;
}

.content li p {
margin-bottom: .5em;
margin-bottom: 0.5em;
}

blockquote {
margin: 1.5rem 0;
padding: 1rem 1.5rem;
color: var(--fg);
opacity: .9;
opacity: 0.9;
background-color: var(--quote-bg);
border-left: 4px solid var(--quote-border);
border-top: none;
Expand All @@ -89,15 +130,15 @@ table {
}

table thead th {
padding: .75rem;
padding: 0.75rem;
text-align: left;
font-weight: 500;
line-height: 1.5;
width: auto;
}

table td {
padding: .75rem;
padding: 0.75rem;
border: none;
}

Expand Down Expand Up @@ -141,13 +182,13 @@ code.hljs {
--icons-hover: #b7b9cc;

/* --links: #a4a0e8; */
--links: #ECCDBA;
--links: #eccdba;

--inline-code-color: hsl(48.7, 7.8%, 70%);

--theme-popup-bg: #161923;
--theme-popup-border: #737480;
--theme-hover: rgba(0, 0, 0, .2);
--theme-hover: rgba(0, 0, 0, 0.2);

--quote-bg: #281733;
--quote-border: hsl(226, 15%, 22%);
Expand All @@ -167,6 +208,12 @@ code.hljs {
--search-mark-bg: #a2cff5;
}

:where(.colibri) kbd {
border-color: hsl(48.7, 7.8%, 25%);
color: hsl(48.7, 7.8%, 70%);
background-color: #2f1e2e;
}

.colibri .content .header {
color: #fff;
}
Expand Down
1 change: 1 addition & 0 deletions book/src/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
- [Package Managers](./package-managers.md)
- [Building from source](./building-from-source.md)
- [Usage](./usage.md)
- [Getting Started](./getting-started.md)
- [Registers](./registers.md)
- [Surround](./surround.md)
- [Textobjects](./textobjects.md)
Expand Down
Loading
Loading