Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Bootstrap 3 support #158

Open
wants to merge 35 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
ef43fad
Fixing merge issues
aeblin Nov 23, 2013
129db5e
Fixing merge issues AGAIN.
aeblin Nov 23, 2013
8ccbe01
Deleted .env.example
aeblin Nov 23, 2013
8b68d6a
Changed Flash messages to use Bootstrap 3 default styling, naming
aeblin Nov 27, 2013
0511fa0
Few more changes/removals to get flash messages all to Bootstrap 3
aeblin Nov 27, 2013
1cad6bf
Changes to admin forms, bringing them inline with Bootstrap 3 styling…
aeblin Nov 30, 2013
52cace4
Fixes to Admin forms continue...
aeblin Dec 2, 2013
4528cce
Adding form-control class to primitives.css.scss as an extend on inpu…
aeblin Dec 2, 2013
daf7c9c
Minor changes to header button, removal of unnecessary classes.
aeblin Dec 3, 2013
0cf34a7
Changes to campaign page to add horizontal collapses and responsive v…
aeblin Dec 4, 2013
a8b27bd
Fixes to multiple campaign homepage, adjustments to padding on alerts.
aeblin Dec 4, 2013
53c71c1
Added image scaling for picture only campaigns, responsive adjustment…
aeblin Dec 5, 2013
29bea60
Merge remote-tracking branch 'upstream/master' into upbranch
aeblin Dec 5, 2013
db6f0f9
Nested columns for stats in backers section of campaign page, makes f…
aeblin Dec 6, 2013
018b8f3
Adding columns to checkout pages, moving from span for minimum to inp…
aeblin Dec 6, 2013
57be3f8
Making checkout process mobile friendly
aeblin Dec 6, 2013
07798fd
Small fixes to checkout, added missing tooltip for Security Code
aeblin Dec 6, 2013
138d307
Making payment confirmation responsive.
aeblin Dec 6, 2013
8f54371
Readded .env.example
aeblin Dec 7, 2013
f6a7d82
Changes to campaign page to fix display issues with rewards sidebar w…
aeblin Dec 17, 2013
346b27e
Added meta tags for Mobile Safari scaling and IE Compatibility render…
aeblin Dec 18, 2013
16d6702
Improvements to checkout flow, making edit link a button, making thin…
aeblin Dec 19, 2013
767868b
Upgraded to Bootstrap 3.
aeblin Nov 23, 2013
97f936d
Merge branch 'master' of https://github.com/Crowdtilt/Crowdhoster int…
aeblin Jan 7, 2014
032c8ac
Added max-width:100% height:auto responsive fix for reward images
aeblin Jan 7, 2014
732756c
Bringing responsive build up to speed with error refactor and reward …
aeblin Jan 15, 2014
7b89ee6
Merges features from d101a46 while maintaining changes for Bootstrap …
aeblin Jan 18, 2014
d3f6f9c
Merge branch 'master' of https://github.com/Crowdtilt/Crowdhoster int…
aeblin Jan 19, 2014
8268355
Merges backup into master, brings master up to speed with all changes…
aeblin Jan 19, 2014
8b75f27
Removes merge conflict missed in previous commit
aeblin Jan 19, 2014
e601a46
Closed class on input-group-addon for rewards in admin.js.coffee, was…
aeblin Jan 26, 2014
f041995
Another unclosed tag on Checkout_payment
aeblin Jan 26, 2014
6d60c8c
Cleared merge issue on admin.css.scss - looks like it just had to do …
aeblin Jan 27, 2014
44cd003
Rebundling gems after changes.
aeblin Jan 27, 2014
ef4d30c
Cleans up leftover merge error on admin.css.scss
aeblin Jan 27, 2014
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ MAILGUN_DOMAIN=myawesomeapp.mailgun.org
MAILGUN_PASSWORD=smtp_pass
MAILGUN_USERNAME=postmaster@myawesomeapp.mailgun.org
MAILGUN_API_KEY=key-mailgunapikey
SECRET_TOKEN=secrettoken
SECRET_TOKEN=secrettoken
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ gem 'aws-sdk'
gem 'active_model_serializers'

