@yafnet/theme-kit 0.0.0-stage → 4.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (297) hide show
  1. package/LICENSE.md +201 -0
  2. package/README.md +103 -2
  3. package/bin/yafnet-theme.js +409 -0
  4. package/email/bootstrap-email/bootstrap-email.scss +26 -0
  5. package/email/bootstrap-email/bootstrap-head.scss +169 -0
  6. package/email/bootstrap-email/layout.html.erb +12 -0
  7. package/email/bootstrap-email/scss/_helpers.scss +3 -0
  8. package/email/bootstrap-email/scss/_reboot_email.scss +54 -0
  9. package/email/bootstrap-email/scss/_reboot_head.scss +59 -0
  10. package/email/bootstrap-email/scss/_variables.scss +7 -0
  11. package/email/bootstrap-email/scss/components/_alert.scss +21 -0
  12. package/email/bootstrap-email/scss/components/_badge.scss +61 -0
  13. package/email/bootstrap-email/scss/components/_button.scss +47 -0
  14. package/email/bootstrap-email/scss/components/_card.scss +19 -0
  15. package/email/bootstrap-email/scss/components/_container.scss +18 -0
  16. package/email/bootstrap-email/scss/components/_grid.scss +43 -0
  17. package/email/bootstrap-email/scss/components/_hr.scss +8 -0
  18. package/email/bootstrap-email/scss/components/_image.scss +6 -0
  19. package/email/bootstrap-email/scss/components/_preview.scss +5 -0
  20. package/email/bootstrap-email/scss/components/_stack.scss +39 -0
  21. package/email/bootstrap-email/scss/components/_table.scss +137 -0
  22. package/email/bootstrap-email/scss/helpers/_functions.scss +29 -0
  23. package/email/bootstrap-email/scss/helpers/_mixins.scss +21 -0
  24. package/email/bootstrap-email/scss/helpers/_selectors_for_utils.scss +124 -0
  25. package/email/bootstrap-email/scss/utilities/_background.scss +5 -0
  26. package/email/bootstrap-email/scss/utilities/_border-radius.scss +21 -0
  27. package/email/bootstrap-email/scss/utilities/_border.scss +13 -0
  28. package/email/bootstrap-email/scss/utilities/_color.scss +9 -0
  29. package/email/bootstrap-email/scss/utilities/_display.scss +7 -0
  30. package/email/bootstrap-email/scss/utilities/_sizing.scss +35 -0
  31. package/email/bootstrap-email/scss/utilities/_spacing.scss +18 -0
  32. package/email/bootstrap-email/scss/utilities/_text-decoration.scss +9 -0
  33. package/email/bootstrap-email/scss/utilities/_typography.scss +56 -0
  34. package/email/bootstrap-email/scss/utilities/_valign.scss +5 -0
  35. package/email/bootstrap-email/scss/variables/_body.scss +2 -0
  36. package/email/bootstrap-email/scss/variables/_borders.scss +6 -0
  37. package/email/bootstrap-email/scss/variables/_buttons.scss +47 -0
  38. package/email/bootstrap-email/scss/variables/_colors.scss +161 -0
  39. package/email/bootstrap-email/scss/variables/_tables.scss +4 -0
  40. package/email/bootstrap-email/scss/variables/_typography.scss +26 -0
  41. package/email/bootstrap-email/scss/variables/_utilities.scss +154 -0
  42. package/email/bootstrap-email/templates/body.html +8 -0
  43. package/email/bootstrap-email/templates/button.html +9 -0
  44. package/email/bootstrap-email/templates/container.html +29 -0
  45. package/email/bootstrap-email/templates/div.html +3 -0
  46. package/email/bootstrap-email/templates/table-left.html +9 -0
  47. package/email/bootstrap-email/templates/table-to-tbody.html +5 -0
  48. package/email/bootstrap-email/templates/table-to-tr.html +7 -0
  49. package/email/bootstrap-email/templates/table.html +9 -0
  50. package/email/bootstrap-email/templates/td.html +3 -0
  51. package/email/bootstrap-email/templates/tr.html +5 -0
  52. package/email/prebuilt/brite/DigestTopicTemplate.html +57 -0
  53. package/email/prebuilt/brite/EmailTemplate.html +116 -0
  54. package/email/prebuilt/cerulean/DigestTopicTemplate.html +57 -0
  55. package/email/prebuilt/cerulean/EmailTemplate.html +116 -0
  56. package/email/prebuilt/cosmo/DigestTopicTemplate.html +57 -0
  57. package/email/prebuilt/cosmo/EmailTemplate.html +116 -0
  58. package/email/prebuilt/cyborg/DigestTopicTemplate.html +57 -0
  59. package/email/prebuilt/cyborg/EmailTemplate.html +116 -0
  60. package/email/prebuilt/darkly/DigestTopicTemplate.html +57 -0
  61. package/email/prebuilt/darkly/EmailTemplate.html +116 -0
  62. package/email/prebuilt/flatly/DigestTopicTemplate.html +57 -0
  63. package/email/prebuilt/flatly/EmailTemplate.html +116 -0
  64. package/email/prebuilt/journal/DigestTopicTemplate.html +57 -0
  65. package/email/prebuilt/journal/EmailTemplate.html +116 -0
  66. package/email/prebuilt/litera/DigestTopicTemplate.html +57 -0
  67. package/email/prebuilt/litera/EmailTemplate.html +116 -0
  68. package/email/prebuilt/lumen/DigestTopicTemplate.html +57 -0
  69. package/email/prebuilt/lumen/EmailTemplate.html +116 -0
  70. package/email/prebuilt/lux/DigestTopicTemplate.html +57 -0
  71. package/email/prebuilt/lux/EmailTemplate.html +116 -0
  72. package/email/prebuilt/materia/DigestTopicTemplate.html +57 -0
  73. package/email/prebuilt/materia/EmailTemplate.html +116 -0
  74. package/email/prebuilt/minty/DigestTopicTemplate.html +57 -0
  75. package/email/prebuilt/minty/EmailTemplate.html +116 -0
  76. package/email/prebuilt/morph/DigestTopicTemplate.html +57 -0
  77. package/email/prebuilt/morph/EmailTemplate.html +116 -0
  78. package/email/prebuilt/pulse/DigestTopicTemplate.html +57 -0
  79. package/email/prebuilt/pulse/EmailTemplate.html +116 -0
  80. package/email/prebuilt/quartz/DigestTopicTemplate.html +57 -0
  81. package/email/prebuilt/quartz/EmailTemplate.html +116 -0
  82. package/email/prebuilt/sandstone/DigestTopicTemplate.html +57 -0
  83. package/email/prebuilt/sandstone/EmailTemplate.html +116 -0
  84. package/email/prebuilt/simplex/DigestTopicTemplate.html +57 -0
  85. package/email/prebuilt/simplex/EmailTemplate.html +116 -0
  86. package/email/prebuilt/sketchy/DigestTopicTemplate.html +57 -0
  87. package/email/prebuilt/sketchy/EmailTemplate.html +116 -0
  88. package/email/prebuilt/slate/DigestTopicTemplate.html +57 -0
  89. package/email/prebuilt/slate/EmailTemplate.html +116 -0
  90. package/email/prebuilt/solar/DigestTopicTemplate.html +57 -0
  91. package/email/prebuilt/solar/EmailTemplate.html +116 -0
  92. package/email/prebuilt/spacelab/DigestTopicTemplate.html +57 -0
  93. package/email/prebuilt/spacelab/EmailTemplate.html +116 -0
  94. package/email/prebuilt/superhero/DigestTopicTemplate.html +57 -0
  95. package/email/prebuilt/superhero/EmailTemplate.html +116 -0
  96. package/email/prebuilt/united/DigestTopicTemplate.html +57 -0
  97. package/email/prebuilt/united/EmailTemplate.html +116 -0
  98. package/email/prebuilt/vapor/DigestTopicTemplate.html +57 -0
  99. package/email/prebuilt/vapor/EmailTemplate.html +116 -0
  100. package/email/prebuilt/yaf/DigestTopicTemplate.html +57 -0
  101. package/email/prebuilt/yaf/EmailTemplate.html +116 -0
  102. package/email/prebuilt/yeti/DigestTopicTemplate.html +57 -0
  103. package/email/prebuilt/yeti/EmailTemplate.html +116 -0
  104. package/email/prebuilt/zephyr/DigestTopicTemplate.html +57 -0
  105. package/email/prebuilt/zephyr/EmailTemplate.html +116 -0
  106. package/email/resources/DigestTopicTemplate.html +23 -0
  107. package/email/resources/EmailTemplate.html +27 -0
  108. package/package.json +41 -5
  109. package/scss/choices/bs-theme.scss +47 -0
  110. package/scss/choices/choices.scss +376 -0
  111. package/scss/forum/chat.scss +99 -0
  112. package/scss/netStack.scss +32 -0
  113. package/themes/brite/LICENSE.md +21 -0
  114. package/themes/brite/_bootswatch.scss +381 -0
  115. package/themes/brite/_variables.scss +236 -0
  116. package/themes/brite/bootstrap-email.scss +35 -0
  117. package/themes/brite/bootstrap-forum.scss +8 -0
  118. package/themes/brite/bootstrap_email-digest.json +5 -0
  119. package/themes/brite/bootstrap_email.json +4 -0
  120. package/themes/cerulean/LICENSE.md +21 -0
  121. package/themes/cerulean/_bootswatch.scss +116 -0
  122. package/themes/cerulean/_variables.scss +64 -0
  123. package/themes/cerulean/bootstrap-email.scss +35 -0
  124. package/themes/cerulean/bootstrap-forum.scss +8 -0
  125. package/themes/cerulean/bootstrap_email-digest.json +5 -0
  126. package/themes/cerulean/bootstrap_email.json +4 -0
  127. package/themes/cosmo/LICENSE.md +21 -0
  128. package/themes/cosmo/_bootswatch.scss +53 -0
  129. package/themes/cosmo/_variables.scss +73 -0
  130. package/themes/cosmo/bootstrap-email.scss +35 -0
  131. package/themes/cosmo/bootstrap-forum.scss +8 -0
  132. package/themes/cosmo/bootstrap_email-digest.json +5 -0
  133. package/themes/cosmo/bootstrap_email.json +4 -0
  134. package/themes/cyborg/LICENSE.md +21 -0
  135. package/themes/cyborg/_bootswatch.scss +146 -0
  136. package/themes/cyborg/_variables.scss +185 -0
  137. package/themes/cyborg/bootstrap-email.scss +35 -0
  138. package/themes/cyborg/bootstrap-forum.scss +8 -0
  139. package/themes/cyborg/bootstrap_email-digest.json +5 -0
  140. package/themes/cyborg/bootstrap_email.json +4 -0
  141. package/themes/darkly/LICENSE.md +21 -0
  142. package/themes/darkly/_bootswatch.scss +78 -0
  143. package/themes/darkly/_variables.scss +184 -0
  144. package/themes/darkly/bootstrap-email.scss +35 -0
  145. package/themes/darkly/bootstrap-forum.scss +8 -0
  146. package/themes/darkly/bootstrap_email-digest.json +5 -0
  147. package/themes/darkly/bootstrap_email.json +4 -0
  148. package/themes/flatly/LICENSE.md +21 -0
  149. package/themes/flatly/_bootswatch.scss +65 -0
  150. package/themes/flatly/_variables.scss +120 -0
  151. package/themes/flatly/bootstrap-email.scss +35 -0
  152. package/themes/flatly/bootstrap-forum.scss +8 -0
  153. package/themes/flatly/bootstrap_email-digest.json +5 -0
  154. package/themes/flatly/bootstrap_email.json +4 -0
  155. package/themes/journal/LICENSE.md +21 -0
  156. package/themes/journal/_bootswatch.scss +57 -0
  157. package/themes/journal/_variables.scss +64 -0
  158. package/themes/journal/bootstrap-email.scss +35 -0
  159. package/themes/journal/bootstrap-forum.scss +8 -0
  160. package/themes/journal/bootstrap_email-digest.json +5 -0
  161. package/themes/journal/bootstrap_email.json +4 -0
  162. package/themes/litera/LICENSE.md +21 -0
  163. package/themes/litera/_bootswatch.scss +98 -0
  164. package/themes/litera/_variables.scss +97 -0
  165. package/themes/litera/bootstrap-email.scss +35 -0
  166. package/themes/litera/bootstrap-forum.scss +8 -0
  167. package/themes/litera/bootstrap_email-digest.json +5 -0
  168. package/themes/litera/bootstrap_email.json +4 -0
  169. package/themes/lumen/LICENSE.md +21 -0
  170. package/themes/lumen/_bootswatch.scss +339 -0
  171. package/themes/lumen/_variables.scss +98 -0
  172. package/themes/lumen/bootstrap-email.scss +35 -0
  173. package/themes/lumen/bootstrap-forum.scss +8 -0
  174. package/themes/lumen/bootstrap_email-digest.json +5 -0
  175. package/themes/lumen/bootstrap_email.json +4 -0
  176. package/themes/lux/LICENSE.md +21 -0
  177. package/themes/lux/_bootswatch.scss +304 -0
  178. package/themes/lux/_variables.scss +124 -0
  179. package/themes/lux/bootstrap-email.scss +35 -0
  180. package/themes/lux/bootstrap-forum.scss +8 -0
  181. package/themes/lux/bootstrap_email-digest.json +5 -0
  182. package/themes/lux/bootstrap_email.json +4 -0
  183. package/themes/materia/LICENSE.md +21 -0
  184. package/themes/materia/_bootswatch.scss +654 -0
  185. package/themes/materia/_variables.scss +126 -0
  186. package/themes/materia/bootstrap-email.scss +35 -0
  187. package/themes/materia/bootstrap-forum.scss +8 -0
  188. package/themes/materia/bootstrap_email-digest.json +5 -0
  189. package/themes/materia/bootstrap_email.json +4 -0
  190. package/themes/minty/LICENSE.md +21 -0
  191. package/themes/minty/_bootswatch.scss +142 -0
  192. package/themes/minty/_variables.scss +100 -0
  193. package/themes/minty/bootstrap-email.scss +35 -0
  194. package/themes/minty/bootstrap-forum.scss +8 -0
  195. package/themes/minty/bootstrap_email-digest.json +5 -0
  196. package/themes/minty/bootstrap_email.json +4 -0
  197. package/themes/morph/LICENSE.md +21 -0
  198. package/themes/morph/_bootswatch.scss +562 -0
  199. package/themes/morph/_variables.scss +223 -0
  200. package/themes/morph/bootstrap-email.scss +35 -0
  201. package/themes/morph/bootstrap-forum.scss +8 -0
  202. package/themes/morph/bootstrap_email-digest.json +5 -0
  203. package/themes/morph/bootstrap_email.json +4 -0
  204. package/themes/pulse/LICENSE.md +21 -0
  205. package/themes/pulse/_bootswatch.scss +155 -0
  206. package/themes/pulse/_variables.scss +92 -0
  207. package/themes/pulse/bootstrap-email.scss +35 -0
  208. package/themes/pulse/bootstrap-forum.scss +8 -0
  209. package/themes/pulse/bootstrap_email-digest.json +5 -0
  210. package/themes/pulse/bootstrap_email.json +4 -0
  211. package/themes/quartz/_bootswatch.scss +297 -0
  212. package/themes/quartz/_variables.scss +226 -0
  213. package/themes/quartz/bootstrap-email.scss +35 -0
  214. package/themes/quartz/bootstrap-forum.scss +8 -0
  215. package/themes/quartz/bootstrap_email-digest.json +5 -0
  216. package/themes/quartz/bootstrap_email.json +4 -0
  217. package/themes/sandstone/LICENSE.md +21 -0
  218. package/themes/sandstone/_bootswatch.scss +242 -0
  219. package/themes/sandstone/_variables.scss +139 -0
  220. package/themes/sandstone/bootstrap-email.scss +35 -0
  221. package/themes/sandstone/bootstrap-forum.scss +8 -0
  222. package/themes/sandstone/bootstrap_email-digest.json +5 -0
  223. package/themes/sandstone/bootstrap_email.json +4 -0
  224. package/themes/simplex/LICENSE.md +21 -0
  225. package/themes/simplex/_bootswatch.scss +150 -0
  226. package/themes/simplex/_variables.scss +105 -0
  227. package/themes/simplex/bootstrap-email.scss +35 -0
  228. package/themes/simplex/bootstrap-forum.scss +8 -0
  229. package/themes/simplex/bootstrap_email-digest.json +5 -0
  230. package/themes/simplex/bootstrap_email.json +4 -0
  231. package/themes/sketchy/LICENSE.md +21 -0
  232. package/themes/sketchy/_bootswatch.scss +557 -0
  233. package/themes/sketchy/_variables.scss +156 -0
  234. package/themes/sketchy/bootstrap-email.scss +35 -0
  235. package/themes/sketchy/bootstrap-forum.scss +8 -0
  236. package/themes/sketchy/bootstrap_email-digest.json +5 -0
  237. package/themes/sketchy/bootstrap_email.json +4 -0
  238. package/themes/slate/LICENSE.md +21 -0
  239. package/themes/slate/_bootswatch.scss +340 -0
  240. package/themes/slate/_variables.scss +187 -0
  241. package/themes/slate/bootstrap-email.scss +35 -0
  242. package/themes/slate/bootstrap-forum.scss +8 -0
  243. package/themes/slate/bootstrap_email-digest.json +5 -0
  244. package/themes/slate/bootstrap_email.json +4 -0
  245. package/themes/solar/LICENSE.md +21 -0
  246. package/themes/solar/_bootswatch.scss +66 -0
  247. package/themes/solar/_variables.scss +193 -0
  248. package/themes/solar/bootstrap-email.scss +35 -0
  249. package/themes/solar/bootstrap-forum.scss +8 -0
  250. package/themes/solar/bootstrap_email-digest.json +5 -0
  251. package/themes/solar/bootstrap_email.json +4 -0
  252. package/themes/spacelab/LICENSE.md +21 -0
  253. package/themes/spacelab/_bootswatch.scss +107 -0
  254. package/themes/spacelab/_variables.scss +65 -0
  255. package/themes/spacelab/bootstrap-email.scss +35 -0
  256. package/themes/spacelab/bootstrap-forum.scss +8 -0
  257. package/themes/spacelab/bootstrap_email-digest.json +5 -0
  258. package/themes/spacelab/bootstrap_email.json +4 -0
  259. package/themes/superhero/LICENSE.md +21 -0
  260. package/themes/superhero/_bootswatch.scss +153 -0
  261. package/themes/superhero/_variables.scss +202 -0
  262. package/themes/superhero/bootstrap-email.scss +35 -0
  263. package/themes/superhero/bootstrap-forum.scss +8 -0
  264. package/themes/superhero/bootstrap_email-digest.json +5 -0
  265. package/themes/superhero/bootstrap_email.json +4 -0
  266. package/themes/united/LICENSE.md +21 -0
  267. package/themes/united/_bootswatch.scss +30 -0
  268. package/themes/united/_variables.scss +56 -0
  269. package/themes/united/bootstrap-email.scss +35 -0
  270. package/themes/united/bootstrap-forum.scss +8 -0
  271. package/themes/united/bootstrap_email-digest.json +5 -0
  272. package/themes/united/bootstrap_email.json +4 -0
  273. package/themes/vapor/_bootswatch.scss +337 -0
  274. package/themes/vapor/_variables.scss +176 -0
  275. package/themes/vapor/bootstrap-email.scss +35 -0
  276. package/themes/vapor/bootstrap-forum.scss +8 -0
  277. package/themes/vapor/bootstrap_email-digest.json +5 -0
  278. package/themes/vapor/bootstrap_email.json +4 -0
  279. package/themes/yaf/_variables-email.scss +39 -0
  280. package/themes/yaf/_variables.scss +10 -0
  281. package/themes/yaf/bootstrap-email.scss +35 -0
  282. package/themes/yaf/bootstrap-forum.scss +8 -0
  283. package/themes/yaf/bootstrap_email-digest.json +5 -0
  284. package/themes/yaf/bootstrap_email.json +4 -0
  285. package/themes/yeti/LICENSE.md +21 -0
  286. package/themes/yeti/_bootswatch.scss +344 -0
  287. package/themes/yeti/_variables.scss +107 -0
  288. package/themes/yeti/bootstrap-email.scss +35 -0
  289. package/themes/yeti/bootstrap-forum.scss +8 -0
  290. package/themes/yeti/bootstrap_email-digest.json +5 -0
  291. package/themes/yeti/bootstrap_email.json +4 -0
  292. package/themes/zephyr/_bootswatch.scss +221 -0
  293. package/themes/zephyr/_variables.scss +157 -0
  294. package/themes/zephyr/bootstrap-email.scss +35 -0
  295. package/themes/zephyr/bootstrap-forum.scss +8 -0
  296. package/themes/zephyr/bootstrap_email-digest.json +5 -0
  297. package/themes/zephyr/bootstrap_email.json +4 -0
