fortitude-sass 0.4.9 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +6 -5
  3. data/Gemfile.lock +1 -1
  4. data/app/assets/stylesheets/fortitude/base/_hr.scss +7 -7
  5. data/app/assets/stylesheets/fortitude/base/_images.scss +10 -12
  6. data/app/assets/stylesheets/fortitude/base/_lists.scss +6 -8
  7. data/app/assets/stylesheets/fortitude/base/_page.scss +14 -10
  8. data/app/assets/stylesheets/fortitude/blocks/_badge.scss +28 -137
  9. data/app/assets/stylesheets/fortitude/blocks/_bare-list.scss +0 -12
  10. data/app/assets/stylesheets/fortitude/blocks/_block-list.scss +20 -74
  11. data/app/assets/stylesheets/fortitude/blocks/_box.scss +1 -27
  12. data/app/assets/stylesheets/fortitude/blocks/_button.scss +38 -219
  13. data/app/assets/stylesheets/fortitude/blocks/_container.scss +2 -50
  14. data/app/assets/stylesheets/fortitude/blocks/_flag.scss +113 -397
  15. data/app/assets/stylesheets/fortitude/blocks/_flashbar.scss +0 -18
  16. data/app/assets/stylesheets/fortitude/blocks/_fluid-container.scss +2 -11
  17. data/app/assets/stylesheets/fortitude/blocks/_inline-list.scss +3 -15
  18. data/app/assets/stylesheets/fortitude/blocks/_input.scss +14 -355
  19. data/app/assets/stylesheets/fortitude/blocks/_layout.scss +77 -263
  20. data/app/assets/stylesheets/fortitude/blocks/_list-navigation.scss +6 -29
  21. data/app/assets/stylesheets/fortitude/blocks/_media.scss +104 -265
  22. data/app/assets/stylesheets/fortitude/blocks/_modal.scss +2 -2
  23. data/app/assets/stylesheets/fortitude/blocks/_navigationbar.scss +26 -43
  24. data/app/assets/stylesheets/fortitude/blocks/_shade.scss +2 -21
  25. data/app/assets/stylesheets/fortitude/blocks/_table.scss +11 -21
  26. data/app/assets/stylesheets/fortitude/blocks/_tabs-navigation.scss +8 -51
  27. data/app/assets/stylesheets/fortitude/blocks/_tabs.scss +1 -13
  28. data/app/assets/stylesheets/fortitude/blocks/_text.scss +7 -7
  29. data/app/assets/stylesheets/fortitude/blocks/_tooltip.scss +1 -171
  30. data/app/assets/stylesheets/fortitude/blocks/_ui-list.scss +20 -88
  31. data/app/assets/stylesheets/fortitude/blocks/_wings.scss +27 -28
  32. data/app/assets/stylesheets/fortitude/generic/_box-sizing.scss +8 -11
  33. data/app/assets/stylesheets/fortitude/generic/_clearfix.scss +1 -1
  34. data/app/assets/stylesheets/fortitude/generic/_normalize.scss +2 -4
  35. data/app/assets/stylesheets/fortitude/generic/_reset.scss +5 -32
  36. data/app/assets/stylesheets/fortitude/settings/_defaults.scss +15 -33
  37. data/app/assets/stylesheets/fortitude/tools/_functions.scss +57 -60
  38. data/app/assets/stylesheets/fortitude/tools/_mixins.scss +38 -35
  39. data/app/assets/stylesheets/fortitude/trumps/_responsive-border.scss +25 -32
  40. data/app/assets/stylesheets/fortitude/trumps/_responsive-column.scss +18 -19
  41. data/app/assets/stylesheets/fortitude/trumps/_responsive-display.scss +2 -9
  42. data/app/assets/stylesheets/fortitude/trumps/_responsive-float.scss +10 -10
  43. data/app/assets/stylesheets/fortitude/trumps/_responsive-font.scss +11 -9
  44. data/app/assets/stylesheets/fortitude/trumps/_responsive-height.scss +8 -6
  45. data/app/assets/stylesheets/fortitude/trumps/_responsive-line-height.scss +11 -10
  46. data/app/assets/stylesheets/fortitude/trumps/_responsive-margin.scss +88 -127
  47. data/app/assets/stylesheets/fortitude/trumps/_responsive-padding.scss +45 -62
  48. data/app/assets/stylesheets/fortitude/trumps/_responsive-text.scss +12 -13
  49. data/app/assets/stylesheets/fortitude/trumps/_screen-lock.scss +1 -1
  50. data/app/assets/stylesheets/fortitude.scss +24 -0
  51. data/bower.json +1 -1
  52. data/lib/fortitude-sass/version.rb +1 -1
  53. metadata +2 -13
  54. data/app/assets/stylesheets/fortitude/theme/base/_page.scss +0 -19
  55. data/app/assets/stylesheets/fortitude/theme/extensions/_badge.scss +0 -7
  56. data/app/assets/stylesheets/fortitude/theme/extensions/_box.scss +0 -13
  57. data/app/assets/stylesheets/fortitude/theme/extensions/_button.scss +0 -7
  58. data/app/assets/stylesheets/fortitude/theme/extensions/_flashbar.scss +0 -6
  59. data/app/assets/stylesheets/fortitude/theme/extensions/_navigationbar.scss +0 -50
  60. data/app/assets/stylesheets/fortitude/theme/extensions/_text.scss +0 -5
  61. data/app/assets/stylesheets/fortitude/theme/extensions/_wings.scss +0 -9
  62. data/app/assets/stylesheets/fortitude/theme/settings/_colors.scss +0 -53
  63. data/app/assets/stylesheets/fortitude/theme/settings/_defaults.scss +0 -5
  64. data/app/assets/stylesheets/fortitude/theme.scss +0 -11
