Skip to content

Commit

Permalink
Merge branch 'dev' into 321_variable_application_fields_form
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterCarl committed Jan 19, 2017
2 parents 72c804e + 9cd8110 commit b968bb4
Show file tree
Hide file tree
Showing 30 changed files with 1,008 additions and 155 deletions.
6 changes: 6 additions & 0 deletions Gemfile
Expand Up @@ -40,7 +40,13 @@ gem 'devise_openid_authenticatable'
# Use Bootstrap (app/assets/stylesheets) for app styling
# Also provides some nifty helpers:
# https://github.com/seyhunak/twitter-bootstrap-rails#using-helpers
gem "therubyracer"
#gem 'less-rails-bootstrap'
# less-rails requires an older sprockets
gem "sprockets", '3.6.3'
gem "less-rails"
gem 'twitter-bootstrap-rails'
gem 'ref'
# Boostrap-syle view for devise
gem 'devise-bootstrap-views'
# Integrates Bootstrap Tooltip library with Rails asset pipeline
Expand Down
13 changes: 11 additions & 2 deletions Gemfile.lock
Expand Up @@ -80,7 +80,7 @@ GEM
combine_pdf (0.2.32)
ruby-rc4 (>= 0.1.5)
commonjs (0.2.7)
concurrent-ruby (1.0.2)
concurrent-ruby (1.0.4)
coveralls (0.8.16)
json (>= 1.8, < 3)
simplecov (~> 0.12.0)
Expand Down Expand Up @@ -136,6 +136,7 @@ GEM
less (~> 2.6.0)
sprockets (> 2, < 4)
tilt
libv8 (3.16.14.17)
loofah (2.0.3)
nokogiri (>= 1.5.9)
mail (2.6.4)
Expand Down Expand Up @@ -217,6 +218,7 @@ GEM
rainbow (2.1.0)
rake (11.3.0)
redcarpet (3.4.0)
ref (2.0.0)
responders (2.3.0)
railties (>= 4.2.0, < 5.1)
rspec-core (3.5.4)
Expand Down Expand Up @@ -254,7 +256,7 @@ GEM
slop (3.6.0)
spring (2.0.0)
activesupport (>= 4.2)
sprockets (3.7.0)
sprockets (3.6.3)
concurrent-ruby (~> 1.0)
rack (> 1, < 3)
sprockets-rails (3.2.0)
Expand All @@ -264,6 +266,9 @@ GEM
sqlite3 (1.3.12)
term-ansicolor (1.3.2)
tins (~> 1.0)
therubyracer (0.12.2)
libv8 (~> 3.16.14.0)
ref
thor (0.19.4)
thread_safe (0.3.5)
tilt (2.0.5)
Expand Down Expand Up @@ -321,6 +326,7 @@ DEPENDENCIES
jquery-rails
jquery-turbolinks
jquery-ui-rails
less-rails
parser (~> 2.2.2.5)
pdf-inspector
pg
Expand All @@ -333,12 +339,15 @@ DEPENDENCIES
rails (= 4.2.7.1)
rails_12factor
redcarpet
ref
rspec-rails (~> 3.2)
rubocop (~> 0.29.1)
rubyzip
simplecov
spring
sprockets (= 3.6.3)
sqlite3
therubyracer
turbolinks
twitter-bootstrap-rails
web-console (~> 2.0)
Expand Down
Binary file added app/assets/images/hpi-workshop-200.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion app/assets/javascripts/bootstrap.js
Expand Up @@ -2,7 +2,7 @@ function enableBootstrapComponents() {
$("a[rel~=popover], .has-popover").popover();
$("a[rel~=tooltip], .has-tooltip").tooltip();
}

//
// make sure we activate on first load (in particular tests don't work well
// with just turbolinks:load) and also on any subsequent page change via
// turbolinks
Expand Down
23 changes: 4 additions & 19 deletions app/assets/stylesheets/application.css
Expand Up @@ -13,17 +13,15 @@
*= require bootstrap-datepicker
*= require_tree .
*= require_self
*= require bootstrap_and_overrides
*/

label.required:after {
content:" *";
color: red
}

body {
/* font styles as found in bootstrap v4 */
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body, footer, main, .front-section {
width: 100%;
}
Expand All @@ -32,7 +30,7 @@ footer.front-section {
border: none;
}
footer {
margin-top: 60px;
margin-top: 120px;
}
.m-l-1 { margin-left: 15px; }
.m-r-1 { margin-right: 15px; }
Expand All @@ -50,17 +48,4 @@ footer {
margin-bottom: 15px;
}
}
.front-section {
border-bottom: 1px solid #eee;
padding: 60px 0;
}
.front-section:first-child {
padding-top: 30px;
}
.front-section:last-of-type {
border: none;
}
.front-section:nth-child(even), footer {
background-color: #333;
color: #eee;
}

7 changes: 7 additions & 0 deletions app/assets/stylesheets/bootstrap_and_overrides.css.less
@@ -0,0 +1,7 @@
@import 'custom_bootstrap/custom_bootstrap.less';

.no-padding {
padding-left: 0 !important;
padding-right: 0 !important;
}

224 changes: 224 additions & 0 deletions app/assets/stylesheets/custom_bootstrap/custom_bootstrap.less
@@ -0,0 +1,224 @@
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
// !!! AUTOMATICALLY GENERATED FILE. DO NOT MODIFY !!!
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
// Set correct font paths
@glyphiconsEotPath: font-url("glyphicons-halflings-regular.eot");
@glyphiconsEotPath_iefix: font-url("glyphicons-halflings-regular.eot?#iefix");
@glyphiconsWoffPath: font-url("glyphicons-halflings-regular.woff");
@glyphiconsTtfPath: font-url("glyphicons-halflings-regular.ttf");
@glyphiconsSvgPath: font-url("glyphicons-halflings-regular.svg#glyphicons_halflingsregular");


