fortitude-sass 0.6.5 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.editorconfig +12 -0
- data/.gitignore +3 -1
- data/.ruby-version +1 -1
- data/Gruntfile.js +73 -38
- data/app/assets/javascripts/fortitude/blocks/dropdown.js +44 -0
- data/app/assets/javascripts/fortitude/blocks/flashbar.js +24 -0
- data/app/assets/javascripts/fortitude/blocks/modal.js +50 -0
- data/app/assets/javascripts/fortitude/blocks/navigationbar.js +11 -0
- data/app/assets/javascripts/fortitude/blocks/select-input.js +38 -0
- data/app/assets/javascripts/fortitude/blocks/shade.js +28 -0
- data/app/assets/javascripts/fortitude/blocks/tabs.js +50 -0
- data/app/assets/javascripts/fortitude/generic/get-target.js +13 -0
- data/app/assets/javascripts/fortitude/generic/measure-scrollbar.js +21 -0
- data/app/assets/javascripts/fortitude/{jquery/generic → generic}/screen-lock.js +6 -2
- data/app/assets/javascripts/fortitude/generic/transition-with.js +57 -0
- data/app/assets/javascripts/fortitude/generic/viewport.js +21 -0
- data/app/assets/javascripts/fortitude/generic/wait-for-animation.js +27 -0
- data/app/assets/javascripts/fortitude.js +1 -0
- data/app/assets/stylesheets/fortitude/api/blocks/_badge.scss +1 -1
- data/app/assets/stylesheets/fortitude/api/blocks/_block-list.scss +2 -2
- data/app/assets/stylesheets/fortitude/api/blocks/_button.scss +1 -1
- data/app/assets/stylesheets/fortitude/api/blocks/_dropdown.scss +45 -0
- data/app/assets/stylesheets/fortitude/api/blocks/_flag.scss +2 -2
- data/app/assets/stylesheets/fortitude/api/blocks/_flashbar.scss +11 -1
- data/app/assets/stylesheets/fortitude/api/blocks/_input.scss +5 -2
- data/app/assets/stylesheets/fortitude/api/blocks/_layout.scss +2 -2
- data/app/assets/stylesheets/fortitude/api/blocks/_media.scss +2 -2
- data/app/assets/stylesheets/fortitude/api/blocks/_modal.scss +28 -0
- data/app/assets/stylesheets/fortitude/api/blocks/_navigationbar.scss +1 -0
- data/app/assets/stylesheets/fortitude/api/blocks/_shade.scss +11 -1
- data/app/assets/stylesheets/fortitude/api/blocks/_table.scss +5 -0
- data/app/assets/stylesheets/fortitude/api/blocks/_tabs-navigation.scss +3 -0
- data/app/assets/stylesheets/fortitude/api/blocks/_text.scss +3 -0
- data/app/assets/stylesheets/fortitude/api/blocks/_ui-list.scss +2 -2
- data/app/assets/stylesheets/fortitude/base/_hr.scss +2 -2
- data/app/assets/stylesheets/fortitude/base/_page.scss +0 -2
- data/app/assets/stylesheets/fortitude/blocks/_badge.scss +2 -0
- data/app/assets/stylesheets/fortitude/blocks/_bare-list.scss +2 -0
- data/app/assets/stylesheets/fortitude/blocks/_block-list.scss +2 -0
- data/app/assets/stylesheets/fortitude/blocks/_box.scss +2 -0
- data/app/assets/stylesheets/fortitude/blocks/_button.scss +2 -0
- data/app/assets/stylesheets/fortitude/blocks/_container.scss +2 -0
- data/app/assets/stylesheets/fortitude/blocks/_dropdown.scss +15 -0
- data/app/assets/stylesheets/fortitude/blocks/_flag.scss +2 -0
- data/app/assets/stylesheets/fortitude/blocks/_flashbar.scss +6 -0
- data/app/assets/stylesheets/fortitude/blocks/_fluid-container.scss +2 -0
- data/app/assets/stylesheets/fortitude/blocks/_inline-list.scss +2 -0
- data/app/assets/stylesheets/fortitude/blocks/_input.scss +2 -0
- data/app/assets/stylesheets/fortitude/blocks/_layout.scss +2 -0
- data/app/assets/stylesheets/fortitude/blocks/_list-navigation.scss +2 -0
- data/app/assets/stylesheets/fortitude/blocks/_media.scss +2 -0
- data/app/assets/stylesheets/fortitude/blocks/_modal.scss +8 -16
- data/app/assets/stylesheets/fortitude/blocks/_navigationbar.scss +5 -2
- data/app/assets/stylesheets/fortitude/blocks/_shade.scss +7 -0
- data/app/assets/stylesheets/fortitude/blocks/_table.scss +1 -6
- data/app/assets/stylesheets/fortitude/blocks/_tabs-navigation.scss +6 -0
- data/app/assets/stylesheets/fortitude/blocks/_tabs.scss +2 -0
- data/app/assets/stylesheets/fortitude/blocks/_text.scss +1 -3
- data/app/assets/stylesheets/fortitude/blocks/_tooltip.scss +2 -0
- data/app/assets/stylesheets/fortitude/blocks/_ui-list.scss +2 -0
- data/app/assets/stylesheets/fortitude/blocks/_wings.scss +3 -1
- data/app/assets/stylesheets/fortitude/generic/_normalize.scss +52 -15
- data/app/assets/stylesheets/fortitude/settings/_defaults.scss +1 -0
- data/app/assets/stylesheets/fortitude/theme/base/_page.scss +21 -0
- data/app/assets/stylesheets/fortitude/theme/extensions/_badge.scss +11 -0
- data/app/assets/stylesheets/fortitude/theme/extensions/_box.scss +11 -0
- data/app/assets/stylesheets/fortitude/theme/extensions/_button.scss +25 -0
- data/app/assets/stylesheets/fortitude/theme/extensions/_flashbar.scss +15 -0
- data/app/assets/stylesheets/fortitude/theme/extensions/_navigationbar.scss +51 -0
- data/app/assets/stylesheets/fortitude/theme/extensions/_wings.scss +15 -0
- data/app/assets/stylesheets/fortitude/theme/settings/_colors.scss +309 -0
- data/app/assets/stylesheets/fortitude/theme.scss +9 -0
- data/app/assets/stylesheets/fortitude/tools/_functions.scss +22 -13
- data/app/assets/stylesheets/fortitude/tools/_mixins.scss +10 -3
- data/app/assets/stylesheets/fortitude/trumps/_responsive-column.scss +1 -1
- data/app/assets/stylesheets/fortitude/trumps/_responsive-line-height.scss +1 -1
- data/app/assets/stylesheets/fortitude/trumps/_responsive-margin.scss +3 -3
- data/app/assets/stylesheets/fortitude/trumps/_responsive-padding.scss +1 -1
- data/app/assets/stylesheets/fortitude.scss +2 -0
- data/bower.json +1 -1
- data/jasmine/fixtures/animations.css +85 -0
- data/jasmine/fixtures/dropdownFixture.html +91 -0
- data/jasmine/fixtures/flashbarFixture.html +6 -0
- data/jasmine/fixtures/getTargetFixture.html +11 -0
- data/jasmine/fixtures/measureScrollBarFixture.html +1 -0
- data/jasmine/fixtures/modalFixture.html +20 -0
- data/jasmine/fixtures/navigationbarFixture.html +20 -0
- data/jasmine/fixtures/selectInputFixture.html +13 -0
- data/jasmine/fixtures/shadeFixture.html +2 -0
- data/jasmine/fixtures/tabsFixture.html +22 -0
- data/jasmine/fixtures/transitionWithFixture.html +6 -0
- data/jasmine/fixtures/viewportFixture.html +2 -0
- data/jasmine/fixtures/waitForAnimationFixture.html +1 -0
- data/jasmine/helpers/fixtureHelper.js +4 -0
- data/jasmine/helpers/multiCallbackHelper.js +24 -0
- data/jasmine/specs/blocks/dropdownSpec.js +106 -0
- data/jasmine/specs/blocks/flashbarSpec.js +22 -0
- data/jasmine/specs/blocks/modalSpec.js +66 -0
- data/jasmine/specs/blocks/navigationbarSpec.js +34 -0
- data/jasmine/specs/blocks/selectInputSpec.js +31 -0
- data/jasmine/specs/blocks/shadeSpec.js +38 -0
- data/jasmine/specs/blocks/tabsSpec.js +63 -0
- data/jasmine/specs/generic/getTargetSpec.js +28 -0
- data/jasmine/specs/generic/measureScrollbarSpec.js +19 -0
- data/jasmine/specs/generic/screenLockSpec.js +32 -0
- data/jasmine/specs/generic/transitionWithSpec.js +82 -0
- data/jasmine/specs/generic/viewportSpec.js +32 -0
- data/jasmine/specs/generic/waitForAnimationSpec.js +35 -0
- data/jasmine/template.tmpl +2 -0
- data/lib/fortitude-sass/version.rb +1 -1
- data/package.json +8 -2
- data/sass_specs/blocks/_shade_spec.scss +11 -0
- data/sass_specs/tests.scss +1 -0
- data/sass_specs/tools/_functions_spec.scss +42 -12
- metadata +59 -16
- data/app/assets/javascripts/fortitude/jquery/blocks/flashbar.js +0 -13
- data/app/assets/javascripts/fortitude/jquery/blocks/select-input.js +0 -26
- data/app/assets/javascripts/fortitude/jquery/blocks/shade.js +0 -36
- data/app/assets/javascripts/fortitude/jquery/generic/measure-scrollbar.js +0 -13
- data/app/assets/javascripts/fortitude/jquery/generic/viewport.js +0 -9
- data/app/assets/javascripts/fortitude/jquery/generic/wait-for-animation.js +0 -103
- data/app/assets/javascripts/fortitude/jquery/index.js +0 -3
- data/app/assets/javascripts/fortitude.jquery.js +0 -45
- data/dist/fortitude-theme.css +0 -9236
- data/dist/fortitude.css +0 -8976
- data/dist/fortitude.jquery.js +0 -1
- data/dist/fortitude.min.js +0 -1
@@ -0,0 +1,28 @@
|
|
1
|
+
(function($){
|
2
|
+
'use strict';
|
3
|
+
|
4
|
+
describe('$.ftGetTarget', function(){
|
5
|
+
var $withPound, $withoutPound, $missingField, $target;
|
6
|
+
|
7
|
+
beforeEach(function(){
|
8
|
+
loadFixtures('getTargetFixture.html');
|
9
|
+
$withPound = $('#with-pound');
|
10
|
+
$withoutPound = $('#without-pound');
|
11
|
+
$missingField = $('#missing-field');
|
12
|
+
$target = $('#target-id');
|
13
|
+
});
|
14
|
+
|
15
|
+
it('finds the target without pound sign', function(){
|
16
|
+
expect($.ftGetTarget($withPound, 'ft-example').is($target)).toEqual(true);
|
17
|
+
});
|
18
|
+
|
19
|
+
it('finds the target with pound sign', function(){
|
20
|
+
expect($.ftGetTarget($withoutPound, 'ft-example').is($target)).toEqual(true);
|
21
|
+
});
|
22
|
+
|
23
|
+
it('returns empty jQuery when field not found', function(){
|
24
|
+
expect($.ftGetTarget($missingField, 'ft-example').length).toEqual(0);
|
25
|
+
});
|
26
|
+
});
|
27
|
+
|
28
|
+
})(jQuery);
|
@@ -0,0 +1,19 @@
|
|
1
|
+
(function($){
|
2
|
+
'use strict';
|
3
|
+
|
4
|
+
describe('$.measureScrollBar', function(){
|
5
|
+
|
6
|
+
beforeEach(function(){
|
7
|
+
loadFixtures('measureScrollBarFixture.html');
|
8
|
+
});
|
9
|
+
|
10
|
+
// can't test in a headless browser
|
11
|
+
// just ensuring this doesn't raise an error
|
12
|
+
it('gets scrollbar width', function(){
|
13
|
+
var fullHtml = $(document.body).html();
|
14
|
+
expect($.measureScrollBar()).toEqual(0);
|
15
|
+
expect($(document.body).html()).toEqual(fullHtml);
|
16
|
+
});
|
17
|
+
});
|
18
|
+
|
19
|
+
})(jQuery);
|
@@ -0,0 +1,32 @@
|
|
1
|
+
(function($){
|
2
|
+
'use strict';
|
3
|
+
|
4
|
+
describe('$.screenLock', function(){
|
5
|
+
var $html = $('html'),
|
6
|
+
htmlClasses;
|
7
|
+
|
8
|
+
beforeEach(function(){
|
9
|
+
htmlClasses = $html.attr('class');
|
10
|
+
});
|
11
|
+
|
12
|
+
afterEach(function(){
|
13
|
+
$html.attr('class', htmlClasses);
|
14
|
+
});
|
15
|
+
|
16
|
+
it('locks the screen', function(){
|
17
|
+
$.screenLock();
|
18
|
+
expect($html).toHaveClass('html--is-locked');
|
19
|
+
});
|
20
|
+
|
21
|
+
it('locks the screen with argument', function(){
|
22
|
+
$.screenLock(true);
|
23
|
+
expect($html).toHaveClass('html--is-locked');
|
24
|
+
});
|
25
|
+
|
26
|
+
it('unlocks the screen', function(){
|
27
|
+
$.screenLock(false);
|
28
|
+
expect($html).not.toHaveClass('html--is-locked');
|
29
|
+
});
|
30
|
+
});
|
31
|
+
|
32
|
+
})(jQuery);
|
@@ -0,0 +1,82 @@
|
|
1
|
+
(function($){
|
2
|
+
'use strict';
|
3
|
+
|
4
|
+
describe('$.fn.ftTransitionWith', function(){
|
5
|
+
var $transition, $noTransition;
|
6
|
+
|
7
|
+
beforeEach(function(){
|
8
|
+
loadFixtures('transitionWithFixture.html');
|
9
|
+
$transition = $('#transition');
|
10
|
+
$noTransition = $('#no-transition');
|
11
|
+
});
|
12
|
+
|
13
|
+
it('hides using ft-hide-class', function(done){
|
14
|
+
$transition.ftTransitionWith({
|
15
|
+
dataAttr: 'ftHideClass',
|
16
|
+
addClass: 'transparent',
|
17
|
+
removeClass: 'showing',
|
18
|
+
endEvent: 'hidden.ft.transition'
|
19
|
+
});
|
20
|
+
|
21
|
+
expect($transition).toHaveClass('fadeOut');
|
22
|
+
expect($transition.css('opacity')).toEqual('1');
|
23
|
+
|
24
|
+
$transition.on('hidden.ft.transition', function(){
|
25
|
+
expect($transition).toHaveClass('transparent');
|
26
|
+
expect($transition).not.toHaveClass('showing');
|
27
|
+
expect($transition).not.toHaveClass('fadeOut');
|
28
|
+
done();
|
29
|
+
});
|
30
|
+
});
|
31
|
+
|
32
|
+
it('shows using ft-show-class', function(done){
|
33
|
+
$transition.addClass('tiny');
|
34
|
+
|
35
|
+
$transition.ftTransitionWith({
|
36
|
+
dataAttr: 'ftShowClass',
|
37
|
+
addClass: 'transparent',
|
38
|
+
removeClass: 'showing',
|
39
|
+
endEvent: 'shown.ft.transition'
|
40
|
+
});
|
41
|
+
|
42
|
+
expect($transition).toHaveClass('grow');
|
43
|
+
expect($transition.css('width')).toEqual('1px');
|
44
|
+
|
45
|
+
$transition.on('shown.ft.transition', function(){
|
46
|
+
expect($transition).toHaveClass('transparent');
|
47
|
+
expect($transition).not.toHaveClass('showing');
|
48
|
+
expect($transition).not.toHaveClass('grow');
|
49
|
+
done();
|
50
|
+
});
|
51
|
+
});
|
52
|
+
|
53
|
+
it('handles race conditions', function(done){
|
54
|
+
$transition.ftTransitionWith({
|
55
|
+
dataAttr: 'ftHideClass',
|
56
|
+
addClass: 'hidden',
|
57
|
+
removeClass: 'showing',
|
58
|
+
endEvent: 'hidden.ft.transition'
|
59
|
+
});
|
60
|
+
|
61
|
+
$transition.ftTransitionWith({
|
62
|
+
dataAttr: 'ftShowClass',
|
63
|
+
addClass: 'shown',
|
64
|
+
removeClass: 'hidden',
|
65
|
+
endEvent: 'shown.ft.transition'
|
66
|
+
});
|
67
|
+
|
68
|
+
$transition.on('hidden.ft.transition', function(){
|
69
|
+
expect('This callback should not be called').toEqual('Failed');
|
70
|
+
done();
|
71
|
+
});
|
72
|
+
|
73
|
+
$transition.on('shown.ft.transition', function(){
|
74
|
+
expect($transition).not.toHaveClass('fadeOut');
|
75
|
+
expect($transition).not.toHaveClass('hidden');
|
76
|
+
expect($transition).not.toHaveClass('fadeIn');
|
77
|
+
expect($transition).toHaveClass('shown');
|
78
|
+
done();
|
79
|
+
});
|
80
|
+
});
|
81
|
+
});
|
82
|
+
})(jQuery);
|
@@ -0,0 +1,32 @@
|
|
1
|
+
(function($){
|
2
|
+
'use strict';
|
3
|
+
|
4
|
+
describe('the input zoom fix', function(){
|
5
|
+
var contentVal = 'width=device-width,' +
|
6
|
+
'initial-scale=1,' +
|
7
|
+
'maximum-scale=',
|
8
|
+
$viewport, $input;
|
9
|
+
|
10
|
+
beforeEach(function(){
|
11
|
+
loadFixtures('viewportFixture.html');
|
12
|
+
$viewport = $('meta[name=viewport]');
|
13
|
+
$input = $('input');
|
14
|
+
});
|
15
|
+
|
16
|
+
it('fixes the zoom when input focused', function(){
|
17
|
+
$input.trigger('focus');
|
18
|
+
expect($viewport.attr('content')).toEqual(contentVal + '1');
|
19
|
+
});
|
20
|
+
|
21
|
+
it('returns zoom to normal when input focused out', function(){
|
22
|
+
$input.trigger('focusout');
|
23
|
+
expect($viewport.attr('content')).toEqual(contentVal + '5');
|
24
|
+
});
|
25
|
+
|
26
|
+
it('returns zoom to normal when input blurred', function(){
|
27
|
+
$input.trigger('blur');
|
28
|
+
expect($viewport.attr('content')).toEqual(contentVal + '5');
|
29
|
+
});
|
30
|
+
});
|
31
|
+
|
32
|
+
})(jQuery);
|
@@ -0,0 +1,35 @@
|
|
1
|
+
(function($){
|
2
|
+
'use strict';
|
3
|
+
|
4
|
+
describe('$.fn.waitForAnimation', function(){
|
5
|
+
var $animate;
|
6
|
+
|
7
|
+
beforeEach(function(){
|
8
|
+
loadFixtures('waitForAnimationFixture.html');
|
9
|
+
$animate = $('#animate');
|
10
|
+
});
|
11
|
+
|
12
|
+
it('waits for an animation to end', function(done){
|
13
|
+
$animate.addClass('fadeOut');
|
14
|
+
expect($animate.css('opacity')).toEqual('1');
|
15
|
+
$animate.waitForAnimation()
|
16
|
+
.then(function(){
|
17
|
+
expect($animate.css('opacity')).toEqual('0');
|
18
|
+
done();
|
19
|
+
});
|
20
|
+
});
|
21
|
+
|
22
|
+
it('only runs one wait for animation', function(done){
|
23
|
+
$animate.addClass('fadeOut').waitForAnimation().then(function(){
|
24
|
+
expect('This callback should not run').toEqual('FAIL');
|
25
|
+
});
|
26
|
+
|
27
|
+
expect($animate.css('width')).toEqual('1px');
|
28
|
+
$animate.addClass('grow').waitForAnimation().then(function(){
|
29
|
+
expect($animate.css('width')).toEqual('100px');
|
30
|
+
done();
|
31
|
+
});
|
32
|
+
});
|
33
|
+
});
|
34
|
+
|
35
|
+
})(jQuery);
|
data/package.json
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
"description": "A simple and practical CSS Framework.",
|
5
5
|
"main": "dist/_fortitude.scss",
|
6
6
|
"scripts": {
|
7
|
-
"test": "
|
7
|
+
"test": "grunt test"
|
8
8
|
},
|
9
9
|
"repository": {
|
10
10
|
"type": "git",
|
@@ -29,10 +29,16 @@
|
|
29
29
|
"grunt-cli": "^0.1.13",
|
30
30
|
"grunt-contrib-clean": "^0.6.0",
|
31
31
|
"grunt-contrib-concat": "^0.5.0",
|
32
|
+
"grunt-contrib-connect": "^0.9.0",
|
32
33
|
"grunt-contrib-copy": "^0.7.0",
|
33
34
|
"grunt-contrib-csslint": "^0.3.1",
|
35
|
+
"grunt-contrib-jasmine": "^0.8.2",
|
34
36
|
"grunt-contrib-jshint": "^0.10.0",
|
35
37
|
"grunt-contrib-sass": "^0.8.1",
|
36
|
-
"grunt-contrib-uglify": "^0.6.0"
|
38
|
+
"grunt-contrib-uglify": "^0.6.0",
|
39
|
+
"jasmine": "^2.2.1",
|
40
|
+
"jasmine-jquery": "^2.0.6",
|
41
|
+
"jquery": "^2.1.3",
|
42
|
+
"lodash": "^3.6.0"
|
37
43
|
}
|
38
44
|
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
@include describe("Shade mixin") {
|
2
|
+
@include it("should be display: none by default"){
|
3
|
+
@include fortitude-shade;
|
4
|
+
@include should( expect(display) ), to( equal(none) );
|
5
|
+
}
|
6
|
+
|
7
|
+
@include it("should be display: block when active"){
|
8
|
+
@include fortitude-shade--is-active;
|
9
|
+
@include should( expect(display) ), to( equal(block) );
|
10
|
+
}
|
11
|
+
}
|
data/sass_specs/tests.scss
CHANGED
@@ -1,21 +1,51 @@
|
|
1
|
-
@include describe("
|
2
|
-
@include it("
|
3
|
-
@include should(
|
1
|
+
@include describe("fortitude-tint") {
|
2
|
+
@include it("returns a lighter version of the original color") {
|
3
|
+
@include should(expect(fortitude-tint(black, 10%)), to(equal(#191919)));
|
4
4
|
}
|
5
|
+
}
|
5
6
|
|
6
|
-
|
7
|
-
|
7
|
+
@include describe("fortitude-shade") {
|
8
|
+
@include it("returns a darker version of the original color") {
|
9
|
+
@include should(expect(fortitude-shade(white, 10%)), to(equal(#e5e5e5)));
|
8
10
|
}
|
11
|
+
}
|
9
12
|
|
10
|
-
|
11
|
-
|
13
|
+
@include describe("fortitude-quarter") {
|
14
|
+
@include it("returns a quarter of the original value") {
|
15
|
+
@include should(expect(fortitude-quarter(20)), to(equal(5)));
|
12
16
|
}
|
17
|
+
}
|
13
18
|
|
14
|
-
|
15
|
-
|
19
|
+
@include describe("fortitude-halve") {
|
20
|
+
@include it("returns halve the original value") {
|
21
|
+
@include should(expect(fortitude-halve(20)), to(equal(10)));
|
16
22
|
}
|
23
|
+
}
|
17
24
|
|
18
|
-
|
19
|
-
|
25
|
+
@include describe("fortitude-halve") {
|
26
|
+
@include it("returns double the original value") {
|
27
|
+
@include should(expect(fortitude-double(10)), to(equal(20)));
|
20
28
|
}
|
21
|
-
}
|
29
|
+
}
|
30
|
+
|
31
|
+
@include describe("fortitude-strip-unit") {
|
32
|
+
@include it("returns a unitless version of the original value") {
|
33
|
+
@include should(expect(fortitude-strip-unit(4rem)), to(equal(4)));
|
34
|
+
}
|
35
|
+
}
|
36
|
+
|
37
|
+
@include describe("fortitude-px-to-rem") {
|
38
|
+
@include it("returns a px value of the original rem value") {
|
39
|
+
$conversion-unit: 0.1rem; // is optional
|
40
|
+
@include should(expect(fortitude-px-to-rem(10px, $conversion-unit)), to(equal(1rem)));
|
41
|
+
@include should(expect(fortitude-px-to-rem(10px)), to(equal(1rem)));
|
42
|
+
}
|
43
|
+
}
|
44
|
+
|
45
|
+
@include describe("fortitude-rem-to-px") {
|
46
|
+
@include it("returns a rem value of the original px value") {
|
47
|
+
$conversion-unit: 5px; // is optional
|
48
|
+
@include should(expect(fortitude-rem-to-px(2rem, $conversion-unit)), to(equal(10px)));
|
49
|
+
@include should(expect(fortitude-rem-to-px(2rem)), to(equal(20px)));
|
50
|
+
}
|
51
|
+
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fortitude-sass
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aaron Reisman
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sass
|
@@ -91,6 +91,7 @@ extensions: []
|
|
91
91
|
extra_rdoc_files: []
|
92
92
|
files:
|
93
93
|
- ".bowerrc"
|
94
|
+
- ".editorconfig"
|
94
95
|
- ".gitignore"
|
95
96
|
- ".npmignore"
|
96
97
|
- ".ruby-gemset"
|
@@ -104,15 +105,20 @@ files:
|
|
104
105
|
- app/assets/images/icons/hamburger.png
|
105
106
|
- app/assets/images/icons_2x/hamburger.png
|
106
107
|
- app/assets/images/spacer.gif
|
107
|
-
- app/assets/javascripts/fortitude.
|
108
|
-
- app/assets/javascripts/fortitude/
|
109
|
-
- app/assets/javascripts/fortitude/
|
110
|
-
- app/assets/javascripts/fortitude/
|
111
|
-
- app/assets/javascripts/fortitude/
|
112
|
-
- app/assets/javascripts/fortitude/
|
113
|
-
- app/assets/javascripts/fortitude/
|
114
|
-
- app/assets/javascripts/fortitude/
|
115
|
-
- app/assets/javascripts/fortitude/
|
108
|
+
- app/assets/javascripts/fortitude.js
|
109
|
+
- app/assets/javascripts/fortitude/blocks/dropdown.js
|
110
|
+
- app/assets/javascripts/fortitude/blocks/flashbar.js
|
111
|
+
- app/assets/javascripts/fortitude/blocks/modal.js
|
112
|
+
- app/assets/javascripts/fortitude/blocks/navigationbar.js
|
113
|
+
- app/assets/javascripts/fortitude/blocks/select-input.js
|
114
|
+
- app/assets/javascripts/fortitude/blocks/shade.js
|
115
|
+
- app/assets/javascripts/fortitude/blocks/tabs.js
|
116
|
+
- app/assets/javascripts/fortitude/generic/get-target.js
|
117
|
+
- app/assets/javascripts/fortitude/generic/measure-scrollbar.js
|
118
|
+
- app/assets/javascripts/fortitude/generic/screen-lock.js
|
119
|
+
- app/assets/javascripts/fortitude/generic/transition-with.js
|
120
|
+
- app/assets/javascripts/fortitude/generic/viewport.js
|
121
|
+
- app/assets/javascripts/fortitude/generic/wait-for-animation.js
|
116
122
|
- app/assets/stylesheets/fortitude.scss
|
117
123
|
- app/assets/stylesheets/fortitude/api/blocks/_badge.scss
|
118
124
|
- app/assets/stylesheets/fortitude/api/blocks/_bare-list.scss
|
@@ -120,6 +126,7 @@ files:
|
|
120
126
|
- app/assets/stylesheets/fortitude/api/blocks/_box.scss
|
121
127
|
- app/assets/stylesheets/fortitude/api/blocks/_button.scss
|
122
128
|
- app/assets/stylesheets/fortitude/api/blocks/_container.scss
|
129
|
+
- app/assets/stylesheets/fortitude/api/blocks/_dropdown.scss
|
123
130
|
- app/assets/stylesheets/fortitude/api/blocks/_flag.scss
|
124
131
|
- app/assets/stylesheets/fortitude/api/blocks/_flashbar.scss
|
125
132
|
- app/assets/stylesheets/fortitude/api/blocks/_fluid-container.scss
|
@@ -148,6 +155,7 @@ files:
|
|
148
155
|
- app/assets/stylesheets/fortitude/blocks/_box.scss
|
149
156
|
- app/assets/stylesheets/fortitude/blocks/_button.scss
|
150
157
|
- app/assets/stylesheets/fortitude/blocks/_container.scss
|
158
|
+
- app/assets/stylesheets/fortitude/blocks/_dropdown.scss
|
151
159
|
- app/assets/stylesheets/fortitude/blocks/_flag.scss
|
152
160
|
- app/assets/stylesheets/fortitude/blocks/_flashbar.scss
|
153
161
|
- app/assets/stylesheets/fortitude/blocks/_fluid-container.scss
|
@@ -171,6 +179,15 @@ files:
|
|
171
179
|
- app/assets/stylesheets/fortitude/generic/_normalize.scss
|
172
180
|
- app/assets/stylesheets/fortitude/generic/_reset.scss
|
173
181
|
- app/assets/stylesheets/fortitude/settings/_defaults.scss
|
182
|
+
- app/assets/stylesheets/fortitude/theme.scss
|
183
|
+
- app/assets/stylesheets/fortitude/theme/base/_page.scss
|
184
|
+
- app/assets/stylesheets/fortitude/theme/extensions/_badge.scss
|
185
|
+
- app/assets/stylesheets/fortitude/theme/extensions/_box.scss
|
186
|
+
- app/assets/stylesheets/fortitude/theme/extensions/_button.scss
|
187
|
+
- app/assets/stylesheets/fortitude/theme/extensions/_flashbar.scss
|
188
|
+
- app/assets/stylesheets/fortitude/theme/extensions/_navigationbar.scss
|
189
|
+
- app/assets/stylesheets/fortitude/theme/extensions/_wings.scss
|
190
|
+
- app/assets/stylesheets/fortitude/theme/settings/_colors.scss
|
174
191
|
- app/assets/stylesheets/fortitude/tools/_functions.scss
|
175
192
|
- app/assets/stylesheets/fortitude/tools/_mixins.scss
|
176
193
|
- app/assets/stylesheets/fortitude/trumps/_responsive-border.scss
|
@@ -187,21 +204,47 @@ files:
|
|
187
204
|
- bin/fortitude
|
188
205
|
- bower.json
|
189
206
|
- config.rb
|
190
|
-
- dist/fortitude-theme.css
|
191
|
-
- dist/fortitude.css
|
192
|
-
- dist/fortitude.jquery.js
|
193
|
-
- dist/fortitude.min.js
|
194
207
|
- dist/icons/hamburger.png
|
195
208
|
- dist/icons_2x/hamburger.png
|
196
209
|
- fortitude-black.png
|
197
210
|
- fortitude.gemspec
|
198
211
|
- fortitude.png
|
212
|
+
- jasmine/fixtures/animations.css
|
213
|
+
- jasmine/fixtures/dropdownFixture.html
|
214
|
+
- jasmine/fixtures/flashbarFixture.html
|
215
|
+
- jasmine/fixtures/getTargetFixture.html
|
216
|
+
- jasmine/fixtures/measureScrollBarFixture.html
|
217
|
+
- jasmine/fixtures/modalFixture.html
|
218
|
+
- jasmine/fixtures/navigationbarFixture.html
|
219
|
+
- jasmine/fixtures/selectInputFixture.html
|
220
|
+
- jasmine/fixtures/shadeFixture.html
|
221
|
+
- jasmine/fixtures/tabsFixture.html
|
222
|
+
- jasmine/fixtures/transitionWithFixture.html
|
223
|
+
- jasmine/fixtures/viewportFixture.html
|
224
|
+
- jasmine/fixtures/waitForAnimationFixture.html
|
225
|
+
- jasmine/helpers/fixtureHelper.js
|
226
|
+
- jasmine/helpers/multiCallbackHelper.js
|
227
|
+
- jasmine/specs/blocks/dropdownSpec.js
|
228
|
+
- jasmine/specs/blocks/flashbarSpec.js
|
229
|
+
- jasmine/specs/blocks/modalSpec.js
|
230
|
+
- jasmine/specs/blocks/navigationbarSpec.js
|
231
|
+
- jasmine/specs/blocks/selectInputSpec.js
|
232
|
+
- jasmine/specs/blocks/shadeSpec.js
|
233
|
+
- jasmine/specs/blocks/tabsSpec.js
|
234
|
+
- jasmine/specs/generic/getTargetSpec.js
|
235
|
+
- jasmine/specs/generic/measureScrollbarSpec.js
|
236
|
+
- jasmine/specs/generic/screenLockSpec.js
|
237
|
+
- jasmine/specs/generic/transitionWithSpec.js
|
238
|
+
- jasmine/specs/generic/viewportSpec.js
|
239
|
+
- jasmine/specs/generic/waitForAnimationSpec.js
|
240
|
+
- jasmine/template.tmpl
|
199
241
|
- lib/fortitude-sass.rb
|
200
242
|
- lib/fortitude-sass/engine.rb
|
201
243
|
- lib/fortitude-sass/generator.rb
|
202
244
|
- lib/fortitude-sass/version.rb
|
203
245
|
- lib/tasks/install.rake
|
204
246
|
- package.json
|
247
|
+
- sass_specs/blocks/_shade_spec.scss
|
205
248
|
- sass_specs/tests.scss
|
206
249
|
- sass_specs/tools/_functions_spec.scss
|
207
250
|
homepage: https://github.com/fortitude/fortitude
|
@@ -224,7 +267,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
224
267
|
version: '0'
|
225
268
|
requirements: []
|
226
269
|
rubyforge_project: fortitude-sass
|
227
|
-
rubygems_version: 2.
|
270
|
+
rubygems_version: 2.4.3
|
228
271
|
signing_key:
|
229
272
|
specification_version: 4
|
230
273
|
summary: Fortitude Sass Framework
|