@@ -6,53 +6,56 @@
6
6
  // working with it, can make use of.
7
7
 
8
8
  // Predefine the variables below in order to alter and enable specific features.
9
- $fortitude-enable-classes: false !default;
10
-
11
-
9
+ $fortitude-enable-classes: false !default;
12
10
 
13
11
  @mixin fortitude-breakpoint($fortitude-alias, $fortitude-breakpoints: $fortitude-class-breakpoints) {
14
- $fortitude-query: fortitude-query(map-get($fortitude-breakpoints, $fortitude-alias));
15
- // if there is no media query.
16
- @if not $fortitude-query {
17
- @content;
18
- } @else {
19
- // if there is a media query.
20
- @media #{$fortitude-query} {
21
- @content;
22
- }
12
+ $fortitude-query: fortitude-query(map-get($fortitude-breakpoints, $fortitude-alias));
13
+ // if there is no media query.
14
+ @if not $fortitude-query {
15
+ @content;
16
+ }
17
+ @else {
18
+ // if there is a media query.
19
+ @media #{$fortitude-query} {
20
+ @content;
23
21
  }
22
+ }
24
23
  }
25
24
 
26
25
  @mixin fortitude-breakpoint-classes($fortitude-breakpoints: $fortitude-class-breakpoints) {
27
- @each $fortitude-alias, $fortitude-breakpoint in $fortitude-breakpoints {
28
- $fortitude-query: fortitude-query($fortitude-breakpoint);
29
- .#{$fortitude-alias} {
30
- // if there is no media query.
31
- @if not $fortitude-query {
32
- @content;
33
- }
34
- // if there is a media query.
35
- @else {
36
- @media #{$fortitude-query} {
37
- @content;
38
- }
39
- }
26
+ @each $fortitude-alias, $fortitude-breakpoint in $fortitude-breakpoints {
27
+ $fortitude-query: fortitude-query($fortitude-breakpoint);
28
+ .#{$fortitude-alias} {
29
+ // if there is no media query.
30
+ @if not $fortitude-query {
31
+ @content;
32
+ }
33
+ @else {
34
+ @media #{$fortitude-query} {
35
+ @content;
40
36
  }
37
+ }
41
38
  }
39
+ }
42
40
  }
43
41
 
44
42
  @mixin fortitude-font-size($fortitude-font-size, $fortitude-line-height: true) {
45
- font-size: $fortitude-font-size;
46
-
47
- @if $fortitude-line-height == true {
48
- line-height: ceil($fortitude-font-size / $fortitude-base-line-height) * $fortitude-base-line-height;
49
- }
43
+ font-size: $fortitude-font-size;
44
+ @if $fortitude-line-height == true {
45
+ line-height: ceil($fortitude-font-size / $fortitude-base-line-height) * $fortitude-base-line-height;
46
+ }
50
47
  }
51
48
 
