diff options
author | Seb Bacon <seb.bacon@gmail.com> | 2011-10-12 16:13:32 +0100 |
---|---|---|
committer | Seb Bacon <seb.bacon@gmail.com> | 2011-10-12 16:13:32 +0100 |
commit | 7e3123d22bb41ec937478a5d5394b684feac0fd5 (patch) | |
tree | e3ea93459179de55e21d1f5643c8d2b1dc3bd74b | |
parent | 61b89b2724c0e338bb1037198aed813a635b3ebe (diff) |
Implement new-style Alaveteli theme (CSS is in a CSS file, plain gray styles in updated base design overridden by purple stuff here)
-rw-r--r-- | README | 7 | ||||
-rw-r--r-- | lib/views/general/_orglink.rhtml | 1 | ||||
-rw-r--r-- | lib/views/general/custom_css.rhtml | 15 | ||||
-rw-r--r-- | public/images/logo.png | bin | 0 -> 1064 bytes | |||
-rw-r--r-- | public/images/quote-marks.png | bin | 0 -> 470 bytes | |||
-rw-r--r-- | public/stylesheets/custom.css | 275 |
6 files changed, 281 insertions, 17 deletions
@@ -8,10 +8,10 @@ resources without the need to touch the core Alaveteli software. Typical usage should be limited to: - * Putting CSS-based customisations in lib/views/general/custom_css.rhtml + * Putting CSS-based customisations in `public/stylesheets/custom.css` * Creating your own versions of non-functional pages (like "about - us", at lib/views/help/about.rhtml -- and/or localised versions at + us", at `lib/views/help/about.rhtml` -- and/or localised versions at lib/views/help/about.es.rhtml) To install:: @@ -20,4 +20,7 @@ To install:: Look in the lib/ folder of the plugin to see how the overrides happen. +Note that the `install.rb` plugin point sets up a symlink to include +local resource files within the Rails `public/` directory. + Copyright (c) 2011 mySociety, released under the MIT license diff --git a/lib/views/general/_orglink.rhtml b/lib/views/general/_orglink.rhtml new file mode 100644 index 0000000..9535a79 --- /dev/null +++ b/lib/views/general/_orglink.rhtml @@ -0,0 +1 @@ +<%= link_to image_tag('/alavetelitheme/images/logo.png'), frontpage_url, :id=>'logo' %> diff --git a/lib/views/general/custom_css.rhtml b/lib/views/general/custom_css.rhtml deleted file mode 100644 index 8c08899..0000000 --- a/lib/views/general/custom_css.rhtml +++ /dev/null @@ -1,15 +0,0 @@ - -#header #tagline { - color: red; -} - -h1 { - color: blue ! important; -} - -#header h1 a { - background-image: url("../alavetelitheme/images/navimg/new-alaveteli-logo.png"); - width: 212px; - height: 87px; - margin-left: 5px; -}
\ No newline at end of file diff --git a/public/images/logo.png b/public/images/logo.png Binary files differnew file mode 100644 index 0000000..1a86512 --- /dev/null +++ b/public/images/logo.png diff --git a/public/images/quote-marks.png b/public/images/quote-marks.png Binary files differnew file mode 100644 index 0000000..752b7d4 --- /dev/null +++ b/public/images/quote-marks.png diff --git a/public/stylesheets/custom.css b/public/stylesheets/custom.css new file mode 100644 index 0000000..c6857a2 --- /dev/null +++ b/public/stylesheets/custom.css @@ -0,0 +1,275 @@ +body { +color:#444; +font-size:12px; +font-family:Arial, sans-serif; +} + +#banner { +background-repeat:no-repeat; +background-position:center top; +background-color:#F0F0F0; +background:url(/images/stripes.png); +} + +#topnav { +font-family:'DeliciousRoman', Arial, sans-serif; +} + +#topnav li a,#topnav li a:visited { +color:#ADADAD; +} + +#topnav li a:hover { +color:#fff; +} + +#topnav ul li.selected { + background:#fff; +} + +#topnav ul li a { +color:#6B3C6A !important; +} + +#logged_in_bar { +color:#444; +} + +#logged_in_bar a,#logged_in_bar a:visited { +color:#92B3FF; +} + +h1,h2,h3 { + font-family:Trebuchet, Trebuchet MS, Helvetica, sans-serif; + color:#555; +} + +h1 { +color:#93278F; +font-size:42px; +font-family:'DeliciousBold', Arial, sans-serif; +} + +h2 { +font-size:1.4em; +} + + +h2,dt { +color:#93278F; +font-family:'DeliciousBold', Arial, sans-serif; +font-weight:400; +} + +h3 { +color:#6B3C6A; +font-family:'DeliciousRoman', Arial, sans-serif; +font-weight:400; +} + +a { +color:#93278F; +} + +p.subtitle { +font-family:'DeliciousRoman'; +color:#6B3C7F; +} + +.request_listing span.head a,.user_listing span.head a,.body_listing span.head a { +color:#6B3C6A; +font-family:'DeliciousRoman', Arial, sans-serif; +font-weight:400; +} + +.request_listing span.desc { +background:url(/images/quote-marks.png) no-repeat; +color:#444; +} + +.feed_link a,.act_link a,#header_right > a { +color:#6B3C6A; +} + +#request_form label,label.form_label,span#to_public_body { +color:#6B3C6A; +} + +span#to_public_body { +font-family:'DeliciousBold', Arial, sans-serif; +} + +#middle_strip { +color:#93278F; +} + +#stepwise_make_request { +background-color:#d0d0d0; +background:url(/images/stripes.png); +border:1px solid #DEBEDD; +font-family:'DeliciousRoman', Arial, sans-serif; +color:#6B3C6A; +} + +div.comment_in_request { +background:url(/images/stripes-70-light2.png); +border-color:#5F5F5F; +border-style:dotted; +border-width:1px; +} + +#request_form label,label.form_label { +font-family:'DeliciousRoman', Arial, sans-serif; +} + +#navigation_search input[type=text] { + border-color:#BE7DBC; +} + + +form input[type=submit],a.link_button_green,a.link_button_green_large { +font-family:'DeliciousRoman', Arial, sans-serif; +} + +div.frontpage-box { +background:url(/images/stripes.png); +border:1px solid #DEBEDD; +font-family:'DeliciousRoman', Arial, sans-serif; +color:#6B3C6A; +} + + +div.correspondence,div.comment_in_request { +background:url(/images/stripes-70.png); +} + +div.outgoing.correspondence { +background:url(/images/stripes-70-light.png); +} + +#frontpage_splash { +background:url(/images/flying-computer.png) no-repeat 175px bottom; +} + +#frontpage_splash h1 { +font-family:'DeliciousRoman', Arial, sans-serif; +font-size:39px; +color:#6B3C6A; +font-weight:400; +margin:0 0 20px; +} + +#frontpage_splash h1 strong { +font-family:'DeliciousHeavyRegular', Arial, sans-serif; +font-size:54px; +color:#93278F; +font-weight:400; +} + +#frontpage_splash h1 span { +font-family:Georgia; +font-style:italic; +font-weight:400; +font-size:25px; +color:#6B3C6A; +} + +#frontpage_splash h2 { +font-size:26px; +font-weight:400; +color:#6B3C6A; +font-family:'DeliciousRoman', Arial, sans-serif; +} + +#frontpage_splash h2 strong { +font-size:31px; +color:#93278F; +font-family:'DeliciousBold', Arial, sans-serif; +} + +#frontpage_splash h2 span { +color:#6B3C6A; +font-style:italic; +font-size:19px; +font-family:Georgia; +} + + +#ui-datepicker-div.ui-widget { +font-family:Arial, sans-serif; +color:#93278F; +} + +#ui-datepicker-div .ui-datepicker-header,#ui-datepicker-div .ui-widget-header { +color:#93278F; +font-family:'DeliciousRoman'; +} + +#ui-datepicker-div .ui-state-default:hover { +background:#DEB4D8; +color:#FFF; +} + +#ui-datepicker-div .ui-state-active { +background:#D093C7; +color:#FFF; +} + +#other-country-notice { +background:#93278F; +color:#FFF; +} + +p.public-body-name-prefix { +color:#DEB4D8; +} + +#other-country-notice a { +color:#FFF; +} + + +#link_box { +position:absolute; +text-align:left; +background-color:#FFF; +z-index:999; +opacity:0.9px; +border-radius:6px; +-moz-border-radius:6px; +border:1px solid #93278F; +display:none; +padding:5px; +} + +#link_box .close-button { +background-color:#93278F; +margin-left:15px; +padding:0; +} + +div.correspondence p.preview_subject { +font-family:'DeliciousRoman'; +color:#6B3C7F; +} + +div.correspondence p.preview_subject strong { +color:#6B3C7F; +} + +div.controller_help h1 a,#logged_in_bar a,#logged_in_bar a:visited,#stepwise_make_request strong { +color:#93278F; +} + + +body.front { +background:url(../images/home-grad.png) repeat-x 0 160px; +} + +.request_listing span.desc { +background:url(../images/quote-marks.png) no-repeat; +} + +#frontpage_examples .excerpt { +background:url(../images/quote-marks.png) no-repeat; +}
\ No newline at end of file |