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 +4 -4
- data/.bowerrc +3 -0
- data/.gitignore +2 -0
- data/.ruby-version +1 -1
- data/.travis.yml +10 -0
- data/Gemfile.lock +1 -25
- data/Gruntfile.js +167 -0
- data/README.md +19 -1
- data/app/assets/images/spacer.gif +0 -0
- data/app/assets/javascripts/fortitude/jquery/blocks/select-input.js +2 -2
- data/app/assets/javascripts/fortitude/jquery/generic/wait-for-animation.js +14 -12
- data/app/assets/stylesheets/fortitude/base/_hr.scss +10 -1
- data/app/assets/stylesheets/fortitude/blocks/_badge.scss +0 -1
- data/app/assets/stylesheets/fortitude/theme/extensions/_text.scss +5 -0
- data/app/assets/stylesheets/fortitude/theme.scss +1 -0
- data/bin/fortitude +1 -1
- data/bower.json +5 -2
- data/dist/fortitude-theme.css +9236 -0
- data/dist/fortitude.css +7764 -4030
- data/dist/fortitude.jquery.js +1 -45
- data/dist/fortitude.min.js +1 -0
- data/dist/icons/hamburger.png +0 -0
- data/dist/icons_2x/hamburger.png +0 -0
- data/fortitude.gemspec +0 -1
- data/lib/fortitude-sass/version.rb +1 -1
- data/package.json +15 -1
- data/sass_specs/tests.scss +6 -0
- data/sass_specs/tools/_functions_spec.scss +21 -0
- metadata +13 -18
- data/.scss-lint.yml +0 -13
- data/dist/fortitude.css.map +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 450705098fb5be11c358db57850f0558f265bda4
|
4
|
+
data.tar.gz: 7a513258c891129fe6c92c01daa4189fc010464d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b1f86cf68fddee9cd9469457737385db829968e4d8e6a4d21878f7e5f401365fbf2ed97530b19f917dff38153bdacc4d01d06a9a2f11c0980fe5ddbdc3377c40
|
7
|
+
data.tar.gz: 2a5f9e63d552f09fb643664af75dbd9f586fb82dc78777ee863804df606ce6817e6723986adcd162de2dcb48f9d9e207afd989025cf0b071163e79e31ea98f8c
|
data/.bowerrc
ADDED
data/.gitignore
CHANGED
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
2.1.4
|
data/.travis.yml
ADDED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
fortitude-sass (0.4.
|
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
|
-
|
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
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
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
|
-
|
76
|
-
|
77
|
+
eventType = animationData.end;
|
78
|
+
duration = parseDuration(getComputedStyle($this.get(0), null)[animationData.duration]);
|
77
79
|
} else if (options.type === 'transition') {
|
78
|
-
|
79
|
-
|
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] */
|
data/bin/fortitude
CHANGED
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.
|
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
|
}
|