Skip to content

Commit 0219fcc

Browse files
author
Benjamin S
committed
Merge branch 'version-two'
2 parents c364414 + dc58946 commit 0219fcc

40 files changed

+1686
-1967
lines changed

README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
[![Code Climate](https://codeclimate.com/github/ConciseCSS/concise.css-gem.png)](https://codeclimate.com/github/ConciseCSS/concise.css-gem)
55
[![Gem Version](https://badge.fury.io/rb/concisecss.svg)](http://badge.fury.io/rb/concisecss)
66

7-
Concise is a lightweight, front-end framework that provides a number of great features without the bloat. Concise is built based on Object-Oriented CSS principles and keeps semantics in mind to provide a small learning curve, but a high level of customization.
7+
Concise is a lightweight, front-end framework that provides a number of great features without the bloat. Concise is built based on Object-Oriented CSS principles and keeps semantics in mind to provide a small learning curve, and a high level of customization.
88

99
## Installation Instructions
1010

1111
Add this line to your application's Gemfile:
1212

13-
gem 'concisecss', '~> 0.0.5'
13+
gem 'concisecss', '~> 2.0.0'
1414

1515
And then execute:
1616

@@ -30,9 +30,9 @@ Not every single project you are working needs all of the Concise JavaScript fi
3030
//= require concisecss/dropdown
3131
//= require concisecss/close
3232
```
33-
To add the CSS just require
33+
To add the CSS just require
3434
```css
35-
*= require concise
35+
*= require concise
3636
```
3737
If you intend to extend or override Concise, you might want to create an override file. For example: `app/assets/stylesheets/custom.scss` and then import concise
3838
```css
@@ -50,9 +50,13 @@ Check out our documentation here: [http://concisecss.com/documentation](http://c
5050
You can keep up-to-date with the changes that we have made via our [releases page](https://github.com/ConciseCSS/concise.css-gem/releases).
5151

5252
## Versioning
53-
53+
5454
Concise is currently maintained under the [Semantic Versioning guidelines](http://semver.org/).
5555

56+
## Acknowledgments
57+
58+
There are acknowledgements spread throughout the source code if you look around, and you can also view a list of credits [here](http://concisecss.com/credits/).
59+
5660
## Elsewhere
5761

5862
[![Like Concise on Facebook](http://i.imgur.com/4dy5UUK.png)](https://facebook.com/ConciseCSS)

app/assets/javascripts/concisecss/dropdown.js

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,34 @@
99
this.dd = el;
1010
this.initEvents();
1111
}
12-
12+
1313
DropDown.prototype = {
14-
initEvents : function() {
14+
initEvents : function() {
1515
// Toggle .dropdown-active on click
1616
this.dd.on('click', function(event){
1717
$(this).toggleClass('dropdown-active');
1818
event.stopPropagation();
1919
});
20+
21+
// Toggle .dropdown-active on hover
22+
$(".dropdown-hover").mouseenter(function(event) {
23+
$(this).addClass("dropdown-active");
24+
event.stopPropagation();
25+
});
2026
}
21-
}
22-
27+
};
28+
2329
$(function(){
2430
var dropdown = $('.dropdown');
25-
31+
2632
new DropDown(dropdown);
27-
33+
2834
$(document).click(function() {
29-
// Remove class from all dropdowns
3035
dropdown.removeClass('dropdown-active');
3136
});
37+
38+
$(".dropdown-menu").mouseleave(function() {
39+
dropdown.removeClass("dropdown-active");
40+
});
3241
});
33-
}(jQuery));
42+
}(jQuery));

app/assets/javascripts/concisecss/naver.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
/*
2-
* Naver v3.0.8 - 2014-05-06
3-
* A jQuery plugin for responsive navigation. Part of the Formstone Library.
4-
* http://formstone.it/naver/
5-
*
6-
* Copyright 2014 Ben Plum; MIT Licensed
7-
*/
1+
/*
2+
* Naver v3.0.8 - 2014-05-06
3+
* A jQuery plugin for responsive navigation. Part of the Formstone Library.
4+
* http://formstone.it/naver/
5+
*
6+
* Copyright 2014 Ben Plum; MIT Licensed
7+
*/
88

99
;(function ($, window) {
1010
"use strict";
@@ -355,4 +355,4 @@
355355
pub.defaults.apply(this, Array.prototype.slice.call(arguments, 1));
356356
}
357357
};
358-
})(jQuery, window);
358+
})(jQuery, window);
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
(function($){
1+
(function($){
22
/**
33
* Determine if responsive navigation text needs to be added.
44
*
55
* @method responsiveNav
66
* @return {Object} naver A naver plugin instantiation
77
*/
8-
$.fn.responsiveNav = function() {
8+
$.fn.responsiveNav = function() {
99
// Loop through each instance of responsive navigation
1010
this.each(function(index) {
1111
var labelState = $(this).hasClass( "nav-responsive-text" );
12-
12+
1313
return $(this).naver({
1414
maxWidth: "768px",
1515
label: labelState
@@ -18,6 +18,6 @@
1818
};
1919
}(jQuery));
2020

21-
jQuery(document).ready(function() {
21+
jQuery(document).ready(function() {
2222
jQuery(".nav-responsive, .nav-responsive-left, .nav-responsive-center").responsiveNav();
23-
});
23+
});
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
(function($){
1+
(function($){
22
/**
33
* Calculate object width
44
*
55
*/
6-
$.fn.calculateWidth = function() {
6+
$.fn.calculateWidth = function() {
77
return $(this).width();
88
};
99

@@ -14,19 +14,19 @@
1414
* @note Only necessary for non-responsive websites.
1515
*/
1616
$.fn.nonResponsive = function() {
17-
17+
1818
// Loop through each instance of the `.non-responsive` class
1919
this.each(function(index) {
2020
if ($(this).hasClass("non-responsive")) {
2121
// Get container width
2222
var containerWidth = $(".container").width(),
2323
i = 1,
2424
max = 24;
25-
25+
2626
// Set pixel-based alternatives for grid styles
2727
// But first we need to know if our row has class `gutters`
2828
if($(this).hasClass("gutters")) {
29-
for (; i <= max; i++ ) {
29+
for (; i <= max; i++ ) {
3030
// Column width for row with gutters
3131
var columnWidth = ($('.column-'+i).calculateWidth()),
3232
gutterWidth = columnWidth * 0.02;
@@ -37,7 +37,7 @@
3737
for (; i <= max ; i++ ) {
3838
// Column width for normal row
3939
var columnWidth = ($('.column-'+i).calculateWidth() - 1);
40-
40+
4141
$('.column-'+i).css("width", columnWidth + "px");
4242
}
4343
}
@@ -46,6 +46,6 @@
4646
};
4747
}(jQuery));
4848

49-
jQuery(document).ready(function() {
49+
jQuery(document).ready(function() {
5050
jQuery("body, .row").nonResponsive();
51-
});
51+
});

0 commit comments

Comments
 (0)