mirror of
https://github.com/zebrajr/express.git
synced 2025-12-06 12:19:51 +01:00
Styling
This commit is contained in:
parent
1c40e4374b
commit
03da0d31f9
|
|
@ -22,6 +22,7 @@ app.configure(function(){
|
|||
app.use(express.bodyDecoder());
|
||||
app.use(express.methodOverride());
|
||||
app.use(app.router);
|
||||
app.use(express.staticProvider(__dirname + '/public'));
|
||||
app.use(express.errorHandler({ dumpExceptions: true, showStack: true }));
|
||||
});
|
||||
|
||||
|
|
|
|||
35
examples/blog/public/style.css
Normal file
35
examples/blog/public/style.css
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
body {
|
||||
font: 13px;
|
||||
color: #111;
|
||||
padding: 60px 80px;
|
||||
}
|
||||
h1 {
|
||||
color: #c00;
|
||||
}
|
||||
a {
|
||||
color: #c00;
|
||||
text-decoration: none;
|
||||
}
|
||||
a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
label {
|
||||
padding: 6px 0;
|
||||
display: block;
|
||||
text-transform: lowercase;
|
||||
}
|
||||
textarea,
|
||||
input {
|
||||
outline: none;
|
||||
padding: 5px;
|
||||
background: #f1f1f1;
|
||||
border: 1px solid #aaa;
|
||||
}
|
||||
textarea:focus,
|
||||
input:focus {
|
||||
background: #fff;
|
||||
}
|
||||
textarea {
|
||||
width: 500px;
|
||||
height: 200px;
|
||||
}
|
||||
|
|
@ -2,5 +2,6 @@
|
|||
html
|
||||
head
|
||||
title Blog
|
||||
link(rel='stylesheet', href='/style.css')
|
||||
body
|
||||
#container!= body
|
||||
Loading…
Reference in New Issue
Block a user