@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,93 @@
|
|
|
1
|
+
@mixin generate-selector-theme-variables(
|
|
2
|
+
$Selector__Label____line-height: var(--line-height--copy),
|
|
3
|
+
$Selector__Label____top-offset: -.12em,
|
|
4
|
+
$Selector__Label____padding-left: 1em,
|
|
5
|
+
|
|
6
|
+
$Radio--unchecked____bg-color: transparent,
|
|
7
|
+
$Radio--checked____bg-color: var(--color--dscout),
|
|
8
|
+
|
|
9
|
+
$Radio--unchecked____border-color: rgba(var(--color--main-rgb), .2),
|
|
10
|
+
$Radio--checked____border-color: var(--color--dscout),
|
|
11
|
+
|
|
12
|
+
$Radio--unchecked____border-width: 1px,
|
|
13
|
+
$Radio--checked____border-width: 1px,
|
|
14
|
+
|
|
15
|
+
$Radio--unchecked____padding: .375em,
|
|
16
|
+
$Radio--checked____padding: .1875em,
|
|
17
|
+
|
|
18
|
+
$Radio____radius: var(--radius--circle),
|
|
19
|
+
$Radio____size: 1.25em,
|
|
20
|
+
$Radio____transition-duration: var(--timing--hover),
|
|
21
|
+
|
|
22
|
+
$Radio--unchecked__Icon____color: transparent,
|
|
23
|
+
$Radio--checked__Icon____color: transparent,
|
|
24
|
+
|
|
25
|
+
$Checkbox--unchecked____bg-color: transparent,
|
|
26
|
+
$Checkbox--checked____bg-color: var(--color--dscout),
|
|
27
|
+
|
|
28
|
+
$Checkbox--unchecked____border-color: rgba(var(--color--main-rgb), .2),
|
|
29
|
+
$Checkbox--checked____border-color: var(--color--dscout),
|
|
30
|
+
|
|
31
|
+
$Checkbox--unchecked____border-width: 1px,
|
|
32
|
+
$Checkbox--checked____border-width: 1px,
|
|
33
|
+
|
|
34
|
+
$Checkbox--unchecked____padding: .375em,
|
|
35
|
+
$Checkbox--checked____padding: 0,
|
|
36
|
+
|
|
37
|
+
$Checkbox____radius: var(--radius--tiny),
|
|
38
|
+
$Checkbox____size: 1.25em,
|
|
39
|
+
$Checkbox____transition-duration: var(--timing--hover),
|
|
40
|
+
|
|
41
|
+
$Checkbox--unchecked__Icon____color: transparent,
|
|
42
|
+
$Checkbox--checked__Icon____color: var(--color--invert),
|
|
43
|
+
$Checkbox--readonly--unchecked__Icon____color: var(--color--gray-3),
|
|
44
|
+
$Checkbox--readonly--checked__Icon____color: $Checkbox--checked____bg-color
|
|
45
|
+
) {
|
|
46
|
+
--Selector__Label____line-height: #{$Selector__Label____line-height};
|
|
47
|
+
--Selector__Label____padding-left: #{$Selector__Label____padding-left};
|
|
48
|
+
--Selector__Label____top-offset: #{$Selector__Label____top-offset};
|
|
49
|
+
|
|
50
|
+
--Radio--unchecked____bg-color: #{$Radio--unchecked____bg-color};
|
|
51
|
+
--Radio--checked____bg-color: #{$Radio--checked____bg-color};
|
|
52
|
+
|
|
53
|
+
--Radio--unchecked____border-color: #{$Radio--unchecked____border-color};
|
|
54
|
+
--Radio--checked____border-color: #{$Radio--checked____border-color};
|
|
55
|
+
|
|
56
|
+
--Radio--unchecked____border-width: #{$Radio--unchecked____border-width};
|
|
57
|
+
--Radio--checked____border-width: #{$Radio--checked____border-width};
|
|
58
|
+
|
|
59
|
+
--Radio--unchecked____padding: #{$Radio--unchecked____padding};
|
|
60
|
+
--Radio--checked____padding: #{$Radio--checked____padding};
|
|
61
|
+
|
|
62
|
+
--Radio____radius: #{$Radio____radius};
|
|
63
|
+
|
|
64
|
+
--Radio____size: #{$Radio____size};
|
|
65
|
+
|
|
66
|
+
--Radio____transition-duration: #{$Radio____transition-duration};
|
|
67
|
+
|
|
68
|
+
--Radio--unchecked__Icon____color: #{$Radio--unchecked__Icon____color};
|
|
69
|
+
--Radio--checked__Icon____color: #{$Radio--checked__Icon____color};
|
|
70
|
+
|
|
71
|
+
--Checkbox--unchecked____bg-color: #{$Checkbox--unchecked____bg-color};
|
|
72
|
+
--Checkbox--checked____bg-color: #{$Checkbox--checked____bg-color};
|
|
73
|
+
|
|
74
|
+
--Checkbox--unchecked____border-color: #{$Checkbox--unchecked____border-color};
|
|
75
|
+
--Checkbox--checked____border-color: #{$Checkbox--checked____border-color};
|
|
76
|
+
|
|
77
|
+
--Checkbox--unchecked____border-width: #{$Checkbox--unchecked____border-width};
|
|
78
|
+
--Checkbox--checked____border-width: #{$Checkbox--checked____border-width};
|
|
79
|
+
|
|
80
|
+
--Checkbox--unchecked____padding: #{$Checkbox--unchecked____padding};
|
|
81
|
+
--Checkbox--checked____padding: #{$Checkbox--checked____padding};
|
|
82
|
+
|
|
83
|
+
--Checkbox____radius: #{$Checkbox____radius};
|
|
84
|
+
|
|
85
|
+
--Checkbox____size: #{$Checkbox____size};
|
|
86
|
+
|
|
87
|
+
--Checkbox____transition-duration: #{$Checkbox____transition-duration};
|
|
88
|
+
|
|
89
|
+
--Checkbox--unchecked__Icon____color: #{$Checkbox--unchecked__Icon____color};
|
|
90
|
+
--Checkbox--checked__Icon____color: #{$Checkbox--checked__Icon____color};
|
|
91
|
+
--Checkbox--readonly--unchecked__Icon____color: #{$Checkbox--readonly--unchecked__Icon____color};
|
|
92
|
+
--Checkbox--readonly--checked__Icon____color: #{$Checkbox--readonly--checked__Icon____color};
|
|
93
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@mixin generate-separator-theme-variables() {}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
@import 'themes/bandit';
|
|
2
|
+
@import 'themes/researcher';
|
|
3
|
+
|
|
4
|
+
.Speech-Bubble {
|
|
5
|
+
position: relative;
|
|
6
|
+
display: inline-block;
|
|
7
|
+
max-width: 100%;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.Speech-Bubble__Tail {
|
|
11
|
+
border-style: solid;
|
|
12
|
+
border-left-color: transparent;
|
|
13
|
+
border-right-color: transparent;
|
|
14
|
+
border-width: 0.5em;
|
|
15
|
+
border-bottom-width: 0;
|
|
16
|
+
display: inline-block;
|
|
17
|
+
position: absolute;
|
|
18
|
+
|
|
19
|
+
&--left {
|
|
20
|
+
left: 1em;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&--right {
|
|
24
|
+
right: 1em;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.Speech-Bubble__Text {
|
|
29
|
+
border-radius: var(--radius--med);
|
|
30
|
+
margin-bottom: 0;
|
|
31
|
+
padding: 1em;
|
|
32
|
+
white-space: pre-wrap;
|
|
33
|
+
}
|
|
34
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@mixin generate-speech-bubble-theme-variables() {}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
@import 'themes/bandit';
|
|
2
|
+
@import 'themes/researcher';
|
|
3
|
+
|
|
4
|
+
.Swappable-Content {
|
|
5
|
+
position: relative;
|
|
6
|
+
/* This timing value needs to stay in sync with the duration defined in the
|
|
7
|
+
SwappableContent component */
|
|
8
|
+
transition: height var(--timing--fade);
|
|
9
|
+
|
|
10
|
+
&--transitioning {
|
|
11
|
+
overflow: hidden;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.Swappable-Content__A,
|
|
15
|
+
.Swappable-Content__B {
|
|
16
|
+
margin-bottom: 0;
|
|
17
|
+
opacity: 1;
|
|
18
|
+
transition-duration: var(--timing--hover);
|
|
19
|
+
transition-property: opacity, position, top, visibility;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&--show-B {
|
|
23
|
+
.Swappable-Content__A {
|
|
24
|
+
@include container-hidden;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.Swappable-Content__B {
|
|
28
|
+
transition-delay: var(--timing--hover);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&--show-A {
|
|
33
|
+
.Swappable-Content__A {
|
|
34
|
+
transition-delay: var(--timing--hover);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.Swappable-Content__B {
|
|
38
|
+
@include container-hidden;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@mixin generate-swappable-theme-variables() {}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
@import 'themes/bandit';
|
|
2
|
+
@import 'themes/researcher';
|
|
3
|
+
|
|
4
|
+
.Tags-Input__Container {
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-wrap: wrap;
|
|
7
|
+
padding: .25em;
|
|
8
|
+
overflow: auto;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.Tags-Input__Tag {
|
|
12
|
+
margin: .25em;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.Tags-Input__Input {
|
|
16
|
+
align-self: center;
|
|
17
|
+
appearance: none;
|
|
18
|
+
background-color: transparent;
|
|
19
|
+
border: none;
|
|
20
|
+
font-family: inherit;
|
|
21
|
+
font-size: inherit;
|
|
22
|
+
flex-grow: 1;
|
|
23
|
+
outline: none;
|
|
24
|
+
margin: .25em;
|
|
25
|
+
padding: 0;
|
|
26
|
+
width: auto;
|
|
27
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@mixin generate-tags-theme-variables() {}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
@import 'themes/bandit';
|
|
2
|
+
@import 'themes/researcher';
|
|
3
|
+
|
|
4
|
+
.Card__Thumbnail--wrapper {
|
|
5
|
+
margin: 0;
|
|
6
|
+
padding-bottom: 100%;
|
|
7
|
+
position: relative;
|
|
8
|
+
|
|
9
|
+
&.Card__Thumbnail--wrapper-circular {
|
|
10
|
+
+ .CardBody {
|
|
11
|
+
padding-top: 0;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.Card__Thumbnail {
|
|
17
|
+
background-position: center;
|
|
18
|
+
background-size: cover;
|
|
19
|
+
border-radius: var(--Card__Thumbnail__border-radius);
|
|
20
|
+
height: 100%;
|
|
21
|
+
position: absolute;
|
|
22
|
+
width: 100%;
|
|
23
|
+
|
|
24
|
+
&.Card__Thumbnail--circular {
|
|
25
|
+
border-radius: 50%;
|
|
26
|
+
left: 50%;
|
|
27
|
+
height: 5em;
|
|
28
|
+
top: 50%;
|
|
29
|
+
transform: translate(-50%,-50%);
|
|
30
|
+
width: 5em;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
@import 'themes/bandit';
|
|
2
|
+
@import 'themes/researcher';
|
|
3
|
+
|
|
4
|
+
.Toggle {
|
|
5
|
+
display: inline-block;
|
|
6
|
+
height: var(--Toggle__Switch____width);
|
|
7
|
+
margin: 0;
|
|
8
|
+
position: relative;
|
|
9
|
+
vertical-align: top;
|
|
10
|
+
width: auto;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.Toggle__Track {
|
|
14
|
+
// Track outline
|
|
15
|
+
border-radius: var(--Toggle__Track____radius);
|
|
16
|
+
box-shadow: var(--Toggle__Track____shadow);
|
|
17
|
+
display: inline-block;
|
|
18
|
+
height: var(--Toggle__Track____height);
|
|
19
|
+
margin: 0;
|
|
20
|
+
padding: 0;
|
|
21
|
+
position: relative;
|
|
22
|
+
text-indent: -5000px;
|
|
23
|
+
width: var(--Toggle__Track____width);
|
|
24
|
+
|
|
25
|
+
// Track fill
|
|
26
|
+
&::before {
|
|
27
|
+
background-color: var(--Toggle--unchecked__Track____bg-color);
|
|
28
|
+
border-radius: var(--Toggle__Track____radius);
|
|
29
|
+
content: '';
|
|
30
|
+
display: block;
|
|
31
|
+
height: var(--Toggle__Track____height);
|
|
32
|
+
left: 0;
|
|
33
|
+
position: absolute;
|
|
34
|
+
top: 0;
|
|
35
|
+
transition: var(--Toggle__Track____transition-duration) ease-in-out;
|
|
36
|
+
width: var(--Toggle--unchecked__Track____fill-width);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// Switch
|
|
40
|
+
&::after {
|
|
41
|
+
background-color: var(--Toggle--unchecked__Switch____bg-color);
|
|
42
|
+
border-radius: var(--Toggle__Switch____radius);
|
|
43
|
+
box-shadow: var(--Toggle--unchecked__Switch____shadow);
|
|
44
|
+
content: '';
|
|
45
|
+
display: block;
|
|
46
|
+
height: var(--Toggle__Switch____height);
|
|
47
|
+
left: var(--Toggle__Switch____left);
|
|
48
|
+
position: absolute;
|
|
49
|
+
top: var(--Toggle__Switch____top);
|
|
50
|
+
transition: var(--Toggle__Switch____transition-duration) ease-in-out;
|
|
51
|
+
width: var(--Toggle__Switch____width);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.Toggle__Checkbox {
|
|
56
|
+
appearance: none;
|
|
57
|
+
left: -1000em;
|
|
58
|
+
font-size: inherit;
|
|
59
|
+
position: absolute;
|
|
60
|
+
|
|
61
|
+
&:checked + .Toggle__Track {
|
|
62
|
+
// Track fill
|
|
63
|
+
&::before {
|
|
64
|
+
background-color: var(--Toggle--checked__Track____bg-color);
|
|
65
|
+
width: var(--Toggle--checked__Track____fill-width);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
// Switch
|
|
69
|
+
&::after {
|
|
70
|
+
background-color: var(--Toggle--checked__Switch____bg-color);
|
|
71
|
+
box-shadow: var(--Toggle--checked__Switch____shadow);
|
|
72
|
+
left: calc(var(--Toggle__Track____width) - var(--Toggle__Switch____width) - var(--Toggle__Switch____left));
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&:disabled + .Toggle__Track {
|
|
77
|
+
opacity: .3;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&:focus + .Toggle__Track {
|
|
81
|
+
outline: var(--color--dscout) auto 5px;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
@import 'theme_builder';
|
|
2
|
+
|
|
3
|
+
.theme--bandit {
|
|
4
|
+
@include generate-toggle-theme-variables(
|
|
5
|
+
$Toggle__Switch____height: 1em,
|
|
6
|
+
$Toggle__Switch____width: 1em,
|
|
7
|
+
$Toggle__Switch____radius: var(--radius--pill),
|
|
8
|
+
$Toggle--unchecked__Switch____shadow: none,
|
|
9
|
+
$Toggle--checked__Switch____shadow: none,
|
|
10
|
+
$Toggle--unchecked__Switch____bg-color: var(--color--invert),
|
|
11
|
+
$Toggle--checked__Switch____bg-color: var(--color--invert),
|
|
12
|
+
$Toggle__Switch____transition-duration: var(--timing--click),
|
|
13
|
+
$Toggle__Switch____top: calc((var(--Toggle__Track____height) - var(--Toggle__Switch____height)) / 2),
|
|
14
|
+
$Toggle__Switch____left: var(--Toggle__Switch____top),
|
|
15
|
+
|
|
16
|
+
$Toggle__Track____height: 1.375em,
|
|
17
|
+
$Toggle__Track____width: 2em,
|
|
18
|
+
$Toggle__Track____radius: var(--radius--pill),
|
|
19
|
+
$Toggle__Track____shadow: none,
|
|
20
|
+
$Toggle--unchecked__Track____bg-color: var(--color--gray-3),
|
|
21
|
+
$Toggle--checked__Track____bg-color: var(--color--dscout),
|
|
22
|
+
$Toggle--unchecked__Track____fill-width: var(--Toggle__Track____width),
|
|
23
|
+
$Toggle--checked__Track____fill-width: var(--Toggle__Track____width),
|
|
24
|
+
$Toggle__Track____transition-duration: var(--timing--click),
|
|
25
|
+
);
|
|
26
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
@mixin generate-toggle-theme-variables(
|
|
2
|
+
$Toggle__Switch____height: 1.5em,
|
|
3
|
+
$Toggle__Switch____width: 1.5em,
|
|
4
|
+
$Toggle__Switch____radius: var(--radius--pill),
|
|
5
|
+
$Toggle__Switch____transition-duration: var(--timing--click),
|
|
6
|
+
$Toggle__Switch____top: calc((var(--Toggle__Track____height) - var(--Toggle__Switch____height)) / 2),
|
|
7
|
+
$Toggle__Switch____left: var(--Toggle__Switch____top),
|
|
8
|
+
|
|
9
|
+
$Toggle--unchecked__Switch____shadow: (inset 0 0 0 1px rgba(var(--color--main-rgb), 0.2), 0 2px 4px rgba(var(--color--main-rgb), 0.15)),
|
|
10
|
+
$Toggle--unchecked__Switch____bg-color: var(--color--invert),
|
|
11
|
+
|
|
12
|
+
$Toggle--checked__Switch____shadow: (inset 0 0 0 1px var(--color--dscout), 0 2px 4px rgba(var(--color--main-rgb), 0.2)),
|
|
13
|
+
$Toggle--checked__Switch____bg-color: var(--color--invert),
|
|
14
|
+
|
|
15
|
+
$Toggle__Track____height: 1.5em,
|
|
16
|
+
$Toggle__Track____width: 2.5em,
|
|
17
|
+
$Toggle__Track____radius: var(--radius--pill),
|
|
18
|
+
$Toggle__Track____shadow: inset 0 0 0px 1px rgba(var(--color--main-rgb), 0.2),
|
|
19
|
+
$Toggle__Track____transition-duration: var(--timing--click),
|
|
20
|
+
|
|
21
|
+
$Toggle--unchecked__Track____bg-color: rgba(var(--color--dscout-rgb), 0),
|
|
22
|
+
$Toggle--unchecked__Track____fill-width: var(--Toggle__Switch____height),
|
|
23
|
+
|
|
24
|
+
$Toggle--checked__Track____bg-color: rgba(var(--color--dscout-rgb), 1),
|
|
25
|
+
$Toggle--checked__Track____fill-width: var(--Toggle__Track____width),
|
|
26
|
+
) {
|
|
27
|
+
--Toggle__Switch____height: #{$Toggle__Switch____height};
|
|
28
|
+
--Toggle__Switch____width: #{$Toggle__Switch____width};
|
|
29
|
+
--Toggle__Switch____radius: #{$Toggle__Switch____radius};
|
|
30
|
+
--Toggle__Switch____transition-duration: #{$Toggle__Switch____transition-duration};
|
|
31
|
+
--Toggle__Switch____top: #{$Toggle__Switch____top};
|
|
32
|
+
--Toggle__Switch____left: #{$Toggle__Switch____left};
|
|
33
|
+
|
|
34
|
+
--Toggle--unchecked__Switch____shadow: #{$Toggle--unchecked__Switch____shadow};
|
|
35
|
+
--Toggle--unchecked__Switch____bg-color: #{$Toggle--unchecked__Switch____bg-color};
|
|
36
|
+
|
|
37
|
+
--Toggle--checked__Switch____shadow: #{$Toggle--checked__Switch____shadow};
|
|
38
|
+
--Toggle--checked__Switch____bg-color: #{$Toggle--checked__Switch____bg-color};
|
|
39
|
+
|
|
40
|
+
--Toggle__Track____height: #{$Toggle__Track____height};
|
|
41
|
+
--Toggle__Track____width: #{$Toggle__Track____width};
|
|
42
|
+
--Toggle__Track____radius: #{$Toggle__Track____radius};
|
|
43
|
+
--Toggle__Track____shadow: #{$Toggle__Track____shadow};
|
|
44
|
+
--Toggle__Track____transition-duration: #{$Toggle__Track____transition-duration};
|
|
45
|
+
|
|
46
|
+
--Toggle--unchecked__Track____bg-color: #{$Toggle--unchecked__Track____bg-color};
|
|
47
|
+
--Toggle--checked__Track____bg-color: #{$Toggle--checked__Track____bg-color};
|
|
48
|
+
|
|
49
|
+
--Toggle--unchecked__Track____fill-width: #{$Toggle--unchecked__Track____fill-width};
|
|
50
|
+
--Toggle--checked__Track____fill-width: #{$Toggle--checked__Track____fill-width};
|
|
51
|
+
}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
@import 'themes/bandit';
|
|
2
|
+
@import 'themes/researcher';
|
|
3
|
+
|
|
4
|
+
.Tooltip__Container {
|
|
5
|
+
outline: none;
|
|
6
|
+
position: relative;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.Tooltip {
|
|
10
|
+
display: block;
|
|
11
|
+
opacity: 0;
|
|
12
|
+
position: absolute;
|
|
13
|
+
transition-property: visibility, opacity;
|
|
14
|
+
transition-duration: .3s, .3s;
|
|
15
|
+
visibility: hidden;
|
|
16
|
+
z-index: 1;
|
|
17
|
+
|
|
18
|
+
&:after {
|
|
19
|
+
content: "";
|
|
20
|
+
height: 0;
|
|
21
|
+
position: absolute;
|
|
22
|
+
width: 0;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&--visible {
|
|
26
|
+
opacity: 1;
|
|
27
|
+
visibility: visible;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&--fixed-position {
|
|
31
|
+
position: fixed;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.Tooltip__Content {
|
|
36
|
+
background-color: var(--color--main);
|
|
37
|
+
border-radius: var(--radius--small);
|
|
38
|
+
color: var(--color--invert);
|
|
39
|
+
display: block;
|
|
40
|
+
|
|
41
|
+
&--invert {
|
|
42
|
+
background-color: var(--color--invert);
|
|
43
|
+
color: var(--color--main);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
// === Placement === //
|
|
48
|
+
|
|
49
|
+
.Tooltip--bottom {
|
|
50
|
+
left: 50%;
|
|
51
|
+
padding-top: .75em;
|
|
52
|
+
top: 100%;
|
|
53
|
+
transform: translateX(-50%);
|
|
54
|
+
|
|
55
|
+
&.Tooltip--invert:after {
|
|
56
|
+
border-bottom-color: var(--color--invert);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&:after {
|
|
60
|
+
border-left: 0.5em solid transparent;
|
|
61
|
+
border-right: 0.5em solid transparent;
|
|
62
|
+
border-bottom: 0.5em solid var(--color--main);
|
|
63
|
+
bottom: calc(100% - .75em);
|
|
64
|
+
left: 50%;
|
|
65
|
+
transform: translateX(-50%);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.Tooltip--left {
|
|
70
|
+
right: 100%;
|
|
71
|
+
padding-right: .75em;
|
|
72
|
+
top: 50%;
|
|
73
|
+
transform: translateY(-50%);
|
|
74
|
+
|
|
75
|
+
&.Tooltip--invert:after {
|
|
76
|
+
border-left-color: var(--color--invert);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
&:after {
|
|
80
|
+
border-bottom: 0.5em solid transparent;
|
|
81
|
+
border-left: 0.5em solid var(--color--main);
|
|
82
|
+
border-top: 0.5em solid transparent;
|
|
83
|
+
left: calc(100% - .75em);
|
|
84
|
+
top: 50%;
|
|
85
|
+
transform: translateY(-50%);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.Tooltip--right {
|
|
90
|
+
left: 100%;
|
|
91
|
+
padding-left: .75em;
|
|
92
|
+
top: 50%;
|
|
93
|
+
transform: translateY(-50%);
|
|
94
|
+
|
|
95
|
+
&.Tooltip--invert:after {
|
|
96
|
+
border-right-color: var(--color--invert);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
&:after {
|
|
100
|
+
border-bottom: 0.5em solid transparent;
|
|
101
|
+
border-right: 0.5em solid var(--color--main);
|
|
102
|
+
border-top: 0.5em solid transparent;
|
|
103
|
+
top: 50%;
|
|
104
|
+
right: calc(100% - .75em);
|
|
105
|
+
transform: translateY(-50%);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.Tooltip--top {
|
|
110
|
+
bottom: 100%;
|
|
111
|
+
left: 50%;
|
|
112
|
+
padding-bottom: .75em;
|
|
113
|
+
transform: translateX(-50%);
|
|
114
|
+
|
|
115
|
+
&.Tooltip--invert:after {
|
|
116
|
+
border-top-color: var(--color--invert);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
&:after {
|
|
120
|
+
border-left: 0.5em solid transparent;
|
|
121
|
+
border-right: 0.5em solid transparent;
|
|
122
|
+
border-top: 0.5em solid var(--color--main);
|
|
123
|
+
left: 50%;
|
|
124
|
+
top: calc(100% - .75em);
|
|
125
|
+
transform: translateX(-50%);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@mixin generate-tooltip-theme-variables() {}
|