Skip to content

Commit

Permalink
Use slightly thicker table borders ref #150
Browse files Browse the repository at this point in the history
  • Loading branch information
xyproto committed Jun 4, 2024
1 parent e093893 commit 21c481e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion themes/styling.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ var (
// Themes is a map over the available built-in CSS themes. Corresponds with the font themes below.
// "default" and "gray" are equal. "default" should never be used directly, but is here as a safeguard.
builtinThemes = map[string][]byte{
"default": []byte(`body { background-color: #e7eaed; color: #0b0b0b; font-family: 'Trebuchet MS', Helvetica, sans-serif; font-weight: 300; margin: 4.5em; font-size: 1.2em; } a { color: #401010; font-family: Consolas, Lato, 'Courier New', monospace; font-weight: 600; } a:hover { color: #801010; } a:active { color: yellow; } h1, h2, h3, h4, h5, h6 { color: #101010; margin-left: 0; margin-right: 0; } img { max-width: 100%; } table { font-family: Helvetica, sans-serif; border-collapse: collapse; width: 100%; font-weight: bold; } table td, table th { border: 1px solid #ccc; padding: 0.45em 0.55em 0.45em 0.55em; } table tr:nth-child(even){ background-color: #efefef; } table tr:nth-child(odd) { background-color: #fff; } table tr:hover { background-color: #e0f0ff; color: black; } table th { padding-top: 12px; padding-bottom: 12px; text-align: left; background-color: #666; color: white; } .chroma { white-space: pre-wrap; border-radius: 0.3em; padding: 0.1em 0.4em 0.1em 0.4em; word-wrap: break-word; }`),
"default": []byte(`body { background-color: #e7eaed; color: #0b0b0b; font-family: 'Trebuchet MS', Helvetica, sans-serif; font-weight: 300; margin: 4.5em; font-size: 1.2em; } a { color: #401010; font-family: Consolas, Lato, 'Courier New', monospace; font-weight: 600; } a:hover { color: #801010; } a:active { color: yellow; } h1, h2, h3, h4, h5, h6 { color: #101010; margin-left: 0; margin-right: 0; } img { max-width: 100%; } table { font-family: Helvetica, sans-serif; border-collapse: collapse; width: 100%; font-weight: bold; } table td, table th { border: 2px solid #ccc; padding: 0.45em 0.55em 0.45em 0.55em; } table tr:nth-child(even){ background-color: #efefef; } table tr:nth-child(odd) { background-color: #fff; } table tr:hover { background-color: #e0f0ff; color: black; } table th { padding-top: 12px; padding-bottom: 12px; text-align: left; background-color: #666; color: white; } .chroma { white-space: pre-wrap; border-radius: 0.3em; padding: 0.1em 0.4em 0.1em 0.4em; word-wrap: break-word; }`),
"gray": []byte(`body { background-color: #e7eaed; color: #0b0b0b; font-family: 'Trebuchet MS', Helvetica, sans-serif; font-weight: 300; margin: 4.5em; font-size: 1em; } a { color: #4a4a4a; font-family: 'Trebuchet MS', Helvetica, sans-serif; } a:hover { color: #6a6a6a; } a:active { color: #0b0b0b; } h1 { color: #101010; } img { max-width: 100%; } table { font-family: Helvetica, sans-serif; border-collapse: collapse; width: 100%; font-weight: bold; } table td, table th { border: 1px solid #ccc; padding: 0.45em 0.55em 0.45em 0.55em; } table tr:nth-child(even){ background-color: #efefef; } table tr:nth-child(odd) { background-color: #fff; } table tr:hover { background-color: #e0f0ff; color: black; } table th { padding-top: 12px; padding-bottom: 12px; text-align: left; background-color: #666; color: white; } .chroma { white-space: pre-wrap; border-radius: 0.3em; padding: 0.1em 0.4em 0.1em 0.4em; word-wrap: break-word; }`),
"light": []byte(`body { background-color: #eaeaea; color: #0b0b0b; font-family: 'Trebuchet MS', Helvetica, sans-serif; font-weight: 300; margin: 4.5em; font-size: 1em; } a { color: #0b0b0b; font-family: 'Trebuchet MS', Helvetica, sans-serif; text-decoration: underline; } a:hover { color: #2a2a2a; } a:active { color: #0b0b0b; } h1 { color: #101010; } img { max-width: 100%; } table { font-family: Helvetica, sans-serif; border-collapse: collapse; width: 100%; font-weight: bold; } table td, table th { border: 1px solid #ccc; padding: 0.45em 0.55em 0.45em 0.55em; } table tr:nth-child(even){ background-color: #efefef; } table tr:nth-child(odd) { background-color: #fff; } table tr:hover { background-color: #e0f0ff; color: black; } table th { padding-top: 12px; padding-bottom: 12px; text-align: left; background-color: #666; color: white; } .chroma { white-space: pre-wrap; border-radius: 0.3em; padding: 0.1em 0.4em 0.1em 0.4em; word-wrap: break-word; }`),
"dark": []byte(`body { background-color: #101010; color: #f0f0f0; font-family: 'Trebuchet MS', Helvetica, sans-serif; font-weight: 400; margin: 4.5em; font-size: 1em; } a { color: #9db5b2; font-family: 'Trebuchet MS', Helvetica, sans-serif; } a:hover { color: #cad2d3; } a:active { color: #f0f0f0; } h1 { color: #f0f0f0; } img { max-width: 100%; } table { font-family: Helvetica, sans-serif; border-collapse: collapse; width: 100%; font-weight: bold; } table td, table th { border: 1px solid #999; padding: 0.45em 0.55em 0.45em 0.55em; } table tr:nth-child(even){ background-color: #222; } table tr:nth-child(odd) { background-color: #333; } table tr:hover { background-color: #333; color: #ff8060; } table th { padding-top: 12px; padding-bottom: 12px; text-align: left; background-color: #d7d7d7; color: #292929; } .chroma { white-space: pre-wrap; border-radius: 0.3em; padding: 0.1em 0.4em 0.1em 0.4em; word-wrap: break-word; }`),
Expand Down

0 comments on commit 21c481e

Please sign in to comment.