Skip to content
This repository has been archived by the owner on May 3, 2022. It is now read-only.

Commit

Permalink
Merge pull request #7 from benri/bl/style
Browse files Browse the repository at this point in the history
Markdown Style Customization
  • Loading branch information
jarrodek committed Apr 19, 2021
2 parents 7dee163 + 116d40c commit 6f8f7d6
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
18 changes: 17 additions & 1 deletion markdown-styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ defined here are scoped to a container with this class name.
import { css } from 'lit-element';
export default css`[slot="markdown-html"] {
-webkit-font-smoothing: var(--arc-font-font-smoothing);
font-family: var(--arc-font-body1-font-family);
font-size: var(--arc-font-body1-font-size, 14px);
font-weight: var(--arc-font-body1-font-weight, 400);
line-height: var(--arc-font-body1-line-height, 20px);
Expand All @@ -57,9 +58,11 @@ export default css`[slot="markdown-html"] {
[slot="markdown-html"] h4,
[slot="markdown-html"] h5,
[slot="markdown-html"] h6 {
font-family: var(--arc-font-title-font-family);
font-size: var(--arc-font-title-font-size, 20px);
font-weight: var(--arc-font-title-font-weight, 500);
line-height: var(--arc-font-title-line-height, 28px);
color: var(--arc-font-title-color);
}
[slot="markdown-html"] h1 tt,
Expand Down Expand Up @@ -92,12 +95,17 @@ export default css`[slot="markdown-html"] {
font-weight: var(--arc-font-title-font-weight, 500);
line-height: var(--arc-font-title-line-height, 28px);
border-bottom: 1px solid var(--markdown-styles-title-border-bottom-color, #eee);
border-bottom: var(--markdown-styles-h2-border-bottom);
border-top: var(--markdown-styles-h2-border-top);
padding: var(--arc-font-h2-padding);
margin: var(--arc-font-h2-margin);
}
[slot="markdown-html"] h3 {
font-weight: var(--arc-font-subhead-font-weight, 400);
font-size: 1.5em;
font-size: var(--arc-font-subhead-font-size, 1.5em);
line-height: 1.43;
margin: var(--arc-font-h3-margin);
}
[slot="markdown-html"] h4 {
Expand Down Expand Up @@ -134,6 +142,14 @@ export default css`[slot="markdown-html"] {
margin-bottom: 16px;
}
[slot="markdown-html"] a {
color: var(--link-color);
}
[slot="markdown-html"] a:hover {
color: var(--link-hover-color);
}
[slot="markdown-html"] > *:last-child {
margin-bottom: 0;
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@advanced-rest-client/markdown-styles",
"description": "Element that displays response documentation for RAML",
"version": "3.1.4",
"version": "3.1.5",
"license": "Apache-2.0",
"main": "markdown-styles.js",
"module": "markdown-styles.js",
Expand Down

0 comments on commit 6f8f7d6

Please sign in to comment.