@@ -0,0 +1,59 @@
1
+ // Force base font in Outlook
2
+ body, table, td {
3
+ font-family: $font-family-base !important;
4
+ }
5
+
6
+ // Forces Outlook.com to display emails at full width
7
+ .ExternalClass {
8
+ width: 100%;
9
+ }
10
+
11
+ // Forces Outlook.com to display normal line spacing, here is more on that: http://www.emailonacid.com/forum/viewthread/43/
12
+ .ExternalClass,
13
+ .ExternalClass p,
14
+ .ExternalClass span,
15
+ .ExternalClass font,
16
+ .ExternalClass td,
17
+ .ExternalClass div {
18
+ line-height: 150%;
19
+ }
20
+
21
+ // Prevent Windows 10 Mail from underlining links. Styles for underlined links should be inlined
22
+ a {
23
+ text-decoration: none;
24
+ }
25
+
26
+ // Inherit text color so color can be set on the body and inherited by children
27
+ * {
28
+ color: inherit;
29
+ }
30
+
31
+ // Fix link colors set on automatic detection such as email addresses and phone numbers
32
+ a[x-apple-data-detectors],
33
+ u + #body a,
34
+ #MessageViewBody a {
35
+ color: inherit;
36
+ text-decoration: none;
37
+ font-size: inherit;
38
+ font-family: inherit;
39
+ font-weight: inherit;
40
+ line-height: inherit;
41
+ }
42
+
43
+ // Use a better rendering method when resizing images in Outlook IE.
44
+ img {
45
+ -ms-interpolation-mode: bicubic;
46
+ }
47
+
48
+ // Prevent Outlook from adding extra spacing to tables.
49
+ table:not([class^=s-]) {
50
+ font-family: $font-family-base;
51
+ mso-table-lspace: 0pt;
52
+ mso-table-rspace: 0pt;
53
+ border-spacing: 0px;
54
+ border-collapse: collapse;
55
+ td {
56
+ border-spacing: 0px;
57
+ border-collapse: collapse;
58
+ }
59
+ }
@@ -0,0 +1,7 @@
1
+ @import 'variables/colors';
2
+ @import 'variables/body';
3
+ @import 'variables/typography';
4
+ @import 'variables/borders';
5
+ @import 'variables/tables';
6
+ @import 'variables/buttons';
7
+ @import 'variables/utilities';
@@ -0,0 +1,21 @@
1
+ .alert {
2
+ border-collapse: separate !important;
3
+ border: 0;
4
+ width: 100%;
5
+ & > tbody > tr > td {
6
+ padding: 0.75 * $font-size-base 1.25 * $font-size-base;
7
+ border: 1px solid transparent;
8
+ border-radius: 0.25 * $font-size-base;
9
+ }
10
+ }
11
+
12
+ @each $color, $value in $theme-colors {
13
+ .alert-#{$color} td {
14
+ background-color: lighten($value, 40%);
15
+ border-color: lighten($value, 35%);
16
+ color: darken($value, 30%);
17
+ .hr > table > tbody > tr > td {
18
+ border-top: 1px solid lighten($value, 35%);
19
+ }
20
+ }
21
+ }
@@ -0,0 +1,61 @@
1
+ .badge > tbody > tr > td {
2
+ display: inline-block;
3
+ padding: .25 * $font-size-base .4 * $font-size-base;
4
+ font-size: 75%;
5
+ font-weight: 700;
6
+ line-height: 1;
7
+ text-align: center;
8
+ white-space: nowrap;
9
+ vertical-align: baseline;
10
+ border-radius: 4px;
11
+ }
12
+
13
+ @each $name, $theme in $btn-themes {
14
+ .badge-#{$name} td {
15
+ background-color: map-get($theme, "background-color");
16
+ }
17
+ .badge-#{$name} td span {
18
+ background-color: map-get($theme, "background-color");
19
+ color: map-get($theme, "color");
20
+ border-color: map-get($theme, "border-color");
21
+ }
22
+ }
23
+
24
+ // Pill badges
25
+ .badge-pill > tbody > tr > td {
26
+ padding-right: .6 * $font-size-base;
27
+ padding-left: .6 * $font-size-base;
28
+ border-radius: $border-radius-pill;
29
+ }
30
+
31
+ // Make badge text 75% smaller when in a header
32
+ h1 {
33
+ .badge > tbody > tr > td {
34
+ font-size: .75 * 2.25 * $font-size-base;
35
+ }
36
+ }
37
+ h2 {
38
+ .badge > tbody > tr > td {
39
+ font-size: .75 * 2 * $font-size-base;
40
+ }
41
+ }
42
+ h3 {
43
+ .badge > tbody > tr > td {
44
+ font-size: .75 * 1.75 * $font-size-base;
45
+ }
46
+ }
47
+ h4 {
48
+ .badge > tbody > tr > td {
49
+ font-size: .75 * 1.5 * $font-size-base;
50
+ }
51
+ }
52
+ h5 {
53
+ .badge > tbody > tr > td {
54
+ font-size: .75 * 1.25 * $font-size-base;
55
+ }
56
+ }
57
+ h6 {
58
+ .badge > tbody > tr > td {
59
+ font-size: .75 * $font-size-base;
60
+ }
61
+ }
@@ -0,0 +1,47 @@
1
+ .btn {
2
+ border-radius: $btn-border-radius;
3
+ border-collapse: separate !important;
4
+ }
5
+
6
+ .btn td {
7
+ border-radius: $btn-border-radius;
8
+ text-align: center;
9
+ }
10
+
11
+ .btn td a {
12
+ font-size: $btn-font-size;
13
+ font-family: $btn-font-family;
14
+ text-decoration: none;
15
+ border-radius: $btn-border-radius;
16
+ padding: $btn-padding-y $btn-padding-x;
17
+ line-height: $btn-line-height;
18
+ border: $btn-border-width solid transparent;
19
+ display: block;
20
+ font-weight: $btn-font-weight;
21
+ white-space: nowrap;
22
+ }
23
+
24
+ @each $name, $theme in $btn-themes {
25
+ .btn-#{$name} td {
26
+ background-color: map-get($theme, "background-color");
27
+ }
28
+ .btn-#{$name} td a {
29
+ background-color: map-get($theme, "background-color");
30
+ color: map-get($theme, "color");
31
+ border-color: map-get($theme, "border-color");
32
+ }
33
+ }
34
+
35
+ .btn-sm td a {
36
+ font-size: $btn-font-size-sm;
37
+ padding: $btn-padding-y-sm $btn-padding-x-sm;
38
+ line-height: $btn-line-height-sm;
39
+ border-radius: $btn-border-radius-sm;
40
+ }
41
+
42
+ .btn-lg td a {
43
+ font-size: $btn-font-size-lg;
44
+ padding: $btn-padding-y-lg $btn-padding-x-lg;
45
+ line-height: $btn-line-height-lg;
46
+ border-radius: $btn-border-radius-lg;
47
+ }
@@ -0,0 +1,19 @@
1
+ .card {
2
+ background-color: $white;
3
+ border-radius: $border-radius;
4
+ border: 1px solid $border-color;
5
+ border-collapse: separate !important;
6
+ width: 100%;
7
+ overflow: hidden;
8
+ & > tbody > tr > td {
9
+ background-color: $white;
10
+ width: 100%;
11
+ }
12
+ .card-body {
13
+ width: 100%;
14
+ & > tbody > tr > td {
15
+ padding: $font-size-base * 1.25;
16
+ width: 100%;
17
+ }
18
+ }
19
+ }
@@ -0,0 +1,18 @@
1
+ .container {
2
+ width: 100%;
3
+ & > tbody > tr > td {
4
+ padding: 0 $font-size-base;
5
+ & > table {
6
+ width: 100%;
7
+ max-width: 600px;
8
+ }
9
+ }
10
+ }
11
+
12
+ .container-fluid {
13
+ width: 100%;
14
+ & > tbody > tr > td {
15
+ padding: 0 $font-size-base;
16
+ width: 100%;
17
+ }
18
+ }
@@ -0,0 +1,43 @@
1
+ .row {
2
+ margin-right: -24px;
3
+ & > table {
4
+ table-layout: fixed;
5
+ -premailer-width: 100%;
6
+ width: 100%;
7
+ & > tbody > tr > td {
8
+ min-height: 1px;
9
+ font-weight: normal;
10
+ padding-right: 24px;
11
+ vertical-align: top;
12
+ text-align: left;
13
+ }
14
+ }
15
+ }
16
+
17
+ @each $key, $value in $grid-cols {
18
+ td.col-#{$key},
19
+ td.col-lg-#{$key} {
20
+ width: $value;
21
+ }
22
+ }
23
+
24
+ @each $space, $value in $spacers {
25
+ .row.gap-#{$space},
26
+ .row.gap-x-#{$space},
27
+ .row.gap-lg-#{$space},
28
+ .row.gap-x-lg-#{$space} {
29
+ margin-right: -1 * $value;
30
+ & > table > tbody > tr > td {
31
+ padding-right: $value;
32
+ }
33
+ }
34
+ .row.gap-#{$space},
35
+ .row.gap-y-#{$space},
36
+ .row.gap-lg-#{$space},
37
+ .row.gap-y-lg-#{$space} {
38
+ margin-bottom: -1 * $value;
39
+ & > table > tbody > tr > td {
40
+ padding-bottom: $value;
41
+ }
42
+ }
43
+ }
@@ -0,0 +1,8 @@
1
+ table.hr {
2
+ width: 100%;
3
+ & > tbody > tr > td {
4
+ border-top: 1px solid $border-color;
5
+ height: 1px;
6
+ width: 100%;
7
+ }
8
+ }
@@ -0,0 +1,6 @@
1
+ .img-fluid {
2
+ height: auto;
3
+ max-width: 100%;
4
+ -premailer-width: 100%;
5
+ width: 100%;
6
+ }
@@ -0,0 +1,5 @@
1
+ .preview {
2
+ display: none;
3
+ max-height: 0px;
4
+ overflow: hidden;
5
+ }
@@ -0,0 +1,39 @@
1
+ @each $space, $value in $spacers {
2
+ table.stack-row.gap-#{$space},
3
+ table.stack-row.gap-lg-#{$space} {
4
+ & > tbody > tr > td {
5
+ padding-right: $value;
6
+ &:last-child {
7
+ padding-right: 0;
8
+ }
9
+ }
10
+ }
11
+ table.stack-col.gap-#{$space},
12
+ table.stack-col.gap-lg-#{$space} {
13
+ & > tbody > tr {
14
+ & > td {
15
+ padding-bottom: $value;
16
+ }
17
+ &:last-child > td {
18
+ padding-bottom: 0;
19
+ }
20
+ }
21
+ }
22
+ }
23
+
24
+ .stack-cell {
25
+ vertical-align: top;
26
+ text-align: left;
27
+ }
28
+
29
+ @each $align in $vertical-align {
30
+ table.stack-ay-#{$align} > tbody > tr > td {
31
+ vertical-align: $align;
32
+ }
33
+ }
34
+
35
+ @each $align in $text-align {
36
+ table.stack-ax-#{$align} > tbody > tr > td {
37
+ text-align: $align;
38
+ }
39
+ }
@@ -0,0 +1,137 @@
1
+ //
2
+ // Basic Bootstrap table
3
+ //
4
+
5
+ .table {
6
+ width: 100%;
7
+ max-width: 100%;
8
+ background-color: $table-background-color; // Reset for nesting within parents with `background-color`.
9
+
10
+ & > thead > tr > th {
11
+ text-align: left;
12
+ vertical-align: bottom;
13
+ border-bottom: (2 * $table-border-width) solid $table-border-color;
14
+ }
15
+
16
+ & > thead > tr > th,
17
+ & > tbody > tr > td,
18
+ & > tfoot > tr > td {
19
+ padding: 0.75 * $font-size-base;
20
+ vertical-align: top;
21
+ border-top: $table-border-width solid $table-border-color;
22
+ }
23
+ }
24
+
25
+ .table-unstyled {
26
+ width: 100%;
27
+ max-width: 100%;
28
+ background-color: transparent;
29
+ td, th{
30
+ border-top: 0;
31
+ border-bottom: 0;
32
+ text-align: left;
33
+ }
34
+ }
35
+
36
+
37
+ //
38
+ // Condensed table w/ half padding
39
+ //
40
+
41
+ .table-sm {
42
+ & > thead > tr > th,
43
+ & > tbody > tr > td,
44
+ & > tfoot > tr > td {
45
+ padding: 0.3 * $font-size-base;
46
+ }
47
+ }
48
+
49
+
50
+ // Bordered version
51
+ //
52
+ // Add borders all around the table and between all the columns.
53
+
54
+ .table-bordered {
55
+ border: $table-border-width solid $table-border-color;
56
+
57
+ & > thead > tr > th,
58
+ & > tbody > tr > td,
59
+ & > tfoot > tr > td {
60
+ border: $table-border-width solid $table-border-color;
61
+ }
62
+
63
+ & > thead {
64
+ & > tr > th,
65
+ & > tr > td {
66
+ border-bottom-width: (2 * $table-border-width);
67
+ }
68
+ }
69
+ }
70
+
71
+
72
+ // Zebra-striping
73
+ //
74
+ // Default zebra-stripe styles (alternating gray and transparent backgrounds)
75
+
76
+ .table-striped {
77
+ & > tbody > tr:nth-of-type(odd) {
78
+ background-color: $table-accent-bg;
79
+ }
80
+ }
81
+
82
+
83
+ // Table backgrounds
84
+ //
85
+ // Exact selectors below required to override `.table-striped` and prevent
86
+ // inheritance to nested tables.
87
+
88
+ @each $color, $value in $theme-colors {
89
+ .table-#{$color} {
90
+ &,
91
+ > th,
92
+ > td {
93
+ background-color: lighten($value, 40%);
94
+ }
95
+ }
96
+ }
97
+
98
+
99
+
100
+ // Dark styles
101
+ //
102
+ // Same table markup, but inverted color scheme: dark background and light text.
103
+
104
+ .thead-dark {
105
+ th {
106
+ color: $white;
107
+ background-color: $gray-900;
108
+ }
109
+ }
110
+
111
+ .thead-light {
112
+ th {
113
+ color: $gray-700;
114
+ background-color: $gray-200;
115
+ }
116
+ }
117
+
118
+ .table-dark {
119
+ color: $white;
120
+ background-color: $gray-900;
121
+
122
+ & > thead > tr > th,
123
+ & > tbody > tr > td,
124
+ & > tfoot > tr > td {
125
+ border-color: #32383e;
126
+ }
127
+
128
+ &.table-bordered {
129
+ border: 0;
130
+ }
131
+
132
+ &.table-striped {
133
+ & > tbody > tr:nth-of-type(odd) {
134
+ background-color: #2c3034;
135
+ }
136
+ }
137
+ }
@@ -0,0 +1,29 @@
1
+ @function color-contrast($color) {
2
+ $r: red($color);
3
+ $g: green($color);
4
+ $b: blue($color);
5
+
6
+ $yiq: (($r * 299) + ($g * 587) + ($b * 114)) / 1000;
7
+
8
+ @if ($yiq >= 150) {
9
+ @return #111111;
10
+ } @else {
11
+ @return $white;
12
+ }
13
+ }
14
+
15
+ @function tint-color($color, $level) {
16
+ @return mix(white, $color, $level);
17
+ }
18
+
19
+ @function shade-color($color, $level) {
20
+ @return mix(black, $color, $level);
21
+ }
22
+
23
+ @function strip-unit($number) {
24
+ @if type-of($number) == 'number' and not unitless($number) {
25
+ @return $number / ($number * 0 + 1);
26
+ }
27
+
28
+ @return $number;
29
+ }
@@ -0,0 +1,21 @@
1
+ @mixin padding-group($prefix, $size, $value) {
2
+ @include padding-util('.p-#{$prefix}#{$size}') {
3
+ padding: $value;
4
+ }
5
+
6
+ @include padding-util('.pt-#{$prefix}#{$size}, .py-#{$prefix}#{$size}') {
7
+ padding-top: $value;
8
+ }
9
+
10
+ @include padding-util('.pr-#{$prefix}#{$size}, .px-#{$prefix}#{$size}') {
11
+ padding-right: $value;
12
+ }
13
+
14
+ @include padding-util('.pb-#{$prefix}#{$size}, .py-#{$prefix}#{$size}') {
15
+ padding-bottom: $value;
16
+ }
17
+
18
+ @include padding-util('.pl-#{$prefix}#{$size}, .px-#{$prefix}#{$size}') {
19
+ padding-left: $value;
20
+ }
21
+ }
@@ -0,0 +1,124 @@
1
+ //
2
+ // Background color
3
+ //
4
+ @mixin background-color-util($class) {
5
+ #{$class} {
6
+ &,
7
+ & > tbody > tr > td {
8
+ @content
9
+ }
10
+ }
11
+ }
12
+
13
+ //
14
+ // Color
15
+ //
16
+ @mixin color-util($class) {
17
+ #{$class} {
18
+ &,
19
+ & > tbody > tr > td,
20
+ &.btn td a {
21
+ @content
22
+ }
23
+ }
24
+ }
25
+
26
+ //
27
+ // Border radius
28
+ //
29
+ @mixin border-radius-util($class) {
30
+ #{$class} {
31
+ &,
32
+ & > tbody > tr > td,
33
+ &.btn td,
34
+ &.btn td a {
35
+ @content
36
+ }
37
+ }
38
+ }
39
+
40
+ //
41
+ // Border color
42
+ //
43
+ @mixin border-color-util($class) {
44
+ #{$class} {
45
+ &,
46
+ &.btn td a,
47
+ &.hr td {
48
+ @content
49
+ }
50
+ }
51
+ }
52
+
53
+ //
54
+ // Sizing (width & height)
55
+ //
56
+ @mixin sizing-util($class) {
57
+ #{$class} {
58
+ &,
59
+ & > tbody > tr > td {
60
+ @content
61
+ }
62
+ }
63
+ }
64
+
65
+ //
66
+ // Padding
67
+ //
68
+ @mixin padding-util($class) {
69
+ #{$class} {
70
+ &:not(table),
71
+ &:not(.btn) > tbody > tr > td,
72
+ &.btn td a {
73
+ @content
74
+ }
75
+ }
76
+ }
77
+
78
+ //
79
+ // Spacer
80
+ //
81
+ @mixin spacer-util($class) {
82
+ #{$class} {
83
+ & > tbody > tr > td {
84
+ @content
85
+ }
86
+ }
87
+ }
88
+
89
+ //
90
+ // Font weight
91
+ //
92
+ @mixin font-weight-util($class) {
93
+ #{$class} {
94
+ &,
95
+ & > tbody > tr > td,
96
+ &.btn td a {
97
+ @content
98
+ }
99
+ }
100
+ }
101
+
102
+ //
103
+ // Text align
104
+ //
105
+ @mixin text-align-util($class) {
106
+ #{$class} {
107
+ &,
108
+ & > tbody > tr > td {
109
+ @content
110
+ }
111
+ }
112
+ }
113
+
114
+ //
115
+ // Vertical align
116
+ //
117
+ @mixin valign-util($class) {
118
+ #{$class} {
119
+ &,
120
+ & > tbody > tr > td {
121
+ @content
122
+ }
123
+ }
124
+ }
@@ -0,0 +1,5 @@
1
+ @each $name, $color in $all-colors {
2
+ @include background-color-util('.bg-#{$name}') {
3
+ background-color: $color;
4
+ }
5
+ }
@@ -0,0 +1,21 @@
1
+ @each $name, $radius in $border-radiuses {
2
+ @include border-radius-util('.rounded#{$name}') {
3
+ border-radius: $radius;
4
+ }
5
+ @include border-radius-util('.rounded-top#{$name}') {
6
+ border-top-left-radius: $radius;
7
+ border-top-right-radius: $radius;
8
+ }
9
+ @include border-radius-util('.rounded-right#{$name}') {
10
+ border-top-right-radius: $radius;
11
+ border-bottom-right-radius: $radius;
12
+ }
13
+ @include border-radius-util('.rounded-bottom#{$name}') {
14
+ border-bottom-right-radius: $radius;
15
+ border-bottom-left-radius: $radius;
16
+ }
17
+ @include border-radius-util('.rounded-left#{$name}') {
18
+ border-top-left-radius: $radius;
19
+ border-bottom-left-radius: $radius;
20
+ }
21
+ }
@@ -0,0 +1,13 @@
1
+ @each $name, $width in $border-widths {
2
+ .border#{$name} { border: $width solid $border-color !important; }
3
+ .border-top#{$name} { border-top: $width solid $border-color !important; }
4
+ .border-right#{$name} { border-right: $width solid $border-color !important; }
5
+ .border-bottom#{$name} { border-bottom: $width solid $border-color !important; }
6
+ .border-left#{$name} { border-left: $width solid $border-color !important; }
7
+ }
8
+
9
+ @each $name, $color in $all-colors {
10
+ @include border-color-util('.border-#{$name}') {
11
+ border-color: $color !important;
12
+ }
13
+ }