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
@@ -1,4 +1,4 @@
1
- .modal {
1
+ .#{$fortitude-namespace}modal {
2
2
  position: fixed;
3
3
  top: 0;
4
4
  right: 0;
@@ -13,7 +13,7 @@
13
13
  overflow-scrolling: touch;
14
14
  }
15
15
 
16
- .modal__content {
16
+ .#{$fortitude-namespace}modal__content {
17
17
  position: relative;
18
18
  width: auto;
19
19
  margin: halve($fortitude-base-spacing-unit);
@@ -1,55 +1,52 @@
1
1
  $fortitude-navigationbar-height: 4rem !default;
2
2
 
3
- .navigationbar {
3
+ .#{$fortitude-namespace}navigationbar {
4
4
  position: relative;
5
5
  line-height: $fortitude-navigationbar-height;
6
6
  min-height: $fortitude-navigationbar-height;
7
7
  }
8
8
 
9
- .navigationbar__header {
9
+ .#{$fortitude-namespace}navigationbar__header {
10
10
  float: left;
11
11
  }
12
12
 
13
- .navigationbar__header__logo {
13
+ .#{$fortitude-namespace}navigationbar__header__logo {
14
14
  display: inline-block;
15
15
  margin-top: -0.1rem;
16
16
  vertical-align: middle;
17
17
  }
18
18
 
19
- .navigationbar__toggle {
19
+ .#{$fortitude-namespace}navigationbar__toggle {
20
20
  float: right;
21
- > .icon {
21
+ > .#{$fortitude-namespace}icon {
22
22
  display: none;
23
23
  }
24
24
  }
25
25
 
26
- .navigationbar__toggle__helper {
26
+ .#{$fortitude-namespace}navigationbar__toggle__helper {
27
27
  display: none;
28
28
  }
29
29
 
30
- .navigationbar__navigation {
30
+ .#{$fortitude-namespace}navigationbar__navigation {
31
31
  margin-right: -1rem;
32
-
33
- .fluid-container & {
32
+ .#{$fortitude-namespace}fluid-container & {
34
33
  margin-right: 0;
35
34
  }
36
35
  }
37
36
 
38
- .navigationbar__item {
37
+ .#{$fortitude-namespace}navigationbar__item {
39
38
  display: inline-block;
40
39
  position: relative;
41
-
42
- &:hover .navigationbar__dropdown {
40
+ &:hover .#{$fortitude-namespace}navigationbar__dropdown {
43
41
  display: block;
44
42
  }
45
-
46
43
  a {
47
44
  display: block;
48
45
  padding: 0 1rem;
49
46
  }
50
47
  }
51
48
 
52
- .navigationbar__dropdown {
49
+ .#{$fortitude-namespace}navigationbar__dropdown {
53
50
  display: none;
54
51
  position: absolute;
55
52
  right: 0;
@@ -58,46 +55,37 @@ $fortitude-navigationbar-height: 4rem !default;
58
55
  }
59
56
 
60
57
  @include fortitude-breakpoint(xs, $fortitude-breakpoints) {
61
- .navigationbar__header {
58
+ .#{$fortitude-namespace}navigationbar__header {
62
59
  float: none;
63
60
  }
64
-
65
- .navigationbar__header__logo {
61
+ .#{$fortitude-namespace}navigationbar__header__logo {
66
62
  padding-left: 2rem;
67
63
  }
68
-
69
- .navigationbar__toggle {
64
+ .#{$fortitude-namespace}navigationbar__toggle {
70
65
  float: none;
71
-
72
- > .icon {
66
+ > .#{$fortitude-namespace}icon {
73
67
  display: inline-block;
74
68
  }
75
69
  }
76
-
77
- .navigationbar__toggle__helper {
70
+ .#{$fortitude-namespace}navigationbar__toggle__helper {
78
71
  display: inline-block;
79
72
  }
80
-
81
- .navigationbar__dropdown {
73
+ .#{$fortitude-namespace}navigationbar__dropdown {
82
74
  display: block;
83
75
  position: static;
84
76
  }
85
-
86
- .navigationbar__item {
77
+ .#{$fortitude-namespace}navigationbar__item {
87
78
  display: block;
88
79
  }
89
-
90
- .navigationbar__toggle {
80
+ .#{$fortitude-namespace}navigationbar__toggle {
91
81
  @include fortitude-clearfix;
92
82
  margin-top: -$fortitude-navigationbar-height;
93
-
94
- > .icon {
83
+ > .#{$fortitude-namespace}icon {
95
84
  float: right;
96
85
  display: block;
97
86
  }
98
87
  }
99
-
100
- .navigationbar__toggle__helper {
88
+ .#{$fortitude-namespace}navigationbar__toggle__helper {
101
89
  float: right;
102
90
  position: relative;
103
91
  outline: 0;
@@ -105,29 +93,24 @@ $fortitude-navigationbar-height: 4rem !default;
105
93
  -webkit-appearance: none;
106
94
  -moz-appearance: none;
107
95
  appearance: none;
108
-
109
- + .navigationbar__navigation {
96
+ + .#{$fortitude-namespace}navigationbar__navigation {
110
97
  display: none;
111
98
  position: absolute;
112
99
  top: 100%;
113
100
  width: 100%;
114
101
  }
115
-
116
- &:checked + .navigationbar__navigation {
102
+ &:checked + .#{$fortitude-namespace}navigationbar__navigation {
117
103
  display: block;
118
104
  }
119
105
  }
120
-
121
- .navigationbar__navigation {
106
+ .#{$fortitude-namespace}navigationbar__navigation {
122
107
  clear: both;
123
108
  margin-right: 0;
124
109
  }
125
-
126
- .navigationbar__item {
127
- + .navigationbar__item {
110
+ .#{$fortitude-namespace}navigationbar__item {
111
+ + .#{$fortitude-namespace}navigationbar__item {
128
112
  margin-top: -0.1rem;
129
113
  }
130
-
131
114
  a {
132
115
  display: block;
133
116
  padding: 0 2rem;
@@ -1,22 +1,3 @@
1
- /*------------------------------------*\
2
- #SHADE
3
- \*------------------------------------*/
4
-
5
- $fortitude-shade-background-color: rgba(0,0,0, 0.3) !default;
6
- $fortitude-shade-transition-speed: 0.3s !default;
7
-
8
- @mixin fortitude-shade {
9
- display: none;
10
- position: fixed;
11
- top: 0;
12
- right: 0;
13
- bottom: 0;
14
- left: 0;
15
- @if $fortitude-shade-background-color {
16
- background-color: $fortitude-shade-background-color;
17
- }
18
- }
19
-
20
1
  .#{$fortitude-namespace}shade {
21
- @include fortitude-shade;
22
- }
2
+ @include fortitude-shade;
3
+ }
@@ -3,29 +3,19 @@
3
3
  \*------------------------------------*/
4
4
 
5
5
  // Predefine the variables below in order to alter and enable specific features.
6
- $fortitude-enable-table--fixed: false !default;
7
-
8
-
9
-
10
-
6
+ $fortitude-enable-table--fixed: false !default;
11
7
 
12
8
  .#{$fortitude-namespace}table,
13
9
  %#{$fortitude-namespace}table {
14
- width: 100%;
10
+ width: 100%;
15
11
  }
16
12
 
17
-
18
-
19
-
20
-
21
- @if ($fortitude-enable-table--fixed == true) {
22
-
23
- /**
24
- * Force tables into having equal-width columns.
25
- */
26
- .#{$fortitude-namespace}table--fixed,
27
- %#{$fortitude-namespace}table--fixed {
28
- table-layout: fixed;
29
- }
30
-
31
- }
13
+ @if $fortitude-enable-table--fixed == true {
14
+ /**
15
+ * Force tables into having equal-width columns.
16
+ **/
17
+ .#{$fortitude-namespace}table--fixed,
18
+ %#{$fortitude-namespace}table--fixed {
19
+ table-layout: fixed;
20
+ }
21
+ }
@@ -1,58 +1,15 @@
1
- /*------------------------------------*\
2
- #TABS NAVIGATION
3
- \*------------------------------------*/
4
-
5
-
6
- @mixin fortitude-tabs-navigation {
7
- /**
8
- * A simple abstraction for making equal-width navigation tabs.
9
- *
10
- * 1. Reset any residual styles (most likely from lists).
11
- * 2. Tables for layout!
12
- */
13
-
14
- margin: 0; /* [1] */
15
- padding: 0; /* [1] */
16
- list-style: none; /* [1] */
17
- display: table; /* [2] */
18
- text-align: center;
19
- }
20
-
21
- @mixin fortitude-tabs-navigation--fixed {
22
- /**
23
- * 1. Force all `table-cell` children to have equal widths.
24
- * 2. Force the object to be the full width of its parent. Combined with [2],
25
- * this makes the object behave in a quasi-`display: block;` manner.
26
- */
27
-
28
- table-layout: fixed; /* [1] */
29
- width: 100%; /* [2] */
1
+ .#{$fortitude-namespace}tabs-navigation {
2
+ @include fortitude-tabs-navigation;
30
3
  }
