Skip to content

Instantly share code, notes, and snippets.

@leizongmin
Created March 22, 2019 05:39
Show Gist options
  • Save leizongmin/3eefe459cf8cfca8c05dcc1423bb9543 to your computer and use it in GitHub Desktop.
Save leizongmin/3eefe459cf8cfca8c05dcc1423bb9543 to your computer and use it in GitHub Desktop.
mweb-lei-simple MWeb预览主题
* {
margin: 0;
padding: 0;
}
body {
min-width: 200px;
max-width: 900px;
margin: 0 auto;
padding: 20px;
font-family: "Nunito", "HelveticaNeue-Light", "Helvetica Neue Light",
"Helvetica Neue", Helvetica, Arial, sans-serif;
font-weight: 300;
font-size: 14px;
background: #fff;
color: #111;
}
.markdown-body {
line-height: 1.5em;
}
h1 {
font-size: 2em;
}
h2 {
font-size: 1.7em;
}
h3 {
font-size: 1.5em;
}
h4 {
font-size: 1.3em;
}
h5 {
font-size: 1.2em;
}
a {
text-decoration: none;
outline-width: 0;
word-wrap: break-word;
word-break: break-all;
color: #1863a1;
font-weight: bold;
}
a:hover {
text-decoration: underline;
color: #2571b8;
}
.markdown-body img.left,
.markdown-body video.left {
float: left;
margin-right: 1.5em;
}
.markdown-body img.right,
.markdown-body video.right {
float: right;
margin-left: 1.5em;
}
.markdown-body img.center,
.markdown-body video.center {
display: block;
margin: 0 auto 1.5em;
}
.markdown-body img.left,
.markdown-body video.left,
.markdown-body img.right,
.markdown-body video.right {
margin-bottom: 0.8em;
}
.alignleft {
float: left;
}
.alignright {
float: right;
}
.clearfix {
*zoom: 1;
}
.clearfix:after {
content: "";
display: table;
clear: both;
}
.markdown-body h1 {
font-weight: 300;
line-height: 35px;
margin-bottom: 20px;
}
.markdown-body h1 a {
color: #666;
}
.markdown-body a:hover {
text-decoration: underline;
}
.markdown-body .more-link {
display: block;
margin-top: 16px;
padding-left: 30px;
position: relative;
}
.markdown-body p,
.markdown-body blockquote,
.markdown-body ul,
.markdown-body ol,
.markdown-body dl,
.markdown-body table,
.markdown-body iframe,
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6,
.markdown-body .video-container {
margin-top: 20px;
}
.markdown-body ul,
.markdown-body ol,
.markdown-body dl {
margin-top: 10px;
}
.markdown-body ul,
.markdown-body ol,
.markdown-body dl {
margin-left: 20px;
}
.markdown-body ul ul,
.markdown-body ul ol,
.markdown-body ul dl,
.markdown-body ol ul,
.markdown-body ol ol,
.markdown-body ol dl,
.markdown-body dl ul,
.markdown-body dl ol,
.markdown-body dl dl {
margin-top: 0;
}
.markdown-body strong {
font-weight: bold;
}
.markdown-body em {
font-style: italic;
}
.markdown-body p {
margin-top: 10px;
}
.markdown-body h2 {
font-weight: 300;
border-bottom: 1px solid #ddd;
position: relative;
color: #375eab;
}
.markdown-body h2:before {
content: "";
position: absolute;
bottom: -2px;
border-bottom: 1px solid #fff;
width: 100%;
}
.markdown-body img,
.markdown-body video {
max-width: 100%;
height: auto;
}
.markdown-body blockquote {
background: #ddd;
border-left: 5px solid #ccc;
padding: 15px 20px;
margin-top: 10px;
}
.markdown-body blockquote > p:first-of-type {
margin-top: 0;
}
.markdown-body iframe {
border: none;
}
.markdown-body table {
background: #ddd;
border: 1px solid #ccc;
border-spacing: 0;
margin-top: 10px;
}
.markdown-body table th {
background: #ccc;
padding: 0 15px;
}
.markdown-body table td {
text-align: center;
}
.markdown-body table tr:nth-of-type(2n) {
background: #d5d5d5;
}
.markdown-body .caption {
display: block;
font-size: 0.9em;
color: #999;
padding-left: 25px;
position: relative;
}
.markdown-body .caption:before {
content: "\f040";
color: #ccc;
font: 1.3em FontAwesome;
line-height: 1.6em;
position: absolute;
left: 0;
}
.markdown-body .video-container {
position: relative;
padding-bottom: 56.25%;
padding-top: 30px;
height: 0;
overflow: hidden;
}
.markdown-body .video-container iframe,
.markdown-body .video-container object,
.markdown-body .video-container embed {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
margin-top: 0;
}
.markdown-body footer {
padding: 15px 0;
border-top: 1px solid #fff;
text-align: center;
font-size: 0.9em;
}
code,
pre {
background: #f7f7f7;
border: 1px solid #ccc;
font-family: Menlo, Monaco, "Andale Mono", "lucida console", "Courier New",
monospace;
/* font-size: 0.9em; */
}
code {
/* font-size: 0.9em; */
padding: 1px 3px;
margin: 0 3px;
background: #f7f7f7;
border: none;
color: #111;
}
pre code {
background: none;
border: none;
padding: 0;
margin: 0;
}
.markdown-body p {
margin-top: 10px;
}
.markdown-body h2 {
margin-top: 30px;
font-weight: bold;
}
.markdown-body h2::before {
border-bottom: none;
}
.markdown-body blockquote {
border-left: 5px solid #2571b8;
background: #f7f7f7;
}
.markdown-body blockquote p {
margin-top: 0px;
}
.markdown-body table {
line-height: 1.2em;
}
.markdown-body table td {
text-align: left;
}
.markdown-body pre {
background: none;
border: none;
padding: 0;
margin: 4px 0px;
background: #f7f7f7;
padding: 0.5em 1.5em;
}
.markdown-body {
text-align: left;
}
.markdown-body table th,
.markdown-body table td {
padding: 4px;
border-collapse: collapse;
border: solid 1px #ddd;
}
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
line-height: 1.2em;
}
.markdown-body {
border: none;
}
.markdown-body hr {
margin: 20px 0px;
border: 0;
border-top: solid 1px #ddd;
}
table td {
word-wrap: break-word !important;
word-break: break-all !important;
}
/** custom style */
.markdown-body table {
width: 100%;
background-color: transparent;
border-collapse: collapse;
border-spacing: 0;
background: #fff;
}
.markdown-body table td,
.markdown-body table th {
background: #fff;
border: 1px solid #eee;
padding: 4px 16px;
font-size: 0.875em;
}
.markdown-body table th {
background-color: #eee;
word-break: keep-all;
}
.markdown-body > ul > li {
margin-bottom: 0.5em;
}
/* PrismJS 1.14.0
http://prismjs.com/download.html#themes=prism&languages=markup+css+clike+javascript */
/**
* prism.js default theme for JavaScript, CSS and HTML
* Based on dabblet (http://dabblet.com)
* @author Lea Verou
*/
code[class*="language-"],
pre[class*="language-"] {
color: black;
background: none;
text-shadow: 0 1px white;
font-family: Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace;
text-align: left;
white-space: pre;
word-spacing: normal;
word-break: normal;
word-wrap: normal;
line-height: 1.5;
-moz-tab-size: 4;
-o-tab-size: 4;
tab-size: 4;
-webkit-hyphens: none;
-moz-hyphens: none;
-ms-hyphens: none;
hyphens: none;
}
pre[class*="language-"]::-moz-selection,
pre[class*="language-"] ::-moz-selection,
code[class*="language-"]::-moz-selection,
code[class*="language-"] ::-moz-selection {
text-shadow: none;
background: #b3d4fc;
}
pre[class*="language-"]::selection,
pre[class*="language-"] ::selection,
code[class*="language-"]::selection,
code[class*="language-"] ::selection {
text-shadow: none;
background: #b3d4fc;
}
@media print {
code[class*="language-"],
pre[class*="language-"] {
text-shadow: none;
}
}
/* Code blocks */
pre[class*="language-"] {
padding: 1em;
margin: 0.5em 0;
overflow: auto;
}
:not(pre) > code[class*="language-"],
pre[class*="language-"] {
background: #f7f7f7;
}
/* Inline code */
:not(pre) > code[class*="language-"] {
padding: 0.1em;
border-radius: 0.3em;
white-space: normal;
}
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
color: slategray;
}
.token.punctuation {
color: #999;
}
.namespace {
opacity: 0.7;
}
.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.deleted {
color: #905;
}
.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
color: #690;
}
.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
color: #9a6e3a;
background: hsla(0, 0%, 100%, 0.5);
}
.token.atrule,
.token.attr-value,
.token.keyword {
color: #07a;
}
.token.function,
.token.class-name {
color: #dd4a68;
}
.token.regex,
.token.important,
.token.variable {
color: #e90;
}
.token.important,
.token.bold {
font-weight: bold;
}
.token.italic {
font-style: italic;
}
.token.entity {
cursor: help;
}
pre[class*="language-"].line-numbers {
position: relative;
padding-left: 3.8em;
counter-reset: linenumber;
}
pre[class*="language-"].line-numbers > code {
position: relative;
white-space: inherit;
}
.line-numbers .line-numbers-rows {
position: absolute;
pointer-events: none;
top: 0;
left: -3.8em;
width: 3em; /* works for line-numbers below 1000 lines */
letter-spacing: -1px;
border-right: 1px solid #999;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
font-size: 100%;
}
.line-numbers-rows > span {
pointer-events: none;
display: block;
counter-increment: linenumber;
}
.line-numbers-rows > span:before {
content: counter(linenumber);
color: #999;
display: block;
padding-right: 0.8em;
text-align: right;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment