@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,562 @@
1
+ // Morph 5.3.8
2
+ // Bootswatch
3
+
4
+
5
+ // Variables
6
+
7
+ $web-font-path: "https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&display=swap" !default;
8
+ @if $web-font-path {
9
+ @import url("#{$web-font-path}");
10
+ }
11
+
12
+ $btn-box-shadow-inset: inset 2px 3px 6px rgba($black, .2), inset -3px -2px 6px rgba($white, .2) !default;
13
+
14
+ $box-shadow-dark: 5px 5px 10px rgba(darken($dark, 50%), .2), -5px -5px 10px rgba($white, .05) !default;
15
+
16
+ // Mixins
17
+
18
+ @mixin shadow($bg: $gray-200, $shadow: $box-shadow) {
19
+ background-color: $bg;
20
+ border: none;
21
+ box-shadow: $shadow;
22
+ transition: background-color .15s ease-in-out, border .15s ease-in-out, box-shadow .15s ease-in-out, color .15s ease-in-out;
23
+ }
24
+
25
+ @mixin shadow-outline($bg: $body-bg, $shadow: $box-shadow) {
26
+ position: absolute;
27
+ top: -.5rem;
28
+ right: -.5rem;
29
+ bottom: -.5rem;
30
+ left: -.5rem;
31
+ z-index: -1;
32
+ content: "";
33
+ background-color: $bg;
34
+ border: 1px solid rgba($white, .1);
35
+ box-shadow: $shadow;
36
+ transition: background-color .15s ease-in-out, border .15s ease-in-out, box-shadow .15s ease-in-out, color .15s ease-in-out;
37
+ }
38
+
39
+ // Buttons
40
+
41
+ .btn {
42
+ position: relative;
43
+ color: $gray-700;
44
+ border-radius: $btn-border-radius;
45
+ @include shadow();
46
+
47
+ &:focus {
48
+ color: $gray-700;
49
+ }
50
+
51
+ &:hover,
52
+ &:focus,
53
+ &:active,
54
+ &:active:focus {
55
+ @include shadow();
56
+ color: $gray-700;
57
+ }
58
+
59
+ &:active,
60
+ &:active:focus {
61
+ border-color: transparent;
62
+ box-shadow: $btn-box-shadow-inset;
63
+ }
64
+
65
+ @each $color, $value in $theme-colors {
66
+ &-#{$color} {
67
+
68
+ &:active,
69
+ &:active:focus {
70
+ @if ($color == secondary or $color == light) {
71
+ color: $gray-700;
72
+ background-color: $gray-200;
73
+ } @else {
74
+ color: $white;
75
+ background-color: $value;
76
+ }
77
+ }
78
+ }
79
+ }
80
+
81
+ &-link {
82
+ font-weight: $btn-font-weight;
83
+
84
+ &:hover,
85
+ &:active,
86
+ &:active:focus {
87
+ color: $dark;
88
+ }
89
+ }
90
+
91
+ &.disabled {
92
+ color: $gray-700;
93
+ background-color: $gray-200;
94
+ box-shadow: 2px 2px 5px rgba($black, .1), -2px -2px 5px rgba($white, .5);
95
+ }
96
+ }
97
+
98
+ @include color-mode(dark) {
99
+ .btn {
100
+ @include shadow($dark, $box-shadow-dark);
101
+ color: $navbar-dark-color;
102
+ }
103
+ }
104
+
105
+ .btn-outline {
106
+ @each $color, $value in $theme-colors {
107
+ &-#{$color} {
108
+ background-color: $value;
109
+ border: none;
110
+ box-shadow: 5px 5px 10px rgba($black, .2), -5px -5px 10px rgba($white, .1);
111
+
112
+ @if ($color == secondary or $color == light) {
113
+ color: $gray-700;
114
+ } @else {
115
+ color: $white;
116
+ }
117
+
118
+ &:hover,
119
+ &:focus {
120
+ background-color: $value;
121
+ border: none;
122
+ box-shadow: 5px 5px 10px rgba($black, .2), -5px -5px 10px rgba($white, .1);
123
+
124
+ @if ($color == secondary or $color == light) {
125
+ color: $gray-700;
126
+ } @else {
127
+ color: $white;
128
+ }
129
+ }
130
+
131
+ &:active,
132
+ &:active:focus {
133
+ background-color: $value;
134
+ border: none;
135
+ box-shadow: inset 2px 3px 6px rgba($black, .1), inset -3px -2px 6px rgba($white, .1);
136
+
137
+ @if ($color == secondary or $color == light) {
138
+ color: $gray-700;
139
+ } @else {
140
+ color: $white;
141
+ }
142
+ }
143
+ }
144
+ }
145
+ }
146
+
147
+ .btn-group,
148
+ .btn-group-vertical {
149
+ @include shadow();
150
+ border: none;
151
+ border-radius: $btn-border-radius;
152
+
153
+ .btn,
154
+ .btn-group {
155
+ margin: 0;
156
+ border: none;
157
+ box-shadow: none;
158
+
159
+ &:hover,
160
+ &:active,
161
+ &:focus,
162
+ &:active:focus {
163
+ border: none;
164
+ }
165
+ }
166
+ }
167
+
168
+ @include color-mode(dark) {
169
+ .btn-group,
170
+ .btn-group-vertical {
171
+ @include shadow($dark, $box-shadow-dark);
172
+ color: $navbar-dark-color;
173
+ }
174
+ }
175
+
176
+ .btn-group {
177
+
178
+ > .btn:nth-child(n + 3),
179
+ > :not(.btn-check) + .btn,
180
+ > .btn-group:not(:first-child) > .btn {
181
+ border-left: 1px solid $border-color;
182
+ border-top-left-radius: 0;
183
+ border-bottom-left-radius: 0;
184
+
185
+ &:hover,
186
+ &:active,
187
+ &:active:focus {
188
+ border-left: 1px solid $border-color;
189
+ }
190
+ }
191
+
192
+ > .btn:not(:last-child):not(.dropdown-toggle),
193
+ > .btn-group:not(:last-child) > .btn {
194
+ border-top-right-radius: 0;
195
+ border-bottom-right-radius: 0;
196
+ }
197
+ }
198
+
199
+ .btn-group-vertical {
200
+ border-radius: 1rem;
201
+
202
+ .btn {
203
+ border-radius: 1rem;
204
+
205
+ &:hover,
206
+ &:active,
207
+ &:focus,
208
+ &:active:focus {
209
+ border-radius: 1rem;
210
+ }
211
+ }
212
+
213
+ > .btn:nth-child(n + 3),
214
+ > :not(.btn-check) + .btn,
215
+ > .btn-group:not(:first-child) > .btn {
216
+ border-top: 1px solid rgba($black, .05);
217
+ border-top-left-radius: 0;
218
+ border-top-right-radius: 0;
219
+
220
+ &:hover,
221
+ &:active,
222
+ &:active:focus {
223
+ border-top: 1px solid rgba($black, .05);
224
+ border-top-left-radius: 0;
225
+ border-top-right-radius: 0;
226
+ }
227
+ }
228
+
229
+ > .btn:not(:last-child):not(.dropdown-toggle),
230
+ > .btn-group:not(:last-child) > .btn {
231
+ border-bottom-right-radius: 0;
232
+ border-bottom-left-radius: 0;
233
+
234
+ &:hover,
235
+ &:active,
236
+ &:active:focus {
237
+ border-bottom-right-radius: 0;
238
+ border-bottom-left-radius: 0;
239
+ }
240
+ }
241
+ }
242
+
243
+ .btn-check:checked + .btn,
244
+ .btn-check:active + .btn {
245
+ box-shadow: inset 2px 3px 6px rgba($black, .2);
246
+
247
+ @each $color, $value in $theme-colors {
248
+ &-#{$color} {
249
+ background-color: $value;
250
+
251
+ .btn-check:checked + &,
252
+ .btn-check:active + & {
253
+ @if $color == secondary {
254
+ color: $gray-700;
255
+ } @else {
256
+ color: $value;
257
+ }
258
+ }
259
+ }
260
+ }
261
+ }
262
+
263
+ .btn-check:not(:checked) + .btn,
264
+ .btn-check:not(:checked) + .btn:active {
265
+ color: $gray-700;
266
+ background-color: $gray-200;
267
+ }
268
+
269
+ .btn-check:checked ~ .btn-check:active + .btn,
270
+ .btn-check:checked ~ .btn-check:checked + .btn {
271
+ box-shadow: inset 0 3px 6px rgba($black, .2);
272
+ }
273
+
274
+ @include color-mode(dark) {
275
+ .btn-check:not(:checked) + .btn,
276
+ .btn-check:not(:checked) + .btn:active {
277
+ color: $navbar-dark-color;
278
+ background-color: $dark;
279
+ }
280
+ }
281
+
282
+ // Navs
283
+
284
+ .dropdown-menu {
285
+ backdrop-filter: blur(3px);
286
+ }
287
+
288
+ .nav-tabs {
289
+ @include shadow();
290
+ border-radius: $border-radius;
291
+
292
+ .nav-item {
293
+ box-shadow: 1px 0 $border-color;
294
+
295
+ &:first-child .nav-link {
296
+ border-top-left-radius: $border-radius;
297
+ border-bottom-left-radius: $border-radius;
298
+ }
299
+
300
+ &:last-child .nav-link {
301
+ border-top-right-radius: $border-radius;
302
+ border-bottom-right-radius: $border-radius;
303
+ }
304
+ }
305
+
306
+ .nav-link.active,
307
+ .nav-item.show .nav-link {
308
+ box-shadow: inset 0 3px 6px rgba($black, .2);
309
+ }
310
+ }
311
+
312
+ .nav-pills {
313
+ @include shadow();
314
+ padding: 1rem;
315
+ border-radius: $border-radius;
316
+
317
+
318
+ .nav-link.active {
319
+ box-shadow: inset 0 3px 6px rgba($black, .2);
320
+ }
321
+ }
322
+
323
+ .breadcrumb {
324
+ @include shadow();
325
+ border-radius: $border-radius;
326
+ }
327
+
328
+ .pagination {
329
+ @include shadow();
330
+ justify-content: center;
331
+ border-radius: $border-radius;
332
+ }
333
+
334
+ @include color-mode(dark) {
335
+ .nav-tabs,
336
+ .nav-pills,
337
+ .breadcrumb,
338
+ .pagination {
339
+ @include shadow($dark, $box-shadow-dark);
340
+ color: $navbar-dark-color;
341
+ }
342
+ }
343
+
344
+ // Tables
345
+
346
+ .table-primary,
347
+ .table-secondary,
348
+ .table-success,
349
+ .table-warning,
350
+ .table-danger,
351
+ .table-info,
352
+ .table-light {
353
+ --#{$prefix}table-color: #{$body-color};
354
+ }
355
+
356
+ // Forms
357
+
358
+ .input-group {
359
+ background-color: $gray-100;
360
+ border-radius: $border-radius;
361
+ box-shadow: $box-shadow-inset;
362
+
363
+ > .form-control {
364
+ background: none;
365
+ box-shadow: none;
366
+ }
367
+
368
+ .input-group-text {
369
+ background: none;
370
+ }
371
+
372
+ .btn {
373
+ border: none;
374
+ border-radius: 0;
375
+
376
+ &:first-child {
377
+ border-radius: $border-radius 0 0 $border-radius;
378
+ }
379
+
380
+ &:last-child {
381
+ border-radius: 0 $border-radius $border-radius 0;
382
+ }
383
+ }
384
+ }
385
+
386
+ .form-range {
387
+ &::-webkit-slider-runnable-track {
388
+ box-shadow: inset 1px 1px 4px rgba($black, .15);
389
+ }
390
+
391
+ &::-webkit-slider-thumb,
392
+ &:focus::-webkit-slider-thumb {
393
+ box-shadow: 1px 1px 3px rgba($black, .2), inset 2px 2px 8px rgba(shade-color($form-range-thumb-bg, 50%), .1);
394
+ }
395
+ }
396
+
397
+ .form-check-input {
398
+ background-color: $gray-400;
399
+ border: none;
400
+ box-shadow: inset 1px 1px 7px rgba($black, .2);
401
+
402
+ &:focus {
403
+ border: none;
404
+ box-shadow: none;
405
+ }
406
+
407
+ &:active {
408
+ filter: none;
409
+ }
410
+
411
+ &:checked {
412
+ background-color: $primary;
413
+ box-shadow: inset 1px 1px 7px rgba($black, .2);
414
+ }
415
+ }
416
+
417
+ .form-control {
418
+ &::file-selector-button {
419
+ box-shadow: 2px 2px 5px rgba($black, .2), inset 3px 3px 10px rgba(shade-color($form-range-thumb-bg, 50%), .1);
420
+ }
421
+ }
422
+
423
+ .form-select:not([multiple]) {
424
+ position: relative;
425
+ box-shadow: $box-shadow;
426
+ }
427
+
428
+ @include color-mode(dark) {
429
+ .form-control {
430
+ &:disabled {
431
+ background-color: $gray-400;
432
+ }
433
+
434
+ &::file-selector-button {
435
+ box-shadow: 2px 2px 5px rgba($black, .2), inset 3px 3px 10px rgba(shade-color($form-range-thumb-bg, 50%), .1);
436
+ }
437
+ }
438
+
439
+ .form-select:not([multiple]) {
440
+ box-shadow: $box-shadow-dark;
441
+ }
442
+ }
443
+
444
+ // Indicators
445
+
446
+ .alert {
447
+ backdrop-filter: blur(3px);
448
+ box-shadow: $dropdown-box-shadow;
449
+
450
+ @each $color, $value in $theme-colors {
451
+ &-#{$color} {
452
+ background-color: rgba($value, .75);
453
+ box-shadow: $box-shadow-lg, inset 1px 1px 3px rgba(tint-color($value, 80%), .4), inset -5px -5px 20px rgba(shade-color($value, 80%), .05);
454
+ }
455
+ }
456
+ }
457
+
458
+ .badge {
459
+ &.bg-secondary,
460
+ &.bg-light {
461
+ color: $gray-700;
462
+ }
463
+ }
464
+
465
+ .tooltip {
466
+ &.show {
467
+ opacity: 1;
468
+ }
469
+
470
+ &-inner,
471
+ .arrow {
472
+ backdrop-filter: blur(3px);
473
+ box-shadow: $dropdown-box-shadow;
474
+ }
475
+ }
476
+
477
+ .popover,
478
+ .toast,
479
+ .modal-content {
480
+ backdrop-filter: blur(3px);
481
+ box-shadow: $dropdown-box-shadow;
482
+ }
483
+
484
+ .progress {
485
+ box-shadow: inset 2px 4px 6px rgba(shade-color($body-bg, 50%), .2), inset -3px -2px 5px rgba($white, .8);
486
+ }
487
+
488
+ .progress-bar {
489
+ box-shadow: 2px 2px 5px rgba($black, .2);
490
+
491
+ &:first-child {
492
+ border-top-left-radius: $border-radius-pill;
493
+ border-bottom-left-radius: $border-radius-pill;
494
+ }
495
+
496
+ &:last-child {
497
+ border-top-right-radius: $border-radius-pill;
498
+ border-bottom-right-radius: $border-radius-pill;
499
+ }
500
+ }
501
+
502
+ // Containers
503
+
504
+ .card {
505
+ box-shadow: inset 2px 2px 6px rgba(shade-color($body-bg, 50%), .2), inset -3px -2px 4px rgba($white, .2);
506
+
507
+ @each $color, $value in $theme-colors {
508
+ &-#{$color} {
509
+ box-shadow: inset 2px 2px 6px rgba(shade-color($value, 80%), .05), inset -3px -2px 4px rgba(tint-color($value, 80%), .2);
510
+ }
511
+ }
512
+
513
+ &-header {
514
+ border-bottom: 1px solid $border-color;
515
+ }
516
+
517
+ h1,
518
+ h2,
519
+ h3,
520
+ h4,
521
+ h5,
522
+ h6 {
523
+ color: inherit;
524
+ }
525
+ }
526
+
527
+ .list-group {
528
+ background-color: $card-bg;
529
+ box-shadow: inset 2px 2px 6px rgba(shade-color($body-bg, 50%), .2), inset -3px -2px 4px rgba($white, .2);
530
+ }
531
+
532
+ .list-group-item {
533
+ background-color: transparent;
534
+ }
535
+
536
+ @include color-mode(dark) {
537
+
538
+ .card,
539
+ .list-group {
540
+ background-color: mix($black, $dark, 3%);
541
+ box-shadow: inset 2px 2px 6px rgba(shade-color($dark, 50%), .2), inset -3px -2px 4px rgba($white, .05);
542
+ }
543
+
544
+ .card {
545
+ &.bg-secondary,
546
+ &.bg-light {
547
+ color: $body-color;
548
+ }
549
+ }
550
+
551
+ .modal-content,
552
+ .popover,
553
+ .toast {
554
+ background-color: mix($white, $dark, 3%);
555
+ box-shadow: 8px 8px 40px rgba(0, 0, 0, .15), inset 1px 1px 3px rgba(255, 255, 255, .05), inset -5px -5px 20px rgba(0, 0, 0, .05);
556
+ }
557
+
558
+ .popover-header,
559
+ .toast-header {
560
+ color: $white;
561
+ }
562
+ }