52
49
  @mixin fortitude-clearfix {
53
- &:after {
54
- content: "";
55
- display: table;
56
- clear: both;
57
- }
50
+ &:after {
51
+ content: "";
52
+ display: table;
53
+ clear: both;
54
+ }
55
+ }
56
+
57
+ @mixin fortitude-utility-class {
58
+ ##{$fortitude-app-id} {
59
+ @content;
60
+ }
58
61
  }
@@ -1,35 +1,28 @@
1
1
  $fortitude-responsive-border-unit-total: 1 !default;
2
2
 
3
- @include fortitude-breakpoint-classes {
4
- @for $i from 0 through $fortitude-responsive-border-unit-total {
5
- ##{$fortitude-app-id} &-b#{$i} {
6
- border-width: $i * 0.1rem;
7
- }
8
-
9
- ##{$fortitude-app-id} &-btb#{$i} {
10
- border-top-width: $i * 0.1rem;
11
- border-bottom-width: $i * 0.1rem;
12
- }
13
-
14
- ##{$fortitude-app-id} &-brl#{$i} {
15
- border-right-width: $i * 0.1rem;
16
- border-left-width: $i * 0.1rem;
17
- }
18
-
19
- ##{$fortitude-app-id} &-bl#{$i} {
20
- border-left-width: $i * 0.1rem;
21
- }
22
-
23
- ##{$fortitude-app-id} &-bb#{$i} {
24
- border-bottom-width: $i * 0.1rem;
25
- }
26
-
27
- ##{$fortitude-app-id} &-br#{$i} {
28
- border-right-width: $i * 0.1rem;
29
- }
30
-
31
- ##{$fortitude-app-id} &-bt#{$i} {
32
- border-top-width: $i * 0.1rem;
33
- }
3
+ @include fortitude-utility-class {
4
+ @include fortitude-breakpoint-classes {
5
+ @for $fortitude-index from 0 through $fortitude-responsive-border-unit-total {
6
+ &-bt#{$fortitude-index},
7
+ &-b#{$fortitude-index},
8
+ &-btb#{$fortitude-index} {
9
+ border-top-width: $fortitude-index * 0.1rem;
10
+ }
11
+ &-br#{$fortitude-index},
12
+ &-b#{$fortitude-index},
13
+ &-brl#{$fortitude-index} {
14
+ border-right-width: $fortitude-index * 0.1rem;
15
+ }
16
+ &-bb#{$fortitude-index},
17
+ &-b#{$fortitude-index},
18
+ &-btb#{$fortitude-index} {
19
+ border-bottom-width: $fortitude-index * 0.1rem;
20
+ }
21
+ &-bl#{$fortitude-index},
22
+ &-b#{$fortitude-index},
23
+ &-brl#{$fortitude-index} {
24
+ border-left-width: $fortitude-index * 0.1rem;
25
+ }
34
26
  }
35
- }
27
+ }
28
+ }
@@ -1,7 +1,7 @@
1
1
  $fortitude-responsive-column-total: 12 !default;
2
2
 
3
3
  @mixin fortitude-column($fortitude-index) {
4
- width: percentage($fortitude-index / $fortitude-responsive-column-total);
4
+ width: percentage($fortitude-index / $fortitude-responsive-column-total);
5
5
  }
6
6
 
7
7
  @mixin fortitude-column-offset($fortitude-index) {
@@ -16,22 +16,21 @@ $fortitude-responsive-column-total: 12 !default;
16
16
  right: percentage($fortitude-index / $fortitude-responsive-column-total);
17
17
  }
18
18
 
19
- @include fortitude-breakpoint-classes {
20
- @for $i from 0 through $fortitude-responsive-column-total {
21
- ##{$fortitude-app-id} &-#{$i}of#{$fortitude-responsive-column-total} {
22
- @include fortitude-column($i);
23
- }
24
-
25
- ##{$fortitude-app-id} &-offset#{$i}of#{$fortitude-responsive-column-total} {
26
- @include fortitude-column-offset($i);
27
- }
28
-
29
- ##{$fortitude-app-id} &-push#{$i}of#{$fortitude-responsive-column-total} {
30
- @include fortitude-column-push($i);
31
- }
32
-
33
- ##{$fortitude-app-id} &-pull#{$i}of#{$fortitude-responsive-column-total} {
34
- @include fortitude-column-pull($i);
35
- }
19
+ @include fortitude-utility-class {
20
+ @include fortitude-breakpoint-classes {
21
+ @for $fortitude-index from 0 through $fortitude-responsive-column-total {
22
+ &-#{$fortitude-index}of#{$fortitude-responsive-column-total} {
23
+ @include fortitude-column($fortitude-index);
24
+ }
25
+ &-offset#{$fortitude-index}of#{$fortitude-responsive-column-total} {
26
+ @include fortitude-column-offset($fortitude-index);
27
+ }
28
+ &-push#{$fortitude-index}of#{$fortitude-responsive-column-total} {
29
+ @include fortitude-column-push($fortitude-index);
30
+ }
31
+ &-pull#{$fortitude-index}of#{$fortitude-responsive-column-total} {
32
+ @include fortitude-column-pull($fortitude-index);
33
+ }
36
34
  }
