Moved Express page style to its own file
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by visionmedia · committed by visionmedia · parent b505c96 · Browse files · 2 files·+48 added−44 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
2 files+48 added−44 removed
- other:+48 added−44 removed
Provenance
- Commit
603558c- Tree
571767c- Author
visionmedia <tj@vision-media.ca>- Committer
visionmedia <tj@vision-media.ca>- Parent
b505c96
2 files changed+48 added−44 removed
added:lib/express/pages/style.js+47 added
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
// Express - Pages - Style - Copyright TJ Holowaychuk <tj@vision-media.ca> (MIT Licensed)
exports.style = '<style> \n\ body { \n\ font-family: "Helvetica Neue", "Lucida Grande", "Arial" sans-serif; \n\ font-size: 13px; \n\ text-align: center; \n\ -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1); \n\ color: #555; \n\ } \n\ h1, h2 { \n\ margin: 0; \n\ font-size: 22px; \n\ color: #343434; \n\ } \n\ h1 em, h2 em { \n\ padding: 0 5px; \n\ font-weight: normal; \n\ } \n\ h1 { \n\ font-size: 60px; \n\ } \n\ #wrapper { \n\ margin: 50px auto; \n\ width: 600px; \n\ text-align: left; \n\ } \n\ ul { \n\ margin: 0; \n\ } \n\ ul li { \n\ margin: 0; \n\ padding: 5px 0; \n\ } \n\ ul li .path { \n\ padding-left: 5px; \n\ font-weight: bold; \n\ } \n\ ul li .line { \n\ padding-right: 5px; \n\ font-style: italic; \n\ } \n\ ul li:first-child .path { \n\ padding-left: 0; \n\ } \n\ 'No newline at end of filemodified:lib/express/show-exceptions.js+1 added-44 removed
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474567824 unmodified lines
// Express - Show Exceptions - Copyright TJ Holowaychuk <tj@vision-media.ca> (MIT Licensed)
var style = '<style> \n\ body { \n\ font-family: "Helvetica Neue", "Lucida Grande", "Arial" sans-serif; \n\ font-size: 13px; \n\ text-align: center; \n\ -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1); \n\ color: #555; \n\ } \n\ h1, h2 { \n\ margin: 0; \n\ font-size: 22px; \n\ color: #343434; \n\ } \n\ h1 em, h2 em { \n\ padding: 0 5px; \n\ font-weight: normal; \n\ } \n\ h1 { \n\ font-size: 60px; \n\ } \n\ #wrapper { \n\ margin: 50px auto; \n\ width: 600px; \n\ text-align: left; \n\ } \n\ ul { \n\ margin: 0; \n\ } \n\ ul li { \n\ margin: 0; \n\ padding: 5px 0; \n\ } \n\ ul li .path { \n\ padding-left: 5px; \n\ font-weight: bold; \n\ } \n\ ul li .line { \n\ padding-right: 5px; \n\ font-style: italic; \n\ } \n\ ul li:first-child .path { \n\ padding-left: 0; \n\ } \n\ </style>'var style = require('express/pages/style').style
exports.render = function(e) { contentType('html') if (e.stack)24 unmodified lines