fortitude-sass 0.4.5 → 0.4.6

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: 28cebfae52fec0113a5ade8c285cc3696f698e16
4
- data.tar.gz: 0670354971d729370d108a6485323f0785c8ebe6
3
+ metadata.gz: 450705098fb5be11c358db57850f0558f265bda4
4
+ data.tar.gz: 7a513258c891129fe6c92c01daa4189fc010464d
5
5
  SHA512:
6
- metadata.gz: c972985f390515528cad36e97d91f0ea1957349d87f66be0386b01edc2800a77410e934767161af973ce7e37aae6836883c8e0466b01027ee96b00ccb97eb614
7
- data.tar.gz: 975142c3f167c39c2a895b0f5442dbb54a49d92af27295be3b8369831a177b750d9021ab1d112d0ce7c77a66e2a4599b7316bb7b860613231e43a04299ae0738
6
+ metadata.gz: b1f86cf68fddee9cd9469457737385db829968e4d8e6a4d21878f7e5f401365fbf2ed97530b19f917dff38153bdacc4d01d06a9a2f11c0980fe5ddbdc3377c40
7
+ data.tar.gz: 2a5f9e63d552f09fb643664af75dbd9f586fb82dc78777ee863804df606ce6817e6723986adcd162de2dcb48f9d9e207afd989025cf0b071163e79e31ea98f8c
data/.bowerrc ADDED
@@ -0,0 +1,3 @@
1
+ {
2
+ "directory": "bower_components"
3
+ }
data/.gitignore CHANGED
@@ -6,3 +6,5 @@ demo/
6
6
  tmp/
7
7
  tags
8
8
  .idea
9
+ *results.css
10
+ bower_components/
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- ruby-2.1.4
1
+ 2.1.4
data/.travis.yml ADDED
@@ -0,0 +1,10 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.1.2
4
+
5
+ install:
6
+ - bundle install
7
+ - npm install
8
+
9
+ script:
10
+ - grunt test
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fortitude-sass (0.4.5)
4
+ fortitude-sass (0.4.6)
5
5
  autoprefixer-rails
6
6
  sass (~> 3.3)
7
7
  thor
@@ -9,33 +9,10 @@ PATH
9
9
  GEM
10
10
  remote: http://rubygems.org/
11
11
  specs:
12
- aruba (0.6.1)
13
- childprocess (>= 0.3.6)
14
- cucumber (>= 1.1.1)
15
- rspec-expectations (>= 2.7.0)
16
12
  autoprefixer-rails (3.0.1.20140826)
17
13
  execjs
18
- builder (3.2.2)
19
- childprocess (0.5.3)
20
- ffi (~> 1.0, >= 1.0.11)
21
- cucumber (1.3.16)
22
- builder (>= 2.1.2)
23
- diff-lcs (>= 1.1.3)
24
- gherkin (~> 2.12)
25
- multi_json (>= 1.7.5, < 2.0)
26
- multi_test (>= 0.1.1)
27
- diff-lcs (1.2.5)
28
14
  execjs (2.2.1)
29
- ffi (1.9.3)
30
- gherkin (2.12.2)
31
- multi_json (~> 1.3)
32
- multi_json (1.10.1)
33
- multi_test (0.1.1)
34
15
  rake (10.3.2)
35
- rspec-expectations (3.0.4)
36
- diff-lcs (>= 1.2.0, < 2.0)
37
- rspec-support (~> 3.0.0)
38
- rspec-support (3.0.4)
39
16
  sass (3.4.2)
40
17
  thor (0.19.1)
41
18
 
@@ -43,6 +20,5 @@ PLATFORMS
43
20
  ruby
44
21
 
45
22
  DEPENDENCIES
46
- aruba (~> 0.4)
47
23
  fortitude-sass!
48
24
  rake
