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
@@ -3,8 +3,8 @@
|
|
3
3
|
\*------------------------------------*/
|
4
4
|
|
5
5
|
$fortitude-ui-list-padding--default: $fortitude-base-spacing-unit !default;
|
6
|
-
$fortitude-ui-list-padding--small: halve($fortitude-ui-list-padding--default) !default;
|
7
|
-
$fortitude-ui-list-padding--large: double($fortitude-ui-list-padding--default) !default;
|
6
|
+
$fortitude-ui-list-padding--small: fortitude-halve($fortitude-ui-list-padding--default) !default;
|
7
|
+
$fortitude-ui-list-padding--large: fortitude-double($fortitude-ui-list-padding--default) !default;
|
8
8
|
$fortitude-ui-list-border-width: 0.1rem !default;
|
9
9
|
$fortitude-ui-list-border-style: solid !default;
|
10
10
|
$fortitude-ui-list-border-color: #ccc !default;
|
@@ -3,7 +3,7 @@
|
|
3
3
|
\*------------------------------------*/
|
4
4
|
|
5
5
|
hr {
|
6
|
-
border-top: (halve($fortitude-base-spacing-unit) - 0.1rem) solid transparent;
|
6
|
+
border-top: (fortitude-halve($fortitude-base-spacing-unit) - 0.1rem) solid transparent;
|
7
7
|
border-bottom: 0.1rem solid;
|
8
8
|
border-right-color: transparent;
|
9
9
|
border-left-color: transparent;
|
@@ -11,7 +11,7 @@ hr {
|
|
11
11
|
|
12
12
|
.hr--top {
|
13
13
|
border-top: 0.1rem solid;
|
14
|
-
border-bottom: (halve($fortitude-base-spacing-unit) - 0.1rem) solid transparent;
|
14
|
+
border-bottom: (fortitude-halve($fortitude-base-spacing-unit) - 0.1rem) solid transparent;
|
15
15
|
}
|
16
16
|
|
17
17
|
.hr--dashed {
|
@@ -16,8 +16,6 @@
|
|
16
16
|
html {
|
17
17
|
font-size: $fortitude-base-rem-font-size;
|
18
18
|
/* [1] */
|
19
|
-
line-height: $fortitude-base-line-height / $fortitude-base-font-size;
|
20
|
-
/* [1] */
|
21
19
|
background-color: $fortitude-base-background-color;
|
22
20
|
color: $fortitude-base-color;
|
23
21
|
overflow-y: scroll;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
.#{$fortitude-namespace}dropdown {
|
2
|
+
@include fortitude-dropdown;
|
3
|
+
}
|
4
|
+
|
5
|
+
.#{$fortitude-namespace}dropdown__navigation {
|
6
|
+
@include fortitude-dropdown__navigation;
|
7
|
+
}
|
8
|
+
|
9
|
+
.#{$fortitude-namespace}dropdown__text--is-checked {
|
10
|
+
@include fortitude-dropdown__text--is-checked;
|
11
|
+
}
|
12
|
+
|
13
|
+
.#{$fortitude-namespace}dropdown__toggle {
|
14
|
+
@include fortitude-dropdown__toggle;
|
15
|
+
}
|
@@ -1,7 +1,13 @@
|
|
1
|
+
$fortitude-enable-flashbar: true;
|
2
|
+
|
1
3
|
.#{$fortitude-namespace}flashbar {
|
2
4
|
@include fortitude-flashbar;
|
3
5
|
}
|
4
6
|
|
7
|
+
.#{$fortitude-namespace}flashbar--closed {
|
8
|
+
@include fortitude-flashbar--closed;
|
9
|
+
}
|
10
|
+
|
5
11
|
.#{$fortitude-namespace}flashbar__close {
|
6
12
|
@include fortitude-flashbar__close;
|
7
13
|
}
|
@@ -1,21 +1,13 @@
|
|
1
|
+
$fortitude-enable-modal: true;
|
2
|
+
|
1
3
|
.#{$fortitude-namespace}modal {
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
z-index: 3;
|
8
|
-
display: none;
|
9
|
-
overflow: hidden;
|
10
|
-
overflow-y: auto;
|
11
|
-
-webkit-overflow-scrolling: touch;
|
12
|
-
-moz-overflow-scrolling: touch;
|
13
|
-
overflow-scrolling: touch;
|
4
|
+
@include fortitude-modal;
|
5
|
+
}
|
6
|
+
|
7
|
+
.#{$fortitude-namespace}modal--is-active {
|
8
|
+
@include fortitude-modal--is-active;
|
14
9
|
}
|
15
10
|
|
16
11
|
.#{$fortitude-namespace}modal__content {
|
17
|
-
|
18
|
-
width: auto;
|
19
|
-
margin: halve($fortitude-base-spacing-unit);
|
20
|
-
// set width in extending class
|
12
|
+
@include fortitude-modal__content;
|
21
13
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
$fortitude-navigationbar
|
1
|
+
$fortitude-enable-navigationbar: true;
|
2
2
|
|
3
3
|
.#{$fortitude-namespace}navigationbar {
|
4
4
|
position: relative;
|
@@ -104,12 +104,15 @@ $fortitude-navigationbar-height: 4rem !default;
|
|
104
104
|
.#{$fortitude-namespace}navigationbar__toggle__helper {
|
105
105
|
float: right;
|
106
106
|
position: relative;
|
107
|
-
outline: 0;
|
108
107
|
opacity: 0;
|
109
108
|
-webkit-appearance: none;
|
110
109
|
-moz-appearance: none;
|
111
110
|
appearance: none;
|
112
111
|
|
112
|
+
&:focus {
|
113
|
+
outline: 0;
|
114
|
+
}
|
115
|
+
|
113
116
|
+ .#{$fortitude-namespace}navigationbar__navigation {
|
114
117
|
display: none;
|
115
118
|
position: absolute;
|
@@ -1,9 +1,4 @@
|
|
1
|
-
|
2
|
-
#TABLES
|
3
|
-
\*------------------------------------*/
|
4
|
-
|
5
|
-
// Predefine the variables below in order to alter and enable specific features.
|
6
|
-
$fortitude-enable-table--fixed: false !default;
|
1
|
+
$fortitude-enable-table: true;
|
7
2
|
|
8
3
|
.#{$fortitude-namespace}table,
|
9
4
|
%#{$fortitude-namespace}table {
|
@@ -1,3 +1,5 @@
|
|
1
|
+
$fortitude-enable-tabs-navigation: true;
|
2
|
+
|
1
3
|
.#{$fortitude-namespace}tabs-navigation {
|
2
4
|
@include fortitude-tabs-navigation;
|
3
5
|
}
|
@@ -10,6 +12,10 @@
|
|
10
12
|
@include fortitude-tabs-navigation__item;
|
11
13
|
}
|
12
14
|
|
15
|
+
.#{$fortitude-namespace}tabs-navigation__item--is-active {
|
16
|
+
@include fortitude-tabs-navigation__item--is-active;
|
17
|
+
}
|
18
|
+
|
13
19
|
.#{$fortitude-namespace}tabs-navigation__link {
|
14
20
|
@include fortitude-tabs-navigation__link;
|
15
21
|
}
|
@@ -1,3 +1,5 @@
|
|
1
|
+
$fortitude-enable-wings: true;
|
2
|
+
|
1
3
|
.#{$fortitude-namespace}wings {
|
2
4
|
display: table;
|
3
5
|
width: 100%;
|
@@ -8,7 +10,7 @@
|
|
8
10
|
vertical-align: middle;
|
9
11
|
white-space: nowrap;
|
10
12
|
width: 0.1rem;
|
11
|
-
padding: 0 double($fortitude-base-spacing-unit);
|
13
|
+
padding: 0 fortitude-double($fortitude-base-spacing-unit);
|
12
14
|
}
|
13
15
|
|
14
16
|
.#{$fortitude-namespace}wings__wing {
|
@@ -8,11 +8,25 @@ body {
|
|
8
8
|
margin: 0;
|
9
9
|
}
|
10
10
|
|
11
|
-
article,
|
11
|
+
article,
|
12
|
+
aside,
|
13
|
+
details,
|
14
|
+
figcaption,
|
15
|
+
figure,
|
16
|
+
footer,
|
17
|
+
header,
|
18
|
+
hgroup,
|
19
|
+
main,
|
20
|
+
nav,
|
21
|
+
section,
|
22
|
+
summary {
|
12
23
|
display: block;
|
13
24
|
}
|
14
25
|
|
15
|
-
audio,
|
26
|
+
audio,
|
27
|
+
canvas,
|
28
|
+
progress,
|
29
|
+
video {
|
16
30
|
display: inline-block;
|
17
31
|
vertical-align: baseline;
|
18
32
|
}
|
@@ -22,14 +36,16 @@ audio:not([controls]) {
|
|
22
36
|
height: 0;
|
23
37
|
}
|
24
38
|
|
25
|
-
[hidden],
|
39
|
+
[hidden],
|
40
|
+
template {
|
26
41
|
display: none;
|
27
42
|
}
|
28
43
|
|
29
44
|
a {
|
30
45
|
background: transparent;
|
31
|
-
|
32
|
-
|
46
|
+
|
47
|
+
&:focus {
|
48
|
+
outline: none;
|
33
49
|
}
|
34
50
|
}
|
35
51
|
|
@@ -37,7 +53,8 @@ abbr[title] {
|
|
37
53
|
border-bottom: 1px dotted;
|
38
54
|
}
|
39
55
|
|
40
|
-
b,
|
56
|
+
b,
|
57
|
+
strong {
|
41
58
|
font-weight: bold;
|
42
59
|
}
|
43
60
|
|
@@ -100,12 +117,19 @@ pre {
|
|
100
117
|
overflow: auto;
|
101
118
|
}
|
102
119
|
|
103
|
-
code,
|
120
|
+
code,
|
121
|
+
kbd,
|
122
|
+
pre,
|
123
|
+
samp {
|
104
124
|
font-family: monospace, monospace;
|
105
125
|
font-size: 1em;
|
106
126
|
}
|
107
127
|
|
108
|
-
button,
|
128
|
+
button,
|
129
|
+
input,
|
130
|
+
optgroup,
|
131
|
+
select,
|
132
|
+
textarea {
|
109
133
|
color: inherit;
|
110
134
|
font: inherit;
|
111
135
|
margin: 0;
|
@@ -120,19 +144,26 @@ select {
|
|
120
144
|
text-transform: none;
|
121
145
|
}
|
122
146
|
|
123
|
-
button,
|
147
|
+
button,
|
148
|
+
html input[type="button"] {
|
149
|
+
-moz-appearance: button;
|
124
150
|
-webkit-appearance: button;
|
151
|
+
appearance: button;
|
125
152
|
cursor: pointer;
|
126
153
|
}
|
127
154
|
|
128
155
|
input {
|
129
|
-
&[type="reset"],
|
156
|
+
&[type="reset"],
|
157
|
+
&[type="submit"] {
|
158
|
+
-moz-appearance: button;
|
130
159
|
-webkit-appearance: button;
|
160
|
+
appearance: button;
|
131
161
|
cursor: pointer;
|
132
162
|
}
|
133
163
|
}
|
134
164
|
|
135
|
-
button[disabled],
|
165
|
+
button[disabled],
|
166
|
+
html input[disabled] {
|
136
167
|
cursor: default;
|
137
168
|
}
|
138
169
|
|
@@ -147,23 +178,28 @@ input {
|
|
147
178
|
padding: 0;
|
148
179
|
}
|
149
180
|
line-height: normal;
|
150
|
-
&[type="checkbox"],
|
181
|
+
&[type="checkbox"],
|
182
|
+
&[type="radio"] {
|
151
183
|
-moz-box-sizing: border-box;
|
152
184
|
box-sizing: border-box;
|
153
185
|
padding: 0;
|
154
186
|
}
|
155
187
|
&[type="number"] {
|
156
|
-
&::-webkit-inner-spin-button,
|
188
|
+
&::-webkit-inner-spin-button,
|
189
|
+
&::-webkit-outer-spin-button {
|
157
190
|
height: auto;
|
158
191
|
}
|
159
192
|
}
|
160
193
|
&[type="search"] {
|
161
194
|
@if $fortitude-global-border-box == false {
|
195
|
+
-moz-appearance: textfield;
|
162
196
|
-webkit-appearance: textfield;
|
197
|
+
appearance: textfield;
|
163
198
|
-moz-box-sizing: content-box;
|
164
199
|
box-sizing: content-box;
|
165
200
|
}
|
166
|
-
&::-webkit-search-cancel-button,
|
201
|
+
&::-webkit-search-cancel-button,
|
202
|
+
&::-webkit-search-decoration {
|
167
203
|
-webkit-appearance: none;
|
168
204
|
}
|
169
205
|
}
|
@@ -193,6 +229,7 @@ table {
|
|
193
229
|
border-spacing: 0;
|
194
230
|
}
|
195
231
|
|
196
|
-
td,
|
232
|
+
td,
|
233
|
+
th {
|
197
234
|
padding: 0;
|
198
235
|
}
|