37
- }
35
+ }
36
+ }
@@ -1,35 +1,28 @@
1
- ##{$fortitude-app-id} {
1
+ @include fortitude-utility-class {
2
2
  @include fortitude-breakpoint-classes {
3
3
  &-none {
4
4
  display: none;
5
5
  }
6
-
7
6
  &-inline {
8
7
  display: inline;
9
8
  }
10
-
11
9
  &-inline-block {
12
10
  display: inline-block;
13
11
  }
14
-
15
12
  &-block {
16
13
  display: block;
17
14
  }
18
-
19
15
  &-table {
20
16
  display: table;
21
17
  }
22
-
23
18
  &-table-cell {
24
19
  display: table-cell;
25
20
  }
26
-
27
21
  &-table-column {
28
22
  display: table-column;
29
23
  }
30
-
31
24
  &-inherit {
32
25
  display: inherit;
33
26
  }
34
27
  }
35
- }
28
+ }
@@ -1,13 +1,13 @@
1
- @include fortitude-breakpoint-classes {
2
- ##{$fortitude-app-id} &-float-left {
3
- float: left;
1
+ @include fortitude-utility-class {
2
+ @include fortitude-breakpoint-classes {
3
+ &-float-left {
4
+ float: left;
4
5
  }
5
-
6
- ##{$fortitude-app-id} &-float-right {
7
- float: right;
6
+ &-float-right {
7
+ float: right;
8
8
  }
9
-
10
- ##{$fortitude-app-id} &-float-none {
11
- float: none;
9
+ &-float-none {
10
+ float: none;
12
11
  }
13
- }
12
+ }
13
+ }
@@ -1,13 +1,15 @@
1
- $fortitude-responsive-font-sizes: (alpha: 3.6rem, beta: 3.0rem, gamma: 2.4rem, delta: 1.8rem, epsilon: 1.4rem, zeta: 1.0rem) !default;
1
+ $fortitude-responsive-font-sizes: (alpha: 3.6rem, beta: 3rem, gamma: 2.4rem, delta: 1.8rem, epsilon: 1.4rem, zeta: 1rem) !default;
2
2
 
3
- @mixin fortitude-font-size-alias($alias, $line-height: false) {
4
- @include fortitude-font-size(map-get($fortitude-responsive-font-sizes, $alias), $line-height);
3
+ @mixin fortitude-font-size-alias($fortitude-alias, $fortitude-line-height: false) {
4
+ @include fortitude-font-size(map-get($fortitude-responsive-font-sizes, $fortitude-alias), $fortitude-line-height);
5
5
  }
6
6
 
7
- @include fortitude-breakpoint-classes {
8
- @each $alias, $size in $fortitude-responsive-font-sizes {
9
- ##{$fortitude-app-id} &-#{$alias} {
10
- @include fortitude-font-size-alias($alias);
11
- }
7
+ @include fortitude-utility-class {
8
+ @include fortitude-breakpoint-classes {
9
+ @each $fortitude-alias, $fortitude-size in $fortitude-responsive-font-sizes {
10
+ &-#{$fortitude-alias} {
11
+ @include fortitude-font-size-alias($fortitude-alias);
12
+ }
12
13
  }
13
- }
14
+ }
15
+ }
@@ -1,13 +1,15 @@
1
1
  $fortitude-responsive-height-total: 12 !default;
2
2
 
3
3
  @mixin fortitude-height($fortitude-index) {
4
- min-height: $fortitude-base-spacing-unit * $fortitude-index;
4
+ min-height: $fortitude-base-spacing-unit * $fortitude-index;
5
5
  }