data/Gruntfile.js ADDED
@@ -0,0 +1,167 @@
1
+ module.exports = function(grunt) {
2
+
3
+ grunt.initConfig({
4
+ pkg: grunt.file.readJSON('package.json'),
5
+
6
+ app: {
7
+ scss: 'app/assets/stylesheets',
8
+ js: 'app/assets/javascripts',
9
+ img: 'app/assets/images',
10
+ dist: 'dist',
11
+ tmp: 'tmp',
12
+ sass_specs: 'sass_specs'
13
+ },
14
+
15
+ bower: {
16
+ install: {}
17
+ },
18
+
19
+ copy: {
20
+ dist: {
21
+ expand: true,
22
+ cwd: '<%= app.img %>',
23
+ src: '**/*.png',
24
+ dest: '<%= app.dist %>/'
25
+ }
26
+ },
27
+
28
+ sass: {
29
+ dist: {
30
+ options: {
31
+ style: 'compressed',
32
+ bundleExec: true,
33
+ sourcemap: 'none'
34
+ },
35
+ files: {
36
+ '<%= app.tmp %>/<%= pkg.name %>.css.min': '<%= app.scss %>/fortitude.scss',
37
+ '<%= app.tmp %>/<%= pkg.name %>-theme.css.min': '<%= app.scss %>/fortitude/theme.scss'
38
+ }
39
+ },
40
+ test: {
41
+ options: {
42
+ style: 'expanded',
43
+ loadPath: [
44
+ '<%= app.scss %>',
45
+ 'node_modules/bootcamp/dist'
46
+ ],
47
+ bundleExec: true,
48
+ sourcemap: 'none'
49
+ },
50
+ files: {
51
+ '<%= app.tmp %>/results.css': '<%= app.sass_specs %>/tests.scss',
52
+ '<%= app.tmp %>/<%= pkg.name %>.css': '<%= app.scss %>/fortitude.scss',
53
+ '<%= app.tmp %>/<%= pkg.name %>-theme.css': '<%= app.scss %>/fortitude/theme.scss'
54
+ }
55
+ }
56
+ },
57
+
58
+ autoprefixer: {
59
+ options: {
60
+ browsers: ['last 2 versions', 'ie 8', 'ie 9']
61
+ },
62
+ dist: {
63
+ expand: true,
64
+ flatten: true,
65
+ src: '<%= app.tmp %>/*.css',
66
+ dest: '<%= app.dist %>/'
67
+ },
68
+ test: {
69
+ expand: true,
70
+ flatten: true,
71
+ src: '<%= app.tmp %>/*.css',
72
+ dest: '<%= app.tmp %>/'
73
+ }
74
+ },
75
+
76
+ csslint: {
77
+ test: {
78
+ options: {
79
+ 'import': 2,
80
+ 'ids': false,
81
+ 'zero-units': false,
82
+ 'fallback-colors': false,
83
+ 'box-sizing': false,
84
+ 'vendor-prefixes': false,
85
+ 'compatible-vendor-prefixes': false,
86
+ 'universal-selector': false,
87
+ 'box-model': false,
88
+ 'adjoining-classes': false,
89
+ 'unique-headings': false,
90
+ 'unqualified-attributes': false,
91
+ 'font-sizes': false,
92
+ 'overqualified-elements': false,
93
+ 'font-sizes': false,
94
+ 'floats': false,
95
+ 'outline-none': false,
96
+ 'known-properties': false
97
+ },
98
+ src: ['<%= app.tmp %>/<%= pkg.name %>.css', '<%= app.tmp %>/<%= pkg.name %>-theme.css']
99
+ }
100
+ },
101
+
102
+ bootcamp: {
103
+ test: {
104
+ files: {
105
+ src: ['<%= app.tmp %>/results.css']
106
+ }
107
+ }
108
+ },
109
+
110
+ concat: {
111
+ dist: {
112
+ src: ['<%= app.js %>/**/*.js'],
113
+ dest: '<%= app.tmp %>/<%= pkg.name %>.js',
114
+ },
115
+ test: {
116
+ src: ['<%= app.js %>/**/*.js'],
117
+ dest: '<%= app.tmp %>/<%= pkg.name %>.js',
118
+ }
119
+ },
120
+
121
+ uglify: {
122
+ dist: {
123
+ files: {
124
+ '<%= app.dist %>/<%= pkg.name %>.jquery.js': '<%= app.tmp %>/<%= pkg.name %>.js'
125
+ }
126
+ },
127
+ test: {
128
+ files: {
129
+ '<%= app.tmp %>/<%= pkg.name %>.min.js': '<%= app.tmp %>/<%= pkg.name %>.js'
130
+ }
131
+ }
132
+ },
133
+
134
+ jshint: {
135
+ all: ['<%= app.js %>/**/*.js'],
136
+ test: ['<%= app.tmp %>/<%= pkg.name %>.js']
137
+ },
138
+
139
+ clean: ['tmp']
140
+ });
141
+
142
+ grunt.loadNpmTasks('grunt-bower-task');
143
+ grunt.loadNpmTasks('grunt-contrib-clean');
144
+ grunt.loadNpmTasks('grunt-contrib-copy');
145
+
146
+ // Sass resources
147
+ grunt.loadNpmTasks('grunt-contrib-sass');
148
+ grunt.loadNpmTasks('grunt-autoprefixer');
149
+ grunt.loadNpmTasks('grunt-contrib-csslint');
150
+ grunt.loadNpmTasks('bootcamp');
151
+
152
+ // JS resources
153
+ grunt.loadNpmTasks('grunt-contrib-concat');
154
+ grunt.loadNpmTasks('grunt-contrib-uglify');
155
+ grunt.loadNpmTasks('grunt-contrib-jshint');
156
+
157
+ grunt.registerTask('setup', ['bower']);
158
+ grunt.registerTask('test-css', ['sass:test', 'autoprefixer:test', 'bootcamp:test', 'csslint:test']);
159
+ grunt.registerTask('test-js', ['jshint:all', 'concat:test', 'jshint:test', 'uglify:test']);
160
+
161
+ grunt.registerTask('test', ['test-css', 'test-js', 'clean']);
162
+ grunt.registerTask('build', ['sass:dist', 'autoprefixer:dist', 'concat:dist', 'uglify:dist', 'copy:dist']);
163
+
164
+ grunt.registerTask('default', ['test']);
165
+
166
+
167
+ };
data/README.md CHANGED
@@ -1,12 +1,30 @@
1
1
  fortitude-sass
