@dscout/particle 0.46.2 → 1.0.0-alpha.2

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 (401) hide show
  1. package/CHANGELOG.md +125 -11
  2. package/lib/components/advanced_options.js +92 -3
  3. package/lib/components/attribute_input.js +215 -0
  4. package/lib/components/attribute_selector.js +106 -22
  5. package/lib/components/avatar.js +98 -7
  6. package/lib/components/blitz.js +118 -8
  7. package/lib/components/button.js +261 -2
  8. package/lib/components/button_control.js +108 -2
  9. package/lib/components/button_icon.js +192 -0
  10. package/lib/components/button_mode.js +174 -2
  11. package/lib/components/button_plain.js +187 -0
  12. package/lib/components/card.js +237 -4
  13. package/lib/components/card_body.js +58 -1
  14. package/lib/components/card_footer.js +76 -2
  15. package/lib/components/cards.js +58 -1
  16. package/lib/components/checkbox_input.js +141 -6
  17. package/lib/components/chip.js +184 -0
  18. package/lib/components/collapsible.js +45 -10
  19. package/lib/components/collapsible_content.js +92 -9
  20. package/lib/components/collapsing_menu.js +102 -4
  21. package/lib/components/column.js +72 -1
  22. package/lib/components/common_button.js +172 -0
  23. package/lib/components/common_input.js +221 -18
  24. package/lib/components/common_menu_item.js +160 -9
  25. package/lib/components/container.js +65 -1
  26. package/lib/components/container_header.js +81 -1
  27. package/lib/components/container_inner.js +50 -1
  28. package/lib/components/controls.js +57 -0
  29. package/lib/components/drag_and_drop.js +173 -10
  30. package/lib/components/dropdown.js +228 -13
  31. package/lib/components/dropdown_input_toggle.js +127 -9
  32. package/lib/components/editing_container.js +157 -14
  33. package/lib/components/email_input.js +207 -0
  34. package/lib/components/file_input.js +125 -3
  35. package/lib/components/flex.js +216 -28
  36. package/lib/components/focus_intent.js +84 -10
  37. package/lib/components/focus_trap.js +103 -2
  38. package/lib/components/footnote.js +60 -1
  39. package/lib/components/formatted_text.js +61 -0
  40. package/lib/components/heading.js +219 -3
  41. package/lib/components/input_addon.js +115 -0
  42. package/lib/components/input_group.js +81 -0
  43. package/lib/components/input_group_item.js +132 -0
  44. package/lib/components/list.js +92 -3
  45. package/lib/components/list_inline.js +91 -3
  46. package/lib/components/media_query.js +52 -5
  47. package/lib/components/menu.js +91 -2
  48. package/lib/components/menu_item.js +116 -1
  49. package/lib/components/menu_item_li.js +152 -11
  50. package/lib/components/menu_link.js +162 -1
  51. package/lib/components/menu_list.js +79 -4
  52. package/lib/components/menu_section.js +66 -2
  53. package/lib/components/menu_title.js +58 -1
  54. package/lib/components/modal.js +223 -22
  55. package/lib/components/modifier.js +241 -14
  56. package/lib/components/number_input.js +215 -0
  57. package/lib/components/password_input.js +207 -0
  58. package/lib/components/pill.js +96 -1
  59. package/lib/components/radio_input.js +133 -5
  60. package/lib/components/range_input.js +128 -5
  61. package/lib/components/row.js +86 -1
  62. package/lib/components/search_input.js +175 -0
  63. package/lib/components/segmented_controls.js +58 -1
  64. package/lib/components/select_input.js +173 -15
  65. package/lib/components/separator.js +137 -6
  66. package/lib/components/speech_bubble.js +126 -8
  67. package/lib/components/swappable_content.js +99 -9
  68. package/lib/components/tags_input.js +199 -15
  69. package/lib/components/text_input.js +207 -0
  70. package/lib/components/textarea.js +187 -11
  71. package/lib/components/theme_provider.js +172 -0
  72. package/lib/components/thumbnail.js +94 -8
  73. package/lib/components/togglable_fieldset.js +110 -14
  74. package/lib/components/toggle.js +93 -1
  75. package/lib/components/tooltip.js +144 -4
  76. package/lib/components/tooltip_container.js +144 -5
  77. package/lib/components/with_addons.js +121 -0
  78. package/lib/icons/alert.js +6 -0
  79. package/lib/icons/amazing_emoticon.js +6 -0
  80. package/lib/icons/analysis.js +6 -0
  81. package/lib/icons/approve_payment.js +6 -0
  82. package/lib/icons/archive.js +6 -0
  83. package/lib/icons/arrow_up.js +6 -0
  84. package/lib/icons/autotag.js +88 -0
  85. package/lib/icons/bell.js +6 -0
  86. package/lib/icons/bookmark.js +26 -2
  87. package/lib/icons/camera.js +6 -0
  88. package/lib/icons/checkbox_check.js +44 -2
  89. package/lib/icons/checkbox_indeterminate.js +44 -2
  90. package/lib/icons/checkmark.js +6 -0
  91. package/lib/icons/{speaker_on.js → checkpoint.js} +14 -13
  92. package/lib/icons/chevron.js +6 -0
  93. package/lib/icons/choice.js +6 -0
  94. package/lib/icons/circle.js +6 -0
  95. package/lib/icons/circle_checkmark.js +88 -0
  96. package/lib/icons/circle_chevron.js +6 -0
  97. package/lib/icons/circle_clone.js +6 -0
  98. package/lib/icons/circle_i.js +6 -0
  99. package/lib/icons/circle_minus.js +6 -0
  100. package/lib/icons/circle_plus.js +6 -0
  101. package/lib/icons/circle_question.js +6 -0
  102. package/lib/icons/circle_x.js +6 -0
  103. package/lib/icons/clip.js +122 -34
  104. package/lib/icons/clock.js +93 -1
  105. package/lib/icons/clone.js +6 -0
  106. package/lib/icons/column.js +81 -0
  107. package/lib/icons/common_svg.js +172 -19
  108. package/lib/icons/download.js +6 -0
  109. package/lib/icons/drag_dots.js +6 -0
  110. package/lib/icons/dscout.js +6 -0
  111. package/lib/icons/edit.js +6 -0
  112. package/lib/icons/email.js +6 -0
  113. package/lib/icons/export.js +6 -0
  114. package/lib/icons/express_mission.js +11 -1
  115. package/lib/icons/express_mission_card.js +6 -0
  116. package/lib/icons/external_link.js +6 -0
  117. package/lib/icons/eye.js +95 -0
  118. package/lib/icons/file_type_text.js +6 -0
  119. package/lib/icons/filter.js +6 -0
  120. package/lib/icons/fit.js +6 -0
  121. package/lib/icons/folder.js +88 -0
  122. package/lib/icons/good_emoticon.js +6 -0
  123. package/lib/icons/grid.js +6 -0
  124. package/lib/icons/grip.js +6 -0
  125. package/lib/icons/heart.js +95 -0
  126. package/lib/icons/highlighter.js +6 -0
  127. package/lib/icons/icon_with_count.js +82 -5
  128. package/lib/icons/image_file.js +6 -0
  129. package/lib/icons/key.js +6 -0
  130. package/lib/icons/knockout.js +6 -0
  131. package/lib/icons/link.js +6 -0
  132. package/lib/icons/live_mission.js +11 -1
  133. package/lib/icons/live_mission_card.js +6 -0
  134. package/lib/icons/live_notes.js +88 -0
  135. package/lib/icons/location.js +88 -0
  136. package/lib/icons/lock.js +88 -0
  137. package/lib/icons/map.js +6 -0
  138. package/lib/icons/media.js +6 -0
  139. package/lib/icons/media_upload.js +6 -0
  140. package/lib/icons/mic.js +95 -0
  141. package/lib/icons/minus.js +6 -0
  142. package/lib/icons/mission.js +11 -1
  143. package/lib/icons/mission_card.js +6 -0
  144. package/lib/icons/mobile.js +88 -0
  145. package/lib/icons/more.js +6 -0
  146. package/lib/icons/note.js +88 -0
  147. package/lib/icons/number.js +6 -0
  148. package/lib/icons/observer.js +6 -0
  149. package/lib/icons/open_ended.js +6 -0
  150. package/lib/icons/payment.js +6 -0
  151. package/lib/icons/pen.js +6 -0
  152. package/lib/icons/pin.js +88 -0
  153. package/lib/icons/play.js +6 -0
  154. package/lib/icons/plus.js +6 -0
  155. package/lib/icons/poor_emoticon.js +6 -0
  156. package/lib/icons/power.js +6 -0
  157. package/lib/icons/profile.js +6 -0
  158. package/lib/icons/prop_types.js +9 -6
  159. package/lib/icons/quotation_mark.js +6 -0
  160. package/lib/icons/radio_circle.js +87 -0
  161. package/lib/icons/randomize.js +6 -0
  162. package/lib/icons/remote.js +6 -0
  163. package/lib/icons/responses.js +6 -0
  164. package/lib/icons/rocket.js +6 -0
  165. package/lib/icons/round_arrow_down_left.js +6 -0
  166. package/lib/icons/round_arrow_right.js +6 -0
  167. package/lib/icons/row.js +81 -0
  168. package/lib/icons/scale.js +6 -0
  169. package/lib/icons/screen.js +95 -0
  170. package/lib/icons/screen_share.js +6 -0
  171. package/lib/icons/screener.js +11 -1
  172. package/lib/icons/screener_card.js +6 -0
  173. package/lib/icons/screener_small.js +6 -0
  174. package/lib/icons/send_payment.js +6 -0
  175. package/lib/icons/settings.js +6 -0
  176. package/lib/icons/settings_alt.js +6 -0
  177. package/lib/icons/share.js +6 -0
  178. package/lib/icons/sidebar.js +6 -0
  179. package/lib/icons/skip_end.js +6 -0
  180. package/lib/icons/sort_asc.js +6 -0
  181. package/lib/icons/sort_desc.js +6 -0
  182. package/lib/icons/speech_bubble.js +95 -0
  183. package/lib/icons/spinner.js +88 -0
  184. package/lib/icons/spinner_progress.js +6 -0
  185. package/lib/icons/spreadsheet_file.js +6 -0
  186. package/lib/icons/stacked_missions.js +6 -0
  187. package/lib/icons/star.js +95 -0
  188. package/lib/icons/stim.js +88 -0
  189. package/lib/icons/summary.js +6 -0
  190. package/lib/icons/tag.js +95 -0
  191. package/lib/icons/tag_group.js +81 -0
  192. package/lib/icons/team.js +6 -0
  193. package/lib/icons/thumbs_down.js +6 -0
  194. package/lib/icons/thumbs_up.js +6 -0
  195. package/lib/icons/translate.js +6 -0
  196. package/lib/icons/trash.js +6 -0
  197. package/lib/icons/triangle_inverted.js +90 -0
  198. package/lib/icons/type_video.js +6 -0
  199. package/lib/icons/upload.js +6 -0
  200. package/lib/icons/video_fast_forward.js +85 -0
  201. package/lib/icons/video_next.js +85 -0
  202. package/lib/icons/video_pause.js +85 -0
  203. package/lib/icons/video_play.js +85 -0
  204. package/lib/icons/video_skip.js +85 -0
  205. package/lib/icons/videocamera.js +95 -0
  206. package/lib/icons/wand.js +6 -0
  207. package/lib/icons/wifi.js +6 -0
  208. package/lib/icons/x.js +6 -0
  209. package/lib/index.js +64 -68
  210. package/lib/stylesheets/particle.css +3710 -4065
  211. package/lib/stylesheets/particle.min.css +1 -2
  212. package/lib/stylesheets/particle.min.css.gz +0 -0
  213. package/lib/utils/class_names.js +8 -4
  214. package/lib/utils/dom.js +8 -4
  215. package/lib/utils/props.js +26 -2
  216. package/lib/utils/strings.js +6 -0
  217. package/lib/utils/types.js +1 -1
  218. package/package.json +10 -6
  219. package/styles/_base.scss +57 -9
  220. package/styles/_mixins.scss +10 -290
  221. package/styles/_reset.scss +12 -21
  222. package/styles/_theme_builder.scss +356 -0
  223. package/styles/_variables.scss +67 -36
  224. package/styles/components/_focus-intent.scss +3 -3
  225. package/styles/components/_icons.scss +0 -7
  226. package/styles/components/_links.scss +0 -36
  227. package/styles/components/attribute_selector/_base.scss +60 -0
  228. package/styles/components/attribute_selector/themes/_bandit.scss +18 -0
  229. package/styles/components/attribute_selector/themes/_researcher.scss +6 -0
  230. package/styles/components/attribute_selector/themes/_theme_builder.scss +33 -0
  231. package/styles/components/{_avatar.scss → avatar/_base.scss} +8 -10
  232. package/styles/components/avatar/themes/_bandit.scss +5 -0
  233. package/styles/components/avatar/themes/_researcher.scss +5 -0
  234. package/styles/components/avatar/themes/_theme_builder.scss +7 -0
  235. package/styles/components/{_blitz.scss → blitz/_base.scss} +14 -10
  236. package/styles/components/blitz/themes/_bandit.scss +5 -0
  237. package/styles/components/blitz/themes/_researcher.scss +6 -0
  238. package/styles/components/blitz/themes/_theme_builder.scss +1 -0
  239. package/styles/components/buttons/_base.scss +510 -0
  240. package/styles/components/buttons/themes/_bandit.scss +25 -0
  241. package/styles/components/buttons/themes/_researcher.scss +6 -0
  242. package/styles/components/buttons/themes/_theme_builder.scss +89 -0
  243. package/styles/components/card/_base.scss +88 -0
  244. package/styles/components/card/themes/_bandit.scss +5 -0
  245. package/styles/components/card/themes/_researcher.scss +5 -0
  246. package/styles/components/card/themes/_theme_builder.scss +25 -0
  247. package/styles/components/chip/_base.scss +38 -0
  248. package/styles/components/chip/themes/_bandit.scss +12 -0
  249. package/styles/components/chip/themes/_researcher.scss +5 -0
  250. package/styles/components/chip/themes/_theme_builder.scss +19 -0
  251. package/styles/components/collapsible/_base.scss +33 -0
  252. package/styles/components/collapsible/themes/_bandit.scss +5 -0
  253. package/styles/components/collapsible/themes/_researcher.scss +5 -0
  254. package/styles/components/collapsible/themes/_theme_builder.scss +1 -0
  255. package/styles/components/container/_base.scss +49 -0
  256. package/styles/components/container/themes/_bandit.scss +6 -0
  257. package/styles/components/container/themes/_researcher.scss +6 -0
  258. package/styles/components/container/themes/_theme_builder.scss +15 -0
  259. package/styles/components/drag_and_drop/_base.scss +46 -0
  260. package/styles/components/drag_and_drop/themes/_bandit.scss +7 -0
  261. package/styles/components/drag_and_drop/themes/_researcher.scss +6 -0
  262. package/styles/components/drag_and_drop/themes/_theme_builder.scss +21 -0
  263. package/styles/components/dropdown/_base.scss +62 -0
  264. package/styles/components/dropdown/themes/_bandit.scss +7 -0
  265. package/styles/components/dropdown/themes/_researcher.scss +6 -0
  266. package/styles/components/dropdown/themes/_theme_builder.scss +5 -0
  267. package/styles/components/footnote/_base.scss +11 -0
  268. package/styles/components/footnote/themes/_bandit.scss +5 -0
  269. package/styles/components/footnote/themes/_researcher.scss +5 -0
  270. package/styles/components/footnote/themes/_theme_builder.scss +1 -0
  271. package/styles/components/grid/_base.scss +41 -0
  272. package/styles/components/grid/themes/_bandit.scss +5 -0
  273. package/styles/components/grid/themes/_researcher.scss +5 -0
  274. package/styles/components/grid/themes/_theme_builder.scss +1 -0
  275. package/styles/components/input_group/_base.scss +74 -0
  276. package/styles/components/input_group/themes/_bandit.scss +7 -0
  277. package/styles/components/input_group/themes/_researcher.scss +6 -0
  278. package/styles/components/input_group/themes/_theme_builder.scss +5 -0
  279. package/styles/components/inputs/_base.scss +84 -0
  280. package/styles/components/inputs/themes/_bandit.scss +30 -0
  281. package/styles/components/inputs/themes/_researcher.scss +6 -0
  282. package/styles/components/inputs/themes/_theme_builder.scss +62 -0
  283. package/styles/components/{_list.scss → list/_base.scss} +39 -47
  284. package/styles/components/list/themes/_bandit.scss +5 -0
  285. package/styles/components/list/themes/_researcher.scss +6 -0
  286. package/styles/components/list/themes/_theme_builder.scss +1 -0
  287. package/styles/components/menu/_base.scss +184 -0
  288. package/styles/components/menu/themes/_bandit.scss +6 -0
  289. package/styles/components/menu/themes/_researcher.scss +6 -0
  290. package/styles/components/menu/themes/_theme_builder.scss +13 -0
  291. package/styles/components/modal/base.scss +69 -0
  292. package/styles/components/modal/themes/_bandit.scss +5 -0
  293. package/styles/components/modal/themes/_researcher.scss +6 -0
  294. package/styles/components/modal/themes/_theme_builder.scss +9 -0
  295. package/styles/components/pill/_base.scss +42 -0
  296. package/styles/components/pill/themes/_bandit.scss +6 -0
  297. package/styles/components/pill/themes/_researcher.scss +6 -0
  298. package/styles/components/pill/themes/_theme_builder.scss +11 -0
  299. package/styles/components/range/_base.scss +85 -0
  300. package/styles/components/range/themes/_bandit.scss +15 -0
  301. package/styles/components/range/themes/_researcher.scss +6 -0
  302. package/styles/components/range/themes/_theme_builder.scss +35 -0
  303. package/styles/components/segmented_controls/_base.scss +71 -0
  304. package/styles/components/segmented_controls/themes/_bandit.scss +6 -0
  305. package/styles/components/segmented_controls/themes/_researcher.scss +6 -0
  306. package/styles/components/segmented_controls/themes/_theme_builder.scss +1 -0
  307. package/styles/components/selectors/_base.scss +153 -0
  308. package/styles/components/selectors/themes/_bandit.scss +49 -0
  309. package/styles/components/selectors/themes/_researcher.scss +6 -0
  310. package/styles/components/selectors/themes/_theme_builder.scss +93 -0
  311. package/styles/components/separator/_base.scss +11 -0
  312. package/styles/components/separator/themes/_bandit.scss +5 -0
  313. package/styles/components/separator/themes/_researcher.scss +6 -0
  314. package/styles/components/separator/themes/_theme_builder.scss +1 -0
  315. package/styles/components/speech_bubble/_base.scss +34 -0
  316. package/styles/components/speech_bubble/themes/_bandit.scss +5 -0
  317. package/styles/components/speech_bubble/themes/_researcher.scss +6 -0
  318. package/styles/components/speech_bubble/themes/_theme_builder.scss +1 -0
  319. package/styles/components/swappable/_base.scss +41 -0
  320. package/styles/components/swappable/themes/_bandit.scss +5 -0
  321. package/styles/components/swappable/themes/_researcher.scss +6 -0
  322. package/styles/components/swappable/themes/_theme_builder.scss +1 -0
  323. package/styles/components/tags/_base.scss +27 -0
  324. package/styles/components/tags/themes/_bandit.scss +5 -0
  325. package/styles/components/tags/themes/_researcher.scss +6 -0
  326. package/styles/components/tags/themes/_theme_builder.scss +1 -0
  327. package/styles/components/thumbnail/_base.scss +32 -0
  328. package/styles/components/thumbnail/themes/_bandit.scss +5 -0
  329. package/styles/components/thumbnail/themes/_researcher.scss +5 -0
  330. package/styles/components/thumbnail/themes/_theme_builder.scss +5 -0
  331. package/styles/components/toggle/_base.scss +83 -0
  332. package/styles/components/toggle/themes/_bandit.scss +26 -0
  333. package/styles/components/toggle/themes/_researcher.scss +6 -0
  334. package/styles/components/toggle/themes/_theme_builder.scss +51 -0
  335. package/styles/components/tooltip/_base.scss +127 -0
  336. package/styles/components/tooltip/themes/_bandit.scss +5 -0
  337. package/styles/components/tooltip/themes/_researcher.scss +6 -0
  338. package/styles/components/tooltip/themes/_theme_builder.scss +1 -0
  339. package/styles/css_variables/_bandit.scss +45 -0
  340. package/styles/css_variables/_researcher.scss +5 -0
  341. package/styles/particle.scss +48 -36
  342. package/styles/themes/_bandit.scss +9 -0
  343. package/styles/themes/_researcher.scss +9 -0
  344. package/styles/utilities/_alignment.scss +199 -0
  345. package/styles/utilities/_borders.scss +50 -0
  346. package/styles/utilities/_colors.scss +606 -0
  347. package/styles/utilities/_dimensions.scss +265 -0
  348. package/styles/utilities/_display.scss +71 -0
  349. package/styles/utilities/_overflow.scss +74 -0
  350. package/styles/utilities/_position.scss +107 -0
  351. package/styles/utilities/_radii.scss +70 -0
  352. package/styles/utilities/_resizing.scss +42 -0
  353. package/styles/utilities/_shadows.scss +74 -0
  354. package/styles/utilities/_spacing.scss +579 -0
  355. package/styles/utilities/_typography.scss +409 -0
  356. package/styles/utilities/_visibility.scss +36 -0
  357. package/styles/utilities/_z_index.scss +24 -0
  358. package/lib/components/bug.js +0 -61
  359. package/lib/components/button_group.js +0 -55
  360. package/lib/components/button_link.js +0 -70
  361. package/lib/components/button_primary.js +0 -112
  362. package/lib/components/button_secondary.js +0 -93
  363. package/lib/components/fieldset.js +0 -59
  364. package/lib/components/scene.js +0 -68
  365. package/lib/components/validation_message.js +0 -49
  366. package/lib/components/with_affix.js +0 -114
  367. package/lib/icons/checkpoint/_checkpoint_filled.js +0 -32
  368. package/lib/icons/checkpoint/_checkpoint_unfilled.js +0 -29
  369. package/lib/icons/checkpoint/checkpoint.js +0 -57
  370. package/lib/utils/colors.js +0 -32
  371. package/styles/_borders.scss +0 -204
  372. package/styles/_colors.scss +0 -847
  373. package/styles/_helpers.scss +0 -660
  374. package/styles/_spacing.scss +0 -753
  375. package/styles/_typography.scss +0 -340
  376. package/styles/components/_affix.scss +0 -74
  377. package/styles/components/_attribute-selector.scss +0 -38
  378. package/styles/components/_bug.scss +0 -285
  379. package/styles/components/_buttons.scss +0 -1366
  380. package/styles/components/_card.scss +0 -113
  381. package/styles/components/_collapsible.scss +0 -30
  382. package/styles/components/_container.scss +0 -62
  383. package/styles/components/_drag_and_drop.scss +0 -42
  384. package/styles/components/_dropdown-input.scss +0 -45
  385. package/styles/components/_dropdown.scss +0 -31
  386. package/styles/components/_file-input.scss +0 -11
  387. package/styles/components/_flex.scss +0 -130
  388. package/styles/components/_footnote.scss +0 -15
  389. package/styles/components/_forms.scss +0 -474
  390. package/styles/components/_grid.scss +0 -90
  391. package/styles/components/_menu.scss +0 -183
  392. package/styles/components/_modal.scss +0 -74
  393. package/styles/components/_pill.scss +0 -101
  394. package/styles/components/_preview.scss +0 -30
  395. package/styles/components/_scene.scss +0 -46
  396. package/styles/components/_segmented-controls.scss +0 -51
  397. package/styles/components/_separator.scss +0 -48
  398. package/styles/components/_speech-bubble.scss +0 -29
  399. package/styles/components/_swappable.scss +0 -38
  400. package/styles/components/_tags.scss +0 -20
  401. package/styles/components/_tooltip.scss +0 -135
