Skip to content

Commit

Permalink
merge changes made in Geoloqi-Website
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickarlt committed Dec 8, 2011
1 parent 9d37f5a commit 4275705
Show file tree
Hide file tree
Showing 13 changed files with 2,527 additions and 729 deletions.
1,223 changes: 978 additions & 245 deletions bootstrap-1.2.2.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bootstrap-1.2.2.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bootstrap-latest.min.css

Large diffs are not rendered by default.

9 changes: 7 additions & 2 deletions js/core.js
@@ -1,31 +1,36 @@
//Polyfill Placeholders in Non-Supported Browsers
/*
Modernizr.load({
test: Modernizr.input.placeholder,
nope: 'polyfill/jquery.placeholder.min.js',
complete : function () {
$('input[placeholder], textarea[placeholder]').placeholder();
}
});

*/
//Close Function for Alert Messages
$('.alert-message .close').live("click",function(){
$(this).parent().slideUp("fast", function(){ $(this).remove() });
return false;
});

//Setup Tooltips
/*
$("a[rel='twipsy']").twipsy({
live: true,
animate:true,
offset: 3
});
*/

//Setup Popover
/*
$("a[rel='popup']").popover({
live: true,
html: true,
offset: 3,
delayOut: 500,
animate:true,
placement: "above"
});
});
*/
86 changes: 46 additions & 40 deletions js/libs/bootstrap/bootstrap-map-sizer.js
@@ -1,48 +1,54 @@
(function( $ ){

var defaults = {
width: '100%',
offBottom: 0,
offWidth: 0
}
(function ($) {

var settings = {}

var methods = {
init: function(options){
settings = $.extend({}, defaults, options);
var defaults = {
width: '100%',
offBottom: 0,
offWidth: 0,
callback: null
};

var $this = $(this),
self = $this;
var settings = {};

var methods = {
init: function(options) {
settings = $.extend({}, defaults, options);

$(window).bind('resize.mapSizer', function(){
self.mapSizer("resize");
});

$this.mapSizer('resize');
},

resize: function() {
return $(this).each(function(){
$(this).height(function(){
return ($('html').height() - settings.offBottom);
}).width(function(){
return (settings.width - settings.offWidth)
});
var $this = $(this),
self = $this;

$(window).bind('resize scroll', function() {
self.mapSizer("resize");
});

$this.mapSizer('resize');
},

resize: function(options) {
options = (typeof options == "undefined") ? {} : options;
settings = $.extend({}, settings, options);
return $(this).each(function() {
$(this).height(function() {
return ($(window).height() - $(this).offset().top - settings.offBottom);
}).width(function(){
return (settings.width - settings.offWidth);
}).each(function(){
if(settings.callback){
settings.callback.apply(this);
}
});
}
});
}
};

$.fn.mapSizer = function( method ) {
// Method calling logic
if ( methods[method] ) {
return methods[ method ].apply( this, Array.prototype.slice.call( arguments, 1 ));
} else if ( typeof method === 'object' || ! method ) {
return methods.init.apply( this, arguments );
} else {
$.error( 'Method ' + method + ' does not exist on jQuery.tooltip' );
}
$.fn.mapSizer = function( method ) {
if (methods[method]) {
return methods[method].apply( this, Array.prototype.slice.call( arguments, 1 ));
} else if (typeof method === 'object' || ! method) {
return methods.init.apply(this, arguments);
} else {
$.error( 'Method ' + method + ' does not exist on jQuery.tooltip' );
}

};
};

})( jQuery );
})(jQuery);
98 changes: 77 additions & 21 deletions lib/_forms.scss
Expand Up @@ -7,7 +7,12 @@
// -----------

form {
margin-bottom: $baseline;

// Parent element that clears floats and wraps labels and fields together
.clearfix {
margin-bottom: $baseline;
}

}

// Groups of fields with labels on top (legends)
Expand All @@ -25,11 +30,6 @@ fieldset {
}
}

// Parent element that clears floats and wraps labels and fields together
.clearfix {
margin-bottom: $baseline;
}

// Set font for forms
label,
input,
Expand All @@ -39,7 +39,7 @@ textarea {
}

// Float labels left
label {
label, .input-label {
padding-top: 4px;
font-size: 13px;
line-height: 18px;
Expand All @@ -53,7 +53,10 @@ label {
// Shift over the inside div to align all label's relevant content
div.input {
margin-left: 150px;
@include clearfix()
@include clearfix();
p {
margin-top:5px;
}
}

// Checkboxs and radio buttons
Expand All @@ -69,16 +72,20 @@ input[type=search],
input[type=email],
input[type=url],
input[type=tel],
input[type=date],
input[type=time],
input[type=datetime],
input[type=num],
textarea,
select,
.uneditable-input {
display: inline-block;
width: 210px;
padding: 4px;
padding: 5px 4px 4px;
font-size: 12px;
line-height: $baseline;
min-height: $baseline;
color: $gray;
color: $grayDark;
border: 1px solid #ccc;
@include border-radius(3px);
}
Expand Down Expand Up @@ -116,6 +123,10 @@ input[type=search],
input[type=email],
input[type=url],
input[type=tel],
input[type=date],
input[type=time],
input[type=datetime],
input[type=num],
select, textarea {
$transition: border linear .2s, box-shadow linear .2s;
@include transition($transition);
Expand All @@ -128,10 +139,14 @@ input[type=search]:focus,
input[type=email]:focus,
input[type=url]:focus,
input[type=tel]:focus,
input[type=date]:focus,
input[type=time]:focus,
input[type=datetime]:focus,
input[type=num]:focus,
textarea:focus {
outline: none;
border-color: $focusColor;
$shadow: inset 0 1px 3px rgba(0,0,0,.1), 0 0 4px opacify($focusColor, .25);
$shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 1px 0px $green;
@include box-shadow($shadow);
}

Expand All @@ -152,6 +167,10 @@ form div.error {
input[type=email],
input[type=url],
input[type=tel],
input[type=date],
input[type=time],
input[type=datetime],
input[type=num],
textarea {
border-color: $errorTextColor;
@include box-shadow(0 0 3px rgba(171,41,32,.25));
Expand All @@ -171,22 +190,22 @@ form div.error {
}

// Form element sizes
.input-mini, input.mini, textarea.mini, select.mini {
.input-mini {
width: 60px;
}
.input-small, input.small, textarea.small, select.small {
.input-small {
width: 90px;
}
.input-medium, input.medium, textarea.medium, select.medium {
.input-medium {
width: 150px;
}
.input-large, input.large, textarea.large, select.large {
.input-large {
width: 210px;
}
.input-xlarge, input.xlarge, textarea.xlarge, select.xlarge {
.input-xlarge {
width: 270px;
}
.input-xxlarge, input.xxlarge, textarea.xxlarge, select.xxlarge {
.input-xxlarge {
width: 530px;
}
textarea.xxlarge {
Expand All @@ -199,8 +218,12 @@ input[type=search],
input[type=email],
input[type=url],
input[type=tel],
input[type=date],
input[type=time],
input[type=datetime],
input[type=num],
select,
textarea {
.input textarea {
&.span1,
&.span2,
&.span3,
Expand All @@ -223,8 +246,33 @@ textarea {
float: none;
margin-left: 0;
}
&.span1 { @include columns(1) }
&.span2 { @include columns(2) }
&.span3 { @include columns(3) }
&.span4 { @include columns(4) }
&.span5 { @include columns(5) }
&.span6 { @include columns(6) }
&.span7 { @include columns(7) }
&.span8 { @include columns(8) }
&.span9 { @include columns(9) }
&.span10 { @include columns(10) }
&.span11 { @include columns(11) }
&.span12 { @include columns(12) }
&.span13 { @include columns(13) }
&.span14 { @include columns(14) }
&.span15 { @include columns(15) }
&.span16 { @include columns(16) }
&.span-full { width:100%; }
}

textarea {
&.height2{ height: $baseline * 2; }
&.height3{ height: $baseline * 3; }
&.height4{ height: $baseline * 4; }
&.height6{ height: $baseline * 6; }
&.height7{ height: $baseline * 7; }
&.height8{ height: $baseline * 8; }
}

// Turn off focus for disabled (read-only) form elements
input[readonly]:focus,
Expand All @@ -246,6 +294,11 @@ input.disabled {
line-height: 35px;
}
}
.submit {
@include clearfix;
margin:0;
padding:0;
}
}

// Help Text
Expand Down Expand Up @@ -374,7 +427,6 @@ input.disabled {

// Stacked forms
.form-stacked {
padding-left: 20px;
fieldset {
padding-top: $baseline / 2;
}
Expand Down Expand Up @@ -413,7 +465,11 @@ input.disabled {
margin-left: -10px;
}
.actions {
margin-left: -20px;
padding-left: 20px;
margin-left: -16px;
padding-left: 16px;
.clearfix {
margin:0;
padding:0;
}
}
}

0 comments on commit 4275705

Please sign in to comment.