123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259 |
- /*
- * 自定义
- */
- pre.line-numbers {
- padding-top: 45px !important;
- }
- .window-controls{
- position: absolute;
- width: 65px;
- height: 14px;
- top: 15px;
- padding: 0;
- display: block;
- /*margin-left: -36px;*/
- z-index: 1000;
- }
- .window-controls i{
- margin-right: 8px;
- }
- .window-controls .red{
- background: rgb(224, 68, 62);
- width: 13px;
- height: 13px;
- border-radius: 50%;
- float: left;
- }
- .window-controls .yellow{
- background: rgb(255, 189, 46);
- width: 13px;
- height: 13px;
- border-radius: 50%;
- float: left;
- }
- .window-controls .green{
- background: rgb(26, 171, 41);
- width: 13px;
- height: 13px;
- border-radius: 50%;
- float: left;
- }
- /* PrismJS 1.14.0
- http://prismjs.com/download.html#themes=prism-okaidia&languages=markup+css+clike+javascript+c+bash+cpp+csharp+diff+markup-templating+git+go+graphql+http+hpkp+hsts+java+json+less+markdown+nginx+php+php-extras+sql+python+sass+scss+scala+plsql+vim&plugins=line-numbers+autolinker+wpd+command-line */
- /**
- * okaidia theme for JavaScript, CSS and HTML
- * Loosely based on Monokai textmate theme by http://www.monokai.nl/
- * @author ocodia
- */
- code[class*="language-"],
- pre[class*="language-"] {
- color: #f8f8f2;
- background: none;
- text-shadow: 0 1px rgba(0, 0, 0, 0.3);
- 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.8;
- -moz-tab-size: 4;
- -o-tab-size: 4;
- tab-size: 4;
- -webkit-hyphens: none;
- -moz-hyphens: none;
- -ms-hyphens: none;
- hyphens: none;
- }
- /* Code blocks */
- pre[class*="language-"] {
- padding: 1em;
- margin: .5em 0;
- overflow: auto;
- border-radius: 0.3em;
- }
- :not(pre) > code[class*="language-"],
- pre[class*="language-"] {
- background: #263238;
- }
- /* Inline code */
- :not(pre) > code[class*="language-"] {
- padding: .1em;
- border-radius: .3em;
- white-space: normal;
- }
- .token.comment,
- .token.prolog,
- .token.doctype,
- .token.cdata {
- color: #546e7a;
- }
- .token.punctuation {
- margin-left: 5px;
- color: rgba(233,237,237,1);
- }
- .namespace {
- opacity: .7;
- }
- .token.property,
- .token.tag,
- .token.constant,
- .token.symbol,
- .token.deleted {
- color: #f92672;
- }
- .token.boolean,
- .token.number {
- color: #ae81ff;
- }
- .token.selector,
- .token.attr-name,
- .token.string,
- .token.char,
- .token.builtin,
- .token.inserted {
- color: #a6e22e;
- }
- .token.operator,
- .token.entity,
- .token.url,
- .language-css .token.string,
- .style .token.string,
- .token.variable {
- color: #f8f8f2;
- }
- .token.atrule,
- .token.attr-value,
- .token.function {
- color: #e6db74;
- }
- .token.keyword {
- color: #66d9ef;
- }
- .token.regex,
- .token.important {
- color: #fd971f;
- }
- .token.important,
- .token.bold {
- font-weight: bold;
- }
- .token.italic {
- font-style: italic;
- }
- .token.entity {
- cursor: help;
- }
- pre.line-numbers {
- position: relative;
- padding-left: 3.8em;
- counter-reset: linenumber;
- }
- pre.line-numbers > code {
- position: relative;
- white-space: inherit;
- }
- .line-numbers .line-numbers-rows {
- position: absolute;
- pointer-events: none;
- top: 0;
- font-size: 100%;
- left: -3.8em;
- width: 3em; /* works for line-numbers below 1000 lines */
- letter-spacing: 2px;
- border-right: 1px solid #537f7e;
- line-height: 2.0;
- -webkit-user-select: none;
- -moz-user-select: none;
- -ms-user-select: none;
- user-select: none;
- }
- .line-numbers-rows > span {
- pointer-events: none;
- display: block;
- counter-increment: linenumber;
- }
- .line-numbers-rows > span:before {
- content: counter(linenumber);
- color: #537f7e;
- display: block;
- padding-right: 0.8em;
- text-align: right;
- }
- .token a {
- color: inherit;
- }
- code[class*="language-"] a[href],
- pre[class*="language-"] a[href] {
- cursor: help;
- text-decoration: none;
- }
- code[class*="language-"] a[href]:hover,
- pre[class*="language-"] a[href]:hover {
- cursor: help;
- text-decoration: underline;
- }
- .command-line-prompt {
- border-right: 1px solid #999;
- display: block;
- float: left;
- font-size: 100%;
- letter-spacing: -1px;
- margin-right: 1em;
- pointer-events: none;
- -webkit-user-select: none;
- -moz-user-select: none;
- -ms-user-select: none;
- user-select: none;
- }
- .command-line-prompt > span:before {
- color: #999;
- content: ' ';
- display: block;
- padding-right: 0.8em;
- }
- .command-line-prompt > span[data-user]:before {
- content: "[" attr(data-user) "@" attr(data-host) "] $";
- }
- .command-line-prompt > span[data-user="root"]:before {
- content: "[" attr(data-user) "@" attr(data-host) "] #";
- }
- .command-line-prompt > span[data-prompt]:before {
- content: attr(data-prompt);
- }
|