mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Moving useless assets
This commit is contained in:
@@ -1,9 +0,0 @@
|
||||
/*
|
||||
* This is a manifest file that'll automatically include all the stylesheets available in this directory
|
||||
* and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
|
||||
* the top of the compiled file, but it's generally better to create a new file per style scope.
|
||||
*= require_self
|
||||
*= require ./foundation_and_overrides
|
||||
*= require ./gmaps4rails
|
||||
*= require_tree .
|
||||
*/
|
||||
@@ -1,34 +0,0 @@
|
||||
@import "foundation4/foundation/variables";
|
||||
@import "foundation4/foundation/components/global";
|
||||
|
||||
ul.ui-autocomplete {
|
||||
position: absolute;
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: solid 1px #999;
|
||||
cursor: default;
|
||||
li {
|
||||
background-color: #FFF;
|
||||
border-top: solid 1px #DDD;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font-size: 0.7em;
|
||||
a {
|
||||
color: #000;
|
||||
display: block;
|
||||
padding: 3px;
|
||||
|
||||
&:visited {
|
||||
color: #000;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
color: $primary-color
|
||||
}
|
||||
}
|
||||
a.ui-state-hover, a.ui-state-active {
|
||||
background-color: #FFFCB2;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,16 +0,0 @@
|
||||
@import "foundation4/foundation/variables";
|
||||
@import "foundation4/foundation/components/global";
|
||||
|
||||
.search-result {
|
||||
min-height: 3em;
|
||||
padding: 15px 0;
|
||||
|
||||
.secondary-info {
|
||||
font-size: 0.8em;
|
||||
color: #b7b7b7;
|
||||
}
|
||||
}
|
||||
|
||||
.with-separator {
|
||||
border-bottom: 1px solid #E0E0E0;
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,19 +0,0 @@
|
||||
.map_container {
|
||||
padding: 6px;
|
||||
border-width: 1px;
|
||||
border-style: solid;
|
||||
border-color: #ccc #ccc #999 #ccc;
|
||||
-webkit-box-shadow: rgba(64, 64, 64, 0.5) 0 2px 5px;
|
||||
-moz-box-shadow: rgba(64, 64, 64, 0.5) 0 2px 5px;
|
||||
box-shadow: rgba(64, 64, 64, 0.1) 0 2px 5px;
|
||||
width: 645px;
|
||||
}
|
||||
|
||||
.gmaps4rails_map {
|
||||
width: 630px;
|
||||
height: 530px;
|
||||
}
|
||||
|
||||
.map_container img {
|
||||
max-width: none;
|
||||
}
|
||||
@@ -1,125 +0,0 @@
|
||||
// Place all the styles related to the home controller here.
|
||||
// They will automatically be included in application.css.
|
||||
// You can use Sass (SCSS) here: http://sass-lang.com/
|
||||
|
||||
@import "foundation4/foundation/variables";
|
||||
@import "foundation4/foundation/components/global";
|
||||
@import "foundation4/foundation/components/buttons";
|
||||
@import "foundation4/foundation/components/panels";
|
||||
|
||||
#postcode_select_box {
|
||||
text-align: center;
|
||||
padding: 18% 0;
|
||||
|
||||
p {
|
||||
color: white;
|
||||
font-size: 1.1em;
|
||||
}
|
||||
|
||||
input {
|
||||
font-size: 2em;
|
||||
}
|
||||
|
||||
.button-huge {
|
||||
$padding: emCalc(21);
|
||||
$bg: $primary-color;
|
||||
$radius: true;
|
||||
$full-width: false;
|
||||
$disabled: false;
|
||||
$is-input: false;
|
||||
|
||||
@include button($padding, $bg, $radius, $full-width, $disabled, $is-input);
|
||||
}
|
||||
|
||||
a {
|
||||
&:link {
|
||||
color: #FFF;
|
||||
}
|
||||
&:visited {
|
||||
color: #FFF;
|
||||
}
|
||||
&:hover {
|
||||
color: $primary-color;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.backstretch img {
|
||||
opacity: 0.4;
|
||||
filter: alpha(opacity=40);
|
||||
}
|
||||
|
||||
.bgwidth {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.bgheight {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
#home-page-nav
|
||||
{
|
||||
ul {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
|
||||
li {
|
||||
list-style-type: none;
|
||||
display: inline;
|
||||
font-size: 1.2em;
|
||||
font-weight: bold;
|
||||
color: #FFF;
|
||||
|
||||
&:before {
|
||||
content: " | ";
|
||||
}
|
||||
|
||||
&:first-child {
|
||||
&:before {
|
||||
content: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#sidebar {
|
||||
border: none;
|
||||
}
|
||||
|
||||
.login-panel {
|
||||
$bg: #222;
|
||||
$padding: emCalc(20);
|
||||
$adjust: true;
|
||||
|
||||
@include panel($bg, $padding, $adjust);
|
||||
}
|
||||
|
||||
.centered {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#logo-container {
|
||||
margin-bottom: emCalc(25);
|
||||
}
|
||||
|
||||
.clearfix:after {
|
||||
content: ".";
|
||||
display: block;
|
||||
clear: both;
|
||||
visibility: hidden;
|
||||
line-height: 0;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
.clearfix {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
html[xmlns] .clearfix {
|
||||
display: block;
|
||||
}
|
||||
|
||||
* html .clearfix {
|
||||
height: 1%;
|
||||
}
|
||||
@@ -1,51 +0,0 @@
|
||||
/* Off canvas layout CSS/JS provided by or adapted from work by Jason Weaver and Luke Wroblewski Requires globals.css grid.css */
|
||||
body.off-canvas { padding: 0; margin: 0; overflow: hidden}
|
||||
|
||||
.container { width: 100%; }
|
||||
|
||||
.row { overflow: hidden; }
|
||||
|
||||
.row .row { overflow: visible; }
|
||||
|
||||
.paneled .container { overflow: hidden; }
|
||||
|
||||
.paneled .row { width: 100%; }
|
||||
|
||||
[role="main"]:before { content: " "; position: absolute; z-index: -1; top: 0; left: -100%; width: 100%; height: 100%; }
|
||||
|
||||
[role="complementary"], [role="main"] { width: 100%; padding: 0 15px; display: block; position: relative; z-index: 1; -webkit-transition: 0.25s all ease-in; -moz-transition: 0.25s all ease-in; -o-transition: 0.25s all ease-in; transition: 0.25s all ease-in; }
|
||||
|
||||
.paneled [role="main"] { padding: 0; }
|
||||
|
||||
.page-panel { width: 100%; padding: 0 15px; -webkit-transition: 0.3s margin ease-in-out; -moz-transition: 0.3s margin ease-in-out; -o-transition: 0.3s margin ease-in-out; transition: 0.3s margin ease-in-out; background: #fff; }
|
||||
|
||||
#switchPanels { margin: 0 -15px; }
|
||||
|
||||
.hide-extras [role="complementary"] { display: block; }
|
||||
|
||||
[role="navigation"]#topMenu { -webkit-transition: 0.25s all ease-in; -moz-transition: 0.25s all ease-in; -o-transition: 0.25s all ease-in; transition: 0.25s all ease-in; }
|
||||
|
||||
[role="navigation"]#topMenu ul { margin-top: 0; }
|
||||
|
||||
[role="complementary"] { margin-left: -100%; width: 400px; float: left; z-index: 2; }
|
||||
|
||||
[role="main"] { margin-left: 0; float: right; z-index: 1; position: relative; }
|
||||
|
||||
.paneled [role="main"] { background: #fff; width: 500%; overflow: hidden; float: none; position: relative; left: 0; -webkit-transition: 0.15s all ease-in; -moz-transition: 0.15s all ease-in; -o-transition: 0.15s all ease-in; transition: 0.15s all ease-in; }
|
||||
|
||||
.page-panel { min-height: 400px; float: left; margin: 0; width: 20%; }
|
||||
|
||||
.active [role="complementary"] { margin-left: 0; }
|
||||
|
||||
.active [role="main"] { margin-right: -420px; }
|
||||
|
||||
.active-menu [role="navigation"]#topMenu { margin-top: 0 !important; }
|
||||
|
||||
@media all and (min-width: 768px) { menu-button, .sidebar-button { display: none; }
|
||||
/*[role="complementary"] { width: 20%; margin-left: 0; float: left; padding: 0 15px; }*/
|
||||
[role="main"] { width: 100%; padding: 0 15px; }
|
||||
.paneled [role="main"] { width: 100%; padding: 0; background: #f4f4f4; left: 0 !important; }
|
||||
.page-panel { display: block; min-height: 800px; float: none; margin: 0; width: 100%; background: #f4f4f4; }
|
||||
.hide-extras [role="main"] { width: 100%; }
|
||||
.hide-extras [role="complementary"] { display: none; }
|
||||
[role="navigation"]#topMenu { display: none; } }
|
||||
@@ -1,8 +0,0 @@
|
||||
@import "foundation4/foundation/variables";
|
||||
@import "foundation4/foundation/components/global";
|
||||
|
||||
.products {
|
||||
margin: 0, emCalc(20);
|
||||
border: 1px solid black;
|
||||
padding: emCalc(10);
|
||||
}
|
||||
@@ -1,65 +0,0 @@
|
||||
@import "foundation4/foundation/variables";
|
||||
@import "foundation4/foundation/components/global";
|
||||
|
||||
.landing-page-row {
|
||||
padding-top: emCalc(40);
|
||||
padding-bottom: emCalc(30);
|
||||
|
||||
#environment {
|
||||
font-size: 110%;
|
||||
font-weight: bold;
|
||||
padding: emCalc(5);
|
||||
border-radius: emCalc(5);
|
||||
background-color: #98ca45;
|
||||
}
|
||||
}
|
||||
|
||||
.distributor-link-row {
|
||||
padding: emCalc(5) 0;
|
||||
}
|
||||
|
||||
.with-bottom-border {
|
||||
border-bottom: 1px solid #d9d9d9;
|
||||
}
|
||||
|
||||
.with-pin-bg {
|
||||
background-image: url('../pin_bg.png');
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
min-height: 200px;
|
||||
}
|
||||
|
||||
a.inactive {
|
||||
color: #6a6a6a;
|
||||
}
|
||||
|
||||
.secondary {
|
||||
color: #6a6a6a;
|
||||
}
|
||||
|
||||
.group-header {
|
||||
min-height: emCalc(55);
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 768px) {
|
||||
.hub_group.landing-page-row {
|
||||
padding-bottom: 0px;
|
||||
&.with-bottom-border {
|
||||
padding-top: 0px;
|
||||
}
|
||||
& > .columns {
|
||||
margin-bottom: 60px;
|
||||
}
|
||||
}
|
||||
.group-header {
|
||||
min-height: 0px;
|
||||
}
|
||||
}
|
||||
.top-bar-section ul li {
|
||||
float: left;
|
||||
}
|
||||
.top-bar-section .divider, .top-bar-section [role="separator"] {
|
||||
clear: none;
|
||||
width: 0px;
|
||||
}
|
||||
@@ -5,14 +5,6 @@ class HomeController < BaseController
|
||||
@active_distributors ||= Enterprise.distributors_with_active_order_cycles
|
||||
end
|
||||
|
||||
def new_landing_page
|
||||
end
|
||||
|
||||
def about_us
|
||||
end
|
||||
|
||||
def temp_landing_page
|
||||
@groups = EnterpriseGroup.on_front_page.by_position
|
||||
render layout: false
|
||||
end
|
||||
end
|
||||
|
||||
@@ -45,8 +45,7 @@ Capybara.register_driver :poltergeist do |app|
|
||||
Capybara::Poltergeist::Driver.new(app, options)
|
||||
end
|
||||
|
||||
Capybara.default_wait_time = 30
|
||||
|
||||
Capybara.default_wait_time = 5
|
||||
|
||||
require "paperclip/matchers"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user