From d8cac5fe9592bd7b6485af499babb74d42b29ef5 Mon Sep 17 00:00:00 2001 From: Samuel Clements Date: Tue, 8 Nov 2011 20:43:52 +0000 Subject: [PATCH] Better list pages --- public/styles.css | 21 +++++++++++++++------ views/quotelist.jade | 7 +++---- views/quotes.jade | 2 +- 3 files changed, 19 insertions(+), 11 deletions(-) diff --git a/public/styles.css b/public/styles.css index 24dc64d..599b0b3 100644 --- a/public/styles.css +++ b/public/styles.css @@ -61,13 +61,22 @@ div.quotes a { } -div.quote { - background: #CCC; - margin: 10px; - padding: 20px; - border-radius: 15px; +/* Quote list pages */ + +div#quotelist { + width:100%; } -div.quote:hover { +div#quotelist div.quote { + background: white; + border-radius: 5px; + margin: 5px auto; + padding: 10px; + font-size: 16px; + width:90%; + opacity: 0.7; +} +div#quotelist div.quote:hover { + opacity: 1; } \ No newline at end of file diff --git a/views/quotelist.jade b/views/quotelist.jade index ffe74d3..c33110c 100644 --- a/views/quotelist.jade +++ b/views/quotelist.jade @@ -1,4 +1,3 @@ -div#quotelist - -each quote in quotelist - div.quotes - a(href='/quotes/'+quote) #{quote} +-each quote in quotelist + div.quotes + a(href='/quotes/'+quote) #{quote} diff --git a/views/quotes.jade b/views/quotes.jade index d14cc44..ce8a7a8 100644 --- a/views/quotes.jade +++ b/views/quotes.jade @@ -1,3 +1,3 @@ -div.quotes +div#quotelist -each quote in quotes div.quote #{quote}