concisecss 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a1b6ce77eeca46171d09e4044f68946c53ee2f6e
4
- data.tar.gz: fe020d68e3afd45b8ab0e59c42f82d06c03fca34
3
+ metadata.gz: 844d9f983926cf8459ac3f66bed3abcd73493a6b
4
+ data.tar.gz: d37e0525ca8ce09672b127070886618a1fd05e0f
5
5
  SHA512:
6
- metadata.gz: cea1e370c47ad844b411d4f292bf4bc97d29393aedcf0064f4904d7166f462143173b1bb9f9c81debf27c265cc1190329178873522508891d8f325b3e8bd7a6a
7
- data.tar.gz: e413fa799bef80e415e370354a36baab35d692767f8f0aa85de83747d65667b5b0c22734e0b1e95a47d3fa0dac2a2bb558b99c8d8456b00936173aa50c2a6184
6
+ metadata.gz: fc1aeeae747c9d10416cc93b92be83b5ba09c2bcfc6042f0b7bd35c2f48b4699ba89e67ff51b524b3714c2af7d88907fdbef3ea5cb55d894d79815cdf5a18459
7
+ data.tar.gz: cf55f1616652974a8f12fb610749dca0a41ea4f0a65139c3758a5826947c365d68b6d8e1b19813cdb107c43e0f62146d0150cd291478092fa78461f7dc981eb0
data/.travis.yml ADDED
@@ -0,0 +1,8 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.0.0
4
+ - 2.1.1
5
+ - 2.1.2
6
+ branches:
7
+ only:
8
+ - master
data/README.md CHANGED
@@ -9,7 +9,7 @@ Concise is a lightweight, front-end framework that provides a number of great fe
9
9
 
10
10
  Add this line to your application's Gemfile:
11
11
 
12
- gem 'concisecss', '~> 0.0.3'
12
+ gem 'concisecss', '~> 0.0.5'
13
13
 
14
14
  And then execute:
15
15
 
