diff options
Diffstat (limited to 'web')
67 files changed, 1 insertions, 4218 deletions
diff --git a/web/cobrands/barnet/_colours.scss b/web/cobrands/barnet/_colours.scss deleted file mode 100644 index d723003b5..000000000 --- a/web/cobrands/barnet/_colours.scss +++ /dev/null @@ -1,22 +0,0 @@ -/* COLOURS */ - -$menu-image: 'menu-black'; - -$primary: #E9E9EA; -$primary_b: #000000; -$primary_text: #3E3D44; - -/* Unused here */ -$base_bg: #fff; -$base_fg: #1a1a1a; -$map_nav_bg: #222; -$nav_fg: #fff; -$nav_fg_hover: #444; - -$col_big_numbers: #C0E8E8; - -$col_click_map: #E1E3E4; -$col_click_map_dark: darken(#E1E3E4, 10%); - -$col_fixed_label: #00BD08; -$col_fixed_label_dark: #4B8304; diff --git a/web/cobrands/barnet/barnet.scss b/web/cobrands/barnet/barnet.scss deleted file mode 100644 index a6feb018f..000000000 --- a/web/cobrands/barnet/barnet.scss +++ /dev/null @@ -1,115 +0,0 @@ -/* Parts of barnet's main CSS needed for its header/footer and adjusted (see - * bottom) to not be affected by main FixMyStreet CSS. Not very sustainable; - * perhaps we should wrap all council CSS within a SCSS #council ID? Hmm. - */ - -@import "compass"; - -#column_nav li { list-style: none ;} - -#content ol.big-numbers li { - padding: 0 0 0 2.5em; -} - -#barnet-wrapper { - width: 100%; - display: table; - caption-side: bottom; -} - -#barnet-powered-by { - clear: both; -} - -body {font-size: 75%; font-family: Arial, Helvetica, sans-serif; color: #3e3d44; padding: 0; margin: 0; line-height: 1.5; background: #e9e9ea;} -body > html {font-size: 12px;} - -#barnet-wrapper {padding: 0; margin: 20px auto; width: 960px; background: #fff;} -#ie_wrapper {display: block; padding: 20px 25px 25px;} -#page {float: left; width: 100%;} - -#mast {clear: both;} - -#mast .pseudoH1 {margin: 0 0 0 -3px; padding: 0; background: url(img/barnet-logo.gif) no-repeat top left; width: 240px; height: 38px; float: left;} -#mast .pseudoH1 a, #mast .pseudoH1 a:link, #mast .pseudoH1 a:visited, #mast .pseudoH1 a:hover, #mast .pseudoH1 a:active {display: block; width: 240px; height: 38px; padding: 0; background: url(img/barnet-logo.gif) no-repeat top left;} -#mast .pseudoH1 span {position: absolute; margin-top: -13000px; top: -13000px;} - -#mast .mast_links {float: right; display: inline; margin: 0; padding: 10px 0 0; list-style: none; overflow: hidden;} - -#mast #search {clear: both; float: right; margin: 8px 0 0; background: #e1e3e4; border-top: 6px solid #bddadc; border-bottom: 2px solid #c8cacb; width: 100%; padding: 3px 0 2px; height: 21px;} - -/* ############################################################## */ - -#content {margin: 0; width: 910px; overflow: hidden; min-height: 350px;} -#content.withWidth {margin: 0 0 0 232px; width: 446px; overflow: hidden; float: left; display: inline;} -#content.fullWidth {width: 678px;} -#content.home {margin-top: 18px;} - -.mappage { - #content.withWidth {margin: 0 0 0 0px; width: auto; overflow: hidden; float: left; display: inline;} - #content.fullWidth {width: 900px;} -} - -/* IE6 ignore the second #foo.bar rule so we have to fudge it another way */ -.ie6 { - .mappage { - #content { - margin: 0 0 0 0px; - overflow: hidden; - float: left; - display: inline; - width: 900px; - } - } -} - -#breadcrumb {font-size: .9em; color: #5c6267; padding: 6px 0; margin: 0 0 0 232px;} -#breadcrumb.full {margin: 0;} -#breadcrumb ul {margin: 0; padding: 0; list-style: none;} -#breadcrumb ul li {margin: 0; padding: 0 4px 0 0; display: inline;} -#breadcrumb ul li a:link, #breadcrumb ul li a:visited, #breadcrumb ul li a:hover, #breadcrumb ul li a:active {color: #5c6267; background: url(img/bcArrow.gif) no-repeat right center; padding: 0 10px 0 0; font-weight: normal;} -#breadcrumb ul li span {font-weight: normal; color: #5c6267;} - -/* ############################################################## */ - -#column_nav {width: 214px; float: left; display: inline; padding: 0; margin: -35px 0 0 -910px; border-right: 3px solid #fff;} - -.ie6 #column_nav { - float: none; - position: absolute; - top: 85px; - margin: 0 0 0 0px; -} - -body.mappage #column_nav { display: none; } - -#content h1 {margin: 0 0 20px; font-size: 1.8em; border-bottom: 6px solid #bed9dd; font-family: Georgia, Times, 'Times New Roman', serif; color: #5d6167;} -#content h1 span {padding: 6px 7px 3px; border: 1px solid #eff1f2; border-bottom: 0 none; display: block;} -#content h1#reports_heading span { display: none; } - -#column_nav .navigation {background: #fff; margin: 0 0 4px;} -#column_nav h2 {font-size: 1.2em; padding: 0; height: 29px; margin: 0; border-radius: 0 0 3px 3px; background: url(img/nav-bg-active.gif) left bottom repeat-x; border-top: 6px solid #bddadc;} -#column_nav #nav1 h2 {border-radius: 0 0 0 3px;} -#column_nav h2 a {color: #fff; padding: 3px 10px 0 26px; display: block; background: url(img/nav-arrow.gif) 8px 7px no-repeat;} -#column_nav .active h2 a {background: url(img/nav-arrow-active.gif) 8px 8px no-repeat;} -#column_nav ul {margin: 0 0 0 4px; padding: 8px 7px 4px; border-width: 0 1px 1px; border-color: #e1e1e1; border-style: solid; border-radius: 3px; list-style: none; background: #fff; background: -moz-linear-gradient(top, #ffffff 0%, #f7f9f8 100%); background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(100%,#f7f9f8)); background: -webkit-linear-gradient(top, #ffffff 0%,#f7f9f8 100%); background: -o-linear-gradient(top, #ffffff 0%,#f7f9f8 100%); background: -ms-linear-gradient(top, #ffffff 0%,#f7f9f8 100%); background: linear-gradient(top, #ffffff 0%,#f7f9f8 100%); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#f7f9f8',GradientType=0);} -#column_nav ul li {margin: 0; padding: 2px 4px; border-bottom: 1px solid #bfc0c1; color: #333; font-size: .9em;} -#column_nav ul li.lastItem {border-bottom: none;} -#column_nav ul li a:link, #column_nav ul li a:visited, #column_nav ul li a:hover, #column_nav ul li a:active {display: block; color: #333; font-weight: normal;} -#column_nav ul li a:hover, #column_nav ul li a:active {text-decoration: none; color: #0090a2;} - -/* ############################################################## */ - -#footer {clear: both; margin: 10px 0 0; padding: 15px 0 0; text-align: left;} -#footer p {border-top: 1px solid #dadadb; border-bottom: 1px solid #dadadb; margin: 0 0 5px; color: #5d6167; float: left; display: inline; height: 24px; padding: 8px 0 2px; width: 551px;} -#footer p a {color: #5d6167; font-weight: normal; padding: 0 2px;} -#footer p.assocLinks {float: right; display: inline; padding: 5px 0; width: 359px;} -#footer p.assocLinks a {float: left; display: inline; margin: 0 0 0 8px; padding: 0; background-position: center top; background-repeat: no-repeat; width: 24px; height: 24px;} -#footer p.assocLinks a:active, #footer p.assocLinks a:hover, #footer p.assocLinks a:focus {background-position: center bottom;} -#footer a#goto_browsealoud {background-image: url(img/browsealoud.gif); width: 95px; height: 25px; margin-top: 1px;} -#footer a#goto_directgov {background-image: url(img/directgov.gif); width: 90px; margin: 0 0 0 22px;} -#footer a#share_facebook {background-image: url(img/social1-facebook.gif); margin: 0 0 0 24px;} -#footer a#share_twitter {background-image: url(img/social2-twitter.gif);} -#footer a#share_youtube {background-image: url(img/social3-youtube.gif);} -#footer a#share_flickr {background-image: url(img/social4-flickr.gif);} -#bottomBar {background: url(img/barnet-footer-logo.gif) 771px 12px no-repeat #21aaaa; display: block; width: 100%; height: 56px; border-top: 6px solid #bddadc;} diff --git a/web/cobrands/barnet/base.scss b/web/cobrands/barnet/base.scss deleted file mode 100644 index 73d5708c7..000000000 --- a/web/cobrands/barnet/base.scss +++ /dev/null @@ -1,37 +0,0 @@ -@import "../sass/h5bp"; -@import "./_colours"; -@import "../sass/mixins"; -@import "compass"; - -@import "../sass/base"; - -#mast, -#breadcrumb, -#page-title, -#column_nav, -#footer, -#bottomBar -{ display: none } - -#site-header{ - @include background(none); - background-color: white; -} -#site-logo { - width: 240px; - background: url('/cobrands/barnet/img/barnet-logo.gif') 0 0 no-repeat; - top: 0.6em; - left: 0.5em; -} - -#front-main #postcodeForm div input#sub, -.green-btn, -button.green-btn, -input.green-btn, -.red-btn, -button.red-btn, -input.red-btn{ - @include button-reset; - background: #5D6167; - color: white; -} diff --git a/web/cobrands/barnet/config.rb b/web/cobrands/barnet/config.rb deleted file mode 100644 index cab97b18f..000000000 --- a/web/cobrands/barnet/config.rb +++ /dev/null @@ -1,25 +0,0 @@ -# Require any additional compass plugins here. - -# Set this to the root of your project when deployed: -http_path = "/" -css_dir = "" -sass_dir = "" -images_dir = "" -javascripts_dir = "" - -# You can select your preferred output style here (can be overridden via the command line): -# output_style = :expanded or :nested or :compact or :compressed - -# To enable relative paths to assets via compass helper functions. Uncomment: -# relative_assets = true - -# To disable debugging comments that display the original location of your selectors. Uncomment: -# line_comments = false - -# If you prefer the indented syntax, you might want to regenerate this -# project again passing --syntax sass, or you can uncomment this: -# preferred_syntax = :sass -# and then run: -# sass-convert -R --from scss --to sass sass scss && rm -rf sass && mv scss sass - -line_comments = false # by Compass.app diff --git a/web/cobrands/barnet/css/layout.css b/web/cobrands/barnet/css/layout.css deleted file mode 100644 index cad46b039..000000000 --- a/web/cobrands/barnet/css/layout.css +++ /dev/null @@ -1,143 +0,0 @@ -/* FixMyStreet additions */
-/* Smaller map */
-#mysociety #map_box {
- width: 380px;
- margin-bottom: 8px;
-}
-#mysociety #map, #mysociety #drag {
- width: 378px;
- height: 378px;
-}
-
-#mysociety p#fixed, #mysociety p#unknown {
- margin-right: 400px;
- width: auto;
-}
-
-#mysociety textarea {
- border: 1px solid #999999;
-}
-
-/* fix (for the reports page) */
-#content #mysociety h1 span {
- display: inline;
- border: none;
- padding: 0;
-}
-
-#mysociety #postcodeForm {
- background-color: #E9E9EA;
-}
-#mysociety #postcodeForm label {
- width: 100%;
-}
-/*=========FROM CUSTOM=========*/
-.cl {clear: both;}
-
-br.cl, div.cl {
- height: 0;
- font-size: 0.1px;
- line-height: .0;
- }
-
-.rm {position: absolute; left: -999em;}
-
-a.rm:active, a.rm:focus {
- top: 15px;
- left: 230px;
- outline:none;
- padding: 7px 10px;
- font-weight:bold;
- border: 1px solid #fff;
- font-size: 1.2em;
- background-color: #fff;
- color: #008184;
- }
-
-#iewrap {min-width: 775px; max-width: 1382px;}
-
-/*=== Content Page Layout ===*/
-#wrap {
- float: right;
- width: 100%;
- margin: 5px 0 0 -270px;
- padding: 0;
- }
-
-#content{
- margin: 0 35px 0 275px;
- padding: 0 5px 0 5px;
- position: relative;
- }
-
-#left-column {
- float:left;
- width: 270px;
- line-height: 1.3em;
- margin: 5px 0 0 0;
- padding: 0;
- }
-
-/*=== Content Page Elements===*/
-
-#iewrap #print-logo {display:none}
-
-h1 {margin:0}
-/*
-h3, h4, h5, p, ol, ul, table, dl, address, form {margin-right: 5px; margin-left:5px}
-h1, h2 {padding-left: 5px}
-*/
-
-
-/*=== Quotes =====*/
-#content blockquote {margin:10px; min-height: 90px; padding-bottom: 10px}
-
-/*=== Tables =====*/
-
-table.data {width:95%;}
-table.data th {text-align:left; font-size:1.24em}
-caption {text-align:left; font-weight:bold; font-style:italic}
-
-table.data td, table.data th {padding:6px 6px 6px 10px}
-table.data {border-spacing:1px;}
-
-/*==== General styles for alignment of elements within the content area ==*/
-
-.image-left, img.alignleft {position: relative;float: left;}
-.image-inline, img.inline {display:block;}
-.image-right, img.alignright {float:right;clear: right;}
-
-.alignleft {float: left; margin: 5px 10px 10px 0;}
-.alignright {float: right; margin: 5px 0 10px 10px;}
-.centered {display: block; margin: 10px auto; padding: 10px 0; text-align:center;}
-
-.two-col1 {float: left; width: 48%;}
-.two-col2 {float: right; width: 48%;}
-
-/*======== form styles ========*/
-
-.form-info {font-style: italic; font-weight: bold; padding: 5px 0 0 0}
-
-form {margin-top:0}
-
-fieldset {
- margin: 0;
- padding: 0;
- border:none;
- }
-
-legend {
- padding: 0;
- margin: 0;
- font-size:1.308em;
- font-weight:bold
- }
-
-
-
-/*======= wide rows ======= */
-#content textarea {padding: 5px;}
-
-
-
-
diff --git a/web/cobrands/barnet/img/barnet-footer-logo.gif b/web/cobrands/barnet/img/barnet-footer-logo.gif Binary files differdeleted file mode 100644 index afba1cca2..000000000 --- a/web/cobrands/barnet/img/barnet-footer-logo.gif +++ /dev/null diff --git a/web/cobrands/barnet/img/barnet-logo.gif b/web/cobrands/barnet/img/barnet-logo.gif Binary files differdeleted file mode 100644 index 86e0f4ee8..000000000 --- a/web/cobrands/barnet/img/barnet-logo.gif +++ /dev/null diff --git a/web/cobrands/barnet/img/barnet-skipnav.png b/web/cobrands/barnet/img/barnet-skipnav.png Binary files differdeleted file mode 100644 index 21efe0f67..000000000 --- a/web/cobrands/barnet/img/barnet-skipnav.png +++ /dev/null diff --git a/web/cobrands/barnet/img/bcArrow.gif b/web/cobrands/barnet/img/bcArrow.gif Binary files differdeleted file mode 100644 index 4e7c1848e..000000000 --- a/web/cobrands/barnet/img/bcArrow.gif +++ /dev/null diff --git a/web/cobrands/barnet/img/blank.gif b/web/cobrands/barnet/img/blank.gif Binary files differdeleted file mode 100644 index 4bcc753a1..000000000 --- a/web/cobrands/barnet/img/blank.gif +++ /dev/null diff --git a/web/cobrands/barnet/img/browsealoud.gif b/web/cobrands/barnet/img/browsealoud.gif Binary files differdeleted file mode 100644 index 4fbb3eded..000000000 --- a/web/cobrands/barnet/img/browsealoud.gif +++ /dev/null diff --git a/web/cobrands/barnet/img/directgov.gif b/web/cobrands/barnet/img/directgov.gif Binary files differdeleted file mode 100644 index 1c9dd22e2..000000000 --- a/web/cobrands/barnet/img/directgov.gif +++ /dev/null diff --git a/web/cobrands/barnet/img/favicon.ico b/web/cobrands/barnet/img/favicon.ico Binary files differdeleted file mode 100644 index 03553e500..000000000 --- a/web/cobrands/barnet/img/favicon.ico +++ /dev/null diff --git a/web/cobrands/barnet/img/fms-logo.png b/web/cobrands/barnet/img/fms-logo.png Binary files differdeleted file mode 100644 index 23bea6b0f..000000000 --- a/web/cobrands/barnet/img/fms-logo.png +++ /dev/null diff --git a/web/cobrands/barnet/img/nav-arrow-active.gif b/web/cobrands/barnet/img/nav-arrow-active.gif Binary files differdeleted file mode 100644 index 89ff9d0b3..000000000 --- a/web/cobrands/barnet/img/nav-arrow-active.gif +++ /dev/null diff --git a/web/cobrands/barnet/img/nav-bg-active.gif b/web/cobrands/barnet/img/nav-bg-active.gif Binary files differdeleted file mode 100644 index 0d2ec9873..000000000 --- a/web/cobrands/barnet/img/nav-bg-active.gif +++ /dev/null diff --git a/web/cobrands/barnet/img/social1-facebook.gif b/web/cobrands/barnet/img/social1-facebook.gif Binary files differdeleted file mode 100644 index 41b404df0..000000000 --- a/web/cobrands/barnet/img/social1-facebook.gif +++ /dev/null diff --git a/web/cobrands/barnet/img/social2-twitter.gif b/web/cobrands/barnet/img/social2-twitter.gif Binary files differdeleted file mode 100644 index 17f368536..000000000 --- a/web/cobrands/barnet/img/social2-twitter.gif +++ /dev/null diff --git a/web/cobrands/barnet/img/social3-youtube.gif b/web/cobrands/barnet/img/social3-youtube.gif Binary files differdeleted file mode 100644 index eeb6ba356..000000000 --- a/web/cobrands/barnet/img/social3-youtube.gif +++ /dev/null diff --git a/web/cobrands/barnet/img/social4-flickr.gif b/web/cobrands/barnet/img/social4-flickr.gif Binary files differdeleted file mode 100644 index 300e75da0..000000000 --- a/web/cobrands/barnet/img/social4-flickr.gif +++ /dev/null diff --git a/web/cobrands/barnet/layout.scss b/web/cobrands/barnet/layout.scss deleted file mode 100644 index 0ec085354..000000000 --- a/web/cobrands/barnet/layout.scss +++ /dev/null @@ -1,247 +0,0 @@ -@import "_colours"; -@import "../sass/layout"; - -#mast, -#breadcrumb, -#page-title, -#column_nav, -#footer, -#bottomBar { - display: block; -} - -// So that map appears underneath the header -.wrapper { - position: relative; -} -.ie6, .ie7 { - .wrapper { - padding-top: 1em; - } -} - -#front-main { - @include border-radius(1em 1em 0 0); - margin-bottom: 1em; - padding-top: 0; - width: 678px; - // layout sets this because base has it slightly lighter - #front-main-container { - padding: 1em; - } -} - -#front_intro { - float: left; - margin-right: 3em; -} - -#front_recent { - margin-left: 3em; -} - -body.fullwidthpage { - .content { - width: 52em; - } -} -.ie6 { - body.fullwidthpage { - #front-main { - margin-top: -4em; - } - #front-howto, - #front-recently { - width: 26em; - } - .container { - padding: 0; - } - .content { - margin-left: 0px; - width: 55em; - } - div.img { - margin-top: -3.3em; - } - } -} - -.content { - @include box-shadow(none); -} - -body.twothirdswidthpage { - .content { - width: 640px; - margin-top: 0; - .sticky-sidebar { - display: none; - aside { - top: 25em; - } - } - } -} - -.nav-wrapper { - display: none; -} - -.mappage { - #breadcrumb { - margin-left: 0px; - } -} - -.frontpage .content { - margin: 0; -} -.iel8 { - .frontpage .content { - border: none; - } -} - -#content .container h1 { - border-bottom: none; - font-size: 2em; - margin-bottom: 0.5em; -} - -.shadow-wrap { - position: static; - padding-top: 0; - margin-bottom: 1em; - ul#key-tools { - border-top: none; - border-bottom: 1px solid $primary; - li { - a.chevron { - background-position: right -3230px; - } - a.feed { - background-position: right -3080px; - } - a.abuse { - background-position: right -2940px; - } - } - } - ul#key-tools.singleton { - li a { - padding-right: 4em; - } - } -} - -#content h1.big-green-banner { - font-size: 1.4em; - margin-left: -2em; - background: #e1e3e4 url(/cobrands/fixmystreet/images/sprite.png) right -2192px no-repeat -} - -body.frontpage { - #user-meta { - p { - top: 1em; - color: $primary_text; - a { - background: none; - } - } - } -} -#user-meta { - float: right; - p { - @include box-shadow(none); - color: $primary_text; - position: relative; - background: none; - a { - color: $primary_text; - background: none; - } - a:hover { - background: $primary; - } - } -} -.ie6 { - #user-meta { - float: none; - p { - position: absolute; - margin-top: 35px; - margin-right: 20px; - right: 0px; - left: auto; - } - - } - .mappage { - #user-meta { - p { - margin-right: -100px; - } - } - } -} - -/* barnet styles */ - -.clear { - clear: both; -} - -#site-header, -#site-logo { - display: none !important; -} - - -#report-a-problem-sidebar { - left: 29em; - top: 4em; - width: 17em; - .sidebar-tips, - .sidebar-notes { - font-size: 0.9em; - } -} -.ie6 { - #report-a-problem-sidebar { - margin-top: -4em; - left: 29em; - .sidebar-notes { - padding-bottom: 0.5em; - } - p { - margin-bottom: 0.4em; - } - } -} - - -.general-notes { - font-size: 1em; -} - -#front-howto #front_stats div big { - color: #C0E8E8; -} - -.banner { - p { - top: -2em; - } - p#fixed { - padding-top: 4em; - } -} - - -#map_box { - border: 1px solid #999; -} diff --git a/web/cobrands/barnet/position_map.js b/web/cobrands/barnet/position_map.js deleted file mode 100644 index b2b7bf05a..000000000 --- a/web/cobrands/barnet/position_map.js +++ /dev/null @@ -1,25 +0,0 @@ -function position_map_box() { - var map_pos = 'absolute', map_height = $('.wrapper').height(); - // on the all reports page the height of the wrapper leads to a very - // large map so we set a maximum size - if ( map_height > 600 ) { - map_height = 600; - } - $('#map_box').prependTo('.wrapper').css({ - zIndex: 0, position: map_pos, - top: 1, left: $('.wrapper').left, - right: 0, bottom: $('.wrapper').bottom + 1, - width: '896px', height: map_height, - margin: 0 - }); -} - -function map_fix() { - var height = $('.wrapper').height() - 3; - if ( height > 600 ) { - height = 600; - } - $('#map_box').height(height); -} - -var slide_wards_down = 1; diff --git a/web/cobrands/bellavistaenaccion/_colours.scss b/web/cobrands/bellavistaenaccion/_colours.scss deleted file mode 100644 index cfe698046..000000000 --- a/web/cobrands/bellavistaenaccion/_colours.scss +++ /dev/null @@ -1,21 +0,0 @@ -/* COLOURS */ - -$orange: #ff9900; -$bluey: #ff8888; - -$primary: #ffffee; -$primary_b: #000000; -$primary_text: #222222; - -$base_bg: $bluey; -$base_fg: #000; - -$map_nav_bg: $bluey; -$nav_fg: #000; -$nav_fg_hover: $primary; - -$col_click_map: $bluey; -$col_click_map_dark: darken($bluey, 10%); - -$col_fixed_label: #00BD08; -$col_fixed_label_dark: #4B8304; diff --git a/web/cobrands/bellavistaenaccion/base.scss b/web/cobrands/bellavistaenaccion/base.scss deleted file mode 100644 index 9fccf92db..000000000 --- a/web/cobrands/bellavistaenaccion/base.scss +++ /dev/null @@ -1,7 +0,0 @@ -@import "../sass/h5bp"; -@import "./_colours"; -@import "../sass/mixins"; -@import "compass"; - -@import "../sass/base"; - diff --git a/web/cobrands/bellavistaenaccion/config.rb b/web/cobrands/bellavistaenaccion/config.rb deleted file mode 100644 index cab97b18f..000000000 --- a/web/cobrands/bellavistaenaccion/config.rb +++ /dev/null @@ -1,25 +0,0 @@ -# Require any additional compass plugins here. - -# Set this to the root of your project when deployed: -http_path = "/" -css_dir = "" -sass_dir = "" -images_dir = "" -javascripts_dir = "" - -# You can select your preferred output style here (can be overridden via the command line): -# output_style = :expanded or :nested or :compact or :compressed - -# To enable relative paths to assets via compass helper functions. Uncomment: -# relative_assets = true - -# To disable debugging comments that display the original location of your selectors. Uncomment: -# line_comments = false - -# If you prefer the indented syntax, you might want to regenerate this -# project again passing --syntax sass, or you can uncomment this: -# preferred_syntax = :sass -# and then run: -# sass-convert -R --from scss --to sass sass scss && rm -rf sass && mv scss sass - -line_comments = false # by Compass.app diff --git a/web/cobrands/bellavistaenaccion/layout.scss b/web/cobrands/bellavistaenaccion/layout.scss deleted file mode 100644 index 69e455aa5..000000000 --- a/web/cobrands/bellavistaenaccion/layout.scss +++ /dev/null @@ -1,2 +0,0 @@ -@import "_colours"; -@import "../sass/layout"; diff --git a/web/cobrands/emptyhomes/SEHPlogo-bwS.png b/web/cobrands/emptyhomes/SEHPlogo-bwS.png Binary files differdeleted file mode 100644 index 496d43115..000000000 --- a/web/cobrands/emptyhomes/SEHPlogo-bwS.png +++ /dev/null diff --git a/web/cobrands/emptyhomes/Sheltercymru47.gif b/web/cobrands/emptyhomes/Sheltercymru47.gif Binary files differdeleted file mode 100644 index b7eb2c4ff..000000000 --- a/web/cobrands/emptyhomes/Sheltercymru47.gif +++ /dev/null diff --git a/web/cobrands/emptyhomes/Sheltercymru47s.png b/web/cobrands/emptyhomes/Sheltercymru47s.png Binary files differdeleted file mode 100644 index 5547be1e0..000000000 --- a/web/cobrands/emptyhomes/Sheltercymru47s.png +++ /dev/null diff --git a/web/cobrands/emptyhomes/app.png b/web/cobrands/emptyhomes/app.png Binary files differdeleted file mode 100644 index 8f422b08d..000000000 --- a/web/cobrands/emptyhomes/app.png +++ /dev/null diff --git a/web/cobrands/emptyhomes/c4logo.png b/web/cobrands/emptyhomes/c4logo.png Binary files differdeleted file mode 100644 index 783385e30..000000000 --- a/web/cobrands/emptyhomes/c4logo.png +++ /dev/null diff --git a/web/cobrands/emptyhomes/css/css.css b/web/cobrands/emptyhomes/css/css.css deleted file mode 100644 index 829986f59..000000000 --- a/web/cobrands/emptyhomes/css/css.css +++ /dev/null @@ -1,318 +0,0 @@ -/* Smaller map */ -/* -#map_box { - width: 380px; -} -#map, #drag { - width: 378px; - height: 378px; -} - -p#fixed, p#unknown { - margin-right: 400px; - width: auto; -} -*/ - -/* Generics */ - -body { - font-family: Geneva, Helvetica, Arial, sans-serif; - margin: 0; - padding: 0; - /* color: #a9aeb0; */ -} - -h1 { - margin: 0; - font-size: 165%; - padding: 3px; - color: #FFFFFF; - background-color: #9999CC; - background-color: #30517A; - -} -h2 { - font-size: 140%; - background-color: #B1BECF; - color: #30517A; - padding: 3px; -} - -h3 { - color: #30517A; -} - -a:link { - color: #30517A; -} -a:visited { - color: #354664; -} -a:hover, a:active { - background-color: #B1BECF; -} - -#mysociety blockquote { - border-left: solid 4px #013B63; -} - -#mysociety .a { - color: #000000; - background-color: #DCDCED; /* #427499; */ - background-color: #B1BECF; -} - -/* Site layout */ - -#header { - margin: 0; - padding: 5px 0; - float: left; -} - -#header img { - margin-left: 0.5em; -} - -#header #eha-logo { - float: left; - margin-right: 1em; -} - -#header div { - float: left; - margin-top: 0.5em; -} - -#mysociety { - width: 100%; /* Must specify a width or IE goes crazy wrong! */ - position: relative; - margin: 0 auto; - max-width: 60em; -} - -/* Can't put the margin in #mysociety because of above IE craziness */ -#wrapper { - clear: both; - margin: 0 2em 2em; - padding-top: 2em; -} - -#navigation { - float: right; - padding: 0; - margin: 0; - list-style-type: none; - font-size: 83%; -} -#navigation ul { - padding: 0; - margin: 0; -} -#navigation li { - display: inline; - padding: 0; - margin: 0; -} - -#navigation a { - display: -moz-inline-box; - display: inline-block; - padding: 0.5em 0.5em; -} -#navigation a:link, #navigation a:visited { - color: #30517A; -} -#navigation a:hover, #navigation a:active { - background-color: #DCDCED; - background-color: #9999CC; - background-color: #B1BECF; - - color: #ffffff; - color: #30517A; -} - -#nav_new a { - background-image: url("/i/new.png"); - background-repeat: no-repeat; - background-position: 100% 0; -} - -#meta { - clear: right; - float: right; - list-style-type: none; - margin: 0.25em 0.5em 0 1em; - padding: 0; - font-size: 83%; -} -#meta li { - display: inline; - margin: 0; - padding: 0 0 0 0.25em; - border-left: solid 1px #B1BECF; -} -#meta li:first-child { - border-left: none; -} - -#logo { - border: none; - position: absolute; - top: 4em; - right: 10px; -} - -#emptyhomes-footer { - clear: both; - font-size: 83%; - border-top: solid 2em #ffffff; - background-color: #B1BECF; - color: #000; - margin: 2em 0 1em 0; - padding: 20px; - overflow: auto; -} - -.ie6 #emptyhomes-footer { - zoom: 1; -} - -#emptyhomes-footer div { - float: left; - margin-right: 2em; -} - -#emptyhomes-footer a { - color: #000; -} - -#mysociety #postcodeForm { - background-color: #fe6500; - color: #000000; - font-size: 130%; -} - -#mysociety #postcodeForm a, #mysociety #postcodeForm a:hover { - color: #000000; - background-color: inherit; -} - -#mysociety #front_stats { - display: block; -} -#mysociety #front_stats div { - vertical-align: middle; - background-color: #fe6500; - color: #000000; - padding: 0.5em; - width: auto; - display: block; - margin-bottom: 0.5em; -} -#mysociety #front_stats div a { - color: #000000; - background-color: inherit; -} -#mysociety #front_stats div big { - display: inline; -} - -#mysociety #front_stats div#eha-app-link { - padding-top: 16px; - padding-left: 120px; - color: #fe6500; - background-color: #fff; - background-image: url("/cobrands/emptyhomes/app.png"); - background-repeat: no-repeat; -} -#mysociety #front_stats div#eha-app-link a { - color: #fe6500; - background-color: #000; -} - -#mysociety #problem_form { - clear: both; -} - -#mysociety #alert_links_area { - margin-top: 1px; -} - -#mysociety #eha_advert { - clear: both; - width: 55%; - margin: 0 auto; - padding: 0.5em; - text-align: center; - background-color: #ffeecc; - border: solid 1px #ff9900; -} - -#mysociety #front_intro { - margin-bottom: 1em; -} - -.video { - float: right; - margin-left: 35px; -} - -.channel4 { - font-size: 125%; -} -.channel4 > li:first-child + li { - margin-bottom: 1em; -} - -/* Front page how to report big */ - -#eha_steps { - background-image: url("/cobrands/emptyhomes/street-r.jpeg"); - background-repeat: no-repeat; - padding: 0.5em 2% 0.5em 8%; -} -#eha_steps h2 { - color: #000; - background-color: #fe6500; - margin-top: 0; - margin-bottom: 0.4em; -} -#eha_steps ol { - list-style-position: inside; - padding: 0 0 0 40%; - margin: 0; -} -#eha_steps li { - color: #fff; - background-color: #000; - padding: 0.25em; - margin-bottom: 0.5em; -} - -.bl { - color: #fff; - background-color: #000; -} - -/* Noddy half grid */ - -.grid-50 { - float: right; - width: 48%; - margin-right: 2%; -} -.grid-50:first-child { - margin-right: 0; -} -.grid-50 > h2:first-child { - margin-top: 0; -} -@media all and (max-width: 50em) { - #mysociety .grid-50 { - float: none; - width: auto; - } -} - diff --git a/web/cobrands/emptyhomes/eha-logo.jpeg b/web/cobrands/emptyhomes/eha-logo.jpeg Binary files differdeleted file mode 100644 index 250be8502..000000000 --- a/web/cobrands/emptyhomes/eha-logo.jpeg +++ /dev/null diff --git a/web/cobrands/emptyhomes/eha-logo.png b/web/cobrands/emptyhomes/eha-logo.png Binary files differdeleted file mode 100644 index 5cc912521..000000000 --- a/web/cobrands/emptyhomes/eha-logo.png +++ /dev/null diff --git a/web/cobrands/emptyhomes/eha.jpg b/web/cobrands/emptyhomes/eha.jpg Binary files differdeleted file mode 100644 index 56e767b86..000000000 --- a/web/cobrands/emptyhomes/eha.jpg +++ /dev/null diff --git a/web/cobrands/emptyhomes/eha.png b/web/cobrands/emptyhomes/eha.png Binary files differdeleted file mode 100644 index 8c17db486..000000000 --- a/web/cobrands/emptyhomes/eha.png +++ /dev/null diff --git a/web/cobrands/emptyhomes/street-r.jpeg b/web/cobrands/emptyhomes/street-r.jpeg Binary files differdeleted file mode 100644 index 722738de8..000000000 --- a/web/cobrands/emptyhomes/street-r.jpeg +++ /dev/null diff --git a/web/cobrands/emptyhomes/tiger-aspect.png b/web/cobrands/emptyhomes/tiger-aspect.png Binary files differdeleted file mode 100644 index 53e8d5311..000000000 --- a/web/cobrands/emptyhomes/tiger-aspect.png +++ /dev/null diff --git a/web/cobrands/fixmybarangay/_colours.scss b/web/cobrands/fixmybarangay/_colours.scss deleted file mode 100644 index d5544ff07..000000000 --- a/web/cobrands/fixmybarangay/_colours.scss +++ /dev/null @@ -1,21 +0,0 @@ -/* COLOURS */ - -$primary: #fff; //E6DBD6 -$primary_b: #000000; -$primary_text: #222222; - -$base_bg: #C7B299 url(images/pat3.png); -$base_fg: $primary_text; - -$map_nav_bg: url('images/fmb-header.png') 30% 0% repeat-x; -$nav_fg: #fff; -$nav_fg_hover: rgba(0,0,0,0.8); - -$col_click_map: #00BD08; -$col_click_map_dark: #4B8304; -$col_fixed_label: #00BD08; -$col_fixed_label_dark: #4B8304; - -$fmb_base_blue: #046AAA; -$fmb_dark_blue: #084E7A; -$fmb_tab_yellow: #FFD000; diff --git a/web/cobrands/fixmybarangay/base.scss b/web/cobrands/fixmybarangay/base.scss deleted file mode 100644 index 2f3fddaf3..000000000 --- a/web/cobrands/fixmybarangay/base.scss +++ /dev/null @@ -1,69 +0,0 @@ -@import "../sass/h5bp"; -@import "./_colours"; -@import "../sass/mixins"; -@import "compass"; - -$image-sprite: 'images/sprite.png'; - -@import "../sass/base"; - -#site-logo{ - width: 225px !important; - background: url($image-sprite) -3px -3px no-repeat; -} - -#barangay_buttons { - padding: 1em; -} - -.yellow-btn, -a.yellow-btn, -button.yellow-btn, -input.yellow-btn{ - @include button-reset(#FFD000, #cc9000, #aa7000, #300, #FFD000, #cc9000, #aa7000, #300); - &:visited, &:hover { - color:#300; - } -} - -.nav-menu--main a.report-a-problem-btn:hover { - background: #fff; -} - -.ie6 #site-logo { - background-image: url('images/ie_logo.png'); -} - -// #site-header creates grey bar in mobile -// .nav-wrapper-2 is used on desktop -#site-header{ - border-top: 0.25em solid $fmb_tab_yellow; - @include background(linear-gradient($fmb_dark_blue, $fmb_base_blue 10%, $fmb_base_blue 90%, $fmb_dark_blue)); -} - -ul#promo-list { - margin: 0.5em; - li { - list-style:none; - } -} -.promo-big, .promo-bigger { - font-size: 130%; - font-weight: bold; - padding: 0 0.2em; -} -.promo-bigger { - font-size: 150%; -} -.promo-example { - font-size: 90%; - font-style: italic; - border: 1px solid #aaa; - background-color:#f0ebe8; // pale tone of background image - padding: 0.666em; - margin: 1em 1em 1em 0; - div { - font-style: normal; - font-family: monospace; - } -} diff --git a/web/cobrands/fixmybarangay/config.rb b/web/cobrands/fixmybarangay/config.rb deleted file mode 100644 index cab97b18f..000000000 --- a/web/cobrands/fixmybarangay/config.rb +++ /dev/null @@ -1,25 +0,0 @@ -# Require any additional compass plugins here. - -# Set this to the root of your project when deployed: -http_path = "/" -css_dir = "" -sass_dir = "" -images_dir = "" -javascripts_dir = "" - -# You can select your preferred output style here (can be overridden via the command line): -# output_style = :expanded or :nested or :compact or :compressed - -# To enable relative paths to assets via compass helper functions. Uncomment: -# relative_assets = true - -# To disable debugging comments that display the original location of your selectors. Uncomment: -# line_comments = false - -# If you prefer the indented syntax, you might want to regenerate this -# project again passing --syntax sass, or you can uncomment this: -# preferred_syntax = :sass -# and then run: -# sass-convert -R --from scss --to sass sass scss && rm -rf sass && mv scss sass - -line_comments = false # by Compass.app diff --git a/web/cobrands/fixmybarangay/images/fmb-header.png b/web/cobrands/fixmybarangay/images/fmb-header.png Binary files differdeleted file mode 100644 index c3c45e009..000000000 --- a/web/cobrands/fixmybarangay/images/fmb-header.png +++ /dev/null diff --git a/web/cobrands/fixmybarangay/images/fmb-spinner-16x16.gif b/web/cobrands/fixmybarangay/images/fmb-spinner-16x16.gif Binary files differdeleted file mode 100644 index da5ea679a..000000000 --- a/web/cobrands/fixmybarangay/images/fmb-spinner-16x16.gif +++ /dev/null diff --git a/web/cobrands/fixmybarangay/images/ie_front_logo.gif b/web/cobrands/fixmybarangay/images/ie_front_logo.gif Binary files differdeleted file mode 100644 index 2eeda87ef..000000000 --- a/web/cobrands/fixmybarangay/images/ie_front_logo.gif +++ /dev/null diff --git a/web/cobrands/fixmybarangay/images/ie_logo.png b/web/cobrands/fixmybarangay/images/ie_logo.png Binary files differdeleted file mode 100644 index 454297104..000000000 --- a/web/cobrands/fixmybarangay/images/ie_logo.png +++ /dev/null diff --git a/web/cobrands/fixmybarangay/images/mobile-22x40.png b/web/cobrands/fixmybarangay/images/mobile-22x40.png Binary files differdeleted file mode 100644 index 6a85ab097..000000000 --- a/web/cobrands/fixmybarangay/images/mobile-22x40.png +++ /dev/null diff --git a/web/cobrands/fixmybarangay/images/pat3.png b/web/cobrands/fixmybarangay/images/pat3.png Binary files differdeleted file mode 100644 index a0f755de9..000000000 --- a/web/cobrands/fixmybarangay/images/pat3.png +++ /dev/null diff --git a/web/cobrands/fixmybarangay/images/sprite.png b/web/cobrands/fixmybarangay/images/sprite.png Binary files differdeleted file mode 100644 index cbde4ac7f..000000000 --- a/web/cobrands/fixmybarangay/images/sprite.png +++ /dev/null diff --git a/web/cobrands/fixmybarangay/layout.scss b/web/cobrands/fixmybarangay/layout.scss deleted file mode 100644 index defe1afd0..000000000 --- a/web/cobrands/fixmybarangay/layout.scss +++ /dev/null @@ -1,123 +0,0 @@ -@import "_colours"; - -$image-sprite: 'images/sprite.png'; - -@import "../sass/layout"; - -@mixin box_round($radius) { - -webkit-border-radius: $radius; /* Safari 3-4, iOS 1-3.2, Android ≤1.6 */ - border-radius: $radius; /* Opera 10.5, IE9+, Safari 5, Chrome, Firefox 4+, iOS 4, Android 2.1+ */ - - /* useful if you don't want a bg color from leaking outside the border: */ - -moz-background-clip: padding; -webkit-background-clip: padding-box; background-clip: padding-box; -} - -body { - .wrapper{ - background: url('images/fmb-header.png') 30% 0% repeat-x; - } - #site-logo { - left:8px; - } -} - - -body.frontpage { - #site-logo { - width: 370px !important; - height: 70px; - background: url('images/sprite.png') -3px -106px no-repeat; - top: 2em; - left: 1em; - } - - .wrapper { - background: url('images/fmb-header.png') 30% 0% repeat-x; - } -} - -.ie6 body.frontpage #site-logo { - background-image: url(images/ie_front_logo.gif); -} - -body.mappage .nav-wrapper div.nav-wrapper-2 { - border-bottom: 2px solid #333; -} - -#mysoc-logo { - background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIkAAAAyCAMAAABf9whNAAAA0lBMVEUAAABAQEBAQEBAQEBNTU1NTU1AQEBNTU1AQEBAQEBAQEBAQEBAQEBAQEBAQEBNTU1NTU1AQEBNTU1AQEBNTU1AQEBAQEBNTU2Mxj9NTU33kx5NTU1NTU1NTU3tHCRmLZEpq+JNTU2TJ4/tHCSTJ4/87iEpq+L3kx5NTU387iH87iHtHCSTJ4/3kx51K5CTJ49mLZGMxj/tHCSx0zVmLZH6wSBmLZFmLZFDdb/zYCFbuZGMxj/3kx5AQEBNTU0pq+LtHCSMxj/3kx787iFmLZGTJ49ns3BGAAAAPXRSTlMAQL+AQIAQECBwMGBQj98gn5/Pr+/vzzC/r79wYI9wv69QcK+vcICfv68QQBAwj0AwMBBggIBQr3BwgEBgSmaQCwAAAflJREFUeF7t1Ndy2zAQhtGfAAX2IpFUseSSOLGd3nt27bT3f6UsQHusRFcKmVxkcGa4wvCG34AQ8V/wPM/zPM8zSaOaxGBHtFpF+IfikqwYO0LmELfiHH/XlLokSBrsiurtPdGkMJJFWFWTSQUZC0RhWMFNRQWuvTw9RS/VOolNEBgAudYpkE5pHqRpEACIZQ4x4RkztxMWd6KWa2DDvFDUBeg9urr6cPAZMIqEDogCmDmJKdwtlbjXOCc1sIRnhyxj0vIMNbeQMUNun5DBOTo6/3oASMhUF6krka3IM1lkikqdGaICMVE2sKSNICkR1sxYyMag5TWQd7bFPH4G8eT8zcOUKIGwJUYuSE7hzoldlZAwM7Dkwg4GQjtmXMtvBZHNiZJ7P+5C3P/2oH9SXyKXo1yJq0sbmmLMkg23h7xCryR1W5L8WqKsmz1BSbqjfNSSiMUGMEB/Bp8ePwdeLF/ZAn1TEssFR1MJIZmyGLUENXNrI8pCK6IMx99fn50tvyyBcuvEKuqKXDcuocgAQ/I7conMGgA5BfD23fvLy4/LT0Ba/v4vphRxR9dnlmIMU4ULO0IgsgPr/rya3H7F4JycoCf3sq0vW5ICiLXO3YtsMC4JqbG3uCFKMSb3nYuwNyLKMK6Q6wj7a7oMY4vwJwwG8TzP8zzP834CEcRJKkEhVogAAAAASUVORK5CYII="); -} -#front-main { - background: rgba(255,255,255,0.1); - margin-top: 70px; - - #postcodeForm { - margin-left: 0; - margin-right: 0; - } - - a { - text-decoration:none; - } - - p { - padding-bottom:4px; - } -} - -.nav-menu--mysoc { - padding: 1px 0.5em; -} -.nav-menu--main { - padding: 3px 0; -} - -body.mappage .nav-menu--main a, -body.mappage .nav-menu--main span, -.nav-menu--main a, -.nav-menu--main span -{ - color: #fff; - padding: 0.7em; - background-color: rgba(0,0,0,0); - background-image: none; - @include box_round(0.35em); - margin-left: 3px; - - &.report-a-problem-btn { - color: #fff; - padding: 0.7em; - background-color: rgba(0,0,0,0); - background-image: none; - margin: 0; - } - - &.fmb-bgy-btn { - color: #fcc921; - } - - &:hover { - background-color: rgba(0,0,0,0.75); - background-image: none; - } -} - - -#user-meta { - max-width: 96%; -} - - - -#front-howto { - #front_stats { - border-top: 0.25em solid #000; - div { - big { - color: #000; - } - } - } -} - -@import "message_manager"; diff --git a/web/cobrands/fixmybarangay/message_manager.scss b/web/cobrands/fixmybarangay/message_manager.scss deleted file mode 100644 index 9af6c80ee..000000000 --- a/web/cobrands/fixmybarangay/message_manager.scss +++ /dev/null @@ -1,266 +0,0 @@ -@import "_colours"; - -$mm_status_message_color: #a66; -$mm_border_color: #eee; - -$color_reply_bg: #cccccc; -$color_bg_reply_0: #E8E8E8; -$color_bg_reply_1: #DEDEDE; -$color_bg_reply_2: #D6D6D6; -$color_bg_reply_3: #D1D1D1; -$color_bg_reply_4: #C9C9C9; -$color_bg_reply_5: #BFBFBF; -$color_bg_reply_6: #B8B8B8; -$color_bg_mm_list: #F6F6F6; - -$color_bg_btn_hide: #ff0000; -$color_bg_btn_reply: #008000; -$color_bg_btn_info: #0000ff; -$color_bg_btn_detach: #FFA500; - -$weak_text_color: #666; - -p.mm-submitted-by-sms { - color: $weak_text_color; - font-style: italic; - font-size: 0.8125em; - img { - border: none; - margin-right: 0.5em; - width: 22px; - height: 40px; - vertical-align:middle; - display: inline; - } -} - -#message_manager { - margin-top: 0; - li#mm-admin-buttons { - margin: -0.5em 0 0 0; - text-align: right; - font-size:80%; - padding:4px 0; - a { - padding: 0.25em 0.5em; - border:1px solid $mm_border_color; - margin: 0 0.5em; - display: inline-block; - } - background-color: #fff; - &:hover { - background-color: #fff; - } - #mm-link-to-toggle-archive { - border-color: green; - } - } - #message-control { - background-color: #fff; - &:hover { - background-color: #fff; - } - #mm-username-container { - display: none; // hidden during dev - padding: 8px; - text-align: right; - color: $mm_status_message_color; - font-style: italic; - span { - color: #000; - font-style: normal; - } - } - #mm-status-message-container { - position: relative; - min-height: 1.4em; - margin: 0 0 8px 0.5em; - padding: 8px 4px 8px 24px; - color: $mm_status_message_color; - font-style: italic; - p { - margin:0; - padding:0; - } - #mm-spinner { - position: absolute; - left: 4px; - top: 10px; - display: none; - } - } - #mm-login-container { - display: none; // only shown on/after a 403 - border: 1px solid $mm_border_color; - padding: 0 1em; - margin: 1em; - input { - margin-bottom: 1em; - } - } - } - - #mm-message-list { - ul { - list-style-type: none; - padding: 0; - margin: 0; - li, ul.mm-reply-thread li { - position: relative; - clear: both; - margin: 4px 0 0 0; - padding: 0; - background-color: $color_bg_mm_list; - p { - background-color: inherit; - margin: 0.25em 0 0 0; - padding: 0.5em 1em; - &:hover { background-color: #efe;} - .msg-info-box { - font-style: italic; - font-size: 90%; - color: #666; - border-top: 1px dashed #666; - padding:4px 0 0 0; - margin: 4px 0 0 0; - display: none; - } - } - ul.mm-reply-thread { - li { - margin:0; - } - .mm-reply { - background-color: #ccc; - &:hover {background-color: #eef;} - } - .mm-reply-0 { margin-left: 0em; background-color: $color_bg_reply_0;} - .mm-reply-1 { margin-left: 1em; background-color: $color_bg_reply_1;} - .mm-reply-2 { margin-left: 2em; background-color: $color_bg_reply_2;} - .mm-reply-3 { margin-left: 3em; background-color: $color_bg_reply_3;} - .mm-reply-4 { margin-left: 4em; background-color: $color_bg_reply_4;} - .mm-reply-5 { margin-left: 5em; background-color: $color_bg_reply_5;} - .mm-reply-6 { margin-left: 6em; background-color: $color_bg_reply_6;} - } - &:hover { background-color: #efe;} - &.msg-is-locked { background-color: #fdd;} - &.msg-is-busy { background-color: #ffd;} - &.msg-is-owned { background-color: #dfd;} - &.msg-is-active { - background-color: $col_click_map; color:#fff; - p:hover { background-color: $col_click_map; color:#fff; } // fix for mouseover on p - p.mm-reply:hover {background-color: #eef; color:#000;} // fix for mouseover on p - } - span.msg-tag { - width: 3em; - float:left; - } - .mm-radio-filler, - input[type=radio] { - display: block; - float: left; - } - label, span.msg-text { - display: block; - font-weight: normal; - margin: 0.1em 0 0.1em 4.5em; - } - .mm-radio-filler { - margin:0; - padding:0; - } - .mm-msg-action { - display: none; - padding: 0.2em 0.4em; - color: white; - text-align: center; - position: absolute; - top: 4px; - &:hover { background-color: black;} - } - .mm-hide { - right:0px; - background-color: $color_bg_btn_hide; - cursor: pointer; - } - .mm-info { - right:1.5em; - background-color: $color_bg_btn_info; - cursor: pointer; - } - .mm-rep { - right:2.6em; - background-color: $color_bg_btn_reply; - cursor: pointer; - } - .mm-detach { - right:5.65em; - background-color: $color_bg_btn_detach; - cursor: pointer; - } - } - &.mm-archive { - display: none; // archive only shown on interaction - li label { - cursor: default; - } - } - } - } - p.mm-empty { - margin: 1em; - } -} -#show_messages, #copy_to_update, #reply-submit { - margin: 1em; -} -#copy_to_update { - display: none; // show on demand, not before -} -#show_messages { - width: 11em; // hack to stop adjacent button hopping when button message changes -} - -#detach-form-container, -#reply-form-container, -#hide-form-container { - p { - color: #000; - max-width: 25em; - margin: 1em; - } - #hide-form, - #reply-form{ - margin-top: 2em; - textarea { - min-height: 3em; - margin-bottom: 0.5em; - } - } - #mm-boilerplate-replies-box, #mm-boilerplate-hide-reasons-box { - overflow: hidden; - display: none; - } - select { - width: 100%; - max-width: 25em; - } -} -#mm-help { - .demo_hide_btn, .demo_reply_btn, .demo_info_btn, .demo_detach_btn { - color: #fff; - font-weight: bold; - padding: 0.2em 0.4em; - } - .demo_hide_btn { background-color: $color_bg_btn_hide; } - .demo_reply_btn { background-color: $color_bg_btn_reply; } - .demo_info_btn { background-color: $color_bg_btn_info; } - .demo_detach_btn{ background-color: $color_bg_btn_detach; } - h3 { - border-top: 1px solid $color_reply_bg; - padding-top: 0.8em; - } - p { - margin: 1em; - } -} diff --git a/web/cobrands/fixmybarangay/message_manager_client.js b/web/cobrands/fixmybarangay/message_manager_client.js deleted file mode 100644 index 06ea7a909..000000000 --- a/web/cobrands/fixmybarangay/message_manager_client.js +++ /dev/null @@ -1,850 +0,0 @@ -/* - * creates a message_manage object that uses the Message Manager API: - * include this file, then initialise the object when the page is loaded with - * message_manager.config(settings) - * - * i.e., you *must* do something like: - * - * $(document).ready(function() { - * message_manager.config({url_root:'http://yourdomain.com/messages'}) - * } - * - * You'll need to set the url_root, but you can leave everything else to default - * provided your HTML ids and classes are the same as ours (which they might be: - * see the Message Manager's dummy client (at /client) to see the HTML we use). - * - * The (optional) single parameter for .config() is a hash of name-value pairs: - * - * url_root accepts the root URL to the message manager. - * - * want_unique_locks normally MM clients should relinquish all other locks - * when claiming a new one so want_unique_locks defaults - * to true; but you can set it explicitly here. - * - * mm_name name of Message Manager (used in error messages shown - * to user, e.g., "please log in to Message Manager") - * - * msg_prefix all message <li> items have this as their ID prefix - * - * want_nice_msgs don't use language like "lock granted" - * - * tooltips hash of tooltips: override the items you want, keys are: - * tt_hide, tt_info, tt_reply, tt_radio - * - * want_radio_btns normally MM clients show a radio button, but for archive - * messages this might be unneccessary: default is true, but - * pass in false to suppress this. - * - * *_selector these are the jQuery selects that will be used to find - * the respective elements: - * - * message_list_selector: list of messages - * status_selector: status message display - * login_selector: login form - * - * - * Summary of all methods: - * message_manager.config([options]) - * message_manager.setup_click_listener([options]) - * message_manager.get_available_messages([options]) - * message_manager.request_lock(msg_id, [options]) (default use: client code doesn't need to call this explicitly) - * message_manager.assign_fms_id(msg_id, fms_id, [options]) - * message_manager.hide(msg_id, reason_text, [options]) - * message_manager.reply(msg_id, reply_text, [options]) - * message_manager.show_info(msg_id) - * message_manager.sign_out() - * - * Note: options are {name:value, ...} hashes and often include "callback" which is a function that is executed on success - * but see the docs (request_lock executes callback if the call is successful even if the lock was denied, for example). - * Some methods take 'callback' as the only option, but you still need to pass it as a named option. -*/ - -var message_manager = (function() { - - // default/config values: to be overridden using "config({name:value, ...})" - - var _url_root = 'http://www.example.com/message_manager/'; - var _want_unique_locks = true; - var _msg_prefix = "msg-"; - var _username; - var _mm_name = "Message Manager"; - var _use_fancybox = true; // note: currently *must* have fancybox! - var _want_nice_msgs = false; - var _want_radio_btns = true; - - var _tooltips = { - tt_hide : "Hide message", - tt_info : "Get info", - tt_reply : "Send SMS reply", - tt_radio : "Select message before clicking on map to create report", - tt_detach: "Detach this message because it is not a reply" - }; - - // cached jQuery elements, populated by the (mandatory) call to config() - var $message_list_element; - var $status_element; - var $login_element; - var $htauth_username; - var $htauth_password; - var $hide_reasons; - var $boilerplate_replies; - - var msg_no_config_err = "Config error: no Message Manager URL has been specified"; - - // set _want_nice_msgs to avoid using the term "lock" - var msg_trying_for_lock = ["Trying for lock...", "Checking message..." ]; - var msg_checking_lock = ["Checking lock...", "Checking message..." ]; - var msg_claiming_lock = ["Claiming lock...", "Checking message..." ]; - var msg_lock_granted_ok = ["Lock granted OK", "Checking message... OK"]; - var msg_lock_denied = ["", "Someone is working with that message right now!"]; - - function get_msg(msg) { - return msg[_want_nice_msgs? 1 : 0]; - } - - var config = function(settings) { - var selectors = { - message_list_selector: '#mm-message-list', - status_selector: '#mm-status-message-container', - login_selector: '#mm-login-container', - username_selector: '#mm-received-username', - htauth_username_selector: '#mm-htauth-username', - htauth_password_selector: '#mm-htauth-password', - boilerplate_hide_reasons: '#mm-boilerplate-hide-reasons-box', - boilerplate_replies: '#mm-boilerplate-replies-box' - }; - if (settings) { - if (typeof settings.url_root === 'string') { - _url_root = settings.url_root; - if (_url_root.length > 0 && _url_root.charAt(_url_root.length-1) !== "/") { - _url_root+="/"; - } - } - if (typeof settings.want_unique_locks !== 'undefined') { - _want_unique_locks = settings.want_unique_locks; - } - if (typeof settings.msg_prefix === 'string') { - _msg_prefix = settings.msg_prefix; - } - for (var sel in selectors) { - if (typeof settings[sel] === 'string') { - selectors[sel] = settings[sel]; - } - } - if (typeof settings.mm_name === 'string') { - _mm_name = settings.mm_name; - } - if (typeof settings.want_nice_msgs !== 'undefined') { - _want_nice_msgs = settings.want_nice_msgs; - } - if (typeof settings.want_radio_btns !== 'undefined') { - _want_radio_btns = settings.want_radio_btns; - } - if (settings.tooltips) { - for (var key in settings.tooltips) { - if (settings.tooltips.hasOwnProperty(key)) { - _tooltips[key]=settings.tooltips[key]; - } - } - } - } - $message_list_element = $(selectors.message_list_selector); - $status_element = $(selectors.status_selector); - $login_element = $(selectors.login_selector); - $htauth_username = $(selectors.htauth_username_selector); - $htauth_password = $(selectors.htauth_password_selector); - $hide_reasons = $(selectors.boilerplate_hide_reasons); - $boilerplate_replies = $(selectors.boilerplate_replies); - if (typeof settings.url_root === 'string' && _url_root.length===0) { - say_status(msg_no_config_err); - } - }; - - var make_base_auth = function(user, password) { - var tok = user + ':' + password; - var hash = encodeBase64(tok); // window.btoa(tok) doesn't work on all browers - return "Basic " + hash; - }; - - function encodeBase64(input) { - var chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=', - INVALID_CHARACTER_ERR = (function () { - // fabricate a suitable error object - try { - document.createElement('$'); - } catch (error) { - return error; - } - }()), - block, charCode, idx, map, output; - // encoder (with wee change by mhl Mark to satisfy jslint) - // [https://gist.github.com/999166] by [https://github.com/nignag] - for (idx = 0, map = chars, output = ''; - input.charAt(idx | 0) || ((map = '=') && (idx % 1)); - output += map.charAt(63 & block >> 8 - idx % 1 * 8)) { - charCode = input.charCodeAt(idx += 3/4); - if (charCode > 0xFF) { - throw INVALID_CHARACTER_ERR; - } - block = block << 8 | charCode; - } - return output; - } - - var get_current_auth_credentials = function() { - var base_auth = ""; - var htauth_un = ""; - var htauth_pw = ""; - if ($htauth_username.size()) { - htauth_un = $htauth_username.val(); - htauth_pw = $htauth_password.val(); - } - if (htauth_un.length === 0 && Modernizr.sessionstorage && sessionStorage.getItem('mm_auth')) { - base_auth = sessionStorage.getItem('mm_auth'); - } else { - base_auth = make_base_auth(htauth_un, htauth_pw); - if (Modernizr.sessionstorage) { - sessionStorage.mm_auth = base_auth; - } - } - return base_auth; - }; - - var sign_out = function() { // clear_current_auth_credentials - if (Modernizr.sessionstorage) { - sessionStorage.removeItem('mm_auth'); - } - if ($htauth_password) { - $htauth_password.val(''); - } - }; - - var show_login_form = function(suggest_username) { - $('.mm-msg', $message_list_element).remove(); // remove (old) messages - if ($htauth_username.size() && ! $htauth_username.val()) { - $htauth_username.val(suggest_username); - } - $login_element.stop(true,true).slideDown(); - }; - - var say_status = function (msg, show_spinner, allow_html) { - if ($status_element) { - if (show_spinner) { - // slow fade in so that spinner only appears if there's a long delay - $status_element.find('#mm-spinner').stop(true,true).fadeIn(1200); - } else { - $status_element.find('#mm-spinner').stop(true,true).hide(); - } - $status_element.stop(true,true).show(); - if (allow_html) { - $status_element.find('p').html(msg); - } else { - $status_element.find('p').text(msg); - } - } - }; - - var extract_replies = function(replies, depth, is_archive) { - var $ul = ""; - if (replies && replies.length > 0) { - $ul = $('<ul class="mm-reply-thread"/>'); - for (var i=0; i<replies.length; i++) { - $ul.append(get_message_li(replies[i], depth, is_archive)); - } - } - return $ul; - }; - - var get_message_li = function(message_root, depth, is_archive) { - var msg = message_root.Message; // or use label value - var lockkeeper = message_root.Lockkeeper.username; - var escaped_text = $('<div/>').text(msg.message).html(); - var $p = $('<p/>'); - var $hide_button = $('<a class="mm-msg-action mm-hide" id="mm-hide-' + msg.id + '" href="#hide-form-container" title="' + _tooltips.tt_hide + '">X</a>'); - var $info_button = $('<span class="mm-msg-action mm-info" id="mm-info-' + msg.id + '" title="' + _tooltips.tt_info + '">i</span>'); - var $reply_button = $('<a class="mm-msg-action mm-rep" id="mm-rep-' + msg.id + '" href="#reply-form-container" title="' + _tooltips.tt_reply + '">reply</a>'); - var $detach_button = $('<a class="mm-msg-action mm-detach" id="mm-rep-' + msg.id + '" href="#detach-form-container" title="' + _tooltips.tt_detach + '">detach</a>'); - var is_radio_btn = _want_radio_btns && depth === 0 && ! is_archive; - if (_use_fancybox) { - $reply_button.fancybox(); - $hide_button.fancybox(); - $detach_button.fancybox(); - } - if (depth === 0) { - var tag = (!msg.tag || msg.tag === 'null')? ' ' : msg.tag; - tag = $('<span class="msg-tag"/>').html(tag); - var radio = null; - if (is_radio_btn) { - radio = $('<input type="radio"/>').attr({ - 'id': 'mm_text_' + msg.id, - 'name': 'mm_text', - 'value': escaped_text, - 'title': is_radio_btn? _tooltips.tt_radio : "" - }).wrap('<p/>').parent().html(); - } else { - radio = $("<p>–</p>").addClass('mm-radio-filler'); - } - var label = $('<label />').attr({ - 'class': 'msg-text', - 'for': 'mm_text_' + msg.id, - 'title': is_radio_btn? _tooltips.tt_radio : "" - }).text(escaped_text).wrap('<p/>').parent().html(); - $p.append(tag).append(radio).append(label); - } else { - $p.text(escaped_text).addClass('mm-reply mm-reply-' + depth); - } - var $litem = $('<li id="' + _msg_prefix + msg.id + '" class="mm-msg">').append($p).append($hide_button).append($info_button); - if (depth > 0 && depth % 2 === 0) { // only even-numbered depths are incoming replies that can be detached - $litem.append($detach_button); - } - if (msg.is_outbound != 1) { - $litem.append($reply_button); - } - if (lockkeeper) { - $litem.addClass(lockkeeper == _username? 'msg-is-owned' : 'msg-is-locked'); - } - var info_text = ""; - if (msg.is_outbound == 1) { - info_text = 'sent on ' + msg.created + ' by ' + msg.sender_token; - } else { - info_text = 'received on ' + msg.created + ' from ' + '<abbr title="'+ msg.sender_token + '">user</abbr>'; - } - $p.append('<div class="msg-info-box" id="msg-info-box-' + msg.id + '">' + info_text + '</div>'); - if (message_root.children) { - $litem.append(extract_replies(message_root.children, depth+1, is_archive)); - } - return $litem; - }; - - var show_available_messages = function(data, anim_duration) { - var messages = data.messages; - _username = data.username; - var $output = $message_list_element; - if (anim_duration > 0) { - $output.stop(true,true).fadeOut(anim_duration, function(){ - render_available_messages(data, anim_duration); - }); - } else { - render_available_messages(data, anim_duration); - } - }; - - // render allows animation (if required) to hide messages before repainting and then revealing them - var render_available_messages = function(data, anim_duration) { - var $output = $message_list_element; - $output.empty(); - var archive = data.messages_for_this_report; - var $archive = ""; - var i, litem; - if (archive instanceof Array) { - var $arch_ul = $('<ul class="mm-root mm-archive"/>'); - for(i=0; i< archive.length; i++) { - litem = get_message_li(archive[i], 0, true); - $arch_ul.append(litem); - } - $output.append($arch_ul); - } - var messages = data.messages; - _username = data.username; - if (messages instanceof Array) { - var $ul = $('<ul class="mm-root mm-current"/>'); - if (messages.length === 0) { - $output.append('<p class="mm-empty">No messages available.</p>'); - } else { - for(i=0; i< messages.length; i++) { - litem = get_message_li(messages[i], 0, false); - $ul.append(litem); - } - } - $output.append($ul); - } else { - $output.html('<p>No messages (server did not send a list).</p>'); - } - if (anim_duration > 0) { - $output.slideDown(anim_duration); - } - }; - - // accept an element (e.g., message_list) and add the click event to the *radio button* within it - // A bit specific to expect li's perhaps. - // options are passed through to the lock - var setup_click_listener = function(options) { - $message_list_element.on('click', 'input[type=radio]', function(event) { - var $li = $(this).closest('li'); - var id = $li.attr('id').replace(_msg_prefix, ''); - if ($li.hasClass('msg-is-locked')) { - say_status(get_msg(msg_trying_for_lock), true); - } else if ($li.hasClass('msg-is-owned')) { - say_status(get_msg(msg_checking_lock), true); - } else { - say_status(get_msg(msg_claiming_lock), true); - } - request_lock(id, options); - }); - // clicking the reply button loads the id into the (modal/fancybox) reply form - $message_list_element.on('click', '.mm-rep', function(event) { - $('#reply_to_msg_id').val($(this).closest('li').attr('id').replace(_msg_prefix, '')); - }); - // clicking the hide button loads the id into the (modal/fancybox) hide form - $message_list_element.on('click', '.mm-hide', function(event) { - $('#hide_msg_id').val($(this).closest('li').attr('id').replace(_msg_prefix, '')); - // $('#hide-form-message-text').val(TODO); - }); - // clicking the detach button loads the id into the (modal/fancybox) detach form - $message_list_element.on('click', '.mm-detach', function(event) { - $('#detach_msg_id').val($(this).closest('li').attr('id').replace(_msg_prefix, '')); - }); - }; - - // gets messages or else requests login - // options: suggest_username, if provided, is preloaded into the login form if provided - // anim_duration: duration of fade/reveal (0, by defaut, does no animation) - // fms_id: if provided, display an archive of messages for this username - var get_available_messages = function(options) { - var base_auth = get_current_auth_credentials(); - var suggest_username = ""; - var anim_duration = 0; - var callback = null; - var fms_id = null; - if (options) { - if (typeof(options.callback) === 'function') { - callback = options.callback; - } - if (typeof options.suggest_username === 'string') { - suggest_username = options.suggest_username; - } - if (typeof options.anim_duration === 'string' || typeof options.anim_duration === 'number') { - anim_duration = parseInt(options.anim_duration, 10); - if (isNaN(anim_duration)) { - anim_duration = 0; - } - } - if (typeof options.fms_id === 'string' || typeof options.fms_id === 'number') { - fms_id = parseInt(options.fms_id, 10); - if (isNaN(fms_id)) { - fms_id = 0; - } - } - } - if (base_auth === "") { - show_login_form(suggest_username); - return; - } - $login_element.stop(true,true).hide(); - if (_url_root.length === 0) { - say_status(msg_no_config_err); - } else { - var ajax_url = _url_root +"messages/available.json"; - if (fms_id) { - ajax_url += "?fms_id=" + fms_id; - } - say_status("Fetching messages...", true); - $.ajax({ - dataType: "json", - type: "get", - url: ajax_url, - beforeSend: function (xhr){ - xhr.setRequestHeader('Authorization', get_current_auth_credentials()); - xhr.withCredentials = true; - }, - success: function(data, textStatus) { - show_available_messages(data, anim_duration); - say_status("Fetching messages... done, OK", false); // loaded OK - if (typeof(callback) === "function") { - callback.call($(this), data); // execute callback - } - }, - error: function(jqXHR, textStatus, errorThrown) { - var st = jqXHR.status; - var msg_is_html = false; - if (st == 401 || st == 403) { - var msg = (st == 401 ? "Invalid username or password for" : "Access denied: please log in to") + " " + _mm_name; - say_status(msg); - show_login_form(suggest_username); - } else { - var err_msg = "Unable to load messages: "; - if (st === 0 && textStatus === 'error') { // x-domain hard to detect, sometimes intermittent? - if (_url_root.indexOf('https')===0 && ! location.protocol != 'https:') { - var surl = location.href.replace(/^http:/, 'https:'); - err_msg += 'this is an insecure URL.<br/><a href="' + surl + '">Try from HTTPS instead?</a>'; - msg_is_html = true; - } else { - err_msg += "maybe try refreshing page?"; - } - } else { - err_msg += textStatus + " (" + st + ")"; - } - say_status(err_msg, false, msg_is_html); - } - } - }); - } - }; - - var request_lock = function(msg_id, options) { - var $li = $('#' + _msg_prefix + msg_id); - var lock_unique = _want_unique_locks; - var callback = null; - if (options) { - if (typeof(options.callback) === 'function') { - callback = options.callback; - } - if (typeof(options.lock_unique) !== undefined && options.lock_unique !== undefined) { - lock_unique = options.lock_unique; - } - } - $li.addClass('msg-is-busy'); - $.ajax({ - dataType:"json", - type:"post", - url: _url_root +"messages/" + - (lock_unique? "lock_unique" : "lock") + - "/" + msg_id + ".json", - beforeSend: function (xhr){ - xhr.setRequestHeader('Authorization', get_current_auth_credentials()); - xhr.withCredentials = true; - }, - success:function(data, textStatus) { - if (data.success) { - if (lock_unique) { - $('.msg-is-owned', $message_list_element).removeClass('msg-is-owned'); - } - $li.removeClass('msg-is-busy msg-is-locked').addClass('msg-is-owned'); - say_status(get_msg(msg_lock_granted_ok)); // to data['data']['Lockkeeper']['username']? - } else { - $li.removeClass('msg-is-busy').addClass('msg-is-locked'); - say_status(get_msg(msg_lock_denied) || ("lock failed: " + data.error)); - } - if (typeof(callback) === "function") { // note callbacks must check data['success'] - callback.call($(this), data); // returned data['data'] is 'Message', 'Source', 'Lockkeeper' for success - } - }, - error: function(jqXHR, textStatus, errorThrown) { - $li.removeClass('msg-is-busy'); - say_status("error: " + textStatus + ": " + errorThrown); - } - }); - }; - - var assign_fms_id = function(msg_id, fms_id, options) { - var check_li_exists = false; - var is_async = true; - var callback = null; - if (options) { - if (typeof(options.callback) === 'function') { - callback = options.callback; - } - if (typeof(options.check_li_exists) !== undefined && options.check_li_exists !== undefined) { - check_li_exists = true; // MM dummy - } - if (typeof(options.is_async) !== undefined && options.is_async !== undefined) { - is_async = options.is_async; - } - } - var $li = $('#' + _msg_prefix + msg_id); - if (check_li_exists) { - if ($li.size() === 0) { - say_status("Couldn't find message with ID " + msg_id); - return; - } - } - if (isNaN(parseInt(fms_id,10))) { - say_status("missing FMS id"); - return; - } - $li.addClass('msg-is-busy'); - $.ajax({ - async:is_async, - dataType:"json", - type:"post", - data: {fms_id: fms_id}, - url: _url_root +"messages/assign_fms_id/" + msg_id + ".json", - beforeSend: function (xhr){ - xhr.setRequestHeader('Authorization', get_current_auth_credentials()); - xhr.withCredentials = true; - }, - success:function(data, textStatus) { - if (data.success) { - $li.removeClass('msg-is-busy msg-is-locked').addClass('msg-is-owned').fadeOut('slow'); // no longer available - say_status("OK: report ID was assigned to message."); - if (typeof(callback) === "function") { - callback.call($(this), data.data); // returned data['data'] is 'Message', 'Source', 'Lockkeeper' for success - } - } else { - $li.removeClass('msg-is-busy').addClass('msg-is-locked'); - say_status("failed: " + data.error); - } - }, - error: function(jqXHR, textStatus, errorThrown) { - say_status("error: " + textStatus + ": " + errorThrown); - $li.removeClass('msg-is-busy'); - } - }); - }; - - var reply = function(msg_id, reply_text, options) { - if (_use_fancybox){ - $.fancybox.close(); - } - var callback = null; - var check_li_exists = false; - if (options) { - if (typeof(options.callback) === 'function') { - callback = options.callback; - } - if (typeof(options.check_li_exists) !== undefined && options.check_li_exists !== undefined) { - check_li_exists = true; // MM dummy - } - } - var $li = $('#' + _msg_prefix + msg_id); - if (check_li_exists) { - if ($li.size() === 0) { - say_status("Couldn't find message with ID " + msg_id); - return; - } - } - reply_text = $.trim(reply_text); - if (reply_text === '') { - say_status("No reply sent: message was empty!"); - return; - } - $li.addClass('msg-is-busy'); - $.ajax({ - dataType:"json", - type:"post", - data: {reply_text: reply_text}, - url: _url_root +"messages/reply/" + msg_id + ".json", - beforeSend: function (xhr){ - xhr.setRequestHeader('Authorization', get_current_auth_credentials()); - xhr.withCredentials = true; - }, - success:function(data, textStatus) { - if (data.success) { - $li.removeClass('msg-is-busy msg-is-locked').addClass('msg-is-owned'); // no longer available - say_status("Reply sent OK"); - if (typeof(callback) === "function") { - callback.call($(this), data.data); // returned data['data'] is null but may change in future - } - } else { - $li.removeClass('msg-is-busy').addClass('msg-is-locked'); - say_status("Reply failed: " + data.error); - } - }, - error: function(jqXHR, textStatus, errorThrown) { - say_status("Reply error: " + textStatus + ": " + errorThrown); - $li.removeClass('msg-is-busy'); - } - }); - }; - - var hide = function(msg_id, reason_text, options) { - if (_use_fancybox){ - $.fancybox.close(); - } - var callback = null; - var check_li_exists = false; - if (options) { - if (typeof(options.callback) === 'function') { - callback = options.callback; - } - if (typeof(options.check_li_exists) !== undefined && options.check_li_exists !== undefined) { - check_li_exists = true; // MM dummy - } - } - var $li = $('#' + _msg_prefix + msg_id); - if (check_li_exists) { - if ($li.size() === 0) { - say_status("Couldn't find message with ID " + msg_id); - return; - } - } - reason_text = $.trim(reason_text); - $li.addClass('msg-is-busy'); - $.ajax({ - dataType:"json", - type:"post", - data: {reason_text: reason_text}, - url: _url_root +"messages/hide/" + msg_id + ".json", - beforeSend: function (xhr){ - xhr.setRequestHeader('Authorization', get_current_auth_credentials()); - xhr.withCredentials = true; - }, - success:function(data, textStatus) { - if (data.success) { - $li.removeClass('msg-is-busy msg-is-locked').addClass('msg-is-owned').fadeOut('slow'); // no longer available - say_status("Message hidden"); - if (typeof(callback) === "function") { - callback.call($(this), data.data); - } - } else { - $li.removeClass('msg-is-busy').addClass('msg-is-locked'); - say_status("Hide failed: " + data.error); - } - }, - error: function(jqXHR, textStatus, errorThrown) { - say_status("Hide error: " + textStatus + ": " + errorThrown); - $li.removeClass('msg-is-busy'); - } - }); - }; - - var show_info = function(msg_id) { - var $info = $("#msg-info-box-" + msg_id); - if ($info.size()==1) { - if ($info.is(':hidden')) { - $info.slideDown(); - } else { - $info.slideUp(); - } - } - }; - - var mark_as_not_a_reply = function(msg_id, options) { - if (_use_fancybox){ - $.fancybox.close(); - } - var callback = null; - var check_li_exists = false; - if (options) { - if (typeof(options.callback) === 'function') { - callback = options.callback; - } - if (typeof(options.check_li_exists) !== undefined && options.check_li_exists !== undefined) { - check_li_exists = true; // MM dummy - } - } - var $li = $('#' + _msg_prefix + msg_id); - if (check_li_exists) { - if ($li.size() === 0) { - say_status("Couldn't find message with ID " + msg_id); - return; - } - } - $li.addClass('msg-is-busy'); - $.ajax({ - dataType:"json", - type:"post", - data: {}, - url: _url_root +"messages/mark_as_not_a_reply/" + msg_id + ".json", - beforeSend: function (xhr){ - xhr.setRequestHeader('Authorization', get_current_auth_credentials()); - xhr.withCredentials = true; - }, - success:function(data, textStatus) { - if (data.success) { - $li.removeClass('msg-is-busy msg-is-locked').addClass('msg-is-owned').fadeOut('slow'); // no longer available - say_status("Message no longer marked as a reply"); - if (typeof(callback) === "function") { - callback.call($(this), data.data); - } - } else { - $li.removeClass('msg-is-busy').addClass('msg-is-locked'); - say_status("Hide failed: " + data.error); - } - }, - error: function(jqXHR, textStatus, errorThrown) { - say_status("Detach error: " + textStatus + ": " + errorThrown); - $li.removeClass('msg-is-busy'); - } - }); - }; - - // if boilerplate is not already in local storage, make ajax call and load them - // otherwise, populate the boilerplate select lists: these are currently the - // reasons for hiding a message, and pre-loaded replies.message-manager.dev.mysociety.org - // NB no auth required on this call - var populate_boilerplate_strings = function(boilerplate_type, options) { - if (Modernizr.sessionstorage && sessionStorage.getItem('boilerplate_' + boilerplate_type)) { - populate_boilerplate(boilerplate_type, sessionStorage.getItem('boilerplate_' + boilerplate_type)); - return; - } - var callback = null; - if (options) { - if (typeof(options.callback) === 'function') { - callback = options.callback; - } - } - $.ajax({ - dataType:"json", - type:"get", - url: _url_root +"boilerplate_strings/index/" + boilerplate_type + ".json", - success:function(data, textStatus) { - if (data.success) { - var raw_data = data.data; - var select_html = get_select_tag_html(data.data, boilerplate_type); - if (Modernizr.sessionstorage) { - sessionStorage.setItem('boilerplate_' + boilerplate_type, select_html); - } - populate_boilerplate(boilerplate_type, select_html); - if (typeof(callback) === "function") { - callback.call($(this), data.data); - } - } else { - // console.log("failed to load boilerplate"); - } - }, - error: function(jqXHR, textStatus, errorThrown) { - // console.log("boilerplate error: " + textStatus + ": " + errorThrown); - } - }); - }; - - // TODO flatten all HTML in boilerplate text - var get_select_tag_html = function(boilerplate_data, boilerplate_type) { - var html = "<option value=''>--none--</option>\n"; - var qty_langs = 0; - var qty_strings = 0; - if (boilerplate_data.langs) { - for (var i=0; i< boilerplate_data.langs.length; i++) { - var lang = boilerplate_data.langs[i]; - var options = ""; - for (var j in boilerplate_data[lang]) { - if (boilerplate_data[lang].hasOwnProperty(j)) { - options += "<option>" + boilerplate_data[lang][j] + "</option>\n"; - qty_strings++; - } - } - if (boilerplate_data.langs.length > 1) { // really need pretty name for language - options = '<optgroup label="' + lang + '">\n' + options + '</optgroup>\n'; - } - html += options; - } - } - if (qty_strings === 0) { - html = ''; - } - return html; - }; - - // actually load the select tag - var populate_boilerplate = function(boilerplate_type, html) { - var $target = null; - switch(boilerplate_type) { - case 'hide-reason': $target = $hide_reasons; break; - case 'reply': $target = $boilerplate_replies; break; - } - if ($target) { - if (html) { - $target.show().find('select').html(html); - } else { - $target.hide(); - } - } - }; - - // revealed public methods: - return { - config: config, - setup_click_listener: setup_click_listener, - get_available_messages: get_available_messages, - request_lock: request_lock, - assign_fms_id: assign_fms_id, - reply: reply, - hide: hide, - show_info: show_info, - sign_out: sign_out, - populate_boilerplate_strings: populate_boilerplate_strings, - say_status: say_status, - mark_as_not_a_reply: mark_as_not_a_reply - }; -})(); diff --git a/web/cobrands/fixmybarangay/messages.js b/web/cobrands/fixmybarangay/messages.js deleted file mode 100644 index aebf35156..000000000 --- a/web/cobrands/fixmybarangay/messages.js +++ /dev/null @@ -1,26 +0,0 @@ -$(function(){ - - var mm = $('#message_manager'); - - $.getJSON('/cobrands/fixmybarangay/test-texts.json', function(data) { - var items = []; - $.each(data, function(k, v) { - var item = $('<input type="radio"/>').attr({ - 'id': 'mm_text_' + v.id, - 'name': 'mm_text', - 'value': v.text - }).wrap('<p/>').parent().html(); - var label = $('<label/>', { - 'class': 'inline', - 'for': 'mm_text_' + v.id - }).text(v.text).wrap('<p/>').parent().html(); - item = '<li><p>' + item + ' ' + label + '</p></li>'; - items.push(item); - }); - mm.html(items.join('')); - mm.find('input').click(function(){ - $('#form_detail').val( $('input[name=mm_text]:checked').val() ); - }); - }); - -}); diff --git a/web/cobrands/fixmybarangay/position_map.js b/web/cobrands/fixmybarangay/position_map.js deleted file mode 100644 index 753b5f854..000000000 --- a/web/cobrands/fixmybarangay/position_map.js +++ /dev/null @@ -1,22 +0,0 @@ -function position_map_box() { - var $html = $('html'); - if ($html.hasClass('ie6')) { - $('#map_box').prependTo('.wrapper').css({ - zIndex: 0, position: 'absolute', - top: 0, left: 0, right: 0, bottom: 0, - width: '100%', height: $(window).height(), - margin: 0 - }); - } else { - $('#map_box').prependTo('.wrapper').css({ - zIndex: 0, position: 'fixed', - top: 0, left: 0, right: 0, bottom: 0, - width: '100%', height: '100%', - margin: 0 - }); - } -} - -function map_fix() {} -var slide_wards_down = 0; - diff --git a/web/cobrands/fixmybarangay/test-texts.json b/web/cobrands/fixmybarangay/test-texts.json deleted file mode 100644 index 7acde1e32..000000000 --- a/web/cobrands/fixmybarangay/test-texts.json +++ /dev/null @@ -1,17 +0,0 @@ -[ - { - "id" : 1, - "number" : "032-9999999", - "text" : "Pothole on corner of G. De Vera and T. Padilla" - }, - { - "id" : 2, - "number" : "032-1234567", - "text" : "Broken street light on Rahmann Street" - }, - { - "id" : 3, - "number" : "+63 917 0000000", - "text" : "F. Manalo giant pothole" - } -] diff --git a/web/cobrands/zerotb/_colours.scss b/web/cobrands/zerotb/_colours.scss deleted file mode 100644 index a5eb83b71..000000000 --- a/web/cobrands/zerotb/_colours.scss +++ /dev/null @@ -1,24 +0,0 @@ -/* COLOURS */ - -$white: #ffffff; -$black: #000000; - -$primary: $black; -$primary_b: $black; -$primary_text: $white; - -$base_bg: $white; -$base_fg: #000; - -$map_nav_bg: $black; -$nav_fg: #ffffff; -$nav_fg_hover: #000; - -$col_click_map: $black; -$col_click_map_dark: darken($black, 10%); - -$col_fixed_label: #00BD08; -$col_fixed_label_dark: #4B8304; - -$button-color: #FF5308; -$alt-background: #f5f5f5; diff --git a/web/cobrands/zerotb/base.scss b/web/cobrands/zerotb/base.scss deleted file mode 100644 index db612094d..000000000 --- a/web/cobrands/zerotb/base.scss +++ /dev/null @@ -1,120 +0,0 @@ -@import "../sass/h5bp"; -@import "./_colours"; -@import "../sass/mixins"; -@import "compass"; - -@import url(http://fonts.googleapis.com/css?family=Lato:300,700); - -$body-font: 'Lato', sans-serif !default; -$meta-font: 'Lato', sans-serif !default; -$heading-font: 'Lato', sans-serif !default; - -@import "../sass/base"; - -body { - font-weight: 300; -} - -input { - background-color: $alt-background; -} - -#front-main { - h2 { - font-weight: 300; - } - - #postcodeForm { - div { - border: 0px; - background: $primary_b; - select#clinic, - input#pc { - background-color: $alt-background; - } - select#clinic { - border: 0; - border-radius: 0px; - display: table-cell; - line-height: 1.5em; - padding: 0.25em 2%; - } - .select2-container, - select#clinic, - input#pc { - border: 0px; - border-radius: 0px; - box-shadow: none; - width: 80%; - } - input#sub { - background-color: $button-color; - border: 1px solid $alt-background; - border-radius: 5px; - color: white; - margin-left: 5px; - } - input#show_report { - width: 14%; - margin-left: 5px; - } - .select2-container { - display: inline-block; - text-align: left; - a { - line-height: 1.5em; - padding: 0.25em 2%; - } - } - .select2-display-none { - display: none; - } - } - } -} - -#site-logo { - background: none; - text-indent: 0px; - text-transform: uppercase; - width: auto; - margin-right: 80px; - @media( min-width: 350px ) { - margin-top: 0.5em; - } - a { - color: white; - &:hover { - text-decoration: none; - } - } - p { - font-weight: 300; - margin-bottom: 0em; - } - .orange { - color: $button-color; - font-weight: bold; - } - #brought-to-you { - display: none; - } -} - -button.green-btn, -input.green-btn, -.green-btn { - background: none; - background-color: $button-color; - border: 1px solid $alt-background; - border-radius: 5px; - color: white; -} - -button.green-btn:hover, -input.green-btn:hover, -.green-btn:hover { - background: none; - background-color: darken( $button-color, 10% ); - border: 1px solid $alt-background; -} diff --git a/web/cobrands/zerotb/config.rb b/web/cobrands/zerotb/config.rb deleted file mode 100644 index cab97b18f..000000000 --- a/web/cobrands/zerotb/config.rb +++ /dev/null @@ -1,25 +0,0 @@ -# Require any additional compass plugins here. - -# Set this to the root of your project when deployed: -http_path = "/" -css_dir = "" -sass_dir = "" -images_dir = "" -javascripts_dir = "" - -# You can select your preferred output style here (can be overridden via the command line): -# output_style = :expanded or :nested or :compact or :compressed - -# To enable relative paths to assets via compass helper functions. Uncomment: -# relative_assets = true - -# To disable debugging comments that display the original location of your selectors. Uncomment: -# line_comments = false - -# If you prefer the indented syntax, you might want to regenerate this -# project again passing --syntax sass, or you can uncomment this: -# preferred_syntax = :sass -# and then run: -# sass-convert -R --from scss --to sass sass scss && rm -rf sass && mv scss sass - -line_comments = false # by Compass.app diff --git a/web/cobrands/zerotb/images/pin-clinic-big.png b/web/cobrands/zerotb/images/pin-clinic-big.png Binary files differdeleted file mode 100644 index c1e359828..000000000 --- a/web/cobrands/zerotb/images/pin-clinic-big.png +++ /dev/null diff --git a/web/cobrands/zerotb/images/pin-clinic.png b/web/cobrands/zerotb/images/pin-clinic.png Binary files differdeleted file mode 100644 index 5cc0828fd..000000000 --- a/web/cobrands/zerotb/images/pin-clinic.png +++ /dev/null diff --git a/web/cobrands/zerotb/images/pin-shadow-big.png b/web/cobrands/zerotb/images/pin-shadow-big.png Binary files differdeleted file mode 100644 index 113184b94..000000000 --- a/web/cobrands/zerotb/images/pin-shadow-big.png +++ /dev/null diff --git a/web/cobrands/zerotb/images/pin-shadow.png b/web/cobrands/zerotb/images/pin-shadow.png Binary files differdeleted file mode 100644 index 8b470592a..000000000 --- a/web/cobrands/zerotb/images/pin-shadow.png +++ /dev/null diff --git a/web/cobrands/zerotb/layout.scss b/web/cobrands/zerotb/layout.scss deleted file mode 100644 index c8afa3abc..000000000 --- a/web/cobrands/zerotb/layout.scss +++ /dev/null @@ -1,105 +0,0 @@ -@import "_colours"; -@import "../sass/layout"; - -body { - &.frontpage { - .nav-wrapper-2 { - background-color: $primary; - color: $primary_text; - height: auto; - } - - #site-header { - background-color: $base_bg; - } - - #site-logo { - background: none; - color: black; - width: auto; - a { - color: black; - } - p { - font-size: 2em; - font-weight: 300; - } - #brought-to-you { - display: block; - font-size: 0.75em; - } - } - } - &.mappage { - .nav-menu--main { - a, a.report-a-problem-btn, span { - padding: 0.25em; - margin: 0.5em; - } - } - .nav-wrapper-2 { - min-height: 4em; - } - } -} - -.nav-wrapper { - .nav-wrapper-2 { - border: none; - min-height: 0; - } -} - -.nav-menu--mysoc a { - color: $primary_text; -} -.nav-menu--main span { - color: $primary_text; -} - -#site-header { - background: $primary; - height: auto; -} - -.container { - padding: 0em 1em; -} - -#front-main { - #front-main-container { - max-width: 40em; - h2 { - text-align: left; - } - } - #postcodeForm { - div { - width: 30em; - .select2-container, - select#clinic, - input#pc { - max-width: none; - width: 27em; - } - input#show_report { - display: block; - float: right; - width: 3em; - } - } - } - - .select2-container { - a { - color: #444; - text-align: left; - text-decoration: none; - } - } -} - -.content { - background-color: $alt-background; - box-shadow: none; -} diff --git a/web/css/_main-import.scss b/web/css/_main-import.scss deleted file mode 100644 index 305a9e43e..000000000 --- a/web/css/_main-import.scss +++ /dev/null @@ -1,279 +0,0 @@ -// Generics - -/* Thanks to normalize.css - * 1. Corrects text resizing oddly in IE6/7 when body font-size is set using em units - * http://clagnut.com/blog/348/#c790 - * 3. Prevents iOS text size adjust after orientation change, without disabling user zoom - * www.456bereastreet.com/archive/201012/controlling_text_size_in_safari_for_ios_without_disabling_user_zoom/ - */ -html { - font-size: 100%; /* 1 */ - -webkit-text-size-adjust: 100%; /* 3 */ - -ms-text-size-adjust: 100%; /* 3 */ -} - -body { - font-family: "Gill Sans", "Gill Sans MT", Helvetica, Arial, sans-serif; - margin: 0; - padding: 0; - // color: #a9aeb0; -} - -h1 { - margin: 0; - font-size: 175%; -} -h2 { - font-size: 140%; -} - -select, input, textarea { - font-size: 99%; - max-width: 95%; -} - -#mysociety { - - a.unsuitable-report { - font-size: small; - } - - blockquote { - border-left: solid 4px $header_colour; - } - - .a { - color: #000000; - background-color: $header_back_lighter; - } - - #postcodeForm { - background-color: $header_back; - } - - #front_stats div { - background-color: $header_back; - } - -} - -// Site layout - -#header { - font-size: 200%; - font-weight: bold; - border-bottom: solid 2px $header_colour; - margin: 0; - padding: 0.15em 0.5em; - background-color: $header_back; - color: $header_colour; - - a:link, a:visited { - color: $header_colour; - background-color: $header_back; - text-decoration: none; - } - a:active, a:hover { - text-decoration: underline; - } -} - -#my { - color: $header_darker; - background-color: $header_back; -} - -#mysociety { - width: 100%; /* Must specify a width or IE goes crazy wrong! */ - position: relative; - margin: 0 auto; - max-width: 60em; - overflow: auto; -} - -/* Can't put the margin in #mysociety because of above IE craziness */ -#wrapper { - margin: 1em 2em; -} - -#meta { - list-style-type: none; - margin: 30px 0 0.5em 1em; /* (was 0.25em 0 0 1em) forced to drop below promo (fix before the freeze) image */ - padding: 0; - font-size: 0.875em; - li { - display: inline; - margin: 0; - padding: 0 0 0 0.25em; - border-left: solid 1px $header_colour; - } - li:first-child { - border-left: none; - } -} - -.v { - display: none; -} - -#navigation { - position: absolute; - top: 1em; - right: 1em; - padding: 0; - margin: 0; - list-style-type: none; - - li { - display: inline; - padding: 0; - margin: 0; - } - - a { - display: -moz-inline-box; - display: inline-block; - padding: 0.4em 1em; - } - a:link, a:visited { - color: $header_colour; - } - a:hover, a:active { - background-color: $header_colour; - color: $header_back; - -moz-border-radius-topleft: 0.5em; - -webkit-border-top-left-radius: 0.5em; - border-radius-top-left: 0.5em; - -moz-border-radius-topright: 0.5em; - -webkit-border-top-right-radius: 0.5em; - border-radius-top-right: 0.5em; - } -} - -#nav_new a { - background-image: url("/i/new.png"); - background-repeat: no-repeat; - background-position: 100% 0; -} - -#promo { - position: absolute; - top: 3.3em; - left: 10px; - a { - display: block; - padding:0; - border:2px solid white; - img { - margin:0px; - } - } - a:hover { - border:2px dotted #70CFE3; - } -} - -.promo-background { - margin-top:-4px; - background-image:url(/i/promo-icicles.gif); - background-repeat:repeat-x; - background-position:top left; - padding-top:3em; -} - -#logo { - border: none; - position: absolute; - top: 3.3em; - right: 10px; -} - -.ie6 #logo { - display: none; -} - -.ie6 #logoie { - width: 133px; - height: 26px; - filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/i/mysociety-dark.png',sizingMethod='scale'); - position: absolute; - top: 4em; - right: 10px; - cursor: pointer; -} - -#footer { - clear: both; - text-align: center; - border-top: solid 2px #ccc; - width: 50%; - margin: 1em auto 0; - padding: 0; - color: #333333; - - .l, .r { - margin-top: 0; - text-align: left; - width: 45%; - } - .l { - float: left; - } - .r { - float: right; - } -} - -@media all and (max-width: 50em) { - #logo { - display: none; - } - #promo { - position: static; - width: 116px; - top: none; - text-align: center; - margin: 0.25em auto; - display:block; - } - .promo-background img#logo { - border:2px solid #fff; - background-color: #fff; - } - #header { - font-size: 150%; - } - h1 { - font-size: 140%; - } - h2 { - font-size: 130%; - } - #navigation { - position: static; - border-top: solid 2px $header_colour; - border-bottom: solid 2px $header_colour; - margin: 1em 0; - padding: 0.15em 0.5em; - text-align: center; - background-color: $header_back; - color: $header_colour; - - a:hover, a:active { - background-color: $header_colour; - color: $header_back; - -moz-border-radius: 0.5em; - -webkit-border-radius: 0.5em; - border-radius: 0.5em; - } - } - #footer { - width: auto; - padding: 0 1em; - border-top: none; - } - #wrapper { - margin: 0em 1em; - } -} - diff --git a/web/css/cache-eha2.css b/web/css/cache-eha2.css deleted file mode 100644 index 2e98dc574..000000000 --- a/web/css/cache-eha2.css +++ /dev/null @@ -1,493 +0,0 @@ -body{
- text-align:center;
- background-color: #FFFFFF;
-}
-#header {
-text-align:left;
- margin: 0px;
- width: 760px;
-}
-#main {
-text-align:left;
- margin: 0px;
- width: 760px;
-}
-#footer {
-text-align:left;
- width: 760px;
- clear: both;
- background-color: #80AE7D;
- height: 110px;
- margin-top: 5px;
- margin-bottom: 5px;
-}
-#logo {
- margin: 0px;
- float: left;
- width: 400px;
-}
-#search {
- margin: 0px;
- float: right;
- width: 345px;
- height: 70px;
- background-color: #80AE7D;
- padding-top: 10px;
- padding-right: 15px;
- padding-bottom: 10px;
-}
-#bottombox ul {
- list-style-type: none;
- padding: 0px;
- margin: 0px;
-}
-#bottombox li {
- width: 170px;
- font-family: Geneva, Arial, Helvetica, sans-serif;
- font-size: small;
- background-color: #B1BECF;
- margin-bottom: 1px;
-}
-
-#smallnav {
- width: 750px;
- font-family: Geneva, Arial, Helvetica, sans-serif;
- font-size: small;
- text-align: right;
- font-weight: 400;
- color: #354664;
- padding-right: 10px;
- padding-bottom: 10px;
- padding-top: 10px;
-}
-#topbox ul {
- list-style-type: none;
- margin: 0px;
- padding: 0px;
-}
-#topbox li {
- font-family: Geneva, Arial, Helvetica, sans-serif;
- font-size: small;
- width: 170px;
- background-color: #b1becf;
- margin-bottom: 1px;
-}
-#topbox a {
- text-decoration: none;
- color: #30517A;
- display: block;
-}
-#bottombox a:hover {
- background-color: #FFFFFF;
- width: 170px;
-}
-#topbox a:hover {
- background-color: #FFFFFF;
- width: 170px;
-}
-
-#bottombox a {
- color: #30517A;
- text-decoration: none;
- display: block;
-}
-
-
-
-#left {
- float: left;
- width: 120px;
- font-family: Geneva, Arial, Helvetica, sans-serif;
- font-size: small;
- list-style: none;
-}
-#middle p {
- font-family: Geneva, Arial, Helvetica, sans-serif;
- font-size: small;
- width: 420px;
- color: #30517A;
-}
-#pressnav {
- border-top-width: 1px;
- border-right-width: 1px;
- border-bottom-width: 1px;
- border-left-width: 1px;
- border-top-style: solid;
- border-bottom-style: solid;
- border-top-color: #CCCCCC;
- border-right-color: #CCCCCC;
- border-bottom-color: #CCCCCC;
- border-left-color: #CCCCCC;
- font-family: Geneva, Arial, Helvetica, sans-serif;
- font-size: small;
- padding: 3px;
-}
-#pressreleases {
- font-family: Geneva, Arial, Helvetica, sans-serif;
- font-size: small;
- color: #30517A;
-}
-#pressreleases p {
- padding-bottom: 10px;
- background-color: #EBEEF3;
- padding-top: 10px;
- border: 1px dashed #CCCCCC;
-}
-#bulletin p {
- padding-bottom: 10px;
- background-color: #EBEEF3;
- padding-top: 10px;
- border: 1px dashed #CCCCCC;
-}
-
-#events p {
- border: 1px dashed #CCCCCC;
- padding-top: 10px;
- padding-bottom: 10px;
- background-color: #EBEEF3;
-}
-
-
-
-
-
-#right {
- width: 160px;
- float: right;
-}
-#left ul {
- list-style-type: none;
- padding: 0px;
- margin: 0px;
-}
-#left ol {
- list-style-type: none;
- display: inline;
- background-color: #B1BECF;
- width: 90px;
- margin-bottom: 1px;
-}
-#left ol a {
- background-color: #DCDCED;
- color: #30517A;
-}
-#left ol a:hover {
- background-color: #FFFFFF;
-}
-
-
-#left li {
- margin-bottom: 1px;
- display: block;
-}
-#smallnav a {
- text-decoration: none;
- color: #30517A;
-}
-#smallnav a:hover {
- background-color: #B1BECF;
-}
-
-#left a {
- display: block;
- width: 120px;
- font-weight: bold;
- padding: 10px;
- text-decoration: none;
- background-color: #9999CC;
- color: #FFFFFF;
-}
-#address2 a {
- color: #FFFFFF;
-}
-#address1 a {
- color: #FFFFFF;
-}
-
-
-#left a:hover {
- color: #30517A;
- background-color: #FFFFFF;
-}
-
-
-
-#middle {
- margin: 0 250px 0 155px:
- clear: right;
- width: 410px;
- float: left;
- left: 153px;
- margin: 0px;
- padding-right: 10px;
- padding-bottom: 10px;
- padding-left: 10px;
- top: 135px;
- background-color: #FFFFFF;
-}
-#address1 {
- float: left;
- width: 180px;
- font-family: Geneva, Arial, Helvetica, sans-serif;
- font-size: x-small;
- margin-bottom: 20px;
- padding: 20px;
- color: #FFFFFF;
-}
-#address2 {
- float: left;
- width: 180px;
- font-family: Geneva, Arial, Helvetica, sans-serif;
- font-size: x-small;
- margin-bottom: 20px;
- padding: 20px;
- color: #FFFFFF;
-}
-#toptitle {
- font-family: Geneva, Arial, Helvetica, sans-serif;
- font-weight: bold;
- color: #FFFFFF;
- font-size: small;
- width: 160px;
- background-color: #30517A;
- padding: 5px;
-}
-#bottomtitle {
- width: 160px;
- font-family: Geneva, Arial, Helvetica, sans-serif;
- font-size: small;
- font-weight: bold;
- background-color: #30517A;
- color: #FFFFFF;
- padding: 5px;
-}
-#middle h1 {
- font-family: Geneva, Arial, Helvetica, sans-serif;
- font-size: large;
- width: 420px;
- background-color: #9999CC;
- color: #FFFFFF;
- padding: 3px;
- font-weight: 500;
-}
-#middle h2 {
- font-family: Geneva, Arial, Helvetica, sans-serif;
- font-size: small;
- font-weight: bold;
- background-color: #B1BECF;
- display: block;
- color: #30517A;
-}
-#middle h3 {
- text-decoration: underline;
- font-family: Geneva, Arial, Helvetica, sans-serif;
- font-size: small;
- font-weight: bold;
- color: #30517A;
-}
-
-#middle a:hover {
- background-color: #B1BECF;
-}
-#middle a {
- color: #30517A;
- text-decoration: underline;
-}
-#eventsnav {
- border-top-width: 1px;
- border-bottom-width: 1px;
- border-top-style: solid;
- border-bottom-style: solid;
- border-top-color: #CCCCCC;
- border-bottom-color: #CCCCCC;
- font-family: Geneva, Arial, Helvetica, sans-serif;
- font-size: small;
- padding: 3px;
- text-align: center;
-}
-#lwoanav {
- padding-top: 5px;
- padding-bottom: 5px;
- border-top-width: 1px;
- border-bottom-width: 1px;
- border-top-style: solid;
- border-bottom-style: solid;
- border-top-color: #CCCCCC;
- border-bottom-color: #CCCCCC;
- text-align: center;
- font-family: Geneva, Arial, Helvetica, sans-serif;
- font-size: small;
-}
-#lwoa {
- border: 1px dotted #CCCCCC;
- width: 420px;
-}
-#nwoanav {
- padding-top: 5px;
- padding-bottom: 5px;
- border-top-width: 1px;
- border-bottom-width: 1px;
- border-top-style: solid;
- border-bottom-style: solid;
- border-top-color: #CCCCCC;
- border-bottom-color: #CCCCCC;
- font-family: Geneva, Arial, Helvetica, sans-serif;
- font-size: small;
- text-align: center;
-}
-#nwoa {
- width: 420px;
- border: 1px dotted #CCCCCC;
-}
-#pubsubleft {
- float: left;
- width: 200px;
- border: 1px solid #CCCCCC;
- font-family: Geneva, Arial, Helvetica, sans-serif;
- color: #30517a;
- font-size: x-small;
-}
-#pubsubright {
- float: right;
- width: 200px;
- border: 1px solid #CCCCCC;
- font-family: Geneva, Arial, Helvetica, sans-serif;
- font-size: x-small;
- color: #30517a;
-}
-#pubtypeleft {
- float: left;
- width: 200px;
- border: 1px solid #CCCCCC;
- font-family: Geneva, Arial, Helvetica, sans-serif;
- font-size: x-small;
- color: #30517a;
-}
-#pubtyperight {
- float: right;
- width: 200px;
- border: 1px solid #CCCCCC;
- font-family: Geneva, Arial, Helvetica, sans-serif;
- font-size: x-small;
- color: #30517a;
-}
-#periodnavleft {
- margin: 0px;
- float: left;
- width: 200px;
- border: 1px solid #CCCCCC;
- font-family: Geneva, Arial, Helvetica, sans-serif;
- font-size: x-small;
- color: #30517A;
-}
-#periodnavright {
- margin: 0px;
- float: right;
- width: 200px;
- font-family: Geneva, Arial, Helvetica, sans-serif;
- font-size: x-small;
- color: #30517A;
- border: 1px dashed #CCCCCC;
-}
-#policynav {
- font-family: Geneva, Arial, Helvetica, sans-serif;
- font-size: x-small;
- color: #30517a;
- margin: 0px;
- float: left;
- width: 400px;
- border: 1px solid #CCCCCC;
-}
-#casenav {
- font-family: Geneva, Arial, Helvetica, sans-serif;
- font-size: x-small;
- color: #30517a;
-}
-#case p {
- padding-bottom: 10px;
- background-color: #EBEEF3;
- padding-top: 10px;
- border: 1px dashed #CCCCCC;
-}
-#grants p {
- padding-bottom: 10px;
- font-family: Geneva, Arial, Helvetica, sans-serif;
- font-size: small;
- color: #30517a;
- background-color: #EBEEF3;
- padding-top: 10px;
- border: 1px dashed #CCCCCC;
-}
-#listing {
- font-family: Geneva, Arial, Helvetica, sans-serif;
- font-size: x-small;
- color: #30517a;
-}
-#suppliernav {
- font-family: Geneva, Arial, Helvetica, sans-serif;
- font-size: x-small;
- margin: 0px;
- width: 425px;
- border: 1px solid #CCCCCC;
- text-align: center;
-}
-#publist {
- font-family: Geneva, Arial, Helvetica, sans-serif;
- font-size: small;
- margin: 0px;
- width: 400px;
-}
-#publist p {
- padding-bottom: 10px;
- background-color: #EBEEF3;
- padding-top: 10px;
- border: 1px dashed #CCCCCC;
-}
-#contactnav {
- font-family: Geneva, Arial, Helvetica, sans-serif;
- font-size: x-small;
- margin: 0px;
- width: 425px;
- border: 1px solid #CCCCCC;
- text-align: center;
-}
-#statsnav {
- font-family: Geneva, Arial, Helvetica, sans-serif;
- font-size: small;
- color: #30517a;
- margin: 0px;
- float: left;
- width: 425px;
-}
-#buyingnav {
- font-family: Geneva, Arial, Helvetica, sans-serif;
- font-size: x-small;
- color: #30517a;
- margin: 0px;
- float: left;
- width: 400px;
- border: 1px solid #CCCCCC;
-}
-#ownernav {
- font-family: Geneva, Arial, Helvetica, sans-serif;
- font-size: x-small;
- color: #30517a;
- margin: 0px;
- float: left;
- width: 400px;
- border: 1px solid #CCCCCC;
-}
-#campnav {
- font-family: Geneva, Arial, Helvetica, sans-serif;
- font-size: x-small;
- color: #30517a;
- margin: 0px;
- float: left;
- width: 400px;
- border: 1px solid #CCCCCC;
-}
-#sitenav {
- font-family: Geneva, Arial, Helvetica, sans-serif;
- font-size: x-small;
- color: #30517a;
-}
diff --git a/web/css/core.scss b/web/css/core.scss deleted file mode 100644 index 897b2d095..000000000 --- a/web/css/core.scss +++ /dev/null @@ -1,751 +0,0 @@ -$map_width: 500px; - -// Generics - -#mysociety { - - blockquote { - border-left: solid 4px #666666; - padding-left: 0.5em; - h2, p { - margin: 0; - } - } - - dt { - font-weight: bold; - margin-top: 0.5em; - } - - .gone { - color: #666666; - background-color: #cccccc; - } - - p.dev-site-notice, p.error { - text-align: center; - color: #cc0000; - font-size: larger; - } - - ul { - padding: 0 0 0 1.5em; - margin: 0; - } - - ul.error { - color: #cc0000; - background-color: #ffeeee; - padding-right: 4px; - text-align: left; - font-size: larger; - } - - div.form-error { - color: #cc0000; - margin: 5px 1em 5px 1em; - padding: 2px 5px 2px 5px; - text-align: left; - } - - div.label-valid { - background-color: white; - } - - div.label-valid-hidden { - display: none; - visibility: hidden; - height: 0px; - width: 0px; - margin: 0px; - padding: 0px; - } - - div.form-field { - clear: both; - } - - // Front page - - p#expl { - text-align: center; - font-size: 150%; - margin: 0; - } - - p#expl small { - display: block; - } - - #postcodeForm { - display: table; /* Full width in IE6 and IE7 */ - text-align: center; - font-size: 150%; - margin: 1em auto; - padding: 1em; - -moz-border-radius: 1em; - -webkit-border-radius: 1em; - border-radius: 1em; - -moz-box-shadow: 2px 2px 4px #999; - -webkit-box-shadow: 2px 2px 4px #999; - box-shadow: 2px 2px 4px #999; - - label { - float: none; - padding-right: 0; - margin-top: 0; - } - - #sub { - font-size: 83%; - } - } - - #geolocate_link { - display: block; - border: none; - font-size: 70%; - margin: 2px 0 0 0; - text-align: right; - } - - #front_intro { - float: left; - width: 48%; - - p { - clear: both; - margin-top: 0; - } - } - - #front_stats { - margin: 0 auto; - display: table; /* IE6 is set to floats below */ - border-spacing: 2em 1em; - } - - #front_stats div { - text-align: center; - width: 5.5em; - -moz-border-radius: 0.5em; - -webkit-border-radius: 0.5em; - border-radius: 0.5em; - display: table-cell; - - big { - font-size: 150%; - display: block; - } - } - - #front_recent { - float: right; - width: 48%; - margin-bottom: 1em; - } - #front_recent img, #alert_recent img { - margin-right: 0.25em; - margin-bottom: 0.25em; - } - #front_recent > h2:first-child, #front_intro > h2:first-child { - margin-top: 0; - } - - #front_photos { - text-align: center; - } - - // Forms - - form { - margin: 0; - } - - label { - float: left; - text-align: right; - padding-right: 0.5em; - width: 6em; - } - - fieldset, .fieldset { - border: none; - margin: 0.5em; - div { - margin-top: 2px; - clear: left; - } - } - - legend { - display: none; - } - - .fieldset div.checkbox, #problem_submit { - padding-left: 5.5em; - } - .fieldset div.checkbox label, label.n { - float: none; - text-align: left; - padding-right: 0; - width: auto; - cursor: pointer; - cursor: hand; - } - - /* Lots of defaults to override small screen CSS */ - #questionnaire label, #alerts label { - float: none; - margin-top: 0; - display: inline; - } - - .confirmed { - background-color: #ccffcc; - border: solid 2px #009900; - padding: 5px; - text-align: center; - } - - #form_sign_in_yes { - float: left; - width: 47%; - padding-right: 1%; - border-right: solid 1px #999999; - margin-bottom: 1em; - } - - #form_sign_in_no, .fieldset #form_sign_in_no { - float: right; - width: 47%; - padding-left: 1%; - clear: none; - margin-bottom: 1em; - } - - #category_meta { - margin-bottom: 30px; - } - - #category_meta label { - width: 10em; - } - - // Map - - #map_box { - float: right; - width: $map_width + 2px; - position: relative; - padding-left: 20px; - background-color: #ffffff; - } - - p#copyright { - float: right; - text-align: right; - margin: 0 0 1em 0; - font-size: 78%; - } - - #map { - border: solid 1px #666666; - width: $map_width; // Twice a tile width - height: $map_width; - overflow: hidden; - position: relative; - background-color: #f1f1f1; - } - - /* Drag is only present in noscript form */ - #drag { - input, img { - position: absolute; - border: none; - } - input { - cursor: crosshair; - background-color: #cccccc; - } - img { - cursor: move; - } - img.pin { - z-index: 100; - background-color: inherit; - } - a img.pin { - cursor: pointer; - cursor: hand; - } - } - - form#mapForm #map { - cursor: pointer; - } - - form#mapForm .olTileImage { - cursor: crosshair; - } - - .banner { - margin: 0 $map_width + 30px 1em 0; - padding: 5px; - text-align: center; - position: relative; - } - - #text_map { - padding-left: 0.5em; - text-align: left; - margin-top: 0; - font-size: 110%; - background-color: #eeeeee; - -moz-border-radius-topleft: 1em; - -moz-border-radius-bottomleft: 1em; - -webkit-border-top-left-radius: 1em; - -webkit-border-bottom-left-radius: 1em; - border-top-left-radius: 1em; - border-bottom-left-radius: 1em; - } - #text_map_arrow { - display: block; - position: absolute; - top: 0; - right: -28px; - width: 0; - height: 0; - line-height: 0; - font-size: 0; - border-style: solid; - border-width: 26px 14px 26px 14px; - border-color: #fff #fff #fff #eee; - } - - #text_no_map { - margin-top: 0; - // background-color: #ffeecc; - // padding: 4px; - } - - #sub_map_links { - float: right; - clear: right; - margin-top: 0; - } - - // Problem pages - - #fixed { - background-color: #ccffcc; - border: solid 2px #009900; - } - - #unknown { - background-color: #ffcccc; - border: solid 2px #990000; - } - - #closed { - background-color: #ccccff; - border: solid 2px #000099; - } - - #progress { - background-color: #ffffcc; - border: solid 2px #999900; - } - - #updates { - div { - padding: 0 0 0.5em; - margin: 0 0 0.25em; - border-bottom: dotted 1px #5e552b; - - .problem-update, .update-text { - padding: 0; - margin: 0; - border-bottom: 0; - } - } - - p { - margin: 0; - } - } - - #nearby_lists h2 { - margin-top: 1em; - margin-bottom: 0; - } - - #nearby_lists li small { - color: #666666; - } - - #alert_links { - float: right; - } - #alert_links_area { - padding-left: 0.5em; - margin: 0; - color: #666; - font-size: smaller; - } - #rss_alert { - text-decoration: none; - span { - text-decoration: underline; - } - } - #email_alert { - } - #email_alert_box { - display:none; - position: absolute; - padding: 3px; - font-size:83%; - border:solid 1px #7399C3; - background-color: #eeeeff; - color: #000000; - } - #email_alert_box p { - margin: 0; - } - - .council_sent_info { - font-size: smaller; - } - - .update-img { - text-align: center; - } - .update-img span { - display: none; - } - #updates .update-img { - text-align: left; - } - - // RSS feed XSL - - #rss_items { - width:62%; - float:left; - } - #rss_rhs { - border-left:1px dashed #999; - width:36%; - float:right; - padding: 0 0 0 0.5em; - margin: 0 0 1em 0.5em; - } - #rss_box { - padding:10px; - border:1px solid #999999; - } - - // Alerts - #rss_feed { - list-style-type: none; - margin-bottom: 2em; - } - #rss_feed li { - margin-bottom: 1em; - } - #alert_or { - font-style: italic; - font-size: 125%; - margin: 0; - } - #rss_list { - float: left; - width: 47%; - } - #rss_list ul { - list-style-type: none; - } - #rss_buttons { - float: right; - width: 35%; - text-align: center; - margin-bottom: 2em; - } - #rss_local { - margin-left: 1.5em; - margin-bottom: 0; - } - #rss_local_alt { - margin: 0 0 2em 4em; - } - - #alert_photos { - text-align: center; - float: right; - width: 150px; - margin-left: 0.5em; - } - #alert_photos h2 { - font-size: 100%; - } - #alert_photos img { - margin-bottom: 0.25em; - } - - // Report page - - #col_problems, #col_fixed { - float: left; - width: 48%; - margin-right: 1em; - } - - // Contact page - .contact-details { - font-size: 80%; - margin-top: 2em; - } - - // File upload - // .progressContainer { - // margin: 5px; - // padding: 4px; - // width: 357px; - // border: solid 1px #E8E8E8; - // background-color: #F7F7F7; - // overflow: hidden; - // } - // .red { border: solid 1px #B50000; background-color: #FFEBEB; } - // .green { border: solid 1px #DDF0DD; background-color: #EBFFEB; } - // .blue { border: solid 1px #CEE2F2; background-color: #F0F5FF; } - - // .progressName { - // font-size: 8pt; - // font-weight: bold; - // color: #555555; - // width: 323px; - // height: 14px; - // text-align: left; - // white-space: nowrap; - // overflow: hidden; - // } - // .progressBarInProgress, .progressBarComplete, .progressBarError { - // font-size: 0px; - // width: 0%; - // height: 2px; - // background-color: blue; - // margin-top: 2px; - // } - // .progressBarComplete { - // width: 100%; - // background-color: green; - // visibility: hidden; - // } - // .progressBarError { - // width: 100%; - // background-color: red; - // visibility: hidden; - // } - // .progressBarStatus { - // margin-top: 2px; - // width: 337px; - // font-size: 7pt; - // font-family: Verdana; - // text-align: left; - // white-space: nowrap; - // } - -} - -.olControlAttribution { - bottom: 3px !important; - left: 3px; - color: #222222; -} -.olControlPermalink { - bottom: 3px !important; - right: 3px; -} - -.ie6, .ie7 { - #mysociety { - #front_stats div { - float: left; - margin: 0 1em 1em; - } - } -} - -// Printing, SCSS doesn't handle @media nesting - -@media print { - #mysociety { - #map_box { float: none; margin: 0 auto; } - #mysociety { max-width: none; } - #side { margin-right: 0; } - } -} - -@media all and (max-width: 50em) { - #mysociety { - p#expl { - font-size: 120%; - } - - p#expl small { - display: inline; - } - - #postcodeForm { - font-size: 100%; - span { - display: block; - font-size: 150%; - } - #sub { - font-size: 100%; - } - } - - #geolocate_link { - font-size: 100%; - } - - #front_intro { - float: none; - width: auto; - } - #front_recent { - margin-top: 1em; - float: none; - width: auto; - clear: both; - } - #front_photos { - white-space: nowrap; - overflow: hidden; - } - #front_stats { - border-spacing: 0.5em 1em; - } - - #form_sign_in_yes { - float: none; - width: auto; - padding-right: 0; - border-right: none; - margin-bottom: 1em; - } - - #form_sign_in_no, .fieldset #form_sign_in_no { - float: none; - width: auto; - padding-left: 0; - clear: none; - margin-bottom: 1em; - } - - fieldset, .fieldset { - margin: 1em; - } - - label { - margin-top: 1em; - display: block; - float: none; - text-align: left; - padding-right: 0; - width: auto; - } - .fieldset div.checkbox, #problem_submit { - padding-left: 0; - } - .fieldset div.checkbox label, label.n { - display: inline; - } - - #rss_list { - float: none; - width: auto; - } - #rss_buttons { - float: none; - width: auto; - text-align: left; - } - } -} - -@media all and (max-width: 750px) { - $map_width: 365px; - #mysociety { - #map_box { - padding-left: 10px; - width: $map_width + 2px; - } - #map { - width: $map_width; - height: $map_width; - } - .banner { - margin-right: $map_width + 20px; - } - #text_map_arrow { - right: -18px; - border-width: 16px 9px; - } - } -} - -@media all and (max-width: 580px) { - $map_width: 235px; - #mysociety { - #map_box { - width: $map_width + 2px; - } - #map { - width: $map_width; - height: $map_width; - } - .banner { - margin-right: $map_width + 20px; - } - } -} - -@media all and (max-width: 320px) { - #mysociety { - #map_box { - padding-left: 0; - float: none; - width: 100%; - } - #map { - width: 99%; - } - - .banner { - margin-right: 0; - clear: both; - margin-top: 1em; - } - #text_map { - padding: 0.25em 0.5em; - font-size: 100%; - -moz-border-radius-topleft: 0; - -moz-border-radius-bottomleft: 1em; - -moz-border-radius-bottomright: 1em; - -webkit-border-top-left-radius: 0; - -webkit-border-bottom-left-radius: 1em; - -webkit-border-bottom-right-radius: 1em; - border-top-left-radius: 0; - border-bottom-left-radius: 1em; - border-bottom-right-radius: 1em; - } - #text_map_arrow { - display: none; - } - } -} - diff --git a/web/css/main.scss b/web/css/main.scss deleted file mode 100644 index 1106b8a78..000000000 --- a/web/css/main.scss +++ /dev/null @@ -1,14 +0,0 @@ -// Generics - -$header_back: #e3d595; -$header_back_lighter: #f3e5a5; -$header_colour: #5e552b; -$header_darker: #4e451b; - -a { - &:link { color: #0000ff; } - &:visited { color: #000099; } - &:hover, &:active { color: #ff0000; } -} - -@import "main-import"; diff --git a/web/js/fixmystreet-admin.js b/web/js/fixmystreet-admin.js index 5e0d873c5..1b6624b9b 100644 --- a/web/js/fixmystreet-admin.js +++ b/web/js/fixmystreet-admin.js @@ -9,7 +9,7 @@ $(function(){ var show_open311 = false; if ($('#endpoint').val()) { show_open311 = true; // always show the form if there is an endpoint value - } else if (send_method && !send_method.match(/^(email|emptyhomes|noop|refused)$/i)) { + } else if (send_method && !send_method.match(/^(email|noop|refused)$/i)) { show_open311 = true; } if (show_open311) { |