31
4
 
32
- @mixin fortitude-tabs-navigation__item {
33
- /**
34
- * 1. Tables for layout!
35
- */
36
-
37
- display: table-cell; /* [1] */
5
+ .#{$fortitude-namespace}tabs-navigation--fixed {
6
+ @include fortitude-tabs-navigation--fixed;
38
7
  }
39
8
 
40
- @mixin fortitude-tabs-navigation__link {
41
- display: block;
9
+ .#{$fortitude-namespace}tabs-navigation__item {
10
+ @include fortitude-tabs-navigation__item;
42
11
  }
43
12
 
44
- .#{$fortitude-namespace}tabs-navigation {
45
- @include fortitude-tabs-navigation;
46
-
47
- &--fixed {
48
- @include fortitude-tabs-navigation--fixed;
49
- }
13
+ .#{$fortitude-namespace}tabs-navigation__link {
14
+ @include fortitude-tabs-navigation__link;
50
15
  }
51
-
52
- .#{$fortitude-namespace}tabs-navigation__item {
53
- @include fortitude-tabs-navigation__item;
54
- }
55
-
56
- .#{$fortitude-namespace}tabs-navigation__link {
57
- @include fortitude-tabs-navigation__link;
58
- }
@@ -1,19 +1,7 @@
1
- /*------------------------------------*\
2
- #TABS
3
- \*------------------------------------*/
4
-
5
- @mixin fortitude-tabs__target {
6
- display: none;
7
- }
8
-
9
- @mixin fortitude-tabs__target--is-active {
10
- display: block;
11
- }
12
-
13
1
  .#{$fortitude-namespace}tabs__target {