@@ -61,5 +61,3 @@ Concise is currently maintained under the [Semantic Versioning guidelines](http:
61
61
  ## License
62
62
 
63
63
  Code released under the [MIT license](https://github.com/ConciseCSS/concise.css/blob/master/LICENSE). Documentation released under [Creative Commons](http://creativecommons.org/licenses/by-sa/4.0/).
64
-
65
- [![githalytics.com alpha](https://cruel-carlota.pagodabox.com/4f404142bdcae0124dadfb2427083d1f "githalytics.com")](http://githalytics.com/ConciseCSS/concise.css-gem)
data/Rakefile CHANGED
@@ -2,6 +2,7 @@ require "bundler/gem_tasks"
2
2
  require File.expand_path('../lib/concisecss/concisecss_source', __FILE__)
3
3
 
4
4
  desc "Get latest files from concisecss"
5
+ task :default => ['update-concisecss']
5
6
  task "update-concisecss" do
6
7
  files = ConcisecssSource.new
7
8
  files.fetch
@@ -0,0 +1 @@
1
+ //= require concisecss
@@ -1,4 +1,4 @@
1
- // Thanks to inuitcss (https://github.com/csswizardry/inuit.css/blob/master/_defaults.scss)
1
+ // Thanks to inuitcss (https://github.com/csswizardry/inuit.css/blob/master/_defaults.scss)
2
2
  // for the inspiration to create a default file for variables
3
3
 
4
4
 
@@ -24,7 +24,7 @@ $base-spacing-unit: $base-line-height !default;
24
24
  $half-spacing-unit: $base-spacing-unit / 2 !default;
25
25
  $line-height-ratio: $base-line-height / $base-font-size;
26
26
 
27
-
27
+
28
28
 
29
29
 
30
30
  //------------------------------------
@@ -103,7 +103,7 @@ $placeholder-color: #bbbbbb !default;
103
103
 
104
104
  // Colors used for our objects' borders, etc
105
105
  $object-ui-color: #ededed !default;
106
-
106
+
107
107
 
108
108
 
109
109
 
@@ -111,7 +111,7 @@ $object-ui-color: #ededed !default;
111
111
  // OBJECTS
112
112
  //------------------------------------
113
113
 
114
- // Gutter size
114
+ // Gutter size
115
115
  $gutters: 2% !default;
116
116
 
117
117
 
@@ -120,9 +120,9 @@ $gutters: 2% !default;
120
120
  $column-prefix: 'column-' !default;
121
121
 
122
122
 
123
- // Dictate how many columns you would like your
123
+ // Dictate how many columns you would like your
124
124
  // grid system to use. Default is 16.
125
- $column-number: 16 !default;
125
+ $column-number: 16 !default;
126
126
 
127
127
 
128
128
  // Border radius value for `.border-radius` class
@@ -138,8 +138,8 @@ $border-radius: 4px !default;
138
138
  // Set whatever components you want included
139
139
  // in your project to `true` and any components
140
140
  // you do not wish to be included to `false`
141
- //
142
- // Thanks to inuitcss (https://github.com/csswizardry/inuit.css/blob/master/_defaults.scss)
141
+ //
142
+ // Thanks to inuitcss (https://github.com/csswizardry/inuit.css/blob/master/_defaults.scss)
143
143
  // for the idea to use feature switches in a framework. It's an absolutely brilliant idea
144
144
  // that makes customization so much easier.
145
145
 
@@ -166,7 +166,7 @@ $use-grid: true !default;
166
166
  $use-push: false !default;
167
167
  $use-pull: false !default;
168
168
 
169
-
169
+
170
170
  // Objects
171
171
  $use-type-colors: true !default;
172
172
  $use-bg-colors: true !default;
@@ -184,4 +184,4 @@ $use-progress: true !default;
184
184
  // Helpers
185
185
  $use-helper: true !default;
186
186
  $use-conditional: true !default;
187
- $use-print: true !default;
187
+ $use-print: true !default;
@@ -8,45 +8,6 @@
8
8
  * http://opensource.org/licenses/MIT
9
9
  *
10
10
  */
11
-
12
-
13
-
14
-
15
- //------------------------------------
16
- // CONTENTS
17
- //------------------------------------
18
- //
19
- // MIXINS
20
- // NORMALIZE
21
- // CLEARFIX
22
- // SHARED
23
- //
24
- // MAIN
25
- // SELECTION
26
- // CONTAINER
27
- // TYPE
28
- // HEADINGS
29
- // BLOCKQUOTES
30
- // LISTS
31
- // TABLES
32
- // FORMS
33
- // GRID
34
- //
35
- // COLORS
36
- // BUTTONS
37
- // GROUPS
38
- // DROPDOWNS
39
- // NAVIGATION
40
- // BREADCRUMBS
41
- // WELLS
42
- // BADGES
43
- // PROGRESS
44
- //
45
- // HELPER
46
- // CONDITIONAL
47
- // PRINT
48
- //
49
- //
50
11
 
51
12
 
52
13
 
@@ -1,6 +1,37 @@
1
+ //------------------------------------
2
+ // FUNCTIONS
3
+ //------------------------------------
4
+
5
+ //
6
+ // Calculates proper rem font-size given
7
+ // a pixel amount.
8
+ //
9
+ @function calculate-rem($font-size) {
10
+ $rem-size: ($font-size / $base-font-size) * 1rem;
11
+ @return $rem-size;
12
+ }
13
+
14
+
15
+ //
16
+ // Calculates proper line-height given a
17
+ // font-size to maintain vertical rhythm.
18
+ //
19
+ @function calculate-line-height($font-size) {
20
+ $line-height-size: ceil($font-size / $base-line-height) * ($base-line-height / $font-size);
21
+ @return $line-height-size;
22
+ }
23
+
24
+
25
+
26
+
27
+ //------------------------------------
28
+ // MIXINS
29
+ //------------------------------------
30
+
1
31
  //
2
- // Passing in a single value will create font-sizing in
3
- // pixels, rems as well as a proper line-height.
32
+ // Uses `calculate-rem()` to calculate rem font-size and px
33
+ // fallback. line-height is calculated with `calculate-line-height()`
34
+ // but passing `false` will prevent that.
4
35
  //
5
36
  // `@include font-size(24px);`
6
37
  //
@@ -8,14 +39,11 @@
8
39
  // Big thanks to inuitcss for inspiration behind this
9
40
  // (https://github.com/csswizardry/inuit.css/blob/master/generic/_mixins.scss)
10
41
  @mixin font-size($font-size, $line-height: true) {
11
- $rem-size: ($font-size / $base-font-size) * 1rem;
12
- $line-height-size: ceil($font-size / $base-line-height) * ($base-line-height / $font-size);
13
-
14
42
  font-size: $font-size;
15
- font-size: $rem-size;
43
+ font-size: calculate-rem($font-size);
16
44
 
17
45
  @if $line-height == true {
18
- line-height: $line-height-size;
46
+ line-height: calculate-line-height($font-size);
19
47
  }
20
48
  }
21
49
 
data/concisecss.gemspec CHANGED
@@ -21,5 +21,5 @@ Gem::Specification.new do |spec|
21
21
  spec.add_development_dependency 'bundler', '~> 1.5'
22
22
  spec.add_development_dependency 'rake', '~> 0'
23
23
  spec.add_development_dependency 'rails', '~> 4.0'
24
- spec. add_development_dependency 'httpclient', '~> 2.2', '~> 0'
24
+ spec.add_development_dependency 'httpclient', '~> 2.4', '>= 2.4.0'
25
25
  end
@@ -1,3 +1,3 @@
1
1
  module Concisecss
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: concisecss
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benjamin Sigidi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-22 00:00:00.000000000 Z
11
+ date: 2014-09-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -58,20 +58,20 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '2.2'
62
- - - "~>"
61
+ version: '2.4'
62
+ - - ">="
63
63
  - !ruby/object:Gem::Version
64
- version: '0'
64
+ version: 2.4.0
65
65
  type: :development
66
66
  prerelease: false
67
67
  version_requirements: !ruby/object:Gem::Requirement
68
68
  requirements:
69
69
  - - "~>"
70
70
  - !ruby/object:Gem::Version
71
- version: '2.2'
72
- - - "~>"
71
+ version: '2.4'
72
+ - - ">="
73
73
  - !ruby/object:Gem::Version
74
- version: '0'
74
+ version: 2.4.0
75
75
  description: Concise is built on a set of simple but important principles that aid
76
76
  in effective and manageable web design. By understanding these principles, Concise
77
77
  can be used to it's full potential and we can create a better paradigm for using
@@ -83,10 +83,12 @@ extensions: []
83
83
  extra_rdoc_files: []
84
84
  files:
85
85
  - ".gitignore"
86
+ - ".travis.yml"
86
87
  - Gemfile
87
88
  - LICENSE
88
89
  - README.md
89
90
  - Rakefile
91
+ - app/assets/javascripts/concisecss.js
90
92
  - app/assets/javascripts/concisecss/close.js
91
93
  - app/assets/javascripts/concisecss/dropdown.js
92
94
  - app/assets/javascripts/concisecss/naver.js