6
6
 
7
- @for $i from 1 through $fortitude-responsive-height-total {
7
+ @include fortitude-utility-class {
8
+ @for $fortitude-index from 1 through $fortitude-responsive-height-total {
8
9
  @include fortitude-breakpoint-classes {
9
- ##{$fortitude-app-id} &-#{$i} {
10
- @include fortitude-height($i);
11
- }
10
+ &-#{$fortitude-index} {
11
+ @include fortitude-height($fortitude-index);
12
+ }
12
13
  }
13
- }
14
+ }
15
+ }
@@ -1,13 +1,14 @@
1
1
  $fortitude-responsive-line-height-unit-total: 2 !default;
2
2
 
3
- @include fortitude-breakpoint-classes {
4
- @for $i from 0 through $fortitude-responsive-line-height-unit-total {
5
- ##{$fortitude-app-id} &-inset#{$i} {
6
- line-height: $fortitude-base-line-height * $i;
7
- }
8
-
9
- ##{$fortitude-app-id} &-inseth#{$i} {
10
- line-height: ($fortitude-base-line-height * $i) + halve($fortitude-base-line-height);
11
- }
3
+ @include fortitude-utility-class {
4
+ @include fortitude-breakpoint-classes {
5
+ @for $fortitude-index from 0 through $fortitude-responsive-line-height-unit-total {
6
+ &-inset#{$fortitude-index} {
7
+ line-height: $fortitude-base-line-height * $fortitude-index;
8
+ }
9
+ &-inseth#{$fortitude-index} {
10
+ line-height: $fortitude-base-line-height * $fortitude-index + halve($fortitude-base-line-height);
11
+ }
12
12
  }
13
- }
13
+ }
14
+ }
@@ -1,134 +1,95 @@
1
1
  $fortitude-responsive-margin-unit-total: 10 !default;
2
2
  $fortitude-responsive-negative-margin-unit-total: 10 !default;
3
3
 
