Skip to content

Commit

Permalink
update theme. Keep it?
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobrosenberg committed Mar 20, 2020
1 parent eec238e commit b161400
Showing 1 changed file with 54 additions and 17 deletions.
71 changes: 54 additions & 17 deletions scss/_prism.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,7 @@ https://prismjs.com/download.html#themes=prism&languages=markup+css+clike+javasc
* @author Lea Verou
*/

/* Code
========================================================================== */

code[class*="language-"], pre[class*="language-"] {
font-size: 1.2rem;
}
@import url('https://fonts.googleapis.com/css2?family=Anonymous+Pro:ital,wght@0,400;0,700;1,400;1,700&family=Cousine:ital,wght@0,400;0,700;1,400;1,700&family=Nova+Mono&family=Roboto+Mono:wght@300;400&family=Source+Code+Pro:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap');

This comment has been minimized.

Copy link
@Wolfr

Wolfr Mar 20, 2020

Why load so many fonts... also, Google fonts is a tracker! Everyone using Google fonts does not realize this that now we are allowing google to track every page visit.

I would suggest putting them local but I can handle that, I will make an issue.

This comment has been minimized.

Copy link
@jakobrosenberg

jakobrosenberg Mar 20, 2020

Author Owner

Sorry! That wasn't supposed to make it into the push. That was just me tinkering. ;p


/* Regular code blocks
========================================================================== */
Expand All @@ -21,23 +16,24 @@ code {
padding: 0.2rem;
color: #CE2F55;
background: #FFF6FF;
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
font-family: "Roboto Mono", Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
}

code[class*="language-"],
pre[class*="language-"] {
color: black;
text-shadow: 0 0.1rem white;
color: #ffb0e2;
// text-shadow: 0 0.1rem white;
background: none;

font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
font-size: 1.2rem;
font-family: "Source Code Pro", Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
font-weight: 500;
font-size: 1.5rem;
text-align: left;
white-space: pre;
word-spacing: normal;
word-break: normal;
word-wrap: normal;
line-height: 1.5;
line-height: 1.7;

-moz-tab-size: 4;
-o-tab-size: 4;
Expand Down Expand Up @@ -85,7 +81,7 @@ pre[class*="language-"] {

:not(pre) > code[class*="language-"],
pre[class*="language-"] {
background: #FFF6FF;
background: #360044;
}

/* Inline code
Expand All @@ -97,15 +93,18 @@ pre[class*="language-"] {
white-space: normal;
}


.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
color: slategray;
font-style: italic;
font-weight: 400;
color: #BAA7BE;
}

.token.punctuation {
color: #999;
color: white;
}

.namespace {
Expand All @@ -119,7 +118,7 @@ pre[class*="language-"] {
.token.constant,
.token.symbol,
.token.deleted {
color: #905;
color: #ffb0e2;
}

.token.selector,
Expand All @@ -142,7 +141,7 @@ pre[class*="language-"] {
.token.atrule,
.token.attr-value,
.token.keyword {
color: #07A;
color: white;
}

.token.function,
Expand All @@ -168,3 +167,41 @@ pre[class*="language-"] {
.token.entity {
cursor: help;
}


/* Command line
========================================================================== */

.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);
}

0 comments on commit b161400

Please sign in to comment.