@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.
- package/CHANGELOG.md +125 -11
- package/lib/components/advanced_options.js +92 -3
- package/lib/components/attribute_input.js +215 -0
- package/lib/components/attribute_selector.js +106 -22
- package/lib/components/avatar.js +98 -7
- package/lib/components/blitz.js +118 -8
- package/lib/components/button.js +261 -2
- package/lib/components/button_control.js +108 -2
- package/lib/components/button_icon.js +192 -0
- package/lib/components/button_mode.js +174 -2
- package/lib/components/button_plain.js +187 -0
- package/lib/components/card.js +237 -4
- package/lib/components/card_body.js +58 -1
- package/lib/components/card_footer.js +76 -2
- package/lib/components/cards.js +58 -1
- package/lib/components/checkbox_input.js +141 -6
- package/lib/components/chip.js +184 -0
- package/lib/components/collapsible.js +45 -10
- package/lib/components/collapsible_content.js +92 -9
- package/lib/components/collapsing_menu.js +102 -4
- package/lib/components/column.js +72 -1
- package/lib/components/common_button.js +172 -0
- package/lib/components/common_input.js +221 -18
- package/lib/components/common_menu_item.js +160 -9
- package/lib/components/container.js +65 -1
- package/lib/components/container_header.js +81 -1
- package/lib/components/container_inner.js +50 -1
- package/lib/components/controls.js +57 -0
- package/lib/components/drag_and_drop.js +173 -10
- package/lib/components/dropdown.js +228 -13
- package/lib/components/dropdown_input_toggle.js +127 -9
- package/lib/components/editing_container.js +157 -14
- package/lib/components/email_input.js +207 -0
- package/lib/components/file_input.js +125 -3
- package/lib/components/flex.js +216 -28
- package/lib/components/focus_intent.js +84 -10
- package/lib/components/focus_trap.js +103 -2
- package/lib/components/footnote.js +60 -1
- package/lib/components/formatted_text.js +61 -0
- package/lib/components/heading.js +219 -3
- package/lib/components/input_addon.js +115 -0
- package/lib/components/input_group.js +81 -0
- package/lib/components/input_group_item.js +132 -0
- package/lib/components/list.js +92 -3
- package/lib/components/list_inline.js +91 -3
- package/lib/components/media_query.js +52 -5
- package/lib/components/menu.js +91 -2
- package/lib/components/menu_item.js +116 -1
- package/lib/components/menu_item_li.js +152 -11
- package/lib/components/menu_link.js +162 -1
- package/lib/components/menu_list.js +79 -4
- package/lib/components/menu_section.js +66 -2
- package/lib/components/menu_title.js +58 -1
- package/lib/components/modal.js +223 -22
- package/lib/components/modifier.js +241 -14
- package/lib/components/number_input.js +215 -0
- package/lib/components/password_input.js +207 -0
- package/lib/components/pill.js +96 -1
- package/lib/components/radio_input.js +133 -5
- package/lib/components/range_input.js +128 -5
- package/lib/components/row.js +86 -1
- package/lib/components/search_input.js +175 -0
- package/lib/components/segmented_controls.js +58 -1
- package/lib/components/select_input.js +173 -15
- package/lib/components/separator.js +137 -6
- package/lib/components/speech_bubble.js +126 -8
- package/lib/components/swappable_content.js +99 -9
- package/lib/components/tags_input.js +199 -15
- package/lib/components/text_input.js +207 -0
- package/lib/components/textarea.js +187 -11
- package/lib/components/theme_provider.js +172 -0
- package/lib/components/thumbnail.js +94 -8
- package/lib/components/togglable_fieldset.js +110 -14
- package/lib/components/toggle.js +93 -1
- package/lib/components/tooltip.js +144 -4
- package/lib/components/tooltip_container.js +144 -5
- package/lib/components/with_addons.js +121 -0
- package/lib/icons/alert.js +6 -0
- package/lib/icons/amazing_emoticon.js +6 -0
- package/lib/icons/analysis.js +6 -0
- package/lib/icons/approve_payment.js +6 -0
- package/lib/icons/archive.js +6 -0
- package/lib/icons/arrow_up.js +6 -0
- package/lib/icons/autotag.js +88 -0
- package/lib/icons/bell.js +6 -0
- package/lib/icons/bookmark.js +26 -2
- package/lib/icons/camera.js +6 -0
- package/lib/icons/checkbox_check.js +44 -2
- package/lib/icons/checkbox_indeterminate.js +44 -2
- package/lib/icons/checkmark.js +6 -0
- package/lib/icons/{speaker_on.js → checkpoint.js} +14 -13
- package/lib/icons/chevron.js +6 -0
- package/lib/icons/choice.js +6 -0
- package/lib/icons/circle.js +6 -0
- package/lib/icons/circle_checkmark.js +88 -0
- package/lib/icons/circle_chevron.js +6 -0
- package/lib/icons/circle_clone.js +6 -0
- package/lib/icons/circle_i.js +6 -0
- package/lib/icons/circle_minus.js +6 -0
- package/lib/icons/circle_plus.js +6 -0
- package/lib/icons/circle_question.js +6 -0
- package/lib/icons/circle_x.js +6 -0
- package/lib/icons/clip.js +122 -34
- package/lib/icons/clock.js +93 -1
- package/lib/icons/clone.js +6 -0
- package/lib/icons/column.js +81 -0
- package/lib/icons/common_svg.js +172 -19
- package/lib/icons/download.js +6 -0
- package/lib/icons/drag_dots.js +6 -0
- package/lib/icons/dscout.js +6 -0
- package/lib/icons/edit.js +6 -0
- package/lib/icons/email.js +6 -0
- package/lib/icons/export.js +6 -0
- package/lib/icons/express_mission.js +11 -1
- package/lib/icons/express_mission_card.js +6 -0
- package/lib/icons/external_link.js +6 -0
- package/lib/icons/eye.js +95 -0
- package/lib/icons/file_type_text.js +6 -0
- package/lib/icons/filter.js +6 -0
- package/lib/icons/fit.js +6 -0
- package/lib/icons/folder.js +88 -0
- package/lib/icons/good_emoticon.js +6 -0
- package/lib/icons/grid.js +6 -0
- package/lib/icons/grip.js +6 -0
- package/lib/icons/heart.js +95 -0
- package/lib/icons/highlighter.js +6 -0
- package/lib/icons/icon_with_count.js +82 -5
- package/lib/icons/image_file.js +6 -0
- package/lib/icons/key.js +6 -0
- package/lib/icons/knockout.js +6 -0
- package/lib/icons/link.js +6 -0
- package/lib/icons/live_mission.js +11 -1
- package/lib/icons/live_mission_card.js +6 -0
- package/lib/icons/live_notes.js +88 -0
- package/lib/icons/location.js +88 -0
- package/lib/icons/lock.js +88 -0
- package/lib/icons/map.js +6 -0
- package/lib/icons/media.js +6 -0
- package/lib/icons/media_upload.js +6 -0
- package/lib/icons/mic.js +95 -0
- package/lib/icons/minus.js +6 -0
- package/lib/icons/mission.js +11 -1
- package/lib/icons/mission_card.js +6 -0
- package/lib/icons/mobile.js +88 -0
- package/lib/icons/more.js +6 -0
- package/lib/icons/note.js +88 -0
- package/lib/icons/number.js +6 -0
- package/lib/icons/observer.js +6 -0
- package/lib/icons/open_ended.js +6 -0
- package/lib/icons/payment.js +6 -0
- package/lib/icons/pen.js +6 -0
- package/lib/icons/pin.js +88 -0
- package/lib/icons/play.js +6 -0
- package/lib/icons/plus.js +6 -0
- package/lib/icons/poor_emoticon.js +6 -0
- package/lib/icons/power.js +6 -0
- package/lib/icons/profile.js +6 -0
- package/lib/icons/prop_types.js +9 -6
- package/lib/icons/quotation_mark.js +6 -0
- package/lib/icons/radio_circle.js +87 -0
- package/lib/icons/randomize.js +6 -0
- package/lib/icons/remote.js +6 -0
- package/lib/icons/responses.js +6 -0
- package/lib/icons/rocket.js +6 -0
- package/lib/icons/round_arrow_down_left.js +6 -0
- package/lib/icons/round_arrow_right.js +6 -0
- package/lib/icons/row.js +81 -0
- package/lib/icons/scale.js +6 -0
- package/lib/icons/screen.js +95 -0
- package/lib/icons/screen_share.js +6 -0
- package/lib/icons/screener.js +11 -1
- package/lib/icons/screener_card.js +6 -0
- package/lib/icons/screener_small.js +6 -0
- package/lib/icons/send_payment.js +6 -0
- package/lib/icons/settings.js +6 -0
- package/lib/icons/settings_alt.js +6 -0
- package/lib/icons/share.js +6 -0
- package/lib/icons/sidebar.js +6 -0
- package/lib/icons/skip_end.js +6 -0
- package/lib/icons/sort_asc.js +6 -0
- package/lib/icons/sort_desc.js +6 -0
- package/lib/icons/speech_bubble.js +95 -0
- package/lib/icons/spinner.js +88 -0
- package/lib/icons/spinner_progress.js +6 -0
- package/lib/icons/spreadsheet_file.js +6 -0
- package/lib/icons/stacked_missions.js +6 -0
- package/lib/icons/star.js +95 -0
- package/lib/icons/stim.js +88 -0
- package/lib/icons/summary.js +6 -0
- package/lib/icons/tag.js +95 -0
- package/lib/icons/tag_group.js +81 -0
- package/lib/icons/team.js +6 -0
- package/lib/icons/thumbs_down.js +6 -0
- package/lib/icons/thumbs_up.js +6 -0
- package/lib/icons/translate.js +6 -0
- package/lib/icons/trash.js +6 -0
- package/lib/icons/triangle_inverted.js +90 -0
- package/lib/icons/type_video.js +6 -0
- package/lib/icons/upload.js +6 -0
- package/lib/icons/video_fast_forward.js +85 -0
- package/lib/icons/video_next.js +85 -0
- package/lib/icons/video_pause.js +85 -0
- package/lib/icons/video_play.js +85 -0
- package/lib/icons/video_skip.js +85 -0
- package/lib/icons/videocamera.js +95 -0
- package/lib/icons/wand.js +6 -0
- package/lib/icons/wifi.js +6 -0
- package/lib/icons/x.js +6 -0
- package/lib/index.js +64 -68
- package/lib/stylesheets/particle.css +3710 -4065
- package/lib/stylesheets/particle.min.css +1 -2
- package/lib/stylesheets/particle.min.css.gz +0 -0
- package/lib/utils/class_names.js +8 -4
- package/lib/utils/dom.js +8 -4
- package/lib/utils/props.js +26 -2
- package/lib/utils/strings.js +6 -0
- package/lib/utils/types.js +1 -1
- package/package.json +10 -6
- package/styles/_base.scss +57 -9
- package/styles/_mixins.scss +10 -290
- package/styles/_reset.scss +12 -21
- package/styles/_theme_builder.scss +356 -0
- package/styles/_variables.scss +67 -36
- package/styles/components/_focus-intent.scss +3 -3
- package/styles/components/_icons.scss +0 -7
- package/styles/components/_links.scss +0 -36
- package/styles/components/attribute_selector/_base.scss +60 -0
- package/styles/components/attribute_selector/themes/_bandit.scss +18 -0
- package/styles/components/attribute_selector/themes/_researcher.scss +6 -0
- package/styles/components/attribute_selector/themes/_theme_builder.scss +33 -0
- package/styles/components/{_avatar.scss → avatar/_base.scss} +8 -10
- package/styles/components/avatar/themes/_bandit.scss +5 -0
- package/styles/components/avatar/themes/_researcher.scss +5 -0
- package/styles/components/avatar/themes/_theme_builder.scss +7 -0
- package/styles/components/{_blitz.scss → blitz/_base.scss} +14 -10
- package/styles/components/blitz/themes/_bandit.scss +5 -0
- package/styles/components/blitz/themes/_researcher.scss +6 -0
- package/styles/components/blitz/themes/_theme_builder.scss +1 -0
- package/styles/components/buttons/_base.scss +510 -0
- package/styles/components/buttons/themes/_bandit.scss +25 -0
- package/styles/components/buttons/themes/_researcher.scss +6 -0
- package/styles/components/buttons/themes/_theme_builder.scss +89 -0
- package/styles/components/card/_base.scss +88 -0
- package/styles/components/card/themes/_bandit.scss +5 -0
- package/styles/components/card/themes/_researcher.scss +5 -0
- package/styles/components/card/themes/_theme_builder.scss +25 -0
- package/styles/components/chip/_base.scss +38 -0
- package/styles/components/chip/themes/_bandit.scss +12 -0
- package/styles/components/chip/themes/_researcher.scss +5 -0
- package/styles/components/chip/themes/_theme_builder.scss +19 -0
- package/styles/components/collapsible/_base.scss +33 -0
- package/styles/components/collapsible/themes/_bandit.scss +5 -0
- package/styles/components/collapsible/themes/_researcher.scss +5 -0
- package/styles/components/collapsible/themes/_theme_builder.scss +1 -0
- package/styles/components/container/_base.scss +49 -0
- package/styles/components/container/themes/_bandit.scss +6 -0
- package/styles/components/container/themes/_researcher.scss +6 -0
- package/styles/components/container/themes/_theme_builder.scss +15 -0
- package/styles/components/drag_and_drop/_base.scss +46 -0
- package/styles/components/drag_and_drop/themes/_bandit.scss +7 -0
- package/styles/components/drag_and_drop/themes/_researcher.scss +6 -0
- package/styles/components/drag_and_drop/themes/_theme_builder.scss +21 -0
- package/styles/components/dropdown/_base.scss +62 -0
- package/styles/components/dropdown/themes/_bandit.scss +7 -0
- package/styles/components/dropdown/themes/_researcher.scss +6 -0
- package/styles/components/dropdown/themes/_theme_builder.scss +5 -0
- package/styles/components/footnote/_base.scss +11 -0
- package/styles/components/footnote/themes/_bandit.scss +5 -0
- package/styles/components/footnote/themes/_researcher.scss +5 -0
- package/styles/components/footnote/themes/_theme_builder.scss +1 -0
- package/styles/components/grid/_base.scss +41 -0
- package/styles/components/grid/themes/_bandit.scss +5 -0
- package/styles/components/grid/themes/_researcher.scss +5 -0
- package/styles/components/grid/themes/_theme_builder.scss +1 -0
- package/styles/components/input_group/_base.scss +74 -0
- package/styles/components/input_group/themes/_bandit.scss +7 -0
- package/styles/components/input_group/themes/_researcher.scss +6 -0
- package/styles/components/input_group/themes/_theme_builder.scss +5 -0
- package/styles/components/inputs/_base.scss +84 -0
- package/styles/components/inputs/themes/_bandit.scss +30 -0
- package/styles/components/inputs/themes/_researcher.scss +6 -0
- package/styles/components/inputs/themes/_theme_builder.scss +62 -0
- package/styles/components/{_list.scss → list/_base.scss} +39 -47
- package/styles/components/list/themes/_bandit.scss +5 -0
- package/styles/components/list/themes/_researcher.scss +6 -0
- package/styles/components/list/themes/_theme_builder.scss +1 -0
- package/styles/components/menu/_base.scss +184 -0
- package/styles/components/menu/themes/_bandit.scss +6 -0
- package/styles/components/menu/themes/_researcher.scss +6 -0
- package/styles/components/menu/themes/_theme_builder.scss +13 -0
- package/styles/components/modal/base.scss +69 -0
- package/styles/components/modal/themes/_bandit.scss +5 -0
- package/styles/components/modal/themes/_researcher.scss +6 -0
- package/styles/components/modal/themes/_theme_builder.scss +9 -0
- package/styles/components/pill/_base.scss +42 -0
- package/styles/components/pill/themes/_bandit.scss +6 -0
- package/styles/components/pill/themes/_researcher.scss +6 -0
- package/styles/components/pill/themes/_theme_builder.scss +11 -0
- package/styles/components/range/_base.scss +85 -0
- package/styles/components/range/themes/_bandit.scss +15 -0
- package/styles/components/range/themes/_researcher.scss +6 -0
- package/styles/components/range/themes/_theme_builder.scss +35 -0
- package/styles/components/segmented_controls/_base.scss +71 -0
- package/styles/components/segmented_controls/themes/_bandit.scss +6 -0
- package/styles/components/segmented_controls/themes/_researcher.scss +6 -0
- package/styles/components/segmented_controls/themes/_theme_builder.scss +1 -0
- package/styles/components/selectors/_base.scss +153 -0
- package/styles/components/selectors/themes/_bandit.scss +49 -0
- package/styles/components/selectors/themes/_researcher.scss +6 -0
- package/styles/components/selectors/themes/_theme_builder.scss +93 -0
- package/styles/components/separator/_base.scss +11 -0
- package/styles/components/separator/themes/_bandit.scss +5 -0
- package/styles/components/separator/themes/_researcher.scss +6 -0
- package/styles/components/separator/themes/_theme_builder.scss +1 -0
- package/styles/components/speech_bubble/_base.scss +34 -0
- package/styles/components/speech_bubble/themes/_bandit.scss +5 -0
- package/styles/components/speech_bubble/themes/_researcher.scss +6 -0
- package/styles/components/speech_bubble/themes/_theme_builder.scss +1 -0
- package/styles/components/swappable/_base.scss +41 -0
- package/styles/components/swappable/themes/_bandit.scss +5 -0
- package/styles/components/swappable/themes/_researcher.scss +6 -0
- package/styles/components/swappable/themes/_theme_builder.scss +1 -0
- package/styles/components/tags/_base.scss +27 -0
- package/styles/components/tags/themes/_bandit.scss +5 -0
- package/styles/components/tags/themes/_researcher.scss +6 -0
- package/styles/components/tags/themes/_theme_builder.scss +1 -0
- package/styles/components/thumbnail/_base.scss +32 -0
- package/styles/components/thumbnail/themes/_bandit.scss +5 -0
- package/styles/components/thumbnail/themes/_researcher.scss +5 -0
- package/styles/components/thumbnail/themes/_theme_builder.scss +5 -0
- package/styles/components/toggle/_base.scss +83 -0
- package/styles/components/toggle/themes/_bandit.scss +26 -0
- package/styles/components/toggle/themes/_researcher.scss +6 -0
- package/styles/components/toggle/themes/_theme_builder.scss +51 -0
- package/styles/components/tooltip/_base.scss +127 -0
- package/styles/components/tooltip/themes/_bandit.scss +5 -0
- package/styles/components/tooltip/themes/_researcher.scss +6 -0
- package/styles/components/tooltip/themes/_theme_builder.scss +1 -0
- package/styles/css_variables/_bandit.scss +45 -0
- package/styles/css_variables/_researcher.scss +5 -0
- package/styles/particle.scss +48 -36
- package/styles/themes/_bandit.scss +9 -0
- package/styles/themes/_researcher.scss +9 -0
- package/styles/utilities/_alignment.scss +199 -0
- package/styles/utilities/_borders.scss +50 -0
- package/styles/utilities/_colors.scss +606 -0
- package/styles/utilities/_dimensions.scss +265 -0
- package/styles/utilities/_display.scss +71 -0
- package/styles/utilities/_overflow.scss +74 -0
- package/styles/utilities/_position.scss +107 -0
- package/styles/utilities/_radii.scss +70 -0
- package/styles/utilities/_resizing.scss +42 -0
- package/styles/utilities/_shadows.scss +74 -0
- package/styles/utilities/_spacing.scss +579 -0
- package/styles/utilities/_typography.scss +409 -0
- package/styles/utilities/_visibility.scss +36 -0
- package/styles/utilities/_z_index.scss +24 -0
- package/lib/components/bug.js +0 -61
- package/lib/components/button_group.js +0 -55
- package/lib/components/button_link.js +0 -70
- package/lib/components/button_primary.js +0 -112
- package/lib/components/button_secondary.js +0 -93
- package/lib/components/fieldset.js +0 -59
- package/lib/components/scene.js +0 -68
- package/lib/components/validation_message.js +0 -49
- package/lib/components/with_affix.js +0 -114
- package/lib/icons/checkpoint/_checkpoint_filled.js +0 -32
- package/lib/icons/checkpoint/_checkpoint_unfilled.js +0 -29
- package/lib/icons/checkpoint/checkpoint.js +0 -57
- package/lib/utils/colors.js +0 -32
- package/styles/_borders.scss +0 -204
- package/styles/_colors.scss +0 -847
- package/styles/_helpers.scss +0 -660
- package/styles/_spacing.scss +0 -753
- package/styles/_typography.scss +0 -340
- package/styles/components/_affix.scss +0 -74
- package/styles/components/_attribute-selector.scss +0 -38
- package/styles/components/_bug.scss +0 -285
- package/styles/components/_buttons.scss +0 -1366
- package/styles/components/_card.scss +0 -113
- package/styles/components/_collapsible.scss +0 -30
- package/styles/components/_container.scss +0 -62
- package/styles/components/_drag_and_drop.scss +0 -42
- package/styles/components/_dropdown-input.scss +0 -45
- package/styles/components/_dropdown.scss +0 -31
- package/styles/components/_file-input.scss +0 -11
- package/styles/components/_flex.scss +0 -130
- package/styles/components/_footnote.scss +0 -15
- package/styles/components/_forms.scss +0 -474
- package/styles/components/_grid.scss +0 -90
- package/styles/components/_menu.scss +0 -183
- package/styles/components/_modal.scss +0 -74
- package/styles/components/_pill.scss +0 -101
- package/styles/components/_preview.scss +0 -30
- package/styles/components/_scene.scss +0 -46
- package/styles/components/_segmented-controls.scss +0 -51
- package/styles/components/_separator.scss +0 -48
- package/styles/components/_speech-bubble.scss +0 -29
- package/styles/components/_swappable.scss +0 -38
- package/styles/components/_tags.scss +0 -20
- package/styles/components/_tooltip.scss +0 -135
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
/*
|
|
2
|
+
@styleguide
|
|
3
|
+
@title Heights
|
|
4
|
+
|
|
5
|
+
**Element heights can be set using enums representing a sliding scale of ems:**
|
|
6
|
+
|
|
7
|
+
`0.25`, `0.5`, `0.75`, `1`, `1.5`, `2`, `3`, `4`, `5`, `6`, `8`, `10`, `12`, `14`, `16`, `18`, `20`, `22`, `24`, `26`, `28`, `30`, `32`, `36`, `40`, `48`, `60`
|
|
8
|
+
|
|
9
|
+
<div class="height--0.75 border b-color--dscout"></div>
|
|
10
|
+
|
|
11
|
+
```html
|
|
12
|
+
<div class="height--0.75 border b-color--dscout"></div>
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
<div class="height--4 border b-color--dscout"></div>
|
|
16
|
+
|
|
17
|
+
```html
|
|
18
|
+
<div class="height--4 border b-color--dscout"></div>
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
**Or as a percentage in multiples of 10, e.g., `height--40-pct`.**
|
|
22
|
+
|
|
23
|
+
<div class="height--10">
|
|
24
|
+
<div class="height--50-pct border b-color--dscout"></div>
|
|
25
|
+
</div>
|
|
26
|
+
|
|
27
|
+
```html
|
|
28
|
+
<div class="height--10">
|
|
29
|
+
<div class="height--50-pct border b-color--dscout"></div>
|
|
30
|
+
</div>
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
**Or set to `none` or `auto`.**
|
|
34
|
+
*/
|
|
35
|
+
|
|
36
|
+
// === HEIGHTS === //
|
|
37
|
+
|
|
38
|
+
.height--none { height: 0; }
|
|
39
|
+
|
|
40
|
+
.height--0\.25 { height: .25em };
|
|
41
|
+
.height--0\.5 { height: .5em };
|
|
42
|
+
.height--0\.75 { height: .75em };
|
|
43
|
+
.height--1 { height: 1em };
|
|
44
|
+
.height--1\.5 { height: 1.5em };
|
|
45
|
+
.height--2 { height: 2em };
|
|
46
|
+
.height--3 { height: 3em };
|
|
47
|
+
.height--4 { height: 4em };
|
|
48
|
+
.height--5 { height: 5em };
|
|
49
|
+
.height--6 { height: 6em };
|
|
50
|
+
.height--8 { height: 8em };
|
|
51
|
+
.height--10 { height: 10em };
|
|
52
|
+
.height--12 { height: 12em };
|
|
53
|
+
.height--14 { height: 14em };
|
|
54
|
+
.height--16 { height: 16em };
|
|
55
|
+
.height--18 { height: 18em };
|
|
56
|
+
.height--20 { height: 20em };
|
|
57
|
+
.height--22 { height: 22em };
|
|
58
|
+
.height--24 { height: 24em };
|
|
59
|
+
.height--26 { height: 26em };
|
|
60
|
+
.height--28 { height: 28em };
|
|
61
|
+
.height--30 { height: 30em };
|
|
62
|
+
.height--32 { height: 32em };
|
|
63
|
+
.height--36 { height: 36em };
|
|
64
|
+
.height--40 { height: 40em };
|
|
65
|
+
.height--48 { height: 48em };
|
|
66
|
+
.height--60 { height: 60em };
|
|
67
|
+
|
|
68
|
+
.height--10-pct { height: 10%; }
|
|
69
|
+
.height--20-pct { height: 20%; }
|
|
70
|
+
.height--30-pct { height: 30%; }
|
|
71
|
+
.height--40-pct { height: 40%; }
|
|
72
|
+
.height--50-pct { height: 50%; }
|
|
73
|
+
.height--60-pct { height: 60%; }
|
|
74
|
+
.height--70-pct { height: 70%; }
|
|
75
|
+
.height--80-pct { height: 80%; }
|
|
76
|
+
.height--90-pct { height: 90%; }
|
|
77
|
+
.height--100-pct { height: 100%; }
|
|
78
|
+
|
|
79
|
+
/*
|
|
80
|
+
@styleguide
|
|
81
|
+
@title Max-Heights
|
|
82
|
+
|
|
83
|
+
Max-heights can be set to the same enums as height classes. E.g.:
|
|
84
|
+
|
|
85
|
+
- `max-height--auto`
|
|
86
|
+
- `max-height--12`
|
|
87
|
+
- `max-height--90-pct`
|
|
88
|
+
*/
|
|
89
|
+
// === MAX HEIGHTS === //
|
|
90
|
+
|
|
91
|
+
.max-height--none { max-height: none; }
|
|
92
|
+
.max-height--auto { max-height: auto; }
|
|
93
|
+
|
|
94
|
+
.max-height--10-pct { max-height: 10%; }
|
|
95
|
+
.max-height--20-pct { max-height: 20%; }
|
|
96
|
+
.max-height--30-pct { max-height: 30%; }
|
|
97
|
+
.max-height--40-pct { max-height: 40%; }
|
|
98
|
+
.max-height--50-pct { max-height: 50%; }
|
|
99
|
+
.max-height--60-pct { max-height: 60%; }
|
|
100
|
+
.max-height--70-pct { max-height: 70%; }
|
|
101
|
+
.max-height--80-pct { max-height: 80%; }
|
|
102
|
+
.max-height--90-pct { max-height: 90%; }
|
|
103
|
+
.max-height--100-pct { max-height: 100%; }
|
|
104
|
+
|
|
105
|
+
.max-height--0\.25 { max-height: .25em };
|
|
106
|
+
.max-height--0\.5 { max-height: .5em };
|
|
107
|
+
.max-height--0\.75 { max-height: .75em };
|
|
108
|
+
.max-height--1 { max-height: 1em };
|
|
109
|
+
.max-height--1\.5 { max-height: 1.5em };
|
|
110
|
+
.max-height--2 { max-height: 2em };
|
|
111
|
+
.max-height--3 { max-height: 3em };
|
|
112
|
+
.max-height--4 { max-height: 4em };
|
|
113
|
+
.max-height--5 { max-height: 5em };
|
|
114
|
+
.max-height--6 { max-height: 6em };
|
|
115
|
+
.max-height--8 { max-height: 8em };
|
|
116
|
+
.max-height--10 { max-height: 10em };
|
|
117
|
+
.max-height--12 { max-height: 12em };
|
|
118
|
+
.max-height--14 { max-height: 14em };
|
|
119
|
+
.max-height--16 { max-height: 16em };
|
|
120
|
+
.max-height--18 { max-height: 18em };
|
|
121
|
+
.max-height--20 { max-height: 20em };
|
|
122
|
+
.max-height--22 { max-height: 22em };
|
|
123
|
+
.max-height--24 { max-height: 24em };
|
|
124
|
+
.max-height--26 { max-height: 26em };
|
|
125
|
+
.max-height--28 { max-height: 28em };
|
|
126
|
+
.max-height--30 { max-height: 30em };
|
|
127
|
+
.max-height--32 { max-height: 32em };
|
|
128
|
+
.max-height--36 { max-height: 36em };
|
|
129
|
+
.max-height--40 { max-height: 40em };
|
|
130
|
+
.max-height--48 { max-height: 48em };
|
|
131
|
+
.max-height--60 { max-height: 60em };
|
|
132
|
+
|
|
133
|
+
/*
|
|
134
|
+
@styleguide
|
|
135
|
+
@title Widths
|
|
136
|
+
|
|
137
|
+
**Element widths can be set using enums representing a sliding scale of ems:**
|
|
138
|
+
|
|
139
|
+
`0.25`, `0.5`, `0.75`, `1`, `1.5`, `2`, `3`, `4`, `5`, `6`, `8`, `10`, `12`, `14`, `16`, `18`, `20`, `22`, `24`, `26`, `28`, `30`, `32`, `36`, `40`, `48`, `60`
|
|
140
|
+
|
|
141
|
+
<div class="width--0.75 height--1 border b-color--dscout"></div>
|
|
142
|
+
|
|
143
|
+
```html
|
|
144
|
+
<div class="width--0.75 height--1 border b-color--dscout"></div>
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
<div class="width--4 height--1 border b-color--dscout"></div>
|
|
148
|
+
|
|
149
|
+
```html
|
|
150
|
+
<div class="width--4 height--1 border b-color--dscout"></div>
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
**Or as percentages in multiples of 10, e.g., `width--40-pct`**
|
|
154
|
+
|
|
155
|
+
<div class="width--100-pct">
|
|
156
|
+
<div class="width--40-pct height--1 border b-color--dscout"></div>
|
|
157
|
+
</div>
|
|
158
|
+
|
|
159
|
+
```html
|
|
160
|
+
<div class="width--100-pct">
|
|
161
|
+
<div class="width--40-pct height--1 border b-color--dscout"></div>
|
|
162
|
+
</div>
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
**Or set to `none` or `auto`.**
|
|
166
|
+
|
|
167
|
+
*/
|
|
168
|
+
// === WIDTHS === //
|
|
169
|
+
|
|
170
|
+
.width--none { width: 0; }
|
|
171
|
+
.width--auto { width: auto; }
|
|
172
|
+
|
|
173
|
+
.width--0\.25 { width: .25em };
|
|
174
|
+
.width--0\.5 { width: .5em };
|
|
175
|
+
.width--0\.75 { width: .75em };
|
|
176
|
+
.width--1 { width: 1em };
|
|
177
|
+
.width--1\.5 { width: 1.5em };
|
|
178
|
+
.width--2 { width: 2em };
|
|
179
|
+
.width--3 { width: 3em };
|
|
180
|
+
.width--4 { width: 4em };
|
|
181
|
+
.width--5 { width: 5em };
|
|
182
|
+
.width--6 { width: 6em };
|
|
183
|
+
.width--8 { width: 8em };
|
|
184
|
+
.width--10 { width: 10em };
|
|
185
|
+
.width--12 { width: 12em };
|
|
186
|
+
.width--14 { width: 14em };
|
|
187
|
+
.width--16 { width: 16em };
|
|
188
|
+
.width--18 { width: 18em };
|
|
189
|
+
.width--20 { width: 20em };
|
|
190
|
+
.width--22 { width: 22em };
|
|
191
|
+
.width--24 { width: 24em };
|
|
192
|
+
.width--26 { width: 26em };
|
|
193
|
+
.width--28 { width: 28em };
|
|
194
|
+
.width--30 { width: 30em };
|
|
195
|
+
.width--32 { width: 32em };
|
|
196
|
+
.width--36 { width: 36em };
|
|
197
|
+
.width--40 { width: 40em };
|
|
198
|
+
.width--48 { width: 48em };
|
|
199
|
+
.width--60 { width: 60em };
|
|
200
|
+
|
|
201
|
+
.width--10-pct { width: 10%; }
|
|
202
|
+
.width--20-pct { width: 20%; }
|
|
203
|
+
.width--30-pct { width: 30%; }
|
|
204
|
+
.width--40-pct { width: 40%; }
|
|
205
|
+
.width--50-pct { width: 50%; }
|
|
206
|
+
.width--60-pct { width: 60%; }
|
|
207
|
+
.width--70-pct { width: 70%; }
|
|
208
|
+
.width--80-pct { width: 80%; }
|
|
209
|
+
.width--90-pct { width: 90%; }
|
|
210
|
+
.width--100-pct { width: 100%; }
|
|
211
|
+
|
|
212
|
+
/*
|
|
213
|
+
@styleguide
|
|
214
|
+
@title Max-Widths
|
|
215
|
+
|
|
216
|
+
Max-widths can be set to the same enums as width classes. E.g.:
|
|
217
|
+
|
|
218
|
+
- `max-width--auto`
|
|
219
|
+
- `max-width--12`
|
|
220
|
+
- `max-width--90-pct`
|
|
221
|
+
|
|
222
|
+
*/
|
|
223
|
+
// === MAX WIDTHS === //
|
|
224
|
+
|
|
225
|
+
.max-width--none { max-width: none; }
|
|
226
|
+
.max-width--auto { max-width: auto; }
|
|
227
|
+
|
|
228
|
+
.max-width--10-pct { max-width: 10%; }
|
|
229
|
+
.max-width--20-pct { max-width: 20%; }
|
|
230
|
+
.max-width--30-pct { max-width: 30%; }
|
|
231
|
+
.max-width--40-pct { max-width: 40%; }
|
|
232
|
+
.max-width--50-pct { max-width: 50%; }
|
|
233
|
+
.max-width--60-pct { max-width: 60%; }
|
|
234
|
+
.max-width--70-pct { max-width: 70%; }
|
|
235
|
+
.max-width--80-pct { max-width: 80%; }
|
|
236
|
+
.max-width--90-pct { max-width: 90%; }
|
|
237
|
+
.max-width--100-pct { max-width: 100%; }
|
|
238
|
+
|
|
239
|
+
.max-width--0\.25 { max-width: .25em };
|
|
240
|
+
.max-width--0\.5 { max-width: .5em };
|
|
241
|
+
.max-width--0\.75 { max-width: .75em };
|
|
242
|
+
.max-width--1 { max-width: 1em };
|
|
243
|
+
.max-width--1\.5 { max-width: 1.5em };
|
|
244
|
+
.max-width--2 { max-width: 2em };
|
|
245
|
+
.max-width--3 { max-width: 3em };
|
|
246
|
+
.max-width--4 { max-width: 4em };
|
|
247
|
+
.max-width--5 { max-width: 5em };
|
|
248
|
+
.max-width--6 { max-width: 6em };
|
|
249
|
+
.max-width--8 { max-width: 8em };
|
|
250
|
+
.max-width--10 { max-width: 10em };
|
|
251
|
+
.max-width--12 { max-width: 12em };
|
|
252
|
+
.max-width--14 { max-width: 14em };
|
|
253
|
+
.max-width--16 { max-width: 16em };
|
|
254
|
+
.max-width--18 { max-width: 18em };
|
|
255
|
+
.max-width--20 { max-width: 20em };
|
|
256
|
+
.max-width--22 { max-width: 22em };
|
|
257
|
+
.max-width--24 { max-width: 24em };
|
|
258
|
+
.max-width--26 { max-width: 26em };
|
|
259
|
+
.max-width--28 { max-width: 28em };
|
|
260
|
+
.max-width--30 { max-width: 30em };
|
|
261
|
+
.max-width--32 { max-width: 32em };
|
|
262
|
+
.max-width--36 { max-width: 36em };
|
|
263
|
+
.max-width--40 { max-width: 40em };
|
|
264
|
+
.max-width--48 { max-width: 48em };
|
|
265
|
+
.max-width--60 { max-width: 60em };
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/*
|
|
2
|
+
@styleguide
|
|
3
|
+
@title Display
|
|
4
|
+
|
|
5
|
+
Control how an element is displayed. Possible display values are:
|
|
6
|
+
- `n` (none)
|
|
7
|
+
- `i` (inline)
|
|
8
|
+
- `b` (block)
|
|
9
|
+
- `ib` (inline-block)
|
|
10
|
+
- `it` (inline-table)
|
|
11
|
+
- `t` (table)
|
|
12
|
+
- `tc` (table-cell)
|
|
13
|
+
- `t-row` (table-row)
|
|
14
|
+
- `t-row-group` (table-row-group)
|
|
15
|
+
- `t-column` (table-column)
|
|
16
|
+
- `t-column-group` (table-column-group)
|
|
17
|
+
- `f` (flex)
|
|
18
|
+
|
|
19
|
+
<div class="display--n">Hidden</div>
|
|
20
|
+
|
|
21
|
+
```html
|
|
22
|
+
<div class="display--n">Hidden</div>
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
<div class="display--i">Inline</div><div class="display--i">Inline</div>
|
|
26
|
+
|
|
27
|
+
```html
|
|
28
|
+
<div class="display--i">Inline</div><div class="display--i">Inline</div>
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
<div>
|
|
32
|
+
<span class="display--b">Block</span>
|
|
33
|
+
<span class="display--b">Block</span>
|
|
34
|
+
</div>
|
|
35
|
+
|
|
36
|
+
```html
|
|
37
|
+
<span class="display--b">Block</span>
|
|
38
|
+
<span class="display--b">Block</span>
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
<div>
|
|
42
|
+
<p class="display--ib">Inline Block</p><p class="display--ib">Inline Block</p>
|
|
43
|
+
</div>
|
|
44
|
+
|
|
45
|
+
```html
|
|
46
|
+
<p class="display--ib">Inline Block</p>
|
|
47
|
+
<p class="display--ib">Inline Block</p>
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
<div class="display--f">Flex</div>
|
|
51
|
+
|
|
52
|
+
```html
|
|
53
|
+
<div class="display--f">Flex</div>
|
|
54
|
+
```
|
|
55
|
+
*/
|
|
56
|
+
|
|
57
|
+
// === DISPLAY === //
|
|
58
|
+
|
|
59
|
+
.display--n { display: none; }
|
|
60
|
+
.display--i { display: inline; }
|
|
61
|
+
.display--b { display: block; }
|
|
62
|
+
.display--ib { display: inline-block; }
|
|
63
|
+
.display--it { display: inline-table; }
|
|
64
|
+
.display--t { display: table; }
|
|
65
|
+
.display--tc { display: table-cell; }
|
|
66
|
+
.display--t-row { display: table-row; }
|
|
67
|
+
.display--t-row-group { display: table-row-group; }
|
|
68
|
+
.display--t-column { display: table-column; }
|
|
69
|
+
.display--t-column-group { display: table-column-group; }
|
|
70
|
+
.display--f { display: flex; }
|
|
71
|
+
.display--if { display: inline-flex; }
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/*
|
|
2
|
+
@styleguide
|
|
3
|
+
@title Overflow
|
|
4
|
+
|
|
5
|
+
Use these classes to control an element's overflow
|
|
6
|
+
|
|
7
|
+
<div class="width--10 height--10 padding--2 bg-color--note overflow--auto">
|
|
8
|
+
<div class="width--12 height--12 bg-color--marker">overflow auto</div>
|
|
9
|
+
</div>
|
|
10
|
+
|
|
11
|
+
<div class="width--10 height--10 padding--2 bg-color--note overflow--hidden">
|
|
12
|
+
<div class="width--12 height--12 bg-color--marker">overflow hidden</div>
|
|
13
|
+
</div>
|
|
14
|
+
|
|
15
|
+
<div class="width--10 height--10 padding--2 bg-color--note overflow--scroll">
|
|
16
|
+
<div class="width--12 height--12 bg-color--marker">overflow scroll</div>
|
|
17
|
+
</div>
|
|
18
|
+
|
|
19
|
+
<div class="width--10 height--10 padding--2 bg-color--note overflow--visible">
|
|
20
|
+
<div class="width--12 height--12 bg-color--marker">overflow visible</div>
|
|
21
|
+
</div>
|
|
22
|
+
|
|
23
|
+
<div class="width--10 height--10 padding--2 bg-color--note overflow-x--auto">
|
|
24
|
+
<div class="width--12 height--12 bg-color--marker">overflow-x auto</div>
|
|
25
|
+
</div>
|
|
26
|
+
|
|
27
|
+
<div class="width--10 height--10 padding--2 bg-color--note overflow-x--hidden">
|
|
28
|
+
<div class="width--12 height--12 bg-color--marker">overflow-x hidden</div>
|
|
29
|
+
</div>
|
|
30
|
+
|
|
31
|
+
<div class="width--10 height--10 padding--2 bg-color--note overflow-x--scroll">
|
|
32
|
+
<div class="width--12 height--12 bg-color--marker">overflow-x scroll</div>
|
|
33
|
+
</div>
|
|
34
|
+
|
|
35
|
+
<div class="width--10 height--10 padding--2 bg-color--note overflow-x--visible">
|
|
36
|
+
<div class="width--12 height--12 bg-color--marker">overflow-x visible</div>
|
|
37
|
+
</div>
|
|
38
|
+
|
|
39
|
+
<div class="width--10 height--10 padding--2 bg-color--note overflow-y--auto">
|
|
40
|
+
<div class="width--12 height--12 bg-color--marker">overflow-y auto</div>
|
|
41
|
+
</div>
|
|
42
|
+
|
|
43
|
+
<div class="width--10 height--10 padding--2 bg-color--note overflow-y--hidden">
|
|
44
|
+
<div class="width--12 height--12 bg-color--marker">overflow-y hidden</div>
|
|
45
|
+
</div>
|
|
46
|
+
|
|
47
|
+
<div class="width--10 height--10 padding--2 bg-color--note overflow-y--scroll">
|
|
48
|
+
<div class="width--12 height--12 bg-color--marker">overflow-y scroll</div>
|
|
49
|
+
</div>
|
|
50
|
+
|
|
51
|
+
<div class="width--10 height--10 padding--2 bg-color--note overflow-y--visible">
|
|
52
|
+
<div class="width--12 height--12 bg-color--marker">overflow-y visible</div>
|
|
53
|
+
</div>
|
|
54
|
+
*/
|
|
55
|
+
|
|
56
|
+
// === OVERFLOW === //
|
|
57
|
+
|
|
58
|
+
.overflow--auto { overflow: auto; }
|
|
59
|
+
.overflow--hidden { overflow: hidden; }
|
|
60
|
+
.overflow--scroll { overflow: scroll; }
|
|
61
|
+
.overflow--visible { overflow: visible; }
|
|
62
|
+
.overflow--inherit { overflow: inherit; }
|
|
63
|
+
|
|
64
|
+
.overflow-x--auto { overflow-x: auto; }
|
|
65
|
+
.overflow-x--hidden { overflow-x: hidden; }
|
|
66
|
+
.overflow-x--scroll { overflow-x: scroll; }
|
|
67
|
+
.overflow-x--visible { overflow-x: visible; }
|
|
68
|
+
.overflow-x--inherit { overflow-x: inherit; }
|
|
69
|
+
|
|
70
|
+
.overflow-y--auto { overflow-y: auto; }
|
|
71
|
+
.overflow-y--hidden { overflow-y: hidden; }
|
|
72
|
+
.overflow-y--scroll { overflow-y: scroll; }
|
|
73
|
+
.overflow-y--visible { overflow-y: visible; }
|
|
74
|
+
.overflow-y--inherit { overflow-y: inherit; }
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
/*
|
|
2
|
+
@styleguide
|
|
3
|
+
@title Positioning
|
|
4
|
+
|
|
5
|
+
Use positioning classes to control how elements are laid out in relation to
|
|
6
|
+
the viewport or other elements.
|
|
7
|
+
|
|
8
|
+
Position classes have the following values:
|
|
9
|
+
- `a` (absolute)
|
|
10
|
+
- `f` (fixed)
|
|
11
|
+
- `r` (relative)
|
|
12
|
+
- `s` (static)
|
|
13
|
+
- `i` (inherit)
|
|
14
|
+
|
|
15
|
+
You can also specify top, right, bottom, and left positions using the following
|
|
16
|
+
syntax {side}--{space}, e.g., `top--0.25`.
|
|
17
|
+
|
|
18
|
+
Space values are:
|
|
19
|
+
- `0`
|
|
20
|
+
- `0.25`
|
|
21
|
+
- `0.5`
|
|
22
|
+
- `0.75`
|
|
23
|
+
- `1`
|
|
24
|
+
- `1.5`
|
|
25
|
+
- `2`
|
|
26
|
+
|
|
27
|
+
<div class="position--r height--l">
|
|
28
|
+
<div class="position--a bottom--0 right--0">
|
|
29
|
+
Stuck to the bottom right
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
32
|
+
|
|
33
|
+
```html
|
|
34
|
+
<div class="border b-color--main position--r height--l">
|
|
35
|
+
<div class="position--a bottom--0 right--0">
|
|
36
|
+
Stuck to the bottom right
|
|
37
|
+
</div>
|
|
38
|
+
</div>
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
There is also an `absolute--fill` class that
|
|
42
|
+
will stretch an element to all four corners of its parent:
|
|
43
|
+
|
|
44
|
+
<div class="position--r height--l width--100-pct">
|
|
45
|
+
<div class="position--a absolute--fill bg-color--dscout">
|
|
46
|
+
Absolute Fill
|
|
47
|
+
</div>
|
|
48
|
+
</div>
|
|
49
|
+
|
|
50
|
+
```html
|
|
51
|
+
<div class="position--r height--l width--100-pct">
|
|
52
|
+
<div class="position--a absolute--fill bg-color--dscout">
|
|
53
|
+
Absolute Fill
|
|
54
|
+
</div>
|
|
55
|
+
</div>
|
|
56
|
+
```
|
|
57
|
+
*/
|
|
58
|
+
|
|
59
|
+
// === POSITIONING === //
|
|
60
|
+
|
|
61
|
+
.position--a { position: absolute; }
|
|
62
|
+
.position--f { position: fixed; }
|
|
63
|
+
.position--r { position: relative; }
|
|
64
|
+
.position--s { position: static; }
|
|
65
|
+
.position--i { position: inherit; }
|
|
66
|
+
|
|
67
|
+
.top--0 { top: 0; }
|
|
68
|
+
.right--0 { right: 0; }
|
|
69
|
+
.bottom--0 { bottom: 0; }
|
|
70
|
+
.left--0 { left: 0; }
|
|
71
|
+
|
|
72
|
+
.top--0\.25 { top: .25em; }
|
|
73
|
+
.right--0\.25 { right: .25em; }
|
|
74
|
+
.bottom--0\.25 { bottom: .25em; }
|
|
75
|
+
.left--0\.25 { left: .25em; }
|
|
76
|
+
|
|
77
|
+
.top--0\.5 { top: .5em; }
|
|
78
|
+
.right--0\.5 { right: .5em; }
|
|
79
|
+
.bottom--0\.5 { bottom: .5em; }
|
|
80
|
+
.left--0\.5 { left: .5em; }
|
|
81
|
+
|
|
82
|
+
.top--0\.75 { top: .75em; }
|
|
83
|
+
.right--0\.75 { right: .75em; }
|
|
84
|
+
.bottom--0\.75 { bottom: .75em; }
|
|
85
|
+
.left--0\.75 { left: .75em; }
|
|
86
|
+
|
|
87
|
+
.top--1 { top: 1em; }
|
|
88
|
+
.right--1 { right: 1em; }
|
|
89
|
+
.bottom--1 { bottom: 1em; }
|
|
90
|
+
.left--1 { left: 1em; }
|
|
91
|
+
|
|
92
|
+
.top--1\.5 { top: 1.5em; }
|
|
93
|
+
.right--1\.5 { right: 1.5em; }
|
|
94
|
+
.bottom--1\.5 { bottom: 1.5em; }
|
|
95
|
+
.left--1\.5 { left: 1.5em; }
|
|
96
|
+
|
|
97
|
+
.top--2 { top: 2em; }
|
|
98
|
+
.right--2 { right: 2em; }
|
|
99
|
+
.bottom--2 { bottom: 2em; }
|
|
100
|
+
.left--2 { left: 2em; }
|
|
101
|
+
|
|
102
|
+
.absolute--fill {
|
|
103
|
+
top: 0;
|
|
104
|
+
right: 0;
|
|
105
|
+
bottom: 0;
|
|
106
|
+
left: 0;
|
|
107
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/*
|
|
2
|
+
@styleguide
|
|
3
|
+
@title Border Radii
|
|
4
|
+
|
|
5
|
+
Use rounded classes to set the border radius of an element.
|
|
6
|
+
Pre-defined sizes are:
|
|
7
|
+
|
|
8
|
+
- `tiny`
|
|
9
|
+
- `small`
|
|
10
|
+
- `med`
|
|
11
|
+
- `large`
|
|
12
|
+
- `circle`
|
|
13
|
+
- `pill`
|
|
14
|
+
|
|
15
|
+
<div class="rounded--med bg-color--dscout color--invert padding--1">Medium Rounded</div>
|
|
16
|
+
|
|
17
|
+
```html
|
|
18
|
+
<div class="rounded--med bg-color--dscout color--invert padding--1">Medium Rounded</div>
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Radii can also be applied to each side of an element individually like so:
|
|
22
|
+
|
|
23
|
+
- `top`
|
|
24
|
+
- `right`
|
|
25
|
+
- `bottom`
|
|
26
|
+
- `left`
|
|
27
|
+
|
|
28
|
+
<div class="rounded-right--large bg-color--dscout color--invert padding--1">Rounded right</div>
|
|
29
|
+
|
|
30
|
+
```html
|
|
31
|
+
<div class="rounded-right--large bg-color--dscout color--invert padding--1">Rounded right</div>
|
|
32
|
+
```
|
|
33
|
+
*/
|
|
34
|
+
|
|
35
|
+
// === RADII === //
|
|
36
|
+
|
|
37
|
+
.rounded--tiny { @include rounded(var(--radius--tiny)); }
|
|
38
|
+
.rounded--small { @include rounded(var(--radius--small)); }
|
|
39
|
+
.rounded--med { @include rounded(var(--radius--med)); }
|
|
40
|
+
.rounded--large { @include rounded(var(--radius--large)); }
|
|
41
|
+
.rounded--circle { @include rounded(var(--radius--circle)); }
|
|
42
|
+
.rounded--pill { @include rounded(var(--radius--pill)); }
|
|
43
|
+
|
|
44
|
+
.rounded-top--tiny { @include rounded-top(var(--radius--tiny)); }
|
|
45
|
+
.rounded-top--small { @include rounded-top(var(--radius--small)); }
|
|
46
|
+
.rounded-top--med { @include rounded-top(var(--radius--med)); }
|
|
47
|
+
.rounded-top--large { @include rounded-top(var(--radius--large)); }
|
|
48
|
+
.rounded-top--circle { @include rounded-top(var(--radius--circle)); }
|
|
49
|
+
.rounded-top--pill { @include rounded-top(var(--radius--pill)); }
|
|
50
|
+
|
|
51
|
+
.rounded-right--tiny { @include rounded-right(var(--radius--tiny)); }
|
|
52
|
+
.rounded-right--small { @include rounded-right(var(--radius--small)); }
|
|
53
|
+
.rounded-right--med { @include rounded-right(var(--radius--med)); }
|
|
54
|
+
.rounded-right--large { @include rounded-right(var(--radius--large)); }
|
|
55
|
+
.rounded-right--circle { @include rounded-right(var(--radius--circle)); }
|
|
56
|
+
.rounded-right--pill { @include rounded-right(var(--radius--pill)); }
|
|
57
|
+
|
|
58
|
+
.rounded-bottom--tiny { @include rounded-bottom(var(--radius--tiny)); }
|
|
59
|
+
.rounded-bottom--small { @include rounded-bottom(var(--radius--small)); }
|
|
60
|
+
.rounded-bottom--med { @include rounded-bottom(var(--radius--med)); }
|
|
61
|
+
.rounded-bottom--large { @include rounded-bottom(var(--radius--large)); }
|
|
62
|
+
.rounded-bottom--circle { @include rounded-bottom(var(--radius--circle)); }
|
|
63
|
+
.rounded-bottom--pill { @include rounded-bottom(var(--radius--pill)); }
|
|
64
|
+
|
|
65
|
+
.rounded-left--tiny { @include rounded-left(var(--radius--tiny)); }
|
|
66
|
+
.rounded-left--small { @include rounded-left(var(--radius--small)); }
|
|
67
|
+
.rounded-left--med { @include rounded-left(var(--radius--med)); }
|
|
68
|
+
.rounded-left--large { @include rounded-left(var(--radius--large)); }
|
|
69
|
+
.rounded-left--circle { @include rounded-left(var(--radius--circle)); }
|
|
70
|
+
.rounded-left--pill { @include rounded-left(var(--radius--pill)); }
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/*
|
|
2
|
+
@styleguide
|
|
3
|
+
@title Resizing
|
|
4
|
+
|
|
5
|
+
Set the `resize` property to one of the following enums:
|
|
6
|
+
- `horizontal`
|
|
7
|
+
- `vertical`
|
|
8
|
+
- `both`
|
|
9
|
+
- `none`
|
|
10
|
+
|
|
11
|
+
This is primarily useful for constraining textareas, which are resizable by
|
|
12
|
+
default. However, it can be applied to any element.
|
|
13
|
+
|
|
14
|
+
<textarea class="resize--vertical"></textarea>
|
|
15
|
+
|
|
16
|
+
```html
|
|
17
|
+
<textarea class="resize--vertical"></textarea>
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
<textarea class="resize--horizontal"></textarea>
|
|
21
|
+
|
|
22
|
+
```html
|
|
23
|
+
<textarea class="resize--horizontal"></textarea>
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
<textarea class="resize--both"></textarea>
|
|
27
|
+
|
|
28
|
+
```html
|
|
29
|
+
<textarea class="resize--both"></textarea>
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
<textarea class="resize--none"></textarea>
|
|
33
|
+
|
|
34
|
+
```html
|
|
35
|
+
<textarea class="resize--none"></textarea>
|
|
36
|
+
```
|
|
37
|
+
*/
|
|
38
|
+
|
|
39
|
+
.resize--horizontal { resize: horizontal; }
|
|
40
|
+
.resize--vertical { resize: vertical; }
|
|
41
|
+
.resize--both { resize: both; }
|
|
42
|
+
.resize--none { resize: none; }
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/*
|
|
2
|
+
@styleguide
|
|
3
|
+
@title Shadows
|
|
4
|
+
|
|
5
|
+
Apply a box shadow.
|
|
6
|
+
|
|
7
|
+
<div class="padding--2 bg-color--gray-5">
|
|
8
|
+
<div class="shadow--s bg-color--invert padding--1">
|
|
9
|
+
Small shadow. Used to indicate that an element is not interactive.
|
|
10
|
+
</div>
|
|
11
|
+
</div>
|
|
12
|
+
|
|
13
|
+
```html
|
|
14
|
+
<div class="shadow--s bg-color--invert padding--1">
|
|
15
|
+
Small shadow. Used to indicate that an element is not interactive.
|
|
16
|
+
</div>
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
<div class="padding--2 bg-color--gray-5">
|
|
20
|
+
<div class="shadow--m bg-color--invert padding--1">
|
|
21
|
+
Medium shadow. Used to indicate that an element is interactive.
|
|
22
|
+
</div>
|
|
23
|
+
</div>
|
|
24
|
+
|
|
25
|
+
```html
|
|
26
|
+
<div class="shadow--m bg-color--invert padding--1">
|
|
27
|
+
Medium shadow. Used to indicate that an element is interactive.
|
|
28
|
+
</div>
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
<div class="padding--2 bg-color--gray-5">
|
|
32
|
+
<div class="shadow--l bg-color--invert padding--1">
|
|
33
|
+
Large shadow. Used to indicate that an element is being interacted with,
|
|
34
|
+
e.g. hovered over.
|
|
35
|
+
</div>
|
|
36
|
+
</div>
|
|
37
|
+
|
|
38
|
+
```html
|
|
39
|
+
<div class="shadow--l bg-color--invert padding--1">
|
|
40
|
+
Large shadow. Used to indicate that an element is being interacted with,
|
|
41
|
+
e.g. hovered over.
|
|
42
|
+
</div>
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
<div class="padding--2 bg-color--gray-5">
|
|
46
|
+
<div class="shadow--xl bg-color--invert padding--1">
|
|
47
|
+
Extra large shadow. Used for maximum separation from the background,
|
|
48
|
+
such as when a container is in its edit state.
|
|
49
|
+
</div>
|
|
50
|
+
</div>
|
|
51
|
+
|
|
52
|
+
```html
|
|
53
|
+
<div class="shadow--xl bg-color--invert padding--1">
|
|
54
|
+
Extra large shadow. Used for maximum separation from the background,
|
|
55
|
+
such as when a container is in its edit state.
|
|
56
|
+
</div>
|
|
57
|
+
```
|
|
58
|
+
*/
|
|
59
|
+
|
|
60
|
+
.shadow--s {
|
|
61
|
+
box-shadow: var(--shadow--s);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.shadow--m {
|
|
65
|
+
box-shadow: var(--shadow--m);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.shadow--l {
|
|
69
|
+
box-shadow: var(--shadow--l);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.shadow--xl {
|
|
73
|
+
box-shadow: var(--shadow--xl);
|
|
74
|
+
}
|