Skip to content

Commit

Permalink
fix: revert to popupcss to repair latex math preview and popup styles
Browse files Browse the repository at this point in the history
  • Loading branch information
zpreston123 committed Nov 6, 2017
1 parent 2115490 commit 9f6caac
Show file tree
Hide file tree
Showing 5 changed files with 149 additions and 38 deletions.
32 changes: 30 additions & 2 deletions schemes/Material-Theme-Darker.tmTheme
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,36 @@
<string>#65737e</string>
<key>lineHighlight</key>
<string>#00000050</string>
<key>phantomCss</key>
<string>&lt;![CDATA[ html { background-color: #212121; color: #eeffffff; padding: 16px; } a { color: #B2CCD6; line-height: 16px; } .error, .deleted { color: #FF5370; } .success, .inserted { color: #C3E88D; } .warning, .modified { color: #FFCB6B; } .type { color: #89DDFF; font-style: italic; } .param { color: #F78C6C; } .current { text-decoration: underline; } ]]&gt;</string>
<key>popupCss</key>
<string>html {
background-color: #212121;
color: #eeffffff;
padding: 16px;
}
a {
color: #B2CCD6;
line-height: 16px;
}
.error, .deleted {
color: #FF5370;
}
.success, .inserted {
color: #C3E88D;
}
.warning, .modified {
color: #FFCB6B;
}
.type {
color: #89DDFF;
font-style: italic;
}
.param {
color: #F78C6C;
}
.current {
text-decoration: underline;
}
</string>
<key>selection</key>
<string>#61616150</string>
<key>selectionBorder</key>
Expand Down
32 changes: 30 additions & 2 deletions schemes/Material-Theme-Lighter.tmTheme
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,36 @@
<string>#E7EAEC</string>
<key>lineHighlight</key>
<string>#90A4AE20</string>
<key>phantomCss</key>
<string>&lt;![CDATA[ html { background-color: #fafafa; color: #80CBC4; padding: 16px; } a { color: #8796B0; line-height: 16px; } .error, .deleted { color: #E53935; } .success, .inserted { color: #91B859; } .warning, .modified { color: #FFB62C; } .type { color: #39ADB5; font-style: italic; } .param { color: #F76D47; } .current { text-decoration: underline; } ]]&gt;</string>
<key>popupCss</key>
<string>html {
background-color: #fafafa;
color: #80CBC4;
padding: 16px;
}
a {
color: #8796B0;
line-height: 16px;
}
.error, .deleted {
color: #E53935;
}
.success, .inserted {
color: #91B859;
}
.warning, .modified {
color: #FFB62C;
}
.type {
color: #39ADB5;
font-style: italic;
}
.param {
color: #F76D47;
}
.current {
text-decoration: underline;
}
</string>
<key>selection</key>
<string>#80CBC440</string>
<key>selectionBorder</key>
Expand Down
32 changes: 30 additions & 2 deletions schemes/Material-Theme-Palenight.tmTheme
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,36 @@
<string>#4E5579</string>
<key>lineHighlight</key>
<string>#00000030</string>
<key>phantomCss</key>
<string>&lt;![CDATA[ html { background-color: #292D3E; color: #959DCB; padding: 16px; } a { color: #B2CCD6; line-height: 16px; } .error, .deleted { color: #FF5370; } .success, .inserted { color: #C3E88D; } .warning, .modified { color: #FFCB6B; } .type { color: #89DDFF; font-style: italic; } .param { color: #F78C6C; } .current { text-decoration: underline; } ]]&gt;</string>
<key>popupCss</key>
<string>html {
background-color: #292D3E;
color: #959DCB;
padding: 16px;
}
a {
color: #B2CCD6;
line-height: 16px;
}
.error, .deleted {
color: #FF5370;
}
.success, .inserted {
color: #C3E88D;
}
.warning, .modified {
color: #FFCB6B;
}
.type {
color: #89DDFF;
font-style: italic;
}
.param {
color: #F78C6C;
}
.current {
text-decoration: underline;
}
</string>
<key>selection</key>
<string>#717CB440</string>
<key>selectionBorder</key>
Expand Down
32 changes: 30 additions & 2 deletions schemes/Material-Theme.tmTheme
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,36 @@
<string>#65737e</string>
<key>lineHighlight</key>
<string>#00000050</string>
<key>phantomCss</key>
<string>&lt;![CDATA[ html { background-color: #263238; color: #eeffff; padding: 16px; } a { color: #B2CCD6; line-height: 16px; } .error, .deleted { color: #FF5370; } .success, .inserted { color: #C3E88D; } .warning, .modified { color: #FFCB6B; } .type { color: #89DDFF; font-style: italic; } .param { color: #F78C6C; } .current { text-decoration: underline; } ]]&gt;</string>
<key>popupCss</key>
<string>html {
background-color: #263238;
color: #eeffff;
padding: 16px;
}
a {
color: #B2CCD6;
line-height: 16px;
}
.error, .deleted {
color: #FF5370;
}
.success, .inserted {
color: #C3E88D;
}
.warning, .modified {
color: #FFCB6B;
}
.type {
color: #89DDFF;
font-style: italic;
}
.param {
color: #F78C6C;
}
.current {
text-decoration: underline;
}
</string>
<key>selection</key>
<string>#80CBC420</string>
<key>selectionBorder</key>
Expand Down
59 changes: 29 additions & 30 deletions sources/schemes/scheme.YAML-tmTheme
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -23,36 +23,35 @@ settings:
selection: '<%= scheme.selection %>'
selectionBorder: '<%= scheme.selection %>'
shadow: '<%= scheme.shadow %>'
phantomCss: "<![CDATA[
html {
background-color: <%= scheme.background %>;
color: <%= scheme.foreground %>;
padding: 16px;
}
a {
color: <%= scheme.base.paleblue %>;
line-height: 16px;
}
.error, .deleted {
color: <%= scheme.base.red %>;
}
.success, .inserted {
color: <%= scheme.base.green %>;
}
.warning, .modified {
color: <%= scheme.base.yellow %>;
}
.type {
color: <%= scheme.base.cyan %>;
font-style: italic;
}
.param {
color: <%= scheme.base.orange %>;
}
.current {
text-decoration: underline;
}
]]>"
popupCss: |
html {
background-color: <%= scheme.background %>;
color: <%= scheme.foreground %>;
padding: 16px;
}
a {
color: <%= scheme.base.paleblue %>;
line-height: 16px;
}
.error, .deleted {
color: <%= scheme.base.red %>;
}
.success, .inserted {
color: <%= scheme.base.green %>;
}
.warning, .modified {
color: <%= scheme.base.yellow %>;
}
.type {
color: <%= scheme.base.cyan %>;
font-style: italic;
}
.param {
color: <%= scheme.base.orange %>;
}
.current {
text-decoration: underline;
}

# >> General

Expand Down

0 comments on commit 9f6caac

Please sign in to comment.