2
2
  ==============
3
3
 
4
- Rock Solid CSS Framework
4
+ Rock Solid CSS Framework
5
+
6
+ [![Build Status](https://travis-ci.org/fortitude/fortitude-sass.svg?branch=master)](https://travis-ci.org/fortitude/fortitude-sass)
5
7
 
6
8
  if you want you can check out our style guide to see how we're using certain fortitude components.
7
9
 
8
10
  https://hired.com/library
9
11
 
12
+ ## Development
13
+
14
+ If you want to add more features or change how certain features work in Fortitude, we encourage you to [open a Github issue](https://github.com/fortitude/fortitude-sass/issues) before developing it. It might not be aligned with the goals of this framework, introduce compatibility worries, or benefit from some direction from the maintainers. We don't want you to waste your time, and a little discussion can save a lot of work.
15
+
16
+ 1. Fork the repo [on Github](https://github.com/fortitude/fortitude-sass) and clone your copy of it locally.
17
+
18
+ 2. Add some things to the framework. If you add any SASS functions, mixins, etc please add specs for them via [Bootcamp](https://github.com/thejameskyle/bootcamp/wiki/Introduction). We're working on getting everything that's there specced out.
19
+
20
+ 3. Run specs, build, and linting via `grunt test`
21
+
22
+ 4. Update the distributable css and js via `grunt build` .
23
+
24
+ 5. Push your changes to your Github fork and issue a pull request.
25
+
26
+ 6. We will get back to you ASAP regarding your changes.
27
+
10
28
 
11
29
  ## Open Source by Hired
12
30
 
Binary file
@@ -3,7 +3,7 @@
3
3
 
4
4
  var $document = $(document);
5
5
 
6
- function setClassName() {
6
+ var setClassName = function() {
7
7
  var $this = $(this),
8
8
  className = $this.find(':selected').attr('class') || "",
9
9
  data = $this.data('ft.select') || {};
@@ -15,7 +15,7 @@
15
15
  data('ft.select', $.merge({previousClass: className}, data));
16
16
  }
17
17
 
18
- }
18
+ };
19
19
 
20
20
  $document.on('change.ft.select.data-api', 'select:not([multiple])', setClassName);
21
21
 
@@ -63,20 +63,22 @@
63
63
  }
64
64
 
65
65
  $.fn.waitForAnimation = function(options, callback) {
66
- var self = this;
67
- var called = false;
68
- var $this = $(self);
69
- var defaults = {
70
- type: 'animation'
71
- };
72
-
73
- var options = $.extend({}, defaults, options);
66
+ var self = this,
67
+ called = false,
68
+ $this = $(self),
69
+ defaults = {
70
+ type: 'animation'
71
+ },
72
+ eventType,
73
+ duration;
74
+
75
+ options = $.extend({}, defaults, options);
74
76
  if (options.type === 'animation') {
75
- var eventType = animationData.end;
76
- var duration = parseDuration(getComputedStyle($this.get(0), null)[animationData.duration]);
77
+ eventType = animationData.end;
78
+ duration = parseDuration(getComputedStyle($this.get(0), null)[animationData.duration]);
77
79
  } else if (options.type === 'transition') {
78
- var eventType = transitionData.end;
79
- var duration = parseDuration(getComputedStyle($this.get(0), null)[transitionData.duration]);
80
+ eventType = transitionData.end;
81
+ duration = parseDuration(getComputedStyle($this.get(0), null)[transitionData.duration]);
80
82
  }
81
83
 
82
84
  var defer = $.Deferred(function( defer ) {
@@ -7,4 +7,13 @@ hr {
7
7
  border-bottom: 0.1rem solid;
8
8
  border-right-color: transparent;
9
9
  border-left-color: transparent;
10
- }
10
+ }
11
+
12
+ .hr--top {
13
+ border-top: 0.1rem solid;
14
+ border-bottom: halve($fortitude-base-spacing-unit) - 0.1rem solid transparent;
15
+ }
16
+
17
+ .hr--dashed {
18
+ border-style: dashed;
19
+ }
@@ -39,7 +39,6 @@ $fortitude-enable-badge--pill: false !default;
39
39
  border: $fortitude-badge-border-width $fortitude-badge-border-style transparent;
40
40
  display: inline-block; /* [1] */
41
41
  vertical-align: middle; /* [2] */
42
- vertical-align: middle; /* [2] */
43
42
  font: inherit; /* [3] */
44
43
  background-color: transparent; /* [4] */
45
44
  text-align: center; /* [4] */
@@ -0,0 +1,5 @@
1
+ @each $intent, $rules in $fortitude-color-intents {
2
+ .text-#{$intent} {
3
+ color: map-get($rules, color);
4
+ }
5
+ }
@@ -7,4 +7,5 @@
7
7
  @import "theme/extensions/button";
8
8
  @import "theme/extensions/flashbar";
9
9
  @import "theme/extensions/navigationbar";
10
+ @import "theme/extensions/text";
10
11
  @import "theme/extensions/wings";
data/bin/fortitude CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  # CodeKit needs relative paths
4
- require File.dirname(__FILE__) + '/../lib/fortitude-sass.rb'
4
+ require File.join(File.dirname(File.expand_path(__FILE__)), '..', 'lib', 'fortitude-sass')
5
5
 
6
6
  Fortitude::Generator.start
data/bower.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "fortitude-sass",
3
3
  "homepage": "http://fortitude.io/",
4
- "version": "0.4.5",
4
+ "version": "0.4.6",
5
5
  "main": [
6
6
  "app/assets/stylesheets/fortitude/tools/_functions.scss",
7
7
  "app/assets/stylesheets/fortitude/tools/_mixins.scss",
@@ -39,5 +39,8 @@
39
39
  "framework",
40
40
  "fortitude"
41
41
  ],
42
- "license": "MIT"
42
+ "license": "MIT",
43
+ "dependencies": {
44
+ "jquery": "~2.1.1"
45
+ }
43
46
  }