This repository has been archived by the owner on Mar 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #177 from SumOfUs/development
v0.4
- Loading branch information
Showing
53 changed files
with
761 additions
and
232 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
(function(){ | ||
var configureDropZone = function() { | ||
Dropzone.options.dropzone = { | ||
maxFilesize: 2, | ||
paramName: "image[content]", | ||
addRemoveLinks: false, | ||
previewsContainer: null, | ||
createImageThumbnails: true, | ||
|
||
init: function() { | ||
this.on("success", function(resp, html) { | ||
$('.campaign-images').append(html); | ||
$('.campaign-images .notice').hide(); | ||
}); | ||
|
||
this.on("addedfiled", function(file) { | ||
this.removeFile(file); | ||
}); | ||
} | ||
}; | ||
}; | ||
|
||
var bindHandlers = function() { | ||
$('.campaign-images').on('ajax:success', "a[data-method=delete]", function(){ | ||
$(this).parents('.image-thumb').fadeOut(); | ||
}); | ||
}; | ||
|
||
var checkAnyImages = function() { | ||
if( $('.campaign-images img').length == 0) { | ||
$('.campaign-images').hide(); | ||
} | ||
}; | ||
|
||
var initialize = function() { | ||
configureDropZone(); | ||
bindHandlers(); | ||
}; | ||
|
||
$.subscribe("page:edit:loaded", initialize); | ||
}()); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,6 +34,9 @@ | |
} | ||
} | ||
} | ||
select { | ||
height: 58px; | ||
} | ||
|
||
label.checkbox-label { | ||
margin: 10px 0 4px; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,46 @@ | ||
.header-logo { | ||
color: white; | ||
padding: 20px 15px 15px; | ||
|
||
position: fixed; | ||
width: 100%; | ||
z-index: 100; | ||
@include clearfix(); | ||
top: 0; | ||
box-sizing: border-box; | ||
|
||
@media(max-width: $mobile-width) { | ||
position: absolute; | ||
} | ||
|
||
// when the element is not --at-top, the gradient is moved up and out of the way | ||
// and a background color is applied. | ||
background-color: rgba(0,0,0,0.35); | ||
background-position-y: -80px; | ||
background-repeat: no-repeat; | ||
@include transition(background-color 0.40s ease-in-out, background-position 0.20s ease-out); | ||
@include background-image(linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0))); | ||
&--dark { | ||
color: white; | ||
|
||
// when the element is not --at-top, the gradient is moved up and out of the way | ||
// and a background color is applied. | ||
background-color: rgba(0,0,0,0.35); | ||
background-position-y: -80px; | ||
background-repeat: no-repeat; | ||
@include transition(background-color 0.40s ease-in-out, background-position 0.20s ease-out); | ||
@include background-image(linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0))); | ||
|
||
&.checks-top--at-top { | ||
background-color: rgba(0,0,0,0); | ||
background-position-y: 0; | ||
} | ||
} | ||
|
||
&--light { | ||
background: none; | ||
} | ||
|
||
&__logo { | ||
float: left; | ||
} | ||
|
||
&__tagline { | ||
float: left; | ||
} | ||
|
||
&.checks-top--at-top { | ||
background-color: rgba(0,0,0,0); | ||
background-position-y: 0; | ||
@media(max-width: $mobile-width) { | ||
display: none; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,21 @@ | ||
.sumofus-logo { | ||
&--negative { | ||
background-image: url(asset-path('sumofus/logo-white.png')); | ||
} | ||
&--positive { | ||
background-image: url(asset-path('sumofus/logo-positive.png')); | ||
} | ||
&--positive, &--negative { | ||
background-size: 100%; | ||
background-repeat: no-repeat; | ||
width: 150px; | ||
height: 30px; | ||
} | ||
|
||
&--tagline { | ||
font-size: 20px; | ||
line-height: 32px; | ||
margin-left: 15px; | ||
|
||
@media(max-width: $mobile-width) { | ||
display: none; | ||
} | ||
} | ||
} | ||
|
Oops, something went wrong.