Skip to content
Merged
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
3 changes: 1 addition & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# Contributing to Boost

This project adheres to the Contributor Covenant [code of conduct](./CODE_OF_CONDUCT.md).
By participating, you are expected to uphold this code. Please report unacceptable
behavior to rokt33r.choi@gmail.com.
By participating, you are expected to uphold this code. Please report unacceptable behavior to rokt33r.choi@gmail.com.

The following is a set of guidelines for contributing to Boost.
These are just guidelines, not rules, use your best judgment and feel free to
Expand Down
49 changes: 47 additions & 2 deletions src/lib/preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ import { createStoreContext } from './context'
export const defaultPreviewStyle = `
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
line-height: 1.5;
line-height: 1.6;
color: #24292e;
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial,
sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;
font-size: 16px;
line-height: 1.5;
line-height: 1.6;
word-wrap: break-word;

.dark, .solarizedDark {
Expand Down Expand Up @@ -436,6 +436,15 @@ code {
padding: 0.2em 0.4em;
}

p code,
li code
{
padding: 2px;
border-width: 1px;
border-style: solid;
border-radius: 5px;
}

pre {
word-wrap: normal;
}
Expand Down Expand Up @@ -518,6 +527,42 @@ kbd {
hr {
border-bottom-color: #eee;
}

.dark p code,
.dark li code
{
background-color: rgba(255,255,255,0.12);
border-color: rgba(255,255,255,0.3);
color: #03C588;
}
.auto p code,
.auto li code
{
background-color: #F9F9F9;
border-color: rgba(0,0,0,0.26);
color: #03C588;
}
.light p code,
.light li code
{
background-color: #F9F9F9;
border-color: rgba(0,0,0,0.26);
color: #03C588;
}
.sepia p code,
.sepia li code
{
background-color: #efe8d6;
border-color: rgba(0,0,0,0.26);
color: #F77942;
}
.solarizedDark p code,
.solarizedDark li code
{
background-color: rgba(255,255,255,0.12);
border-color: rgba(255,255,255,0.3);
color: #36abe3;
}
`

function loadPreviewStyle() {
Expand Down