# Front-end
gem 'bootstrap-sass', '2.1'
gem 'bootstrap-sass', '~> 3.0.2.0'
gem 'jquery-rails'
gem 'jquery-ui-rails'

Expand Down
5 changes: 3 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ GEM
nokogiri (>= 1.4.4)
uuidtools (~> 2.1)
bcrypt-ruby (3.0.1)
bootstrap-sass (2.1.0.0)
bootstrap-sass (3.0.2.1)
sass (~> 3.2)
builder (3.0.4)
capybara (2.1.0)
mime-types (>= 1.16)
Expand Down Expand Up @@ -241,7 +242,7 @@ DEPENDENCIES
active_model_serializers
asset_sync
aws-sdk
bootstrap-sass (= 2.1)
bootstrap-sass (~> 3.0.2.0)
capybara
ckeditor
coffee-rails (~> 3.2.1)
Expand Down
2 changes: 1 addition & 1 deletion app/assets/javascripts/admin.js.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ Crowdhoster.admin =

$('#reward-add').on 'click', (e) ->
e.preventDefault()
$('#rewards ul').append('<li><table class="table"><tr><th>Reward</th><th>Number Claimed</th><th>Delete?</th></tr><tr><td><label>Minimum Contribution To Claim</label><div class="currency"><input name="reward[][price]" type="text" /><span style="position:absolute">$</span></div><label>Title</label><input name="reward[][title]" type="text" /><br/><label>Image URL (optional)</label><input placeholder="http://www.host.com/image.jpg" name="reward[][image_url]" type="text" /><br/><label>Description</label><textarea name="reward[][description]"></textarea><br/><label>Estimated Delivery Date (i.e. May 2013)</label><input name="reward[][delivery_date]" type="text" /><br/><label>Number Available (leave blank if unlimited)</label><input name="reward[][number]" type="text" /><label>Collect shipping address for this reward?</label><input name="reward[][collect_shipping_flag]" type="checkbox" checked /><label>Display number of reward claimed after campaign has ended?</label><input name="reward[][include_claimed]" type="checkbox" checked /></td><td>0</td><td><input type="checkbox" name="reward[][delete]" value="delete"/></td></tr></table></li>')
$('#rewards ul').append('<li><table class="table"><tr><th>Reward</th><th>Number Claimed</th><th>Delete?</th></tr><tr><td><label>Minimum Contribution To Claim</label><div class="currency input-group"><span class="input-group-addon">$</span><input name="reward[][price]" type="text" /></div><label>Title</label><input name="reward[][title]" type="text" /><br/><label>Image URL (optional)</label><input placeholder="http://www.host.com/image.jpg" name="reward[][image_url]" type="text" /><br/><label>Description</label><textarea name="reward[][description]"></textarea><br/><label>Estimated Delivery Date (i.e. May 2013)</label><input name="reward[][delivery_date]" type="text" /><br/><label>Number Available (leave blank if unlimited)</label><input name="reward[][number]" type="text" /><label>Collect shipping address for this reward?</label><input name="reward[][collect_shipping_flag]" type="checkbox" checked /><label>Display number of reward claimed after campaign has ended?</label><input name="reward[][include_claimed]" type="checkbox" checked /></td><td>0</td><td><input type="checkbox" name="reward[][delete]" value="delete"/></td></tr></table></li>')

$('.faq.sortable').sortable
stop: (e, ui) ->
Expand Down
46 changes: 20 additions & 26 deletions app/assets/stylesheets/admin.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,18 @@
}

#admin_website, #admin_campaigns {

/* Setting width for forms without additional divs for columns */

.input-group .form-control {
width: 37.5%;
}

.form-control {
width: 40%;
}

/* Done setting form widths */

