active_frontend 13.3.0 → 14.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (221) hide show
  1. checksums.yaml +4 -4
  2. data/.DS_Store +0 -0
  3. data/.fasterer.yml +19 -0
  4. data/.reek +27 -0
  5. data/.rubocop.yml +38 -0
  6. data/.scss-lint.yml +27 -0
  7. data/Rakefile +1 -1
  8. data/active_frontend.gemspec +21 -18
  9. data/app/.DS_Store +0 -0
  10. data/app/assets/.DS_Store +0 -0
  11. data/app/assets/fonts/.DS_Store +0 -0
  12. data/app/assets/fonts/dripicons/.DS_Store +0 -0
  13. data/app/assets/fonts/dripicons/dripicons.woff +0 -0
  14. data/app/assets/fonts/fakt-pro/.DS_Store +0 -0
  15. data/app/assets/fonts/fakt-pro/fakt-pro-bold.woff +0 -0
  16. data/app/assets/fonts/fakt-pro/fakt-pro-normal.woff +0 -0
  17. data/app/assets/fonts/fakt-pro/fakt-pro-semibold.woff +0 -0
  18. data/app/assets/fonts/fakt-pro/fakt-pro-semilight.woff +0 -0
  19. data/app/assets/fonts/fakt-soft-pro/.DS_Store +0 -0
  20. data/app/assets/fonts/fakt-soft-pro/fakt-soft-pro-bold.woff +0 -0
  21. data/app/assets/fonts/fakt-soft-pro/fakt-soft-pro-normal.woff +0 -0
  22. data/app/assets/fonts/fakt-soft-pro/fakt-soft-pro-semibold.woff +0 -0
  23. data/app/assets/fonts/fakt-soft-pro/fakt-soft-pro-semilight.woff +0 -0
  24. data/app/assets/images/.DS_Store +0 -0
  25. data/app/assets/images/.keep +0 -0
  26. data/app/assets/images/placeholders/.DS_Store +0 -0
  27. data/app/assets/images/placeholders/camera-large.png +0 -0
  28. data/app/assets/images/placeholders/camera-small.png +0 -0
  29. data/app/assets/images/placeholders/camera.png +0 -0
  30. data/app/assets/images/placeholders/document-large.png +0 -0
  31. data/app/assets/images/placeholders/document-small.png +0 -0
  32. data/app/assets/images/placeholders/document.png +0 -0
  33. data/app/assets/images/placeholders/photo-large.png +0 -0
  34. data/app/assets/images/placeholders/{picture-small.png → photo-small.png} +0 -0
  35. data/app/assets/images/placeholders/photo.png +0 -0
  36. data/app/assets/images/placeholders/store-large.png +0 -0
  37. data/app/assets/images/placeholders/store-small.png +0 -0
  38. data/app/assets/images/placeholders/store.png +0 -0
  39. data/app/assets/images/placeholders/user-large.png +0 -0
  40. data/app/assets/images/placeholders/user-small.png +0 -0
  41. data/app/assets/images/placeholders/user.png +0 -0
  42. data/app/helpers/active_frontend_helper.rb +22 -37
  43. data/lib/.DS_Store +0 -0
  44. data/lib/active_frontend.rb +3 -4
  45. data/lib/active_frontend/.DS_Store +0 -0
  46. data/lib/active_frontend/version.rb +1 -1
  47. data/lib/generators/active_frontend/install_generator.rb +3 -3
  48. data/lib/generators/active_frontend/templates/install.js +35 -30
  49. data/lib/generators/active_frontend/templates/install.scss +55 -58
  50. data/vendor/.DS_Store +0 -0
  51. data/vendor/assets/.DS_Store +0 -0
  52. data/vendor/assets/javascripts/.DS_Store +0 -0
  53. data/vendor/assets/javascripts/active_frontend.js +35 -30
  54. data/vendor/assets/javascripts/base/_affix.js +170 -0
  55. data/vendor/assets/javascripts/base/_alert.js +80 -0
  56. data/vendor/assets/javascripts/base/_animation.js +106 -0
  57. data/vendor/assets/javascripts/base/_button.js +123 -0
  58. data/vendor/assets/javascripts/base/_carousel.js +237 -0
  59. data/vendor/assets/javascripts/base/_collapse.js +200 -0
  60. data/vendor/assets/javascripts/base/_colorpicker.js +147 -0
  61. data/vendor/assets/javascripts/base/_datepicker.js +1411 -0
  62. data/vendor/assets/javascripts/base/_dropdown.js +154 -0
  63. data/vendor/assets/javascripts/base/_filepicker.js +235 -0
  64. data/vendor/assets/javascripts/base/_hoverdown.js +116 -0
  65. data/vendor/assets/javascripts/base/_layout.js +126 -0
  66. data/vendor/assets/javascripts/base/_list.js +103 -0
  67. data/vendor/assets/javascripts/{_modal.js → base/_modal.js} +170 -167
  68. data/vendor/assets/javascripts/base/_popover.js +101 -0
  69. data/vendor/assets/javascripts/base/_scrollspy.js +161 -0
  70. data/vendor/assets/javascripts/base/_switch.js +160 -0
  71. data/vendor/assets/javascripts/base/_tab.js +139 -0
  72. data/vendor/assets/javascripts/base/_table.js +224 -0
  73. data/vendor/assets/javascripts/base/_timeago.js +270 -0
  74. data/vendor/assets/javascripts/base/_timepicker.js +541 -0
  75. data/vendor/assets/javascripts/base/_tooltip.js +525 -0
  76. data/vendor/assets/javascripts/base/_tour.js +268 -0
  77. data/vendor/assets/javascripts/base/_transition.js +52 -0
  78. data/vendor/assets/javascripts/base/_typeahead.js +362 -0
  79. data/vendor/assets/javascripts/extensions/_calendar.js +4709 -0
  80. data/vendor/assets/javascripts/extensions/_chart.js +9371 -0
  81. data/vendor/assets/javascripts/extensions/_map.js +2153 -0
  82. data/vendor/assets/stylesheets/.DS_Store +0 -0
  83. data/vendor/assets/stylesheets/{_mixin.scss → _utility.scss} +96 -10
  84. data/vendor/assets/stylesheets/_variable.scss +201 -19
  85. data/vendor/assets/stylesheets/active_frontend.scss +55 -58
  86. data/vendor/assets/stylesheets/blocks/_anchor.scss +15 -0
  87. data/vendor/assets/stylesheets/blocks/_button.scss +278 -0
  88. data/vendor/assets/stylesheets/blocks/_code.scss +144 -0
  89. data/vendor/assets/stylesheets/blocks/_common.scss +127 -0
  90. data/vendor/assets/stylesheets/blocks/_form.scss +508 -0
  91. data/vendor/assets/stylesheets/blocks/_icon.scss +359 -0
  92. data/vendor/assets/stylesheets/blocks/_list.scss +76 -0
  93. data/vendor/assets/stylesheets/blocks/_multimedia.scss +62 -0
  94. data/vendor/assets/stylesheets/blocks/_reset.scss +179 -0
  95. data/vendor/assets/stylesheets/blocks/_table.scss +211 -0
  96. data/vendor/assets/stylesheets/blocks/_typography.scss +204 -0
  97. data/vendor/assets/stylesheets/components/_ad.scss +78 -0
  98. data/vendor/assets/stylesheets/components/_affix.scss +14 -0
  99. data/vendor/assets/stylesheets/components/_alert.scss +50 -0
  100. data/vendor/assets/stylesheets/components/_animation.scss +1670 -0
  101. data/vendor/assets/stylesheets/components/_breadcrumb.scss +17 -0
  102. data/vendor/assets/stylesheets/components/_calendar.scss +213 -0
  103. data/vendor/assets/stylesheets/components/_card.scss +30 -0
  104. data/vendor/assets/stylesheets/components/_carousel.scss +135 -0
  105. data/vendor/assets/stylesheets/components/_chart.scss +10 -0
  106. data/vendor/assets/stylesheets/components/_collapse.scss +17 -0
  107. data/vendor/assets/stylesheets/components/_colorpicker.scss +38 -0
  108. data/vendor/assets/stylesheets/components/_datepicker.scss +80 -0
  109. data/vendor/assets/stylesheets/components/_dropmenu.scss +151 -0
  110. data/vendor/assets/stylesheets/components/_footer.scss +11 -0
  111. data/vendor/assets/stylesheets/components/_grid.scss +144 -0
  112. data/vendor/assets/stylesheets/components/_header.scss +99 -0
  113. data/vendor/assets/stylesheets/components/_label_and_badge.scss +57 -0
  114. data/vendor/assets/stylesheets/components/_layout.scss +63 -0
  115. data/vendor/assets/stylesheets/components/_map.scss +14 -0
  116. data/vendor/assets/stylesheets/components/_milestone.scss +49 -0
  117. data/vendor/assets/stylesheets/components/_missive.scss +40 -0
  118. data/vendor/assets/stylesheets/components/_modal.scss +126 -0
  119. data/vendor/assets/stylesheets/components/_nav_and_tab.scss +202 -0
  120. data/vendor/assets/stylesheets/components/_navbar.scss +66 -0
  121. data/vendor/assets/stylesheets/components/_pagination.scss +79 -0
  122. data/vendor/assets/stylesheets/components/_placeholder.scss +23 -0
  123. data/vendor/assets/stylesheets/components/_popover.scss +167 -0
  124. data/vendor/assets/stylesheets/components/_progress.scss +62 -0
  125. data/vendor/assets/stylesheets/components/_sidebar.scss +74 -0
  126. data/vendor/assets/stylesheets/components/_spinner.scss +83 -0
  127. data/vendor/assets/stylesheets/components/_switch.scss +150 -0
  128. data/vendor/assets/stylesheets/components/_timepicker.scss +30 -0
  129. data/vendor/assets/stylesheets/components/_tooltip.scss +93 -0
  130. data/vendor/assets/stylesheets/components/_transition.scss +12 -0
  131. data/vendor/assets/stylesheets/components/_typeahead.scss +18 -0
  132. metadata +150 -94
  133. data/app/assets/fonts/gotham/gotham-bold.woff +0 -0
  134. data/app/assets/fonts/gotham/gotham-book.woff +0 -0
  135. data/app/assets/fonts/gotham/gotham-light.woff +0 -0
  136. data/app/assets/fonts/gotham/gotham-medium.woff +0 -0
  137. data/app/assets/fonts/gotham/gotham-rounded-bold.woff +0 -0
  138. data/app/assets/fonts/gotham/gotham-rounded-book.woff +0 -0
  139. data/app/assets/fonts/gotham/gotham-rounded-light.woff +0 -0
  140. data/app/assets/fonts/gotham/gotham-rounded-medium.woff +0 -0
  141. data/app/assets/images/placeholders/archive-large.png +0 -0
  142. data/app/assets/images/placeholders/archive-small.png +0 -0
  143. data/app/assets/images/placeholders/archive.png +0 -0
  144. data/app/assets/images/placeholders/picture-large.png +0 -0
  145. data/app/assets/images/placeholders/picture.png +0 -0
  146. data/vendor/assets/javascripts/_affix.js +0 -153
  147. data/vendor/assets/javascripts/_alert.js +0 -85
  148. data/vendor/assets/javascripts/_animation.js +0 -103
  149. data/vendor/assets/javascripts/_button.js +0 -107
  150. data/vendor/assets/javascripts/_carousel.js +0 -228
  151. data/vendor/assets/javascripts/_chart.js +0 -3742
  152. data/vendor/assets/javascripts/_collapse.js +0 -202
  153. data/vendor/assets/javascripts/_color_picker.js +0 -108
  154. data/vendor/assets/javascripts/_date_picker.js +0 -1650
  155. data/vendor/assets/javascripts/_dropdown.js +0 -156
  156. data/vendor/assets/javascripts/_file_input.js +0 -71
  157. data/vendor/assets/javascripts/_hoverdown.js +0 -109
  158. data/vendor/assets/javascripts/_inputmask.js +0 -341
  159. data/vendor/assets/javascripts/_loader.js +0 -361
  160. data/vendor/assets/javascripts/_map.js +0 -2401
  161. data/vendor/assets/javascripts/_popover.js +0 -99
  162. data/vendor/assets/javascripts/_scrollspy.js +0 -163
  163. data/vendor/assets/javascripts/_slider.js +0 -1572
  164. data/vendor/assets/javascripts/_sort.js +0 -1432
  165. data/vendor/assets/javascripts/_swoggle.js +0 -415
  166. data/vendor/assets/javascripts/_tab.js +0 -146
  167. data/vendor/assets/javascripts/_tablespy.js +0 -1883
  168. data/vendor/assets/javascripts/_time_ago.js +0 -206
  169. data/vendor/assets/javascripts/_time_picker.js +0 -1088
  170. data/vendor/assets/javascripts/_tooltip.js +0 -504
  171. data/vendor/assets/javascripts/_transition.js +0 -50
  172. data/vendor/assets/javascripts/_typeahead.js +0 -366
  173. data/vendor/assets/stylesheets/_ad.scss +0 -63
  174. data/vendor/assets/stylesheets/_affix.scss +0 -14
  175. data/vendor/assets/stylesheets/_alert.scss +0 -114
  176. data/vendor/assets/stylesheets/_animation.scss +0 -1370
  177. data/vendor/assets/stylesheets/_breadcrumb.scss +0 -100
  178. data/vendor/assets/stylesheets/_button.scss +0 -386
  179. data/vendor/assets/stylesheets/_canvas.scss +0 -182
  180. data/vendor/assets/stylesheets/_carousel.scss +0 -158
  181. data/vendor/assets/stylesheets/_chart.scss +0 -15
  182. data/vendor/assets/stylesheets/_code.scss +0 -150
  183. data/vendor/assets/stylesheets/_collapse.scss +0 -14
  184. data/vendor/assets/stylesheets/_color.scss +0 -55
  185. data/vendor/assets/stylesheets/_colorpicker.scss +0 -63
  186. data/vendor/assets/stylesheets/_datepicker.scss +0 -122
  187. data/vendor/assets/stylesheets/_dropdown.scss +0 -248
  188. data/vendor/assets/stylesheets/_footer.scss +0 -71
  189. data/vendor/assets/stylesheets/_form.scss +0 -661
  190. data/vendor/assets/stylesheets/_grid.scss +0 -184
  191. data/vendor/assets/stylesheets/_header.scss +0 -156
  192. data/vendor/assets/stylesheets/_icon.scss +0 -362
  193. data/vendor/assets/stylesheets/_image.scss +0 -33
  194. data/vendor/assets/stylesheets/_label_and_badge.scss +0 -104
  195. data/vendor/assets/stylesheets/_link.scss +0 -55
  196. data/vendor/assets/stylesheets/_list.scss +0 -122
  197. data/vendor/assets/stylesheets/_loader.scss +0 -71
  198. data/vendor/assets/stylesheets/_map.scss +0 -44
  199. data/vendor/assets/stylesheets/_missive.scss +0 -74
  200. data/vendor/assets/stylesheets/_modal.scss +0 -204
  201. data/vendor/assets/stylesheets/_nav_and_tab.scss +0 -230
  202. data/vendor/assets/stylesheets/_navbar.scss +0 -73
  203. data/vendor/assets/stylesheets/_pagination.scss +0 -79
  204. data/vendor/assets/stylesheets/_panel.scss +0 -80
  205. data/vendor/assets/stylesheets/_placeholder.scss +0 -63
  206. data/vendor/assets/stylesheets/_popover.scss +0 -128
  207. data/vendor/assets/stylesheets/_progress.scss +0 -86
  208. data/vendor/assets/stylesheets/_reset.scss +0 -140
  209. data/vendor/assets/stylesheets/_sidebar.scss +0 -148
  210. data/vendor/assets/stylesheets/_slider.scss +0 -151
  211. data/vendor/assets/stylesheets/_spinner.scss +0 -572
  212. data/vendor/assets/stylesheets/_subheader.scss +0 -112
  213. data/vendor/assets/stylesheets/_swoggle.scss +0 -120
  214. data/vendor/assets/stylesheets/_table.scss +0 -210
  215. data/vendor/assets/stylesheets/_timepicker.scss +0 -77
  216. data/vendor/assets/stylesheets/_toolbar.scss +0 -130
  217. data/vendor/assets/stylesheets/_tooltip.scss +0 -105
  218. data/vendor/assets/stylesheets/_transition.scss +0 -11
  219. data/vendor/assets/stylesheets/_trunk.scss +0 -147
  220. data/vendor/assets/stylesheets/_typeahead.scss +0 -18
  221. data/vendor/assets/stylesheets/_typography.scss +0 -233