14
2
  @include fortitude-tabs__target;
15
3
  }
16
4
 
17
5
  .#{$fortitude-namespace}tabs__target--is-active {
18
6
  @include fortitude-tabs__target--is-active;
19
- }
7
+ }
@@ -3,25 +3,25 @@
3
3
  \*------------------------------------*/
4
4
 
5
5
  .#{$fortitude-namespace}text-italic {
6
- font-style: italic;
6
+ font-style: italic;
7
7
  }
8
8
 
9
9
  .#{$fortitude-namespace}text-underline {
10
- text-decoration: underline;
10
+ text-decoration: underline;
11
11
  }
12
12
 
13
13
  .#{$fortitude-namespace}text-line-through {
14
- text-decoration: line-through;
14
+ text-decoration: line-through;
15
15
  }
16
16
 
17
17
  .#{$fortitude-namespace}text-lowercase {
18
- text-transform: lowercase;
18
+ text-transform: lowercase;
19
19
  }
20
20
 
21
21
  .#{$fortitude-namespace}text-uppercase {
22
- text-transform: uppercase;
22
+ text-transform: uppercase;
23
23
  }
24
24
 
25
25
  .#{$fortitude-namespace}text-capitalize {
26
- text-transform: capitalize;
27
- }
26
+ text-transform: capitalize;
27
+ }
@@ -1,173 +1,3 @@
1
- /*------------------------------------*\
2
- #TOOLTIP
3
- \*------------------------------------*/
4
-
5
- $fortitude-tooltip-width: 18rem !default;
6
- $fortitude-tooltip-border-radius: 0.2rem !default;
7
- $fortitude-tooltip-arrow-size: 0.6rem !default;
8
- $fortitude-tooltip-color: #ffffff !default;
9
- $fortitude-tooltip-background-color: rgba(30,30,30, 0.9) !default;
10
- $fortitude-tooltip-padding: 0.8rem !default;
11
- $fortitude-tooltip-font-size: 1rem !default;
12
- $fortitude-tooltip-line-height: 1.4rem !default;
13
- $fortitude-tooltip-padding-vertical: $fortitude-tooltip-padding !default;
14
- $fortitude-tooltip-padding-horizontal: $fortitude-tooltip-padding !default;
15
- $fortitude-tooltip-min-height: $fortitude-tooltip-line-height + ($fortitude-tooltip-padding * 2) !default;
16
-
17
-
18
- @mixin fortitude-tooltip {
19
- position: relative;
20
- cursor: pointer;
21
-
22
- &::before,
23
- &::after {
24
- position: absolute;
25
- visibility: hidden;
26
- opacity: 0;
27
- transform: translate3d(0, 0, 0);
28
- transition:
29
- opacity 0.15s ease-in-out,
30
- visibility 0.15s ease-in-out,
31
- transform 0.15s cubic-bezier(0.71, 1.7, 0.77, 1.24);
32
- pointer-events: none;
33
- }
34
-
35
- &:hover::before,
36
- &:hover::after {
37
- visibility: visible;
38
- opacity: 1;
39
- }
40
-
41
- &::before {
42
- z-index: 1001;
43
- border: $fortitude-tooltip-arrow-size solid transparent;
44
- background: transparent;
45
- content: "";
46
- }
47
-
48
- &::after {
49
- z-index: 1000;
50
- padding: $fortitude-tooltip-padding-vertical $fortitude-tooltip-padding-horizontal;
51
- width: $fortitude-tooltip-width;
52
- background-color: $fortitude-tooltip-background-color;
53
- border-radius: $fortitude-tooltip-border-radius;
54
- color: $fortitude-tooltip-color;
55
- content: attr(data-tooltip);
56
- font-size: $fortitude-tooltip-font-size;
57
- line-height: $fortitude-tooltip-line-height;
58
- }
59
- }
60
-
61
- @mixin fortitude-tooltip--top {
62
- &::before,
63
- &::after {
64
- bottom: 100%;
65
- left: 50%;
66
- }
67
-
68
- &::before {
69
- margin-left: -$fortitude-tooltip-arrow-size;
70
- margin-bottom: -($fortitude-tooltip-arrow-size * 2);
71
- border-top-color: $fortitude-tooltip-background-color;
72
- }
73
-
74
- &::after {
75
- margin-left: -($fortitude-tooltip-width / 2);
76
- }
77
-
78
- &:hover::before,
79
- &:hover::after,
80
- &:focus::before,
81
- &:focus::after {
82
- transform: translateY(-(($fortitude-base-spacing-unit / 4) + $fortitude-tooltip-arrow-size));
83
- }
84
- }
85
-
86
- @mixin fortitude-tooltip--right {
87
- &::before,
88
- &::after {
89
- bottom: 50%;
90
- left: 100%;
91
- }
92
-
93
- &::before {
94
- top: $fortitude-tooltip-padding-vertical - (($fortitude-tooltip-arrow-size / 2) + ($fortitude-tooltip-padding-vertical / 2));
95
- margin-bottom: 0;
96
- margin-left: -($fortitude-tooltip-arrow-size * 2);
97
- border-top-color: transparent;
98
- border-right-color: $fortitude-tooltip-background-color;
99
- }
100
-
101
- &::after {
102
- margin-left: 0;
103
- margin-bottom: -($fortitude-tooltip-padding-vertical + 0.7rem);
104
- }
105
-
106
- &:hover::before,
107
- &:hover::after,
108
- &:focus::before,
109
- &:focus::after {
110
- transform: translateX((($fortitude-base-spacing-unit / 4) + $fortitude-tooltip-arrow-size));
111
- }
112
- }
113
-
114
- @mixin fortitude-tooltip--bottom {
115
- &::before,
116
- &::after {
117
- top: 100%;
118
- bottom: auto;
119
- left: 50%;
120
- }
121
-
122
- &::before {
123
- margin-top: -($fortitude-tooltip-arrow-size * 2);
124
- margin-bottom: 0;
125
- border-top-color: transparent;
126
- border-bottom-color: $fortitude-tooltip-background-color;
127
- }
128
-
129
- &::after {
130
- margin-left: -($fortitude-tooltip-width / 2);
131
- }
132
-
133
- &:hover::before,
134
- &:hover::after,
135
- &:focus::before,
136
- &:focus::after {
137
- transform: translateY((($fortitude-base-spacing-unit / 4) + $fortitude-tooltip-arrow-size));
138
- }
139
- }
140
-
141
- @mixin fortitude-tooltip--left {
142
- &::before,
143
- &::after {
144
- right: 100%;
145
- bottom: 50%;
146
- left: auto;
147
- }
148
-
149
- &::before {
150
- top: $fortitude-tooltip-padding-vertical - (($fortitude-tooltip-arrow-size / 2) + ($fortitude-tooltip-padding-vertical / 2));
151
- margin-left: 0;
152
- margin-right: -($fortitude-tooltip-arrow-size * 2);
153
- margin-bottom: 0;
154
- border-top-color: transparent;
155
- border-left-color: $fortitude-tooltip-background-color;
156
- }
157
-
158
- &::after {
159
- margin-left: 0;
160
- margin-bottom: -($fortitude-tooltip-padding-vertical + 0.7rem);
161
- }
162
-
163
- &:hover::before,
164
- &:hover::after,
165
- &:focus::before,
166
- &:focus::after {
167
- transform: translateX(-(($fortitude-base-spacing-unit / 4) + $fortitude-tooltip-arrow-size));
168
- }
169
- }
170
-
171
1
  .#{$fortitude-namespace}tooltip {
172
2
  @include fortitude-tooltip;
173
3
  }
@@ -186,4 +16,4 @@ $fortitude-tooltip-min-height: $fortitude-tooltip-line-height + ($fortit
186
16
 
187
17
  .#{$fortitude-namespace}tooltip--left {
188
18
  @include fortitude-tooltip--left;
189
- }
19
+ }