4
-
5
- @include fortitude-breakpoint-classes {
6
- @for $i from 0 through $fortitude-responsive-margin-unit-total {
7
- ##{$fortitude-app-id} &-mh#{$i} {
8
- margin: $fortitude-base-spacing-unit * $i + halve($fortitude-base-spacing-unit);
9
- }
10
-
11
- ##{$fortitude-app-id} &-m#{$i} {
12
- margin: $fortitude-base-spacing-unit * $i;
13
- }
14
-
15
- ##{$fortitude-app-id} &-mtbh#{$i} {
16
- margin-top: $fortitude-base-spacing-unit * $i + halve($fortitude-base-spacing-unit);
17
- margin-bottom: $fortitude-base-spacing-unit * $i + halve($fortitude-base-spacing-unit);
18
- }
19
-
20
- ##{$fortitude-app-id} &-mtb#{$i} {
21
- margin-top: $fortitude-base-spacing-unit * $i;
22
- margin-bottom: $fortitude-base-spacing-unit * $i;
23
- }
24
-
25
- ##{$fortitude-app-id} &-mrlh#{$i} {
26
- margin-right: $fortitude-base-spacing-unit * $i + halve($fortitude-base-spacing-unit);
27
- margin-left: $fortitude-base-spacing-unit * $i + halve($fortitude-base-spacing-unit);
28
- }
29
-
30
- ##{$fortitude-app-id} &-mrl#{$i} {
31
- margin-right: $fortitude-base-spacing-unit * $i;
32
- margin-left: $fortitude-base-spacing-unit * $i;
33
- }
34
-
35
- ##{$fortitude-app-id} &-mlh#{$i} {
36
- margin-left: $fortitude-base-spacing-unit * $i + halve($fortitude-base-spacing-unit);
37
- }
38
-
39
- ##{$fortitude-app-id} &-ml#{$i} {
40
- margin-left: $fortitude-base-spacing-unit * $i;
41
- }
42
-
43
- ##{$fortitude-app-id} &-mbh#{$i} {
44
- margin-bottom: $fortitude-base-spacing-unit * $i + halve($fortitude-base-spacing-unit);
45
- }
46
-
47
- ##{$fortitude-app-id} &-mb#{$i} {
48
- margin-bottom: $fortitude-base-spacing-unit * $i;
49
- }
50
-
51
- ##{$fortitude-app-id} &-mrh#{$i} {
52
- margin-right: $fortitude-base-spacing-unit * $i + halve($fortitude-base-spacing-unit);
53
- }
54
-
55
- ##{$fortitude-app-id} &-mr#{$i} {
56
- margin-right: $fortitude-base-spacing-unit * $i;
57
- }
58
-
59
- ##{$fortitude-app-id} &-mth#{$i} {
60
- margin-top: $fortitude-base-spacing-unit * $i + halve($fortitude-base-spacing-unit);
61
- }
62
-
63
- ##{$fortitude-app-id} &-mt#{$i} {
64
- margin-top: $fortitude-base-spacing-unit * $i;
65
- }
4
+ @include fortitude-utility-class {
5
+ @include fortitude-breakpoint-classes {
6
+ @for $fortitude-index from 0 through $fortitude-responsive-margin-unit-total {
7
+ &-mt#{$fortitude-index},
8
+ &-m#{$fortitude-index},
9
+ &-mtb#{$fortitude-index} {
10
+ margin-top: $fortitude-base-spacing-unit * $fortitude-index;
11
+ }
12
+ &-mth#{$fortitude-index},
13
+ &-mh#{$fortitude-index},
14
+ &-mtbh#{$fortitude-index} {
15
+ margin-top: $fortitude-base-spacing-unit * $fortitude-index + halve($fortitude-base-spacing-unit);
16
+ }
17
+ &-mr#{$fortitude-index},
18
+ &-m#{$fortitude-index},
19
+ &-mrl#{$fortitude-index} {
20
+ margin-right: $fortitude-base-spacing-unit * $fortitude-index;
21
+ }
22
+ &-mrh#{$fortitude-index},
23
+ &-mh#{$fortitude-index},
24
+ &-mrlh#{$fortitude-index} {
25
+ margin-right: $fortitude-base-spacing-unit * $fortitude-index + halve($fortitude-base-spacing-unit);
26
+ }
27
+ &-mb#{$fortitude-index},
28
+ &-m#{$fortitude-index},
29
+ &-mtb#{$fortitude-index} {
30
+ margin-bottom: $fortitude-base-spacing-unit * $fortitude-index;
31
+ }
32
+ &-mbh#{$fortitude-index},
33
+ &-mh#{$fortitude-index},
34
+ &-mtbh#{$fortitude-index} {
35
+ margin-bottom: $fortitude-base-spacing-unit * $fortitude-index + halve($fortitude-base-spacing-unit);
36
+ }
37
+ &-ml#{$fortitude-index},
38
+ &-m#{$fortitude-index},
39
+ &-mrl#{$fortitude-index} {
40
+ margin-left: $fortitude-base-spacing-unit * $fortitude-index;
41
+ }
42
+ &-mlh#{$fortitude-index},
43
+ &-mh#{$fortitude-index},
44
+ &-mrlh#{$fortitude-index} {
45
+ margin-left: $fortitude-base-spacing-unit * $fortitude-index + halve($fortitude-base-spacing-unit);
46
+ }
66
47
  }