@@ -0,0 +1,179 @@
1
+ // Table of Contents
2
+ // ==================================================
3
+ // Reset
4
+ // Base
5
+
6
+ // Reset
7
+ // ==================================================
8
+ a,
9
+ abbr,
10
+ address,
11
+ area,
12
+ article,
13
+ aside,
14
+ audio,
15
+ b,
16
+ bdi,
17
+ bdo,
18
+ blockquote,
19
+ body,
20
+ br,
21
+ button,
22
+ canvas,
23
+ caption,
24
+ cite,
25
+ code,
26
+ col,
27
+ colgroup,
28
+ datalist,
29
+ dd,
30
+ del,
31
+ details,
32
+ dfn,
33
+ dialog,
34
+ div,
35
+ dl,
36
+ dt,
37
+ em,
38
+ embed,
39
+ fieldset,
40
+ figcaption,
41
+ figure,
42
+ footer,
43
+ form,
44
+ h1,
45
+ h2,
46
+ h3,
47
+ h4,
48
+ h5,
49
+ h6,
50
+ header,
51
+ hr,
52
+ html,
53
+ i,
54
+ iframe,
55
+ img,
56
+ input,
57
+ ins,
58
+ kbd,
59
+ keygen,
60
+ label,
61
+ legend,
62
+ li,
63
+ main,
64
+ map,
65
+ mark,
66
+ menu,
67
+ menuitem,
68
+ meter,
69
+ nav,
70
+ object,
71
+ ol,
72
+ optgroup,
73
+ option,
74
+ output,
75
+ p,
76
+ pre,
77
+ progress,
78
+ q,
79
+ rp,
80
+ rt,
81
+ ruby,
82
+ s,
83
+ samp,
84
+ section,
85
+ select,
86
+ small,
87
+ span,
88
+ strong,
89
+ sub,
90
+ summary,
91
+ sup,
92
+ table,
93
+ tbody,
94
+ td,
95
+ textarea,
96
+ tfoot,
97
+ th,
98
+ thead,
99
+ time,
100
+ tr,
101
+ u,
102
+ ul,
103
+ var,
104
+ video,
105
+ wbr {
106
+ border-color: inherit;
107
+ color: inherit;
108
+ font-size: 100%;
109
+ font-family: inherit;
110
+ -webkit-font-smoothing: antialiased;
111
+ -moz-osx-font-smoothing: grayscale;
112
+ font-smooth: always;
113
+ font-style: inherit;
114
+ font-variant: inherit;
115
+ font-weight: inherit;
116
+ letter-spacing: inherit;
117
+ line-height: inherit;
118
+ margin: 0;
119
+ outline: 0;
120
+ padding: 0;
121
+ text-align: inherit;
122
+ text-decoration: inherit;
123
+ text-rendering: optimizeLegibility;
124
+ text-transform: inherit;
125
+ }
126
+ article,
127
+ aside,
128
+ details,
129
+ figcaption,
130
+ figure,
131
+ main,
132
+ menu,
133
+ nav,
134
+ section,
135
+ summary { display: block; }
136
+ template,
137
+ [hidden] { display: none; }
138
+ [disabled] {
139
+ cursor: not-allowed;
140
+ &:active { pointer-events: none; }
141
+ }
142
+ hr {
143
+ box-sizing: content-box;
144
+ height: 0;
145
+ overflow: visible;
146
+ }
147
+
148
+ // Base
149
+ // ==================================================
150
+ html,
151
+ body {
152
+ @include overflow-scrolling(touch);
153
+ @include tap-highlight-color(color(transparent));
154
+ @include text-size-adjust(100%);
155
+ height: 100%;
156
+ width: 100%;
157
+ }
158
+ body {
159
+ background: color(white);
160
+ border-color: color(dark-haze);
161
+ color: color(black);
162
+ font-family: text-family(sans-serif);
163
+ font-size: text-size(b);
164
+ font-variant: normal;
165
+ font-weight: normal;
166
+ letter-spacing: 0;
167
+ line-height: text-line-height(b);
168
+ text-align: left;
169
+ text-decoration: none;
170
+ text-transform: none;
171
+ }
172
+ ::-moz-selection {
173
+ background: color(primary);
174
+ color: color(white);
175
+ }
176
+ ::selection {
177
+ background: color(primary);
178
+ color: color(white);
179
+ }
@@ -0,0 +1,211 @@
1
+ // Table of Contents
2
+ // ==================================================
3
+ // Reset
4
+ // Table
5
+ // Styles
6
+ // Decorations
7
+ // Alignments
8
+ // Media Queries
9
+
10
+ // scss-lint:disable NestingDepth
11
+ // scss-lint:disable SelectorDepth
12
+
13
+ // Reset
14
+ // ==================================================
15
+ table {
16
+ background: color(trasparent);
17
+ border-collapse: collapse;
18
+ border-color: color(dark-haze);
19
+ border-spacing: 0;
20
+ max-width: 100%;
21
+ }
22
+ caption,
23
+ thead,
24
+ tfoot { font-weight: text-weight(semibold); }
25
+ caption,
26
+ td,
27
+ th {
28
+ padding: 6px 10px 5px;
29
+ vertical-align: middle;
30
+ }
31
+ thead {
32
+ tr:not(:last-child) {
33
+ th { text-align: center; }
34
+ }
35
+ th {
36
+ &.sort { cursor: pointer; }
37
+ }
38
+ }
39
+
40
+ // Table
41
+ // ==================================================
42
+ .table { width: 100%; }
43
+
44
+ // Styles
45
+ // ==================================================
46
+ .table-stripe {
47
+ thead,
48
+ tfoot {
49
+ td,
50
+ th { background: color(light-haze); }
51
+ }
52
+ tbody {
53
+ tr:nth-child(even) {
54
+ td { background: color(light-haze); }
55
+ }
56
+ }
57
+
58
+ &.dark {
59
+ thead,
60
+ tfoot {
61
+ td,
62
+ th { background: color(light-black); }
63
+ }
64
+ tbody {
65
+ tr:nth-child(even) {
66
+ td { background: color(light-black); }
67
+ }
68
+ }
69
+ }
70
+ &.light {
71
+ thead,
72
+ tfoot {
73
+ td,
74
+ th { background: color(haze); }
75
+ }
76
+ tbody {
77
+ tr:nth-child(even) {
78
+ td { background: color(haze); }
79
+ }
80
+ }
81
+ }
82
+ }
83
+ .table-hover {
84
+ tbody {
85
+ tr:hover {
86
+ td { background: color(haze); }
87
+ }
88
+ }
89
+
90
+ &.dark {
91
+ tbody {
92
+ tr:hover {
93
+ td { background: background-hover-color(black); }
94
+ }
95
+ }
96
+ }
97
+ &.light {
98
+ tbody {
99
+ tr:hover {
100
+ td { background: background-hover-color(haze); }
101
+ }
102
+ }
103
+ }
104
+ }
105
+ .table-scroll {
106
+ max-height: 300px;
107
+ overflow-y: auto;
108
+ }
109
+
110
+ // Decorations
111
+ // ==================================================
112
+ .table-line,
113
+ .table-encase,
114
+ .table-border {
115
+ border-collapse: separate;
116
+
117
+ td,
118
+ th {
119
+ border-top-style: solid;
120
+ border-top-width: 1px;
121
+ }
122
+ thead + tbody,
123
+ tbody + tfoot {
124
+ tr:first-child {
125
+ td { border-top-width: 3px; }
126
+ }
127
+ }
128
+ }
129
+ .table-encase,
130
+ .table-border {
131
+ border-style: solid;
132
+ border-width: 1px;
133
+ border-top-width: 0;
134
+ border-left-width: 0;
135
+
136
+ &.dark { border-color: color(dark-black); }
137
+ }
138
+ .table-line {
139
+ tbody,
140
+ tfoot {
141
+ tr:last-child {
142
+ td {
143
+ border-bottom-style: solid;
144
+ border-bottom-width: 1px;
145
+ }
146
+ }
147
+ }
148
+ tbody + tfoot {
149
+ tr:first-child {
150
+ td { border-top-width: 2px; }
151
+ }
152
+ }
153
+ }
154
+ .table-encase {
155
+ tr {
156
+ td,
157
+ th {
158
+ &:first-child {
159
+ border-left-style: solid;
160
+ border-left-width: 1px;
161
+ }
162
+ }
163
+ }
164
+ }
165
+ .table-border {
166
+ td,
167
+ th {
168
+ border-left-style: solid;
169
+ border-left-width: 1px;
170
+ }
171
+ }
172
+
173
+ // Alignments
174
+ // ==================================================
175
+ @each $name in bottom, middle, top {
176
+ .table-vertical-align-#{$name} {
177
+ td,
178
+ th { vertical-align: $name; }
179
+ }
180
+ }
181
+
182
+ // Media Queries
183
+ // ==================================================
184
+ @media only screen and (max-width: 960px) {
185
+ .table-responsive {
186
+ @include overflow-scrolling(touch);
187
+ background: color(transparent);
188
+ border: 2px solid color(dark-haze);
189
+ max-height: 300px;
190
+ overflow: scroll;
191
+
192
+ td,
193
+ th { white-space: nowrap; }
194
+
195
+ .table-line,
196
+ .table-encase,
197
+ .table-border {
198
+ caption {
199
+ border-style: solid;
200
+ border-width: 1px;
201
+ border-bottom-width: 2px;
202
+ }
203
+ }
204
+
205
+ .table-line {
206
+ border-left: 1px solid;
207
+ border-right: 1px solid;
208
+ border-color: inherit;
209
+ }
210
+ }
211
+ }
@@ -0,0 +1,204 @@
1
+ // Table of Contents
2
+ // ==================================================
3
+ // Font-face
4
+ // Reset
5
+ // Whitespace
6
+ // Weights
7
+ // Variants
8
+ // Transformations
9
+ // Styles
10
+ // Sizes
11
+ // Modifiers
12
+ // Line Heights
13
+ // Letter Spacing
14
+ // Indents
15
+ // Families
16
+ // Decorations
17
+ // Colors
18
+ // Alignments
19
+
20
+ // Font-face
21
+ // ==================================================
22
+ @if index(text-family(sans-serif), 'Fakt Pro') {
23
+ @each $name, $weight in $font-weights {
24
+ @font-face {
25
+ font-display: swap;
26
+ font-family: 'Fakt Pro';
27
+ font-style: normal;
28
+ font-weight: $weight;
29
+ src: url(font-path('fakt-pro/fakt-pro-#{$name}.woff')) format('woff');
30
+ }
31
+ }
32
+ }
33
+ @if index(text-family(sans-serif), 'Fakt Soft Pro') {
34
+ @each $name, $weight in $font-weights {
35
+ @font-face {
36
+ font-display: swap;
37
+ font-family: 'Fakt Soft Pro';
38
+ font-style: normal;
39
+ font-weight: $weight;
40
+ src: url(font-path('fakt-soft-pro/fakt-soft-pro-#{$name}.woff')) format('woff');
41
+ }
42
+ }
43
+ }
44
+
45
+ // Reset
46
+ // ==================================================
47
+ $font-headings: h1, h2, h3, h4, h5, h6;
48
+ @each $heading in $font-headings {
49
+ $i: index($font-headings, $heading);
50
+ $name: nth(map-keys($font-sizes), $i);
51
+
52
+ #{$heading} {
53
+ font-size: text-size($name);
54
+ font-weight: text-weight(semibold);
55
+ line-height: text-line-height($name);
56
+ margin-bottom: #{30 - (5 * $i)}px;
57
+ }
58
+ }
59
+ abbr {
60
+ border-bottom: 1px dotted;
61
+ cursor: help;
62
+ }
63
+ blockquote {
64
+ border-left: 3px solid color(primary);
65
+ padding: 10px 0 10px 20px;
66
+
67
+ > cite {
68
+ display: block;
69
+ margin-top: 5px;
70
+ }
71
+ }
72
+ cite,
73
+ small {
74
+ font-size: text-size(xs);
75
+ line-height: text-line-height(xs);
76
+ }
77
+ del,
78
+ s { text-decoration: line-through; }
79
+ b { font-weight: text-weight(bold); }
80
+ address,
81
+ dfn,
82
+ i,
83
+ em { font-style: italic; }
84
+ em,
85
+ mark,
86
+ strong { font-weight: text-weight(semibold); }
87
+ ins,
88
+ u { text-decoration: underline; }
89
+ mark {
90
+ background: color(transparent);
91
+ border-bottom: 3px solid color(yellow);
92
+ }
93
+ p { margin-bottom: 20px; }
94
+ q {
95
+ &::before,
96
+ &::after { content: ''; }
97
+ }
98
+ sub,
99
+ sup {
100
+ font-size: 75%;
101
+ line-height: 0;
102
+ position: relative;
103
+ }
104
+ sub { vertical-align: text-bottom; }
105
+ sup { vertical-align: text-top; }
106
+
107
+ // Whitespace
108
+ // ==================================================
109
+ @each $name in normal, nowrap, pre, pre-line, pre-wrap {
110
+ .text-whitespace-#{$name} { white-space: $name; }
111
+ }
112
+
113
+ // Weights
114
+ // ==================================================
115
+ @each $name, $weight in $font-weights {
116
+ .text-weight-#{$name} { font-weight: $weight; }
117
+ }
118
+
119
+ // Variants
120
+ // ==================================================
121
+ @each $name in normal, small-caps {
122
+ .text-variant-#{$name} { font-variant: $name; }
123
+ }
124
+
125
+ // Transformations
126
+ // ==================================================
127
+ @each $name in capitalize, none, lowercase, uppercase {
128
+ .text-transform-#{$name} { text-transform: $name; }
129
+ }
130
+
131
+ // Styles
132
+ // ==================================================
133
+ @each $name in italic, normal, oblique {
134
+ .text-style-#{$name} { font-style: $name; }
135
+ }
136
+
137
+ // Sizes
138
+ // ==================================================
139
+ @each $name, $size in $font-sizes {
140
+ .text-size-#{$name} {
141
+ font-size: text-size($name);
142
+ line-height: text-line-height($name);
143
+ }
144
+ }
145
+
146
+ // Modifiers
147
+ // ==================================================
148
+ .text-truncate {
149
+ overflow: hidden;
150
+ text-overflow: ellipsis;
151
+ white-space: nowrap;
152
+ width: 100%;
153
+ }
154
+
155
+ // Line Heights
156
+ // ==================================================
157
+ @each $name, $size in $font-line-heights {
158
+ .text-line-height-#{$name} { line-height: $size; }
159
+ }
160
+
161
+ // Letter Spacing
162
+ // ==================================================
163
+ @each $name, $space in $font-spaces {
164
+ .text-letter-spacing-#{$name} { letter-spacing: $space; }
165
+ }
166
+
167
+ // Indents
168
+ // ==================================================
169
+ @each $name, $indent in $font-indents {
170
+ .text-indent-#{$name} { text-indent: $indent; }
171
+ }
172
+
173
+ // Families
174
+ // ==================================================
175
+ @each $name, $family in $font-families {
176
+ .text-family-#{$name} { font-family: $family; }
177
+ }
178
+
179
+ // Decorations
180
+ // ==================================================
181
+ @each $name in line-through, none, overline, underline {
182
+ .text-decoration-#{$name} { text-decoration: $name; }
183
+ }
184
+
185
+ // Colors
186
+ // ==================================================
187
+ @each $name, $color in $colors {
188
+ .text-color-#{$name} { color: $color; }
189
+ .text-color-hover-#{$name} {
190
+ &:hover { color: $color; }
191
+ }
192
+ .text-color-focus-#{$name} {
193
+ &:focus { color: $color; }
194
+ }
195
+ .text-color-active-#{$name} {
196
+ &:active { color: $color; }
197
+ }
198
+ }
199
+
200
+ // Alignments
201
+ // ==================================================
202
+ @each $name in center, justify, left, right {
203
+ .text-align-#{$name} { text-align: $name; }
204
+ }