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,50 @@
|
|
1
|
+
(function($){
|
2
|
+
'use strict';
|
3
|
+
|
4
|
+
var itemActive = 'tabs-navigation__item--is-active',
|
5
|
+
targetActive = 'tabs__target--is-active',
|
6
|
+
tabItem = '.tabs-navigation__item[data-ft-tab]';
|
7
|
+
|
8
|
+
var selectTab = function($element){
|
9
|
+
var $target = $.ftGetTarget($element, 'ftTab'),
|
10
|
+
$siblings, activeClass;
|
11
|
+
|
12
|
+
$element.siblings().each(function(){
|
13
|
+
var $this = $(this),
|
14
|
+
$otherTarget = $.ftGetTarget($this, 'ftTab');
|
15
|
+
|
16
|
+
$this.ftTransitionWith({
|
17
|
+
dataAttr: 'ftHideClass',
|
18
|
+
removeClass: itemActive,
|
19
|
+
endEvent: 'deselected.ft.tab'
|
20
|
+
});
|
21
|
+
|
22
|
+
$otherTarget.ftTransitionWith({
|
23
|
+
dataAttr: 'ftHideClass',
|
24
|
+
removeClass: targetActive,
|
25
|
+
endEvent: 'closed.ft.tabtarget'
|
26
|
+
});
|
27
|
+
});
|
28
|
+
|
29
|
+
$element.ftTransitionWith({
|
30
|
+
dataAttr: 'ftShowClass',
|
31
|
+
addClass: itemActive,
|
32
|
+
endEvent: 'opened.ft.tab'
|
33
|
+
});
|
34
|
+
|
35
|
+
return $target.ftTransitionWith({
|
36
|
+
dataAttr: 'ftShowClass',
|
37
|
+
addClass: targetActive,
|
38
|
+
endEvent: 'opened.ft.tabtarget'
|
39
|
+
});
|
40
|
+
};
|
41
|
+
|
42
|
+
$(document).on('select.ft.tab', tabItem, function(event){
|
43
|
+
selectTab($(this));
|
44
|
+
});
|
45
|
+
|
46
|
+
$(document).on('click', tabItem, function(){
|
47
|
+
$(this).trigger('select.ft.tab');
|
48
|
+
});
|
49
|
+
|
50
|
+
})(jQuery);
|
@@ -0,0 +1,21 @@
|
|
1
|
+
(function($) {
|
2
|
+
'use strict';
|
3
|
+
|
4
|
+
$.measureScrollBar = function() {
|
5
|
+
var $body = $('body'),
|
6
|
+
element = document.createElement('div'),
|
7
|
+
scrollbarWidth = element.offsetWidth - element.clientWidth;
|
8
|
+
|
9
|
+
element.setAttribute('style',
|
10
|
+
'position: absolute; ' +
|
11
|
+
'top: -9999px; ' +
|
12
|
+
'width: 50px; ' +
|
13
|
+
'height: 50px; ' +
|
14
|
+
'overflow: scroll;'
|
15
|
+
);
|
16
|
+
|
17
|
+
$body.append(element);
|
18
|
+
$body.get(0).removeChild(element);
|
19
|
+
return scrollbarWidth;
|
20
|
+
};
|
21
|
+
})(jQuery);
|
@@ -2,9 +2,13 @@
|
|
2
2
|
'use strict';
|
3
3
|
|
4
4
|
$.screenLock = function(locking) {
|
5
|
-
var $html = $('html')
|
6
|
-
|
5
|
+
var $html = $('html'),
|
6
|
+
$body = $('body');
|
7
7
|
|
8
|
+
if(typeof(locking) === 'undefined'){
|
9
|
+
locking = true;
|
10
|
+
}
|
11
|
+
|
8
12
|
if (locking) {
|
9
13
|
$html.addClass('html--is-locked');
|
10
14
|
$body.css({paddingRight: $.measureScrollBar()});
|
@@ -0,0 +1,57 @@
|
|
1
|
+
(function($){
|
2
|
+
'use strict';
|
3
|
+
|
4
|
+
$.fn.ftTransitionWith = function(opts){
|
5
|
+
opts = opts || {};
|
6
|
+
|
7
|
+
var $this = $(this),
|
8
|
+
deferred = $.Deferred(),
|
9
|
+
endEvent = opts.endEvent,
|
10
|
+
addClass = opts.addClass,
|
11
|
+
removeClass = opts.removeClass,
|
12
|
+
dataAttr = opts.dataAttr,
|
13
|
+
callback = opts.callback,
|
14
|
+
existing = $this.data('ftTransitionWith'),
|
15
|
+
transitionClass;
|
16
|
+
|
17
|
+
if(existing) {
|
18
|
+
existing.reject('Initiated another ftTransitionWith');
|
19
|
+
}
|
20
|
+
|
21
|
+
transitionClass = $this.data(dataAttr);
|
22
|
+
|
23
|
+
if(transitionClass){
|
24
|
+
$this.addClass(transitionClass + ' ' + addClass)
|
25
|
+
.waitForAnimation()
|
26
|
+
.then(function(){
|
27
|
+
if(deferred.state() !== 'rejected'){
|
28
|
+
$this.removeClass(transitionClass);
|
29
|
+
if(addClass) { $this.addClass(addClass); }
|
30
|
+
if(removeClass) { $this.removeClass(removeClass); }
|
31
|
+
if(endEvent) { $this.trigger(endEvent); }
|
32
|
+
deferred.resolveWith($this);
|
33
|
+
}
|
34
|
+
});
|
35
|
+
|
36
|
+
deferred.fail(function(){
|
37
|
+
$this.removeClass(transitionClass);
|
38
|
+
});
|
39
|
+
|
40
|
+
} else {
|
41
|
+
|
42
|
+
// 1ms timeout so we can keep the promise interface
|
43
|
+
setTimeout(function(){
|
44
|
+
if(deferred.state() !== 'rejected'){
|
45
|
+
if(addClass) { $this.addClass(addClass); }
|
46
|
+
if(removeClass) { $this.removeClass(removeClass); }
|
47
|
+
if(endEvent) { $this.trigger(endEvent); }
|
48
|
+
deferred.resolveWith($this);
|
49
|
+
}
|
50
|
+
}, 1);
|
51
|
+
}
|
52
|
+
|
53
|
+
$this.data('ftTransitionWith', deferred);
|
54
|
+
return deferred.promise();
|
55
|
+
};
|
56
|
+
|
57
|
+
})(jQuery);
|
@@ -0,0 +1,21 @@
|
|
1
|
+
(function($) {
|
2
|
+
'use strict';
|
3
|
+
|
4
|
+
// zoom fix on input elements
|
5
|
+
$(document).on('focus blur', ':input', function(event) {
|
6
|
+
var $viewport = $('meta[name="viewport"]'),
|
7
|
+
scale = 1;
|
8
|
+
|
9
|
+
if(event.type === 'focusout' ||
|
10
|
+
event.type === 'blur'){
|
11
|
+
|
12
|
+
scale = 5;
|
13
|
+
}
|
14
|
+
|
15
|
+
$viewport.attr('content',
|
16
|
+
'width=device-width,' +
|
17
|
+
'initial-scale=1,' +
|
18
|
+
'maximum-scale=' + scale
|
19
|
+
);
|
20
|
+
});
|
21
|
+
})(jQuery);
|
@@ -0,0 +1,27 @@
|
|
1
|
+
(function($){
|
2
|
+
'use strict';
|
3
|
+
|
4
|
+
$.fn.waitForAnimation = function(){
|
5
|
+
var deferred = $.Deferred(),
|
6
|
+
$this = $(this),
|
7
|
+
existing = $this.data('ft-waiting');
|
8
|
+
|
9
|
+
|
10
|
+
if(existing){
|
11
|
+
existing.reject('Added second animation wait.');
|
12
|
+
}
|
13
|
+
|
14
|
+
$this.data('ft-waiting', deferred);
|
15
|
+
|
16
|
+
$this.one("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd", function(){
|
17
|
+
deferred.resolveWith($this);
|
18
|
+
});
|
19
|
+
|
20
|
+
$this.one("animationend webkitAnimationEnd oAnimationEnd MSAnimationEnd", function(){
|
21
|
+
deferred.resolveWith($this);
|
22
|
+
});
|
23
|
+
|
24
|
+
return deferred.promise();
|
25
|
+
};
|
26
|
+
|
27
|
+
})(jQuery);
|
@@ -0,0 +1 @@
|
|
1
|
+
//= require_tree ./fortitude
|
@@ -13,7 +13,7 @@ $fortitude-badge-horizontal-padding--default: 1rem !default;
|
|
13
13
|
$fortitude-badge-height--small: $fortitude-base-spacing-unit !default;
|
14
14
|
$fortitude-badge-horizontal-padding--small: 0.5rem !default;
|
15
15
|
|
16
|
-
$fortitude-badge-height--large: double($fortitude-base-spacing-unit) !default;
|
16
|
+
$fortitude-badge-height--large: fortitude-double($fortitude-base-spacing-unit) !default;
|
17
17
|
$fortitude-badge-horizontal-padding--large: 2rem !default;
|
18
18
|
|
19
19
|
$fortitude-enable-badge--small: false !default;
|
@@ -4,9 +4,9 @@
|
|
4
4
|
|
5
5
|
$fortitude-block-list-padding--default: $fortitude-base-spacing-unit !default;
|
6
6
|
|
7
|
-
$fortitude-block-list-padding--small: halve($fortitude-block-list-padding--default) !default;
|
7
|
+
$fortitude-block-list-padding--small: fortitude-halve($fortitude-block-list-padding--default) !default;
|
8
8
|
|
9
|
-
$fortitude-block-list-padding--large: double($fortitude-block-list-padding--default) !default;
|
9
|
+
$fortitude-block-list-padding--large: fortitude-double($fortitude-block-list-padding--default) !default;
|
10
10
|
|
11
11
|
$fortitude-enable-block-list--small: false !default;
|
12
12
|
$fortitude-enable-block-list--large: false !default;
|
@@ -12,7 +12,7 @@ $fortitude-button-horizontal-padding--default: fortitude-block-padding($fortitud
|
|
12
12
|
$fortitude-button-height--small: $fortitude-base-spacing-unit + 1rem !default;
|
13
13
|
$fortitude-button-horizontal-padding--small: fortitude-block-padding($fortitude-button-height--small, $fortitude-button-border-width) * 2 !default;
|
14
14
|
|
15
|
-
$fortitude-button-height--large: double($fortitude-base-spacing-unit) + 2rem !default;
|
15
|
+
$fortitude-button-height--large: fortitude-double($fortitude-base-spacing-unit) + 2rem !default;
|
16
16
|
$fortitude-button-horizontal-padding--large: fortitude-block-padding($fortitude-button-height--large, $fortitude-button-border-width) * 2 !default;
|
17
17
|
|
18
18
|
$fortitude-enable-button--small: false !default;
|
@@ -0,0 +1,45 @@
|
|
1
|
+
/*------------------------------------*\
|
2
|
+
#DROPDOWN
|
3
|
+
\*------------------------------------*/
|
4
|
+
|
5
|
+
@mixin fortitude-dropdown {
|
6
|
+
@include fortitude-clearfix;
|
7
|
+
}
|
8
|
+
|
9
|
+
@mixin fortitude-dropdown__navigation {
|
10
|
+
display: none;
|
11
|
+
position: absolute;
|
12
|
+
z-index: 1;
|
13
|
+
top: 100%;
|
14
|
+
}
|
15
|
+
|
16
|
+
@mixin fortitude-dropdown__text--is-checked {
|
17
|
+
display: none;
|
18
|
+
}
|
19
|
+
|
20
|
+
@mixin fortitude-dropdown__toggle {
|
21
|
+
cursor: pointer;
|
22
|
+
z-index: 1;
|
23
|
+
position: absolute;
|
24
|
+
top: 0;
|
25
|
+
right: 0;
|
26
|
+
bottom: 0;
|
27
|
+
left: 0;
|
28
|
+
width: 100%;
|
29
|
+
height: 100%;
|
30
|
+
outline: 0;
|
31
|
+
opacity: 0;
|
32
|
+
@include fortitude-appearance(none);
|
33
|
+
|
34
|
+
&:checked ~ .dropdown__navigation {
|
35
|
+
display: block;
|
36
|
+
}
|
37
|
+
|
38
|
+
&:checked ~ .dropdown__text {
|
39
|
+
display: none;
|
40
|
+
}
|
41
|
+
|
42
|
+
&:checked ~ .dropdown__text--is-checked {
|
43
|
+
display: block;
|
44
|
+
}
|
45
|
+
}
|
@@ -1,8 +1,8 @@
|
|
1
1
|
$fortitude-flag-gutter--default: $fortitude-base-spacing-unit !default;
|
2
2
|
|
3
|
-
$fortitude-flag-gutter--small: halve($fortitude-flag-gutter--default) !default;
|
3
|
+
$fortitude-flag-gutter--small: fortitude-halve($fortitude-flag-gutter--default) !default;
|
4
4
|
|
5
|
-
$fortitude-flag-gutter--large: double($fortitude-flag-gutter--default) !default;
|
5
|
+
$fortitude-flag-gutter--large: fortitude-double($fortitude-flag-gutter--default) !default;
|
6
6
|
|
7
7
|
$fortitude-flag-collapse-at--responsive: 720px !default;
|
8
8
|
|
@@ -6,12 +6,22 @@
|
|
6
6
|
* A simple flashbar object.
|
7
7
|
**/
|
8
8
|
|
9
|
+
$fortitude-flashbar-border-style: solid !default;
|
10
|
+
$fortitude-flashbar-border-width: 0 !default;
|
11
|
+
$fortitude-flashbar__close-text-decoration: none !default;
|
12
|
+
|
9
13
|
@mixin fortitude-flashbar($extensions: ()) {
|
10
14
|
@include fortitude-clearfix;
|
15
|
+
border: $fortitude-flashbar-border-width $fortitude-flashbar-border-style transparent;
|
11
16
|
position: relative;
|
12
17
|
}
|
13
18
|
|
19
|
+
@mixin fortitude-flashbar--closed($extensions: ()) {
|
20
|
+
display: none;
|
21
|
+
}
|
22
|
+
|
14
23
|
@mixin fortitude-flashbar__close($extensions: ()) {
|
15
24
|
position: absolute;
|
16
|
-
right: halve($fortitude-base-spacing-unit);
|
25
|
+
right: fortitude-halve($fortitude-base-spacing-unit);
|
26
|
+
text-decoration: $fortitude-flashbar__close-text-decoration;
|
17
27
|
}
|
@@ -7,7 +7,7 @@ $fortitude-field-input-border-color: #a9a9a9 !default;
|
|
7
7
|
$fortitude-field-input-border-radius: 0.2rem !default;
|
8
8
|
$fortitude-field-input-border-style: solid !default;
|
9
9
|
$fortitude-field-input-border-width: 0.1rem !default;
|
10
|
-
$fortitude-field-input-height: double($fortitude-base-spacing-unit) !default;
|
10
|
+
$fortitude-field-input-height: fortitude-double($fortitude-base-spacing-unit) !default;
|
11
11
|
$fortitude-field-input-placeholder-color: #a9a9a9 !default;
|
12
12
|
|
13
13
|
$fortitude-text-input-background-color: $fortitude-field-input-background-color !default;
|
@@ -348,7 +348,6 @@ $fortitude-global-border-box: false !default;
|
|
348
348
|
border-radius: 0;
|
349
349
|
padding: 0;
|
350
350
|
margin: 0;
|
351
|
-
outline: 0;
|
352
351
|
position: absolute;
|
353
352
|
top: 0;
|
354
353
|
right: 0;
|
@@ -359,4 +358,8 @@ $fortitude-global-border-box: false !default;
|
|
359
358
|
-moz-appearance: none;
|
360
359
|
-webkit-appearance: none;
|
361
360
|
appearance: none;
|
361
|
+
|
362
|
+
&:focus {
|
363
|
+
outline: 0;
|
364
|
+
}
|
362
365
|
}
|
@@ -3,8 +3,8 @@
|
|
3
3
|
\*------------------------------------*/
|
4
4
|
|
5
5
|
$fortitude-layout-gutter--default: $fortitude-base-spacing-unit !default;
|
6
|
-
$fortitude-layout-gutter--small: halve($fortitude-layout-gutter--default) !default;
|
7
|
-
$fortitude-layout-gutter--large: double($fortitude-layout-gutter--default) !default;
|
6
|
+
$fortitude-layout-gutter--small: fortitude-halve($fortitude-layout-gutter--default) !default;
|
7
|
+
$fortitude-layout-gutter--large: fortitude-double($fortitude-layout-gutter--default) !default;
|
8
8
|
|
9
9
|
$fortitude-enable-layout--small: false !default;
|
10
10
|
$fortitude-enable-layout--large: false !default;
|
@@ -3,8 +3,8 @@
|
|
3
3
|
\*------------------------------------*/
|
4
4
|
|
5
5
|
$fortitude-media-gutter: $fortitude-base-spacing-unit !default;
|
6
|
-
$fortitude-media-gutter--small: halve($fortitude-media-gutter) !default;
|
7
|
-
$fortitude-media-gutter--large: double($fortitude-media-gutter) !default;
|
6
|
+
$fortitude-media-gutter--small: fortitude-halve($fortitude-media-gutter) !default;
|
7
|
+
$fortitude-media-gutter--large: fortitude-double($fortitude-media-gutter) !default;
|
8
8
|
|
9
9
|
$fortitude-enable-media--small: false !default;
|
10
10
|
$fortitude-enable-media--large: false !default;
|
@@ -0,0 +1,28 @@
|
|
1
|
+
@mixin fortitude-modal($extensions: ()){
|
2
|
+
position: fixed;
|
3
|
+
top: 0;
|
4
|
+
right: 0;
|
5
|
+
bottom: 0;
|
6
|
+
left: 0;
|
7
|
+
z-index: 3;
|
8
|
+
display: none;
|
9
|
+
overflow: hidden;
|
10
|
+
overflow-y: auto;
|
11
|
+
|
12
|
+
@if $fortitude-enable-vendor-optimizations {
|
13
|
+
-webkit-overflow-scrolling: touch;
|
14
|
+
-moz-overflow-scrolling: touch;
|
15
|
+
overflow-scrolling: touch;
|
16
|
+
}
|
17
|
+
}
|
18
|
+
|
19
|
+
@mixin fortitude-modal--is-active($extensions: ()){
|
20
|
+
display: block;
|
21
|
+
}
|
22
|
+
|
23
|
+
@mixin fortitude-modal__content($extensions: ()){
|
24
|
+
position: relative;
|
25
|
+
width: auto;
|
26
|
+
margin: fortitude-halve($fortitude-base-spacing-unit);
|
27
|
+
// set width in extending class
|
28
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
$fortitude-navigationbar-height: 4rem !default;
|
@@ -3,10 +3,20 @@
|
|
3
3
|
\*------------------------------------*/
|
4
4
|
|
5
5
|
@mixin fortitude-shade($extensions: ()) {
|
6
|
-
|
6
|
+
$is-active: map-get($extensions, 'active');
|
7
|
+
|
8
|
+
@if($is-active){
|
9
|
+
@include fortitude-shade--is-active;
|
10
|
+
} @else {
|
11
|
+
display: none;
|
12
|
+
}
|
7
13
|
position: fixed;
|
8
14
|
top: 0;
|
9
15
|
right: 0;
|
10
16
|
bottom: 0;
|
11
17
|
left: 0;
|
12
18
|
}
|
19
|
+
|
20
|
+
@mixin fortitude-shade--is-active($extensions: ()) {
|
21
|
+
display: block;
|
22
|
+
}
|