67
- @for $i from 0 through $fortitude-responsive-negative-margin-unit-total {
68
- ##{$fortitude-app-id} &-mh-#{$i} {
69
- margin: -($fortitude-base-spacing-unit * $i + halve($fortitude-base-spacing-unit));
70
- }
71
-
72
- ##{$fortitude-app-id} &-m-#{$i} {
73
- margin: -($fortitude-base-spacing-unit * $i);
74
- }
75
-
76
- ##{$fortitude-app-id} &-mtbh-#{$i} {
77
- margin-top: -($fortitude-base-spacing-unit * $i + halve($fortitude-base-spacing-unit));
78
- margin-bottom: -($fortitude-base-spacing-unit * $i + halve($fortitude-base-spacing-unit));
79
- }
80
-
81
- ##{$fortitude-app-id} &-mtb-#{$i} {
82
- margin-top: -($fortitude-base-spacing-unit * $i);
83
- margin-bottom: -($fortitude-base-spacing-unit * $i);
84
- }
85
-
86
- ##{$fortitude-app-id} &-mrlh-#{$i} {
87
- margin-right: -($fortitude-base-spacing-unit * $i + halve($fortitude-base-spacing-unit));
88
- margin-left: -($fortitude-base-spacing-unit * $i + halve($fortitude-base-spacing-unit));
89
- }
90
-
91
- ##{$fortitude-app-id} &-mrl-#{$i} {
92
- margin-right: -($fortitude-base-spacing-unit * $i);
93
- margin-left: -($fortitude-base-spacing-unit * $i);
94
- }
95
-
96
- ##{$fortitude-app-id} &-mlh-#{$i} {
97
- margin-left: -($fortitude-base-spacing-unit * $i + halve($fortitude-base-spacing-unit));
98
- }
99
-
100
- ##{$fortitude-app-id} &-ml-#{$i} {
101
- margin-left: -($fortitude-base-spacing-unit * $i);
102
- }
103
-
104
- ##{$fortitude-app-id} &-mbh-#{$i} {
105
- margin-bottom: -($fortitude-base-spacing-unit * $i + halve($fortitude-base-spacing-unit));
106
- }
107
-
108
- ##{$fortitude-app-id} &-mb-#{$i} {
109
- margin-bottom: -($fortitude-base-spacing-unit * $i);
110
- }
111
-
112
- ##{$fortitude-app-id} &-mrh-#{$i} {
113
- margin-right: -($fortitude-base-spacing-unit * $i + halve($fortitude-base-spacing-unit));
114
- }
115
-
116
- ##{$fortitude-app-id} &-mr-#{$i} {
117
- margin-right: -($fortitude-base-spacing-unit * $i);
118
- }
119
-
120
- ##{$fortitude-app-id} &-mth-#{$i} {
121
- margin-top: -($fortitude-base-spacing-unit * $i + halve($fortitude-base-spacing-unit));
122
- }
123
-
124
- ##{$fortitude-app-id} &-mt-#{$i} {
125
- margin-top: -($fortitude-base-spacing-unit * $i);
126
- }
48
+ @for $fortitude-index from 0 through $fortitude-responsive-negative-margin-unit-total {
49
+ &-mt-#{$fortitude-index},
50
+ &-m-#{$fortitude-index},
51
+ &-mtb-#{$fortitude-index} {
52
+ margin-top: -($fortitude-base-spacing-unit * $fortitude-index);
53
+ }
54
+ &-mth-#{$fortitude-index},
55
+ &-mh-#{$fortitude-index},
56
+ &-mtbh-#{$fortitude-index} {
57
+ margin-top: -($fortitude-base-spacing-unit * $fortitude-index + halve($fortitude-base-spacing-unit));
58
+ }
59
+ &-mr-#{$fortitude-index},
60
+ &-m-#{$fortitude-index},
61
+ &-mrl-#{$fortitude-index} {
62
+ margin-right: -($fortitude-base-spacing-unit * $fortitude-index);
63
+ }
64
+ &-mrh-#{$fortitude-index},
65
+ &-mh-#{$fortitude-index},
66
+ &-mrlh-#{$fortitude-index} {
67
+ margin-right: -($fortitude-base-spacing-unit * $fortitude-index + halve($fortitude-base-spacing-unit));
68
+ }
69
+ &-mb-#{$fortitude-index},
70
+ &-m-#{$fortitude-index},
71
+ &-mtb-#{$fortitude-index} {
72
+ margin-bottom: -($fortitude-base-spacing-unit * $fortitude-index);
73
+ }
74
+ &-mbh-#{$fortitude-index},
75
+ &-mh-#{$fortitude-index},
76
+ &-mtbh-#{$fortitude-index} {
77
+ margin-bottom: -($fortitude-base-spacing-unit * $fortitude-index + halve($fortitude-base-spacing-unit));
78
+ }
79
+ &-ml-#{$fortitude-index},
80
+ &-m-#{$fortitude-index},
81
+ &-mrl-#{$fortitude-index} {
82
+ margin-left: -($fortitude-base-spacing-unit * $fortitude-index);
83
+ }
84
+ &-mlh-#{$fortitude-index},
85
+ &-mh-#{$fortitude-index},
86
+ &-mrlh-#{$fortitude-index} {
87
+ margin-left: -($fortitude-base-spacing-unit * $fortitude-index + halve($fortitude-base-spacing-unit));
88
+ }
127
89
  }
128
-
129
- ##{$fortitude-app-id} &-mrlauto {
130
- margin-right: auto;
131
- margin-left: auto;
90
+ &-mrlauto {
91
+ margin-right: auto;
92
+ margin-left: auto;
132
93
  }
94
+ }
133
95
  }
134
-