@@ -1,753 +0,0 @@
1
- @import 'variables';
2
-
3
- /*
4
- @styleguide
5
- @title Heights
6
-
7
- Element heights can be set using three methods:
8
- - enum
9
- - none
10
- - xs (.25em)
11
- - s (.75em)
12
- - m (1em)
13
- - base (2em)
14
- - l (3em)
15
- - xl (4em)
16
- - number
17
- - 1-16 where the number is a multiplier of 2em, e.g.,
18
- <span class="display--ib">`height--16`</span> = 32em
19
- - percentage
20
- - multiples of 10, e.g., <span class="display--ib">`height--40-pct`</span>
21
-
22
- <div class="height--base border b-color--dscout">Base Height</div>
23
-
24
- <div class="height--base border b-color--dscout">Base Height</div>
25
-
26
- <div class="height--10 border b-color--dscout">20ems Height</div>
27
-
28
- <div class="height--10 border b-color--dscout">20ems Height</div>
29
-
30
- <div class="height--5">
31
- <div class="height--50-pct border b-color--dscout">50% Height</div>
32
- </div>
33
-
34
- <div class="height--5">
35
- <div class="height--50-pct border b-color--dscout">50% Height</div>
36
- </div>
37
- */
38
-
39
- // === HEIGHTS === //
40
-
41
- .height--none { height: $space--none; }
42
- .height--xs { height: $space--xs; }
43
- .height--s { height: $space--s; }
44
- .height--m { height: $space--m; }
45
- .height--base { height: $space--base; }
46
- .height--l { height: $space--l; }
47
- .height--xl { height: $space--xl; }
48
-
49
- .height--1 { height: $space--base; }
50
- .height--2 { height: $space--2; }
51
- .height--3 { height: $space--3; }
52
- .height--4 { height: $space--4; }
53
- .height--5 { height: $space--5; }
54
- .height--6 { height: $space--6; }
55
- .height--7 { height: $space--7; }
56
- .height--8 { height: $space--8; }
57
- .height--9 { height: $space--9; }
58
- .height--10 { height: $space--10; }
59
- .height--11 { height: $space--11; }
60
- .height--12 { height: $space--12; }
61
- .height--13 { height: $space--13; }
62
- .height--14 { height: $space--14; }
63
- .height--15 { height: $space--15; }
64
- .height--16 { height: $space--16; }
65
-
66
- .height--10-pct { height: 10%; }
67
- .height--20-pct { height: 20%; }
68
- .height--30-pct { height: 30%; }
69
- .height--40-pct { height: 40%; }
70
- .height--50-pct { height: 50%; }
71
- .height--60-pct { height: 60%; }
72
- .height--70-pct { height: 70%; }
73
- .height--80-pct { height: 80%; }
74
- .height--90-pct { height: 90%; }
75
- .height--100-pct { height: 100%; }
76
-
77
- /*
78
- @styleguide
79
- @title Margins
80
-
81
- Element margins can be controlled in much the same fashion as heights.
82
- The possible values are:
83
- - auto
84
- - none
85
- - xs (.25em)
86
- - s (.75em)
87
- - m (1em)
88
- - base (2em)
89
- - l (3em)
90
- - xl (4em)
91
-
92
- <div class="margin--base">2em margin on all sides</div>
93
-
94
- <div class="margin--base">2em margin on all sides</div>
95
-
96
- Enum values can be applied to each side individually.
97
- Possible values are:
98
- - t (top)
99
- - r (right)
100
- - b (bottom)
101
- - l (left)
102
-
103
- <div class="margin-l--base">2em margin on the left only</div>
104
-
105
- <div class="margin-l--base">2em margin on the left only</div>
106
-
107
- Horizontal or vertical margin can be specified like so:
108
-
109
- <div class="margin-h--base">2em margin on left and right</div>
110
-
111
- <div class="margin-h--base">2em margin on left and right</div>
112
-
113
- <div class="margin-v--base">2em margin on top and bottom</div>
114
-
115
- <div class="margin-v--base">2em margin on top and bottom</div>
116
- */
117
- // === MARGINS === //
118
-
119
- .margin--auto { margin: auto; }
120
- .margin--none { margin: $space--none; }
121
- .margin--xs { margin: $space--xs; }
122
- .margin--s { margin: $space--s; }
123
- .margin--m { margin: $space--m; }
124
- .margin--base { margin: $space--base; }
125
- .margin--l { margin: $space--l; }
126
- .margin--xl { margin: $space--xl; }
127
-
128
- // The .margin--[direction]-[enum] selectors are deprecated but left in place
129
- // for backward compatibility while Particle's consumers are updated. In a
130
- // future release, these selectors should be removed, leaving only the
131
- // .margin-[direction]--[enum] selectors.
132
-
133
-
134
- .margin-v--auto,
135
- .margin--v-auto {
136
- margin-bottom: auto;
137
- margin-top: auto;
138
- }
139
- .margin-v--xs,
140
- .margin--v-xs {
141
- margin-bottom: $space--xs;
142
- margin-top: $space--xs;
143
- }
144
- .margin-v--s,
145
- .margin--v-s {
146
- margin-bottom: $space--s;
147
- margin-top: $space--s;
148
- }
149
- .margin-v--m,
150
- .margin--v-m {
151
- margin-bottom: $space--m;
152
- margin-top: $space--m;
153
- }
154
- .margin-v--base,
155
- .margin--v-base {
156
- margin-bottom: $space--base;
157
- margin-top: $space--base;
158
- }
159
- .margin-v--l,
160
- .margin--v-l {
161
- margin-bottom: $space--l;
162
- margin-top: $space--l;
163
- }
164
- .margin-v--xl,
165
- .margin--v-xl {
166
- margin-bottom: $space--xl;
167
- margin-top: $space--xl;
168
- }
169
- .margin-v--none,
170
- .margin--v-none {
171
- margin-bottom: $space--none;
172
- margin-top: $space--none;
173
- }
174
-
175
- .margin-h--auto,
176
- .margin--h-auto {
177
- margin-left: auto;
178
- margin-right: auto;
179
- }
180
- .margin-h--xs,
181
- .margin--h-xs {
182
- margin-left: $space--xs;
183
- margin-right: $space--xs;
184
- }
185
- .margin-h--s,
186
- .margin--h-s {
187
- margin-left: $space--s;
188
- margin-right: $space--s;
189
- }
190
- .margin-h--m,
191
- .margin--h-m {
192
- margin-left: $space--m;
193
- margin-right: $space--m;
194
- }
195
- .margin-h--base,
196
- .margin--h-base {
197
- margin-left: $space--base;
198
- margin-right: $space--base;
199
- }
200
- .margin-h--l,
201
- .margin--h-l {
202
- margin-left: $space--l;
203
- margin-right: $space--l;
204
- }
205
- .margin-h--xl,
206
- .margin--h-xl {
207
- margin-left: $space--xl;
208
- margin-right: $space--xl;
209
- }
210
- .margin-h--none,
211
- .margin--h-none {
212
- margin-left: $space--none;
213
- margin-right: $space--none;
214
- }
215
-
216
- .margin-l--auto,
217
- .margin--l-auto {
218
- margin-left: auto;
219
- }
220
- .margin-l--xs,
221
- .margin--l-xs {
222
- margin-left: $space--xs;
223
- }
224
- .margin-l--s,
225
- .margin--l-s {
226
- margin-left: $space--s;
227
- }
228
- .margin-l--m,
229
- .margin--l-m {
230
- margin-left: $space--m;
231
- }
232
- .margin-l--base,
233
- .margin--l-base {
234
- margin-left: $space--base;
235
- }
236
- .margin-l--l,
237
- .margin--l-l {
238
- margin-left: $space--l;
239
- }
240
- .margin-l--xl,
241
- .margin--l-xl {
242
- margin-left: $space--xl;
243
- }
244
- .margin-l--none,
245
- .margin--l-none {
246
- margin-left: $space--none;
247
- }
248
-
249
- .margin-r--auto,
250
- .margin--r-auto {
251
- margin-right: auto;
252
- }
253
- .margin-r--xs,
254
- .margin--r-xs {
255
- margin-right: $space--xs;
256
- }
257
- .margin-r--s,
258
- .margin--r-s {
259
- margin-right: $space--s;
260
- }
261
- .margin-r--m,
262
- .margin--r-m {
263
- margin-right: $space--m;
264
- }
265
- .margin-r--base,
266
- .margin--r-base {
267
- margin-right: $space--base;
268
- }
269
- .margin-r--l,
270
- .margin--r-l {
271
- margin-right: $space--l;
272
- }
273
- .margin-r--xl,
274
- .margin--r-xl {
275
- margin-right: $space--xl;
276
- }
277
- .margin-r--none,
278
- .margin--r-none {
279
- margin-right: $space--none;
280
- }
281
-
282
- .margin-b--auto,
283
- .margin--b-auto {
284
- margin-bottom: auto;
285
- }
286
- .margin-b--xs,
287
- .margin--b-xs {
288
- margin-bottom: $space--xs;
289
- }
290
- .margin-b--s,
291
- .margin--b-s {
292
- margin-bottom: $space--s;
293
- }
294
- .margin-b--m,
295
- .margin--b-m {
296
- margin-bottom: $space--m;
297
- }
298
- .margin-b--base,
299
- .margin--b-base {
300
- margin-bottom: $space--base;
301
- }
302
- .margin-b--l,
303
- .margin--b-l {
304
- margin-bottom: $space--l;
305
- }
306
- .margin-b--xl,
307
- .margin--b-xl {
308
- margin-bottom: $space--xl;
309
- }
310
- .margin-b--none,
311
- .margin--b-none {
312
- margin-bottom: $space--none;
313
- }
314
-
315
- .margin-t--auto,
316
- .margin--t-auto {
317
- margin-top: auto;
318
- }
319
- .margin-t--xs,
320
- .margin--t-xs {
321
- margin-top: $space--xs;
322
- }
323
- .margin-t--s,
324
- .margin--t-s {
325
- margin-top: $space--s;
326
- }
327
- .margin-t--m,
328
- .margin--t-m {
329
- margin-top: $space--m;
330
- }
331
- .margin-t--base,
332
- .margin--t-base {
333
- margin-top: $space--base;
334
- }
335
- .margin-t--l,
336
- .margin--t-l {
337
- margin-top: $space--l;
338
- }
339
- .margin-t--xl,
340
- .margin--t-xl {
341
- margin-top: $space--xl;
342
- }
343
- .margin-t--none,
344
- .margin--t-none {
345
- margin-top: $space--none;
346
- }
347
-
348
- /*
349
- @styleguide
350
- @title Max-Widths
351
-
352
- Max-widths can be set to one of the following values:
353
- - <span class="display--ib">`none`</span>
354
- - percentage, in multiples of 10, e.g.,
355
- <span class="display--ib">`max-width--90-pct`</span>
356
- - number, in multiples of <span class="display--ib">`2em`</span>
357
-
358
- <div class="max-width--50-pct bg-color--dscout">50% max-width</div>
359
-
360
- <div class="max-width--50-pct bg-color--dscout">50% max-width</div>
361
-
362
- <div class="max-width--10 bg-color--dscout">20em max-width</div>
363
-
364
- <div class="max-width--10 bg-color--dscout">20em max-width</div>
365
-
366
- */
367
- // === MAX WIDTHS === //
368
-
369
- .max-width--none { max-width: none; }
370
- .max-width--10-pct { max-width: 10%; }
371
- .max-width--20-pct { max-width: 20%; }
372
- .max-width--30-pct { max-width: 30%; }
373
- .max-width--40-pct { max-width: 40%; }
374
- .max-width--50-pct { max-width: 50%; }
375
- .max-width--60-pct { max-width: 60%; }
376
- .max-width--70-pct { max-width: 70%; }
377
- .max-width--80-pct { max-width: 80%; }
378
- .max-width--90-pct { max-width: 90%; }
379
- .max-width--100-pct { max-width: 100%; }
380
-
381
- .max-width--1 { max-width: $space--base; }
382
- .max-width--2 { max-width: $space--2; }
383
- .max-width--3 { max-width: $space--3; }
384
- .max-width--4 { max-width: $space--4; }
385
- .max-width--5 { max-width: $space--5; }
386
- .max-width--6 { max-width: $space--6; }
387
- .max-width--7 { max-width: $space--7; }
388
- .max-width--8 { max-width: $space--8; }
389
- .max-width--9 { max-width: $space--9; }
390
- .max-width--10 { max-width: $space--10; }
391
- .max-width--11 { max-width: $space--11; }
392
- .max-width--12 { max-width: $space--12; }
393
- .max-width--13 { max-width: $space--13; }
394
- .max-width--14 { max-width: $space--14; }
395
- .max-width--15 { max-width: $space--15; }
396
- .max-width--16 { max-width: $space--16; }
397
-
398
- /*
399
- @styleguide
400
- @title Max-Heights
401
-
402
- Max-heights can be set to one of the following values:
403
- - <span class="display--ib">`none`</span>
404
- - percentage, in multiples of 10, e.g.,
405
- <span class="display--ib">`max-height--90-pct`</span>
406
- - number, in multiples of <span class="display--ib">`2em`</span>
407
- */
408
- // === MAX HEIGHTS === //
409
-
410
- .max-height--none { max-height: none; }
411
- .max-height--10-pct { max-height: 10%; }
412
- .max-height--20-pct { max-height: 20%; }
413
- .max-height--30-pct { max-height: 30%; }
414
- .max-height--40-pct { max-height: 40%; }
415
- .max-height--50-pct { max-height: 50%; }
416
- .max-height--60-pct { max-height: 60%; }
417
- .max-height--70-pct { max-height: 70%; }
418
- .max-height--80-pct { max-height: 80%; }
419
- .max-height--90-pct { max-height: 90%; }
420
- .max-height--100-pct { max-height: 100%; }
421
-
422
- .max-height--1 { max-height: $space--base; }
423
- .max-height--2 { max-height: $space--2; }
424
- .max-height--3 { max-height: $space--3; }
425
- .max-height--4 { max-height: $space--4; }
426
- .max-height--5 { max-height: $space--5; }
427
- .max-height--6 { max-height: $space--6; }
428
- .max-height--7 { max-height: $space--7; }
429
- .max-height--8 { max-height: $space--8; }
430
- .max-height--9 { max-height: $space--9; }
431
- .max-height--10 { max-height: $space--10; }
432
- .max-height--11 { max-height: $space--11; }
433
- .max-height--12 { max-height: $space--12; }
434
- .max-height--13 { max-height: $space--13; }
435
- .max-height--14 { max-height: $space--14; }
436
- .max-height--15 { max-height: $space--15; }
437
- .max-height--16 { max-height: $space--16; }
438
-
439
- /*
440
- @styleguide
441
- @title Padding
442
-
443
- Element padding can be controlled in much the same fashion as margins.
444
- The possible values are:
445
- - none
446
- - xs (.25em)
447
- - s (.75em)
448
- - m (1em)
449
- - base (2em)
450
- - l (3em)
451
- - xl (4em)
452
-
453
- <div class="padding--base">2em padding on all sides</div>
454
-
455
- <div class="padding--base">2em padding on all sides</div>
456
-
457
- Enum values can be applied to each side individually.
458
- Possible values are:
459
- - t (top)
460
- - r (right)
461
- - b (bottom)
462
- - l (left)
463
-
464
- <div class="padding-l--base">2em padding on the left only</div>
465
-
466
- <div class="padding-l--base">2em padding on the left only</div>
467
-
468
- Horizontal or vertical padding can be specified like so:
469
-
470
- <div class="padding-h--base">2em padding on left and right</div>
471
-
472
- <div class="padding-h--base">2em padding on left and right</div>
473
-
474
- <div class="padding-v--base">2em padding on top and bottom</div>
475
-
476
- <div class="padding-v--base">2em padding on top and bottom</div>
477
- */
478
- // === PADDINGS === //
479
-
480
- .padding--none { padding: $space--none; }
481
- .padding--xs { padding: $space--xs; }
482
- .padding--s { padding: $space--s; }
483
- .padding--m { padding: $space--m; }
484
- .padding--base { padding: $space--base; }
485
- .padding--l { padding: $space--l; }
486
- .padding--xl { padding: $space--xl; }
487
-
488
- // The .padding--[direction]-[enum] selectors are deprecated but left in place
489
- // for backward compatibility while Particle's consumers are updated. In a
490
- // future release, these selectors should be removed, leaving only the
491
- // .padding-[direction]--[enum] selectors.
492
-
493
-
494
- .padding-v--xs,
495
- .padding--v-xs {
496
- padding-bottom: $space--xs;
497
- padding-top: $space--xs;
498
- }
499
- .padding-v--s,
500
- .padding--v-s {
501
- padding-bottom: $space--s;
502
- padding-top: $space--s;
503
- }
504
- .padding-v--m,
505
- .padding--v-m {
506
- padding-bottom: $space--m;
507
- padding-top: $space--m;
508
- }
509
- .padding-v--base,
510
- .padding--v-base {
511
- padding-top: $space--base;
512
- padding-bottom: $space--base;
513
- }
514
- .padding-v--l,
515
- .padding--v-l {
516
- padding-top: $space--l;
517
- padding-bottom: $space--l;
518
- }
519
- .padding-v--xl,
520
- .padding--v-xl {
521
- padding-bottom: $space--xl;
522
- padding-top: $space--xl;
523
- }
524
- .padding-v--none,
525
- .padding--v-none {
526
- padding-bottom: $space--none;
527
- padding-top: $space--none;
528
- }
529
-
530
- .padding-h--xs,
531
- .padding--h-xs {
532
- padding-left: $space--xs;
533
- padding-right: $space--xs;
534
- }
535
- .padding-h--s,
536
- .padding--h-s {
537
- padding-left: $space--s;
538
- padding-right: $space--s;
539
- }
540
- .padding-h--m,
541
- .padding--h-m {
542
- padding-left: $space--m;
543
- padding-right: $space--m;
544
- }
545
- .padding-h--base,
546
- .padding--h-base {
547
- padding-left: $space--base;
548
- padding-right: $space--base;
549
- }
550
- .padding-h--l,
551
- .padding--h-l {
552
- padding-left: $space--l;
553
- padding-right: $space--l;
554
- }
555
- .padding-h--xl,
556
- .padding--h-xl {
557
- padding-left: $space--xl;
558
- padding-right: $space--xl;
559
- }
560
- .padding-h--none,
561
- .padding--h-none {
562
- padding-left: $space--none;
563
- padding-right: $space--none;
564
- }
565
-
566
- .padding-l--xs,
567
- .padding--l-xs {
568
- padding-left: $space--xs;
569
- }
570
- .padding-l--s,
571
- .padding--l-s {
572
- padding-left: $space--s;
573
- }
574
- .padding-l--m,
575
- .padding--l-m {
576
- padding-left: $space--m;
577
- }
578
- .padding-l--base,
579
- .padding--l-base {
580
- padding-left: $space--base;
581
- }
582
- .padding-l--l,
583
- .padding--l-l {
584
- padding-left: $space--l;
585
- }
586
- .padding-l--xl,
587
- .padding--l-xl {
588
- padding-left: $space--xl;
589
- }
590
- .padding-l--none,
591
- .padding--l-none {
592
- padding-left: $space--none;
593
- }
594
-
595
- .padding-r--xs,
596
- .padding--r-xs {
597
- padding-right: $space--xs;
598
- }
599
- .padding-r--s,
600
- .padding--r-s {
601
- padding-right: $space--s;
602
- }
603
- .padding-r--m,
604
- .padding--r-m {
605
- padding-right: $space--m;
606
- }
607
- .padding-r--base,
608
- .padding--r-base {
609
- padding-right: $space--base;
610
- }
611
- .padding-r--l,
612
- .padding--r-l {
613
- padding-right: $space--l;
614
- }
615
- .padding-r--xl,
616
- .padding--r-xl {
617
- padding-right: $space--xl;
618
- }
619
- .padding-r--none,
620
- .padding--r-none {
621
- padding-right: $space--none;
622
- }
623
-
624
- .padding-b--xs,
625
- .padding--b-xs {
626
- padding-bottom: $space--xs;
627
- }
628
- .padding-b--s,
629
- .padding--b-s {
630
- padding-bottom: $space--s;
631
- }
632
- .padding-b--m,
633
- .padding--b-m {
634
- padding-bottom: $space--m;
635
- }
636
- .padding-b--base,
637
- .padding--b-base {
638
- padding-bottom: $space--base;
639
- }
640
- .padding-b--l,
641
- .padding--b-l {
642
- padding-bottom: $space--l;
643
- }
644
- .padding-b--xl,
645
- .padding--b-xl {
646
- padding-bottom: $space--xl;
647
- }
648
- .padding-b--none,
649
- .padding--b-none {
650
- padding-bottom: $space--none;
651
- }
652
-
653
- .padding-t--xs,
654
- .padding--t-xs {
655
- padding-top: $space--xs;
656
- }
657
- .padding-t--s,
658
- .padding--t-s {
659
- padding-top: $space--s;
660
- }
661
- .padding-t--m,
662
- .padding--t-m {
663
- padding-top: $space--m;
664
- }
665
- .padding-t--base,
666
- .padding--t-base {
667
- padding-top: $space--base;
668
- }
669
- .padding-t--l,
670
- .padding--t-l {
671
- padding-top: $space--l;
672
- }
673
- .padding-t--xl,
674
- .padding--t-xl {
675
- padding-top: $space--xl;
676
- }
677
- .padding-t--none,
678
- .padding--t-none {
679
- padding-top: $space--none;
680
- }
681
-
682
- /*
683
- @styleguide
684
- @title Widths
685
-
686
- Element widths can be set using three methods:
687
- - enum
688
- - none
689
- - xs (.25em)
690
- - s (.75em)
691
- - m (1em)
692
- - base (2em)
693
- - l (3em)
694
- - xl (4em)
695
- - number
696
- - 1-16 where the number is a multiplier of 2em, e.g.,
697
- <span class="display--ib">`width--16`</span> = 32em
698
- - percentage
699
- - multiples of 10, e.g., <span class="display--ib">`width--40-pct`</span>
700
-
701
- <div class="width--base border b-color--dscout">Base width</div>
702
-
703
- <div class="width--base border b-color--dscout">Base Width</div>
704
-
705
- <div class="width--10 border b-color--dscout">20ems Width</div>
706
-
707
- <div class="width--10 border b-color--dscout">20ems Width</div>
708
-
709
- <div class="width--100-pct">
710
- <div class="width--50-pct border b-color--dscout">50% Width</div>
711
- </div>
712
-
713
- <div class="width--100-pct">
714
- <div class="width--50-pct border b-color--dscout">50% Width</div>
715
- </div>
716
- */
717
- // === WIDTHS === //
718
-
719
- .width--none { width: $space--none; }
720
- .width--xs { width: $space--xs; }
721
- .width--s { width: $space--s; }
722
- .width--m { width: $space--m; }
723
- .width--base { width: $space--base; }
724
- .width--l { width: $space--l; }
725
- .width--xl { width: $space--xl; }
726
-
727
- .width--1 { width: $space--base; }
728
- .width--2 { width: $space--2; }
729
- .width--3 { width: $space--3; }
730
- .width--4 { width: $space--4; }
731
- .width--5 { width: $space--5; }
732
- .width--6 { width: $space--6; }
733
- .width--7 { width: $space--7; }
734
- .width--8 { width: $space--8; }
735
- .width--9 { width: $space--9; }
736
- .width--10 { width: $space--10; }
737
- .width--11 { width: $space--11; }
738
- .width--12 { width: $space--12; }
739
- .width--13 { width: $space--13; }
740
- .width--14 { width: $space--14; }
741
- .width--15 { width: $space--15; }
742
- .width--16 { width: $space--16; }
743
-
744
- .width--10-pct { width: 10%; }
745
- .width--20-pct { width: 20%; }
746
- .width--30-pct { width: 30%; }
747
- .width--40-pct { width: 40%; }
748
- .width--50-pct { width: 50%; }
749
- .width--60-pct { width: 60%; }
750
- .width--70-pct { width: 70%; }
751
- .width--80-pct { width: 80%; }
752
- .width--90-pct { width: 90%; }
753
- .width--100-pct { width: 100%; }