// Set the Font Awesome (Font Awesome is default. You can disable by commenting below lines)
@fontAwesomeEotPath: font-url("fontawesome-webfont.eot");
@fontAwesomeEotPath_iefix: font-url("fontawesome-webfont.eot?#iefix");
@fontAwesomeWoffPath: font-url("fontawesome-webfont.woff");
@fontAwesomeTtfPath: font-url("fontawesome-webfont.ttf");
@fontAwesomeSvgPath: font-url("fontawesome-webfont.svg#fontawesomeregular");
/*!
* Bootstrap v3.3.5 (http://getbootstrap.com)
* Copyright 2011-2015 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/

// Core variables and mixins
@import "twitter/bootstrap/variables.less";
@import "custom_bootstrap/variables.less"; // Modify this for custom colors, font-sizes, etc
@import "twitter/bootstrap/mixins.less";
@import "custom_bootstrap/mixins.less"; // Modify this for custom mixins

// Reset and dependencies
@import "twitter/bootstrap/normalize.less";
@import "twitter/bootstrap/print.less";
@import "twitter/bootstrap/glyphicons.less";

// Core CSS
@import "twitter/bootstrap/scaffolding.less";
@import "twitter/bootstrap/type.less";
@import "twitter/bootstrap/code.less";
@import "twitter/bootstrap/grid.less";
@import "twitter/bootstrap/tables.less";
@import "twitter/bootstrap/forms.less";
@import "twitter/bootstrap/buttons.less";

// Components
@import "twitter/bootstrap/component-animations.less";
@import "twitter/bootstrap/dropdowns.less";
@import "twitter/bootstrap/button-groups.less";
@import "twitter/bootstrap/input-groups.less";
@import "twitter/bootstrap/navs.less";
@import "twitter/bootstrap/navbar.less";
@import "twitter/bootstrap/breadcrumbs.less";
@import "twitter/bootstrap/pagination.less";
@import "twitter/bootstrap/pager.less";
@import "twitter/bootstrap/labels.less";
@import "twitter/bootstrap/badges.less";
@import "twitter/bootstrap/jumbotron.less";
@import "twitter/bootstrap/thumbnails.less";
@import "twitter/bootstrap/alerts.less";
@import "twitter/bootstrap/progress-bars.less";
@import "twitter/bootstrap/media.less";
@import "twitter/bootstrap/list-group.less";
@import "twitter/bootstrap/panels.less";
@import "twitter/bootstrap/responsive-embed.less";
@import "twitter/bootstrap/wells.less";
@import "twitter/bootstrap/close.less";

// Components w/ JavaScript
@import "twitter/bootstrap/modals.less";
@import "twitter/bootstrap/tooltip.less";
@import "twitter/bootstrap/popovers.less";
@import "twitter/bootstrap/carousel.less";

// Utility classes
@import "twitter/bootstrap/utilities.less";
@import "twitter/bootstrap/responsive-utilities.less";

body {
padding-top: 120px;
}

a:hover h1, a:hover h2, a:hover h3, a:hover h4 {
color: inherit;
}

// WSP Mixins
.wsp-border(@thickness) {
border-top: @thickness #000 solid;
border-bottom: @thickness #000 solid;
margin-top: 20px;

}

.navbar {
-webkit-box-shadow: 0 8px 6px -6px #999;
-moz-box-shadow: 0 8px 6px -6px #999;
box-shadow: 0 8px 6px -6px #999;

a {
font-family: @font-family-serif;
transition: all 0.5;

&:hover {
transition: all 0.5s;
}
}

.navbar-brand {
img {
width: 120px;
height: auto;
margin-top: -35px;
}
}
}

#wsp-login {
min-height: 80vh;
}
h4 {
font-family: @font-family-sans-serif;
font-weight: 100;
font-size: 18px;
letter-spacing: 2px;
text-transform: uppercase;
line-height: 1.3;
color: @gray;
}

h1 {
font-weight: 700;
font-size: 60px;
letter-spacing: 1px;
line-height: 1.3;
}

h2 {
font-weight: 700;
font-size: 60px;
letter-spacing: 1px;
line-height: 0.8;
padding-bottom: 30px;
}


.subheadline--wrapper {
.wsp-border(2px);
padding-top: 15px;
}


.spacer-20 {
width: 100%;
height: 20px;
min-height: 20px;
}
// Fontpage

#wsp-welcome {
padding-top: 0px !important;

ul {
list-style: none;
float: left;
padding-left: 0;
li {
display: inline;
margin-right: 15px;
}
}
}

.wsp-home {
background-color: lighten(#F7B21C, 30%);
}

.front-section {

border-bottom: 1px solid #eee;

h1 {
font-size: 90px;
line-height: 0.8;
}
.container {
padding-top: 120px;
padding-bottom: 120px;
}

&:first-child {
padding-top: 30px;
}

&:last-of-type {
border: none;
}

&:nth-of-type(even), footer {
background-color: @body-bg;
}

&:first-of-type {
min-height: 70vh;

h1 {
line-height: 0.9 !important;
font-size: 75px;
}
}
}

input.form-control {
font-family: @font-family-serif;
}


.event-date {
.event-month {
text-transform: uppercase;
}

.event-day {
font-weight: 700;
}
}
1 change: 1 addition & 0 deletions app/assets/stylesheets/custom_bootstrap/mixins.less
@@ -0,0 +1 @@
// Use this file to override Twitter Bootstrap mixins or define own mixins.

0 comments on commit b968bb4

Please sign in to comment.