Last active
July 25, 2018 09:39
-
-
Save Ray-Eldath/99194bb3104ad4125f5b811336e13d08 to your computer and use it in GitHub Desktop.
CSS use to render CmdMarkdown-like page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.comment { | |
background: #fff; | |
color: var(--comment-color); | |
padding-left: 4px; | |
padding-right: 4px; | |
border-radius: 4px; | |
} | |
.copyright .info { | |
font-size: 10px; | |
margin: 0; | |
margin-top: 4px; | |
line-height: 0; | |
opacity: .5; | |
} | |
.copyright .cc { | |
opacity: .7; | |
height: 34px; | |
} | |
.copyright { | |
margin-top: 40px; | |
text-align: right; | |
} | |
.ending .curtain { | |
background: var(--ending-color); | |
} | |
.ending > p { | |
color: var(--ending-color); | |
text-align: center; | |
line-height: 1.6; | |
font-size: 20px; | |
} | |
blockquote { | |
background: rgb(214, 219, 223); | |
border-left: solid #999 6px; | |
margin: 0 0 20px; | |
padding: 10px 15px; | |
border-color: #D6DBDF; | |
border-radius: 4px; | |
background: rgba(102, 128, 153, .05); | |
} | |
blockquote p:first-child { | |
margin-top: 0; | |
} | |
blockquote p { | |
margin-bottom: 0; | |
font-size: 16px; | |
font-weight: 300; | |
line-height: 28px; | |
} | |
.curtain { | |
background: #000000; | |
} | |
code { | |
font-family: 'Source Code Pro', '黑体'; | |
font-size: 15px; | |
background: #dedede; | |
padding: 0 4px 0 4px; | |
margin: 4px; | |
border-radius: 4px; | |
} | |
.more-bottom-hr { | |
margin-bottom: 6 8px; | |
} | |
hr { | |
border: 0; | |
border-bottom: 1px dashed #cfcfcf; | |
margin: 24px 0; | |
} | |
.system { | |
color: var(--system-color); | |
font-size: 16px; | |
line-height: 1.4; | |
text-align: center; | |
border: dotted var(--system-color) 4px; | |
border-top-width: 0; | |
border-bottom-width: 0; | |
padding-top: 80px; | |
padding-bottom: 80px; | |
} | |
.system code { | |
margin-left: 2px; | |
margin-right: 2px; | |
padding: 1px; | |
border: solid var(--system-color) 1px; | |
} | |
.system * { | |
font-family: 'Zpix', 'Consolas' !important; | |
padding: 0; | |
margin: 0; | |
background: transparent; | |
} | |
.system strong { | |
color: var(--system-strong-color); | |
} | |
.warning p { | |
margin: 4px; | |
font-size: 14px; | |
} | |
.warning .important { | |
font-size: 58px; | |
font-weight: bold; | |
} | |
.warning { | |
color: var(--warning-color); | |
border-top: dashed var(--warning-color) 5px; | |
border-bottom: dashed var(--warning-color) 5px; | |
padding-top: 14px; | |
padding-bottom: 14px; | |
margin-bottom: 216px; | |
text-align: center; | |
line-height: 1.2; | |
} | |
.header { | |
text-align: center; | |
margin-top: 106px; | |
margin-bottom: 18px; | |
margin-left: -1200px; | |
height: 128px; | |
} | |
.header .logo { | |
filter: drop-shadow(600px 0 0px var(--warning-color)); | |
height: 148px; | |
} | |
.header-line { | |
border-left: solid var(--warning-color) 4px; | |
} | |
h1 { | |
font-size: 46px; | |
font-weight: bold; | |
text-align: center; | |
} | |
#wmd-preview { | |
width: 60%; | |
height: 100%; | |
margin-left: auto; | |
margin-right: auto; | |
line-height: 27px; | |
} | |
body { | |
padding: 0; | |
margin: overflow-x: hidden; | |
font-family: Consolas, Roboto; | |
background: rgb(249, 249, 245); | |
} | |
:root { | |
--warning-color: rgb(102, 0, 0); | |
--system-color: rgb(198, 54, 54); | |
--system-strong-color: rgb(255, 0, 0); | |
--ending-color: rgb(181, 51, 171); | |
--comment-color: rgb(102, 0, 165); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment