Skip to content

Commit

Permalink
Merge in develop and fix conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
stacytalbot committed Aug 28, 2019
2 parents e4b0baa + 0e3ebbf commit 0b16dfc
Show file tree
Hide file tree
Showing 47 changed files with 30,225 additions and 57,253 deletions.
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[submodule "db"]
path = db
url = https://github.com/unepwcmc/protectedplanet-db.git
branch = develop
branch = master
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
dist: trusty
language: ruby
# Manually handle git submodules
git:
Expand Down
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
### 2.6.0

* Add National Report stats to countries
* Update country_statistics csv structure to include National Report stats

### 2.5.3

* Add country, pame_country and marine stats (WDPA August 2019 release).

### 2.5.2

**Bug fixes**
Expand Down
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ gem 'elasticsearch', '~> 7.2.0'
#
gem 'sass-rails', '~> 5.0.7'
gem 'sprockets-rails', '~> 3.2.1'

gem 'uglifier', '~> 2.7.2'
gem 'coffee-rails', '~> 4.2.2'
gem "autoprefixer-rails"
Expand Down
23 changes: 23 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1001,6 +1001,7 @@ GEM
method_source
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)
<<<<<<< HEAD
rake (12.3.3)
rb-fsevent (0.10.3)
rb-inotify (0.10.0)
Expand All @@ -1012,6 +1013,18 @@ GEM
rgeo (0.6.0)
rgeo-activerecord (5.0.1)
activerecord (~> 5.0.0)
=======
rake (10.5.0)
rb-readline (0.5.5)
redis (3.2.1)
redis-namespace (1.5.2)
redis (~> 3.0, >= 3.0.4)
responders (2.1.0)
railties (>= 4.2.0, < 5)
rgeo (0.4.0)
rgeo-activerecord (4.0.0)
activerecord (~> 4.2)
>>>>>>> develop
rgeo (~> 0.3)
ruby_parser (3.13.0)
sexp_processor (~> 4.9)
Expand Down Expand Up @@ -1152,9 +1165,15 @@ DEPENDENCIES
phantompdf (~> 1.2.2)
premailer-rails
rack-cache (~> 1.2)
<<<<<<< HEAD
rails (= 5.0.5)
rails-controller-testing
sass-rails (~> 5.0.7)
=======
rails (= 4.2.5.1)
rb-readline
sass-rails (~> 5.0.4)
>>>>>>> develop
selenium-webdriver
sidekiq (~> 5.2.5)
simplecov
Expand All @@ -1175,4 +1194,8 @@ DEPENDENCIES
will_paginate (~> 3.0)

BUNDLED WITH
<<<<<<< HEAD
1.17.2
=======
1.16.1
>>>>>>> develop
11 changes: 10 additions & 1 deletion app/assets/stylesheets/application.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@
* defined in the other CSS/SCSS files in this directory. It is generally better to create a new
* file per style scope.
*
*= require_self
* *= require_self
*/

// grids
@import 'bourbon/core/bourbon';
@import 'bourbon-neat/app/assets/stylesheets/neat';
Expand Down Expand Up @@ -160,3 +161,11 @@
@import 'utilities/u-classes';

@import 'custom';

@import './resources/**/*';

@import './map/custom-leaflet';

@import './variables/*';

@import './helpers/*';
3 changes: 1 addition & 2 deletions app/assets/stylesheets/atoms/colors.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,4 @@
'visited:active': $link__color--pressed,
visited: $link__color--visited,
));
}

}
80 changes: 80 additions & 0 deletions app/assets/stylesheets/helpers/_flexbox.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
//--------------------------------------------------
// columns
//--------------------------------------------------
// N.B. flex-basis doesn't work properly in IE11, so be careful using these classes!

.flex-1-half { flex: 0 1 50%; }

.flex-1-third { flex: 0 1 33%; }
.flex-2-thirds { flex: 0 1 66%; }

.flex-1-quarter { flex: 0 1 25%; }
.flex-2-quarters { flex: 0 1 50%; }
.flex-3-quarters { flex: 0 1 75%; }

.flex-1-fith { flex: 0 1 20%; }
.flex-2-fiths { flex: 0 1 40%; }
.flex-3-fiths { flex: 0 1 60%; }
.flex-4-fiths { flex: 0 1 80%; }

.flex-1-sixth { flex: 0 1 16%; }
.flex-2-sixths { flex: 0 1 33%; }
.flex-3-sixths { flex: 0 1 50%; }
.flex-4-sixths { flex: 0 1 66%; }
.flex-5-sixths { flex: 0 1 83%; }

//--------------------------------------------------
// columns with gutters
//--------------------------------------------------
.flex-1-third-gutters { flex: 0 1 30%; }
.flex-2-thirds-gutters { flex: 0 1 63%; }

//--------------------------------------------------
// classes
//--------------------------------------------------
.flex { @include flex(); }
.flex-inline { @include flex-inline(); }
.flex-row { @include flex-row(); }
.flex-row-reverse { @include flex-row-reverse(); }
.flex-column { @include flex-column(); }
.flex-column-reverse { @include flex-column-reverse(); }
.flex-nowrap { @include flex-nowrap(); }
.flex-wrap { @include flex-wrap(); }
.flex-wrap-reverse { @include flex-wrap-reverse(); }
.flex-1 { @include flex-1(); }
.flex-grow { @include flex-grow(); }
.flex-no-grow { @include flex-no-grow(); }
.flex-shrink { @include flex-shrink(); }
.flex-no-shrink { @include flex-no-shrink(); }
.flex-h-start { @include flex-h-start(); }
.flex-h-center { @include flex-h-center(); }
.flex-h-between { @include flex-h-between(); }
.flex-h-around { @include flex-h-around(); }
.flex-h-end { @include flex-h-end(); }
.flex-hs-start {@include flex-hs-start(); }
.flex-hs-center { @include flex-hs-center(); }
.flex-hs-between { @include flex-hs-between(); }
.flex-hs-around { @include flex-hs-around(); }
.flex-hs-end { @include flex-hs-end(); }
.flex-v-start { @include flex-v-start(); }
.flex-v-end { @include flex-v-end(); }
.flex-v-center {@include flex-v-center(); }
.flex-v-baseline { @include flex-v-baseline(); }
.flex-v-stretch { @include flex-v-stretch(); }
.flex-vs-start { @include flex-vs-start(); }
.flex-vs-center { @include flex-vs-center(); }
.flex-vs-baseline { @include flex-vs-baseline(); }
.flex-vs-stretch { @include flex-vs-stretch(); }
.flex-vs-end { @include flex-vs-end(); }
.flex-vm-start { @include flex-vm-start(); }
.flex-vm-end { @include flex-vm-end(); }
.flex-vm-center { @include flex-vm-center(); }
.flex-vm-between { @include flex-vm-between(); }
.flex-vm-around { @include flex-vm-around(); }
.flex-vm-stretch { @include flex-vm-stretch(); }

.flex-center {
@include flex();
@include flex-h-center();
@include flex-v-center();
}
150 changes: 150 additions & 0 deletions app/assets/stylesheets/helpers/_helpers.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,150 @@
//--------------------------------------------------
// helpers
//--------------------------------------------------
// - fouc
// - font
// - lists
// - display
// - dimensions
// - positioning
// - margin & padding
// - backgrounds
// - user interaction
// - shapes
//
//--------------------------------------------------
// fouc (flash of unstyled content)
//--------------------------------------------------
[v-cloak] { display: none; }

//--------------------------------------------------
// font
//--------------------------------------------------
.red { color: red; }
.bold { font-weight: bold; }

//--------------------------------------------------
// lists
//--------------------------------------------------
.ul--inline li { display: inline-block; }

//--------------------------------------------------
// display
//--------------------------------------------------
.block { display: block; }
.inline-block { display: inline-block; }

.full-height {
height: 100vh;
}

//--------------------------------------------------
// positioning
//--------------------------------------------------
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.relative { position: relative; }

.bottom-right {
position: absolute;
bottom: 0;
right: 0;
}

.center-right {
position: absolute;
top: 50%;
right: 0;

transform: translate(0, -50%);
}

.top-right {
position: absolute;
top: 0;
right: 0;
}

//--------------------------------------------------
// margin & padding
//--------------------------------------------------
.no-margin--top { margin-top: 0; }
.no-margin { margin: 0; }
.margin-center { margin: 0 auto; }

.margin-space--right { margin-right: rem-calc(14); }
.margin-space--left { margin-left: rem-calc(14); }

.no-padding { padding: 0; }

//--------------------------------------------------
// backgrounds
//--------------------------------------------------
$image-placeholder: black;

.bg-img {
background-color: $image-placeholder;
background-size: cover;
background-position: center;
}

.bg-image-overlay {
position: relative;
z-index: 1;

&:before {
background-color: rgba(black, 0.4);
content: '';
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: -1;
}
}

//--------------------------------------------------
// screen overlay
//--------------------------------------------------
.screen-overlay {
background: rgba(black, 0.5);

position: fixed;
top: 0;
bottom: 0;
left: 0;
right: 0;
z-index: 300;
}

//--------------------------------------------------
// user interaction
//--------------------------------------------------
.no-select {
-webkit-touch-callout: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}

.hover--pointer {
&:hover {
cursor: pointer;
}
}

.screen-reader {
border: 0;
clip: rect(0 0 0 0);
height: rem-calc(1);
margin: rem-calc(-1);
overflow: hidden;
padding: 0;
position: absolute;
white-space: nowrap;
width: rem-calc(1);
}
Loading

0 comments on commit 0b16dfc

Please sign in to comment.