Skip to content
This repository has been archived by the owner on Dec 20, 2017. It is now read-only.

Modify style to make preview look like on GitHub #219

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
53 changes: 33 additions & 20 deletions src/main/resources/net/nicoulaj/idea/markdown/preview.css
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@
color: black;
font-family: Helvetica, Arial, sans-serif;
font-weight: normal;
line-height: 1.6;
}

#markdown-preview small {
Expand All @@ -114,8 +115,8 @@
}

#markdown-preview a {
color: blue;
text-decoration: underline;
color: #4183c4;
text-decoration: none;
}

#markdown-preview p {
Expand Down Expand Up @@ -148,52 +149,62 @@
#markdown-preview h1 {
font-size: x-large;
font-weight: bold;
margin-top: 20px;
margin-bottom: 0;
margin-top: 10px;
margin-bottom: 5px;
padding-bottom: 5px;
line-height: 1.2;
border-bottom: 1px solid #eeeeee;
}

#markdown-preview h2 {
font-size: large;
font-weight: bold;
margin-top: 20px;
margin-bottom: 0;
margin-top: 10px;
margin-bottom: 5px;
padding-bottom: 5px;
line-height: 1.225;
border-bottom: 1px solid #eeeeee;
}

#markdown-preview h3 {
font-size: medium;
font-weight: bold;
margin-top: 20px;
margin-top: 10px;
margin-bottom: 0;
line-height: 1.4;
}

#markdown-preview h4 {
font-size: small;
font-weight: bold;
margin-top: 20px;
margin-bottom: 0;
margin-top: 10px;
margin-bottom: 5px;
line-height: 1.4;
}

#markdown-preview h5 {
font-size: small;
font-weight: bold;
margin-top: 20px;
margin-bottom: 0;
margin-top: 10px;
margin-bottom: 5px;
line-height: 1.4;
}

#markdown-preview h6 {
font-size: small;
font-weight: bold;
margin-top: 20px;
margin-bottom: 0;
margin-top: 10px;
margin-bottom: 5px;
line-height: 1.4;
}

/* Code/quotes */

#markdown-preview pre {
font-family: Monospaced, monospace;
font-family: Consolas, "Liberation Mono", Menlo, Courier, Monospaced, monospace;
margin: 5px 10px;
padding: 5px;
background-color: #dcdcdc;
background-color: #f7f7f7;
}

#markdown-preview pre p {
Expand All @@ -202,22 +213,24 @@

#markdown-preview code {
font-size: small;
font-family: Monospaced, monospace;
background-color: #dcdcdc;
font-family: Consolas, "Liberation Mono", Menlo, Courier, Monospaced, monospace;
background-color: #f7f7f7;
padding: 3px;
border-raduis: 3px;
}

#markdown-preview blockquote {
margin: 5px 10px;
padding: 5px;
background-color: #dcdcdc;
background-color: #f7f7f7;
}

/* Lists */

#markdown-preview ul {
margin-right-rtl: 20px;
margin-left-ltr: 20px;
margin-top: 10px;
margin-top: 0;
margin-bottom: 10px;
list-style-type: disc;
}
Expand Down Expand Up @@ -249,7 +262,7 @@
#markdown-preview ol {
margin-right-rtl: 20px;
margin-left-ltr: 20px;
margin-top: 10px;
margin-top: 0;
margin-bottom: 10px;
list-style-type: decimal;
}
Expand Down