fieldset {
margin-bottom: 30px;
Expand All @@ -40,7 +52,7 @@

.explanation {
float: right;
width: 400px;
width: 40%;
}

.explanation.inline {
Expand All @@ -54,8 +66,10 @@
}

label {
margin-bottom: 15px;
display: block;
margin-bottom: 8px;
font-size: 18px;
font-weight: 300;
}

label.inline {
Expand All @@ -65,30 +79,12 @@

.additional_info_input {
margin-top: 20px;
textarea {
width: 360px;
}
}

#preset-amount, #min-amount {
margin-left: 20px;
}

.currency {
position: relative;

input {
padding-left: 24px;
width: 192px;
}

span {
position: absolute;
top: 5px;
left: 10px;
}
}

#rewards {
.reference {
margin: 20px 0px;
Expand Down Expand Up @@ -132,18 +128,16 @@
vertical-align: middle;
cursor: move;

textarea {
width: 400px;
max-width: 400px;
margin-bottom: 0px;
}

.faq-delete {
opacity: 0.5;
&:hover {
opacity: 1;
}
}
.form-control {
display: inline-block;
margin-right: 1%;
}
}
}

Expand Down
File renamed without changes.
69 changes: 24 additions & 45 deletions app/assets/stylesheets/campaigns.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,26 @@
width: 100%;
padding: 50px 0;

.main_content {
width: 560px;
float: left;
h3 {
margin: 0px 0px 30px;
color: #4b4b4b;
a {
color: #4b4b4b;
text-decoration: none;
&:hover {
text-decoration: none;
}
h3 {
margin: 0px 0px 30px;
text-align: center;
color: #4b4b4b;
a {
color: #4b4b4b;
text-decoration: none;
&:hover {
text-decoration: none;
}
}
}

.main_content {

.checkout_block {
background-color: #ffffff;
padding: 30px;
margin-bottom: 0px;
margin-bottom: 15px;
label {
font-weight: 300;
}
}

p {
Expand All @@ -40,18 +41,7 @@

.amount_input {
position: relative;
display: inline-block;

input {
padding-left: 24px;
width: 200px;
}

span {
position: absolute;
top: 5px;
left: 10px;
}
}

#reward_select {
Expand All @@ -67,11 +57,12 @@
display: inline;
float: left;
margin-left: 10px;
margin-right: 10px;
font-weight: bold;
}
.reward_description {
margin-left: 120px;
width: 320px;
margin-left: 20%;
width: 70%;
p {
font-size: 14px;
margin: 0px;
Expand Down Expand Up @@ -99,10 +90,7 @@
}
}
.reward_edit {
display: block;
position: absolute;
top: 15px;
right: 25px;
display: inline-block;
}
}
&.active {
Expand All @@ -121,7 +109,7 @@
}

.btn {
margin-top: 20px;
margin-top: 15px;
}

h4 {
Expand All @@ -136,11 +124,7 @@
}

fieldset {
display: inline-block;
}

#fullname, #email, #address_one, #address_two, #additional_info{
width: 480px;
display: block;
}

.billing_address {
Expand Down Expand Up @@ -179,13 +163,11 @@
}

.sidebar {
float: right;
width: 345px;

.crowdtilt-powered {
margin-bottom: 34px;
margin-bottom: 30px;
img {
float: right;
max-width: 317px;
}
}

Expand Down Expand Up @@ -227,10 +209,7 @@
}

.confirmation_sidebar {
float: left;
background: white;
margin-left: 20px;
width: 315px;
p {
font-size: 14px;
}
Expand Down
18 changes: 0 additions & 18 deletions app/assets/stylesheets/flash.css.scss

This file was deleted.

3 changes: 1 addition & 2 deletions app/assets/stylesheets/main.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@

/* Top level layout sections */
@import "navbar";
@import "flash";

/* Non-customizable section styles */
@import "devise";
@import "admin";
@import "campaigns";
@import "users";
@import "users";
23 changes: 12 additions & 11 deletions app/assets/stylesheets/navbar.css.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
#navbar {
.navbar-inner {
.navbar {
min-height: 30px;
}

.navbar-left > li {
float: left;
}

.navbar .nav > li > a {
padding: 5px 15px;
display: inline-block;
Expand All @@ -18,18 +22,15 @@
vertical-align: bottom;
}

.navbar-btn {
margin-top: 4px;
margin-bottom: 0px;
margin-right: 8px;
}

.status {
color: white;
margin-top: 5px;
border-radius: 5px;
margin-top: 7px;
margin-right:8px;
padding: 0px 10px;
}
.status.red {
background-color: red;
}
.status.green {
background-color: green;
}

}
Loading