@xenknight/framework7 0.0.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/LICENSE +20 -0
- package/README.md +32 -0
- package/components/accordion/accordion-ios.less +2 -0
- package/components/accordion/accordion-md.less +2 -0
- package/components/accordion/accordion-rtl.css +1 -0
- package/components/accordion/accordion-vars.less +0 -0
- package/components/accordion/accordion.css +1 -0
- package/components/accordion/accordion.d.ts +55 -0
- package/components/accordion/accordion.js +118 -0
- package/components/accordion/accordion.less +215 -0
- package/components/actions/actions-class.js +325 -0
- package/components/actions/actions-ios.less +51 -0
- package/components/actions/actions-md.less +24 -0
- package/components/actions/actions-rtl.css +1 -0
- package/components/actions/actions-vars.less +72 -0
- package/components/actions/actions.css +1 -0
- package/components/actions/actions.d.ts +164 -0
- package/components/actions/actions.js +47 -0
- package/components/actions/actions.less +182 -0
- package/components/app/app-class.d.ts +189 -0
- package/components/app/app-class.js +349 -0
- package/components/app/app-ios.less +23 -0
- package/components/app/app-md.less +8 -0
- package/components/app/app-vars.less +122 -0
- package/components/app/app.less +121 -0
- package/components/app/load-module.js +125 -0
- package/components/area-chart/area-chart-class.js +467 -0
- package/components/area-chart/area-chart-ios.less +2 -0
- package/components/area-chart/area-chart-md.less +2 -0
- package/components/area-chart/area-chart-rtl.css +1 -0
- package/components/area-chart/area-chart-vars.less +35 -0
- package/components/area-chart/area-chart.css +1 -0
- package/components/area-chart/area-chart.d.ts +128 -0
- package/components/area-chart/area-chart.js +44 -0
- package/components/area-chart/area-chart.less +131 -0
- package/components/autocomplete/autocomplete-class.js +813 -0
- package/components/autocomplete/autocomplete-ios.less +9 -0
- package/components/autocomplete/autocomplete-md.less +30 -0
- package/components/autocomplete/autocomplete-rtl.css +1 -0
- package/components/autocomplete/autocomplete-vars.less +36 -0
- package/components/autocomplete/autocomplete.css +1 -0
- package/components/autocomplete/autocomplete.d.ts +193 -0
- package/components/autocomplete/autocomplete.js +81 -0
- package/components/autocomplete/autocomplete.less +102 -0
- package/components/badge/badge-ios.less +2 -0
- package/components/badge/badge-md.less +2 -0
- package/components/badge/badge-vars.less +18 -0
- package/components/badge/badge.d.ts +14 -0
- package/components/badge/badge.js +3 -0
- package/components/badge/badge.less +45 -0
- package/components/block/block-ios.less +2 -0
- package/components/block/block-md.less +2 -0
- package/components/block/block-vars.less +77 -0
- package/components/block/block.d.ts +14 -0
- package/components/block/block.js +3 -0
- package/components/block/block.less +209 -0
- package/components/breadcrumbs/breadcrumbs-ios.less +2 -0
- package/components/breadcrumbs/breadcrumbs-md.less +2 -0
- package/components/breadcrumbs/breadcrumbs-rtl.css +1 -0
- package/components/breadcrumbs/breadcrumbs-vars.less +52 -0
- package/components/breadcrumbs/breadcrumbs.css +1 -0
- package/components/breadcrumbs/breadcrumbs.d.ts +15 -0
- package/components/breadcrumbs/breadcrumbs.js +11 -0
- package/components/breadcrumbs/breadcrumbs.less +91 -0
- package/components/button/button-ios.less +21 -0
- package/components/button/button-md.less +11 -0
- package/components/button/button-vars.less +114 -0
- package/components/button/button.d.ts +14 -0
- package/components/button/button.js +3 -0
- package/components/button/button.less +421 -0
- package/components/calendar/calendar-class.js +1872 -0
- package/components/calendar/calendar-ios.less +2 -0
- package/components/calendar/calendar-md.less +2 -0
- package/components/calendar/calendar-rtl.css +1 -0
- package/components/calendar/calendar-vars.less +108 -0
- package/components/calendar/calendar.css +1 -0
- package/components/calendar/calendar.d.ts +312 -0
- package/components/calendar/calendar.js +118 -0
- package/components/calendar/calendar.less +448 -0
- package/components/card/card-ios.less +2 -0
- package/components/card/card-md.less +2 -0
- package/components/card/card-rtl.css +1 -0
- package/components/card/card-vars.less +80 -0
- package/components/card/card.css +1 -0
- package/components/card/card.d.ts +69 -0
- package/components/card/card.js +504 -0
- package/components/card/card.less +307 -0
- package/components/checkbox/checkbox-ios.less +23 -0
- package/components/checkbox/checkbox-md.less +17 -0
- package/components/checkbox/checkbox-rtl.css +1 -0
- package/components/checkbox/checkbox-vars.less +25 -0
- package/components/checkbox/checkbox.css +1 -0
- package/components/checkbox/checkbox.d.ts +14 -0
- package/components/checkbox/checkbox.js +3 -0
- package/components/checkbox/checkbox.less +155 -0
- package/components/chip/chip-ios.less +25 -0
- package/components/chip/chip-md.less +30 -0
- package/components/chip/chip-rtl.css +1 -0
- package/components/chip/chip-vars.less +42 -0
- package/components/chip/chip.css +1 -0
- package/components/chip/chip.d.ts +14 -0
- package/components/chip/chip.js +3 -0
- package/components/chip/chip.less +106 -0
- package/components/color-picker/color-picker-class.js +871 -0
- package/components/color-picker/color-picker-ios.less +2 -0
- package/components/color-picker/color-picker-md.less +2 -0
- package/components/color-picker/color-picker-rtl.css +1 -0
- package/components/color-picker/color-picker-vars.less +39 -0
- package/components/color-picker/color-picker.css +1 -0
- package/components/color-picker/color-picker.d.ts +233 -0
- package/components/color-picker/color-picker.js +92 -0
- package/components/color-picker/color-picker.less +557 -0
- package/components/color-picker/modules/alpha-slider.js +91 -0
- package/components/color-picker/modules/brightness-slider.js +80 -0
- package/components/color-picker/modules/current-color.js +14 -0
- package/components/color-picker/modules/hex.js +71 -0
- package/components/color-picker/modules/hs-spectrum.js +118 -0
- package/components/color-picker/modules/hsb-sliders.js +191 -0
- package/components/color-picker/modules/hue-slider.js +73 -0
- package/components/color-picker/modules/initial-current-colors.js +43 -0
- package/components/color-picker/modules/palette.js +46 -0
- package/components/color-picker/modules/rgb-bars.js +183 -0
- package/components/color-picker/modules/rgb-sliders.js +185 -0
- package/components/color-picker/modules/sb-spectrum.js +119 -0
- package/components/color-picker/modules/wheel.js +173 -0
- package/components/contacts-list/contacts-list-ios.less +2 -0
- package/components/contacts-list/contacts-list-md.less +21 -0
- package/components/contacts-list/contacts-list-rtl.css +1 -0
- package/components/contacts-list/contacts-list-vars.less +24 -0
- package/components/contacts-list/contacts-list.css +1 -0
- package/components/contacts-list/contacts-list.d.ts +14 -0
- package/components/contacts-list/contacts-list.js +3 -0
- package/components/contacts-list/contacts-list.less +26 -0
- package/components/data-table/data-table-class.js +141 -0
- package/components/data-table/data-table-ios.less +70 -0
- package/components/data-table/data-table-md.less +88 -0
- package/components/data-table/data-table-rtl.css +1 -0
- package/components/data-table/data-table-vars.less +77 -0
- package/components/data-table/data-table.css +1 -0
- package/components/data-table/data-table.d.ts +61 -0
- package/components/data-table/data-table.js +64 -0
- package/components/data-table/data-table.less +429 -0
- package/components/dialog/dialog-class.js +196 -0
- package/components/dialog/dialog-ios.less +94 -0
- package/components/dialog/dialog-md.less +86 -0
- package/components/dialog/dialog-rtl.css +1 -0
- package/components/dialog/dialog-vars.less +93 -0
- package/components/dialog/dialog.css +1 -0
- package/components/dialog/dialog.d.ts +245 -0
- package/components/dialog/dialog.js +242 -0
- package/components/dialog/dialog.less +142 -0
- package/components/fab/fab-ios.less +9 -0
- package/components/fab/fab-md.less +11 -0
- package/components/fab/fab-rtl.css +1 -0
- package/components/fab/fab-vars.less +46 -0
- package/components/fab/fab.css +1 -0
- package/components/fab/fab.d.ts +32 -0
- package/components/fab/fab.js +172 -0
- package/components/fab/fab.less +523 -0
- package/components/form/form-ios.less +0 -0
- package/components/form/form-md.less +0 -0
- package/components/form/form-rtl.css +0 -0
- package/components/form/form.css +0 -0
- package/components/form/form.d.ts +64 -0
- package/components/form/form.js +311 -0
- package/components/form/form.less +7 -0
- package/components/gauge/gauge-class.js +298 -0
- package/components/gauge/gauge-ios.less +2 -0
- package/components/gauge/gauge-md.less +2 -0
- package/components/gauge/gauge-rtl.css +1 -0
- package/components/gauge/gauge.css +1 -0
- package/components/gauge/gauge.d.ts +100 -0
- package/components/gauge/gauge.js +90 -0
- package/components/gauge/gauge.less +24 -0
- package/components/grid/grid-ios.less +2 -0
- package/components/grid/grid-md.less +2 -0
- package/components/grid/grid-rtl.css +1 -0
- package/components/grid/grid-vars.less +3 -0
- package/components/grid/grid.css +1 -0
- package/components/grid/grid.d.ts +15 -0
- package/components/grid/grid.js +3 -0
- package/components/grid/grid.less +78 -0
- package/components/icon/icon-ios.less +44 -0
- package/components/icon/icon-md.less +56 -0
- package/components/icon/icon.d.ts +14 -0
- package/components/icon/icon.js +3 -0
- package/components/icon/icon.less +33 -0
- package/components/infinite-scroll/infinite-scroll-ios.less +11 -0
- package/components/infinite-scroll/infinite-scroll-md.less +6 -0
- package/components/infinite-scroll/infinite-scroll-rtl.css +1 -0
- package/components/infinite-scroll/infinite-scroll.css +1 -0
- package/components/infinite-scroll/infinite-scroll.d.ts +27 -0
- package/components/infinite-scroll/infinite-scroll.js +94 -0
- package/components/infinite-scroll/infinite-scroll.less +15 -0
- package/components/input/input-ios.less +129 -0
- package/components/input/input-md.less +171 -0
- package/components/input/input-rtl.css +1 -0
- package/components/input/input-vars.less +94 -0
- package/components/input/input.css +1 -0
- package/components/input/input.d.ts +60 -0
- package/components/input/input.js +339 -0
- package/components/input/input.less +355 -0
- package/components/link/link-ios.less +9 -0
- package/components/link/link-md.less +2 -0
- package/components/link/link-vars.less +9 -0
- package/components/link/link.d.ts +14 -0
- package/components/link/link.js +3 -0
- package/components/link/link.less +37 -0
- package/components/list/list-ios.less +15 -0
- package/components/list/list-md.less +5 -0
- package/components/list/list-vars.less +184 -0
- package/components/list/list.d.ts +14 -0
- package/components/list/list.js +3 -0
- package/components/list/list.less +718 -0
- package/components/list-index/list-index-class.js +333 -0
- package/components/list-index/list-index-ios.less +21 -0
- package/components/list-index/list-index-md.less +7 -0
- package/components/list-index/list-index-rtl.css +1 -0
- package/components/list-index/list-index-vars.less +25 -0
- package/components/list-index/list-index.css +1 -0
- package/components/list-index/list-index.d.ts +101 -0
- package/components/list-index/list-index.js +65 -0
- package/components/list-index/list-index.less +130 -0
- package/components/login-screen/login-screen-class.js +38 -0
- package/components/login-screen/login-screen-ios.less +2 -0
- package/components/login-screen/login-screen-md.less +2 -0
- package/components/login-screen/login-screen-rtl.css +1 -0
- package/components/login-screen/login-screen-vars.less +33 -0
- package/components/login-screen/login-screen.css +1 -0
- package/components/login-screen/login-screen.d.ts +99 -0
- package/components/login-screen/login-screen.js +32 -0
- package/components/login-screen/login-screen.less +100 -0
- package/components/messagebar/messagebar-class.js +367 -0
- package/components/messagebar/messagebar-ios.less +88 -0
- package/components/messagebar/messagebar-md.less +114 -0
- package/components/messagebar/messagebar-rtl.css +1 -0
- package/components/messagebar/messagebar-vars.less +75 -0
- package/components/messagebar/messagebar.css +1 -0
- package/components/messagebar/messagebar.d.ts +165 -0
- package/components/messagebar/messagebar.js +66 -0
- package/components/messagebar/messagebar.less +162 -0
- package/components/messages/messages-class.js +487 -0
- package/components/messages/messages-ios.less +165 -0
- package/components/messages/messages-md.less +140 -0
- package/components/messages/messages-rtl.css +1 -0
- package/components/messages/messages-vars.less +82 -0
- package/components/messages/messages.css +1 -0
- package/components/messages/messages.d.ts +162 -0
- package/components/messages/messages.js +65 -0
- package/components/messages/messages.less +218 -0
- package/components/modal/custom-modal-class.js +66 -0
- package/components/modal/modal-class.js +224 -0
- package/components/modal/modal.d.ts +82 -0
- package/components/modal/modal.js +22 -0
- package/components/modal/modal.less +14 -0
- package/components/navbar/navbar-ios.less +755 -0
- package/components/navbar/navbar-md.less +65 -0
- package/components/navbar/navbar-vars.less +74 -0
- package/components/navbar/navbar.d.ts +77 -0
- package/components/navbar/navbar.js +712 -0
- package/components/navbar/navbar.less +311 -0
- package/components/notification/notification-class.js +212 -0
- package/components/notification/notification-ios.less +55 -0
- package/components/notification/notification-md.less +87 -0
- package/components/notification/notification-rtl.css +1 -0
- package/components/notification/notification-vars.less +75 -0
- package/components/notification/notification.css +1 -0
- package/components/notification/notification.d.ts +122 -0
- package/components/notification/notification.js +33 -0
- package/components/notification/notification.less +94 -0
- package/components/page/page-ios.less +154 -0
- package/components/page/page-md.less +83 -0
- package/components/page/page-transitions/circle.less +107 -0
- package/components/page/page-transitions/cover-v.less +61 -0
- package/components/page/page-transitions/cover.less +71 -0
- package/components/page/page-transitions/dive.less +77 -0
- package/components/page/page-transitions/fade.less +53 -0
- package/components/page/page-transitions/flip.less +91 -0
- package/components/page/page-transitions/parallax.less +75 -0
- package/components/page/page-transitions/push.less +75 -0
- package/components/page/page-vars.less +47 -0
- package/components/page/page.d.ts +14 -0
- package/components/page/page.js +3 -0
- package/components/page/page.less +204 -0
- package/components/panel/panel-class.js +556 -0
- package/components/panel/panel-ios.less +2 -0
- package/components/panel/panel-md.less +11 -0
- package/components/panel/panel-rtl.css +3 -0
- package/components/panel/panel-vars.less +24 -0
- package/components/panel/panel.css +3 -0
- package/components/panel/panel.d.ts +198 -0
- package/components/panel/panel.js +189 -0
- package/components/panel/panel.less +403 -0
- package/components/panel/resizable-panel.js +160 -0
- package/components/panel/swipe-panel.js +311 -0
- package/components/photo-browser/photo-browser-class.js +734 -0
- package/components/photo-browser/photo-browser-ios.less +2 -0
- package/components/photo-browser/photo-browser-md.less +2 -0
- package/components/photo-browser/photo-browser-rtl.css +1 -0
- package/components/photo-browser/photo-browser-vars.less +16 -0
- package/components/photo-browser/photo-browser.css +1 -0
- package/components/photo-browser/photo-browser.d.ts +204 -0
- package/components/photo-browser/photo-browser.js +73 -0
- package/components/photo-browser/photo-browser.less +358 -0
- package/components/picker/picker-class.js +588 -0
- package/components/picker/picker-column.js +121 -0
- package/components/picker/picker-ios.less +12 -0
- package/components/picker/picker-md.less +8 -0
- package/components/picker/picker-rtl.css +1 -0
- package/components/picker/picker-vars.less +35 -0
- package/components/picker/picker.css +1 -0
- package/components/picker/picker.d.ts +209 -0
- package/components/picker/picker.js +59 -0
- package/components/picker/picker.less +180 -0
- package/components/pie-chart/pie-chart-class.js +250 -0
- package/components/pie-chart/pie-chart-ios.less +2 -0
- package/components/pie-chart/pie-chart-md.less +2 -0
- package/components/pie-chart/pie-chart-rtl.css +1 -0
- package/components/pie-chart/pie-chart.css +1 -0
- package/components/pie-chart/pie-chart.d.ts +99 -0
- package/components/pie-chart/pie-chart.js +32 -0
- package/components/pie-chart/pie-chart.less +43 -0
- package/components/popover/popover-class.js +293 -0
- package/components/popover/popover-ios.less +6 -0
- package/components/popover/popover-md.less +41 -0
- package/components/popover/popover-rtl.css +1 -0
- package/components/popover/popover-vars.less +25 -0
- package/components/popover/popover.css +1 -0
- package/components/popover/popover.d.ts +137 -0
- package/components/popover/popover.js +75 -0
- package/components/popover/popover.less +168 -0
- package/components/popup/popup-class.js +329 -0
- package/components/popup/popup-ios.less +2 -0
- package/components/popup/popup-md.less +2 -0
- package/components/popup/popup-rtl.css +1 -0
- package/components/popup/popup-vars.less +21 -0
- package/components/popup/popup.css +1 -0
- package/components/popup/popup.d.ts +143 -0
- package/components/popup/popup.js +46 -0
- package/components/popup/popup.less +204 -0
- package/components/preloader/preloader-ios.less +57 -0
- package/components/preloader/preloader-md.less +114 -0
- package/components/preloader/preloader-rtl.css +1 -0
- package/components/preloader/preloader-vars.less +16 -0
- package/components/preloader/preloader.css +1 -0
- package/components/preloader/preloader.d.ts +26 -0
- package/components/preloader/preloader.js +106 -0
- package/components/preloader/preloader.less +60 -0
- package/components/progressbar/progressbar-ios.less +59 -0
- package/components/progressbar/progressbar-md.less +141 -0
- package/components/progressbar/progressbar-rtl.css +1 -0
- package/components/progressbar/progressbar-vars.less +22 -0
- package/components/progressbar/progressbar.css +1 -0
- package/components/progressbar/progressbar.d.ts +31 -0
- package/components/progressbar/progressbar.js +150 -0
- package/components/progressbar/progressbar.less +111 -0
- package/components/pull-to-refresh/pull-to-refresh-class.js +512 -0
- package/components/pull-to-refresh/pull-to-refresh-ios.less +88 -0
- package/components/pull-to-refresh/pull-to-refresh-md.less +129 -0
- package/components/pull-to-refresh/pull-to-refresh-rtl.css +1 -0
- package/components/pull-to-refresh/pull-to-refresh-vars.less +14 -0
- package/components/pull-to-refresh/pull-to-refresh.css +1 -0
- package/components/pull-to-refresh/pull-to-refresh.d.ts +103 -0
- package/components/pull-to-refresh/pull-to-refresh.js +62 -0
- package/components/pull-to-refresh/pull-to-refresh.less +38 -0
- package/components/radio/radio-ios.less +61 -0
- package/components/radio/radio-md.less +64 -0
- package/components/radio/radio-rtl.css +1 -0
- package/components/radio/radio-vars.less +24 -0
- package/components/radio/radio.css +1 -0
- package/components/radio/radio.d.ts +14 -0
- package/components/radio/radio.js +3 -0
- package/components/radio/radio.less +64 -0
- package/components/range/range-class.js +577 -0
- package/components/range/range-ios.less +9 -0
- package/components/range/range-md.less +41 -0
- package/components/range/range-rtl.css +1 -0
- package/components/range/range-vars.less +61 -0
- package/components/range/range.css +1 -0
- package/components/range/range.d.ts +143 -0
- package/components/range/range.js +75 -0
- package/components/range/range.less +235 -0
- package/components/searchbar/remove-diacritics.js +271 -0
- package/components/searchbar/searchbar-class.js +592 -0
- package/components/searchbar/searchbar-ios.less +107 -0
- package/components/searchbar/searchbar-md.less +147 -0
- package/components/searchbar/searchbar-rtl.css +1 -0
- package/components/searchbar/searchbar-vars.less +77 -0
- package/components/searchbar/searchbar.css +1 -0
- package/components/searchbar/searchbar.d.ts +161 -0
- package/components/searchbar/searchbar.js +122 -0
- package/components/searchbar/searchbar.less +322 -0
- package/components/sheet/sheet-class.js +673 -0
- package/components/sheet/sheet-ios.less +2 -0
- package/components/sheet/sheet-md.less +9 -0
- package/components/sheet/sheet-rtl.css +1 -0
- package/components/sheet/sheet-vars.less +27 -0
- package/components/sheet/sheet.css +1 -0
- package/components/sheet/sheet.d.ts +170 -0
- package/components/sheet/sheet.js +76 -0
- package/components/sheet/sheet.less +196 -0
- package/components/skeleton/skeleton-ios.less +2 -0
- package/components/skeleton/skeleton-md.less +2 -0
- package/components/skeleton/skeleton-rtl.css +1 -0
- package/components/skeleton/skeleton-vars.less +8 -0
- package/components/skeleton/skeleton.css +1 -0
- package/components/skeleton/skeleton.d.ts +14 -0
- package/components/skeleton/skeleton.js +3 -0
- package/components/skeleton/skeleton.less +11 -0
- package/components/smart-select/smart-select-class.js +874 -0
- package/components/smart-select/smart-select-ios.less +2 -0
- package/components/smart-select/smart-select-md.less +2 -0
- package/components/smart-select/smart-select-rtl.css +1 -0
- package/components/smart-select/smart-select-vars.less +6 -0
- package/components/smart-select/smart-select.css +1 -0
- package/components/smart-select/smart-select.d.ts +204 -0
- package/components/smart-select/smart-select.js +138 -0
- package/components/smart-select/smart-select.less +42 -0
- package/components/sortable/sortable-ios.less +7 -0
- package/components/sortable/sortable-md.less +7 -0
- package/components/sortable/sortable-rtl.css +1 -0
- package/components/sortable/sortable-vars.less +22 -0
- package/components/sortable/sortable.css +1 -0
- package/components/sortable/sortable.d.ts +50 -0
- package/components/sortable/sortable.js +286 -0
- package/components/sortable/sortable.less +133 -0
- package/components/statusbar/statusbar-ios.less +2 -0
- package/components/statusbar/statusbar-md.less +2 -0
- package/components/statusbar/statusbar.d.ts +54 -0
- package/components/statusbar/statusbar.js +190 -0
- package/components/statusbar/statusbar.less +7 -0
- package/components/stepper/stepper-class.js +403 -0
- package/components/stepper/stepper-ios.less +36 -0
- package/components/stepper/stepper-md.less +16 -0
- package/components/stepper/stepper-rtl.css +1 -0
- package/components/stepper/stepper-vars.less +40 -0
- package/components/stepper/stepper.css +1 -0
- package/components/stepper/stepper.d.ts +121 -0
- package/components/stepper/stepper.js +82 -0
- package/components/stepper/stepper.less +178 -0
- package/components/subnavbar/subnavbar-ios.less +51 -0
- package/components/subnavbar/subnavbar-md.less +47 -0
- package/components/subnavbar/subnavbar-vars.less +36 -0
- package/components/subnavbar/subnavbar.d.ts +11 -0
- package/components/subnavbar/subnavbar.js +17 -0
- package/components/subnavbar/subnavbar.less +128 -0
- package/components/swipeout/swipeout-ios.less +2 -0
- package/components/swipeout/swipeout-md.less +2 -0
- package/components/swipeout/swipeout-rtl.css +1 -0
- package/components/swipeout/swipeout-vars.less +24 -0
- package/components/swipeout/swipeout.css +1 -0
- package/components/swipeout/swipeout.d.ts +68 -0
- package/components/swipeout/swipeout.js +513 -0
- package/components/swipeout/swipeout.less +109 -0
- package/components/swiper/swiper-ios.less +2 -0
- package/components/swiper/swiper-md.less +2 -0
- package/components/swiper/swiper-rtl.css +1 -0
- package/components/swiper/swiper.css +1 -0
- package/components/swiper/swiper.d.ts +25 -0
- package/components/swiper/swiper.js +141 -0
- package/components/swiper/swiper.less +5 -0
- package/components/tabs/tabs-ios.less +2 -0
- package/components/tabs/tabs-md.less +2 -0
- package/components/tabs/tabs-rtl.css +1 -0
- package/components/tabs/tabs.css +1 -0
- package/components/tabs/tabs.d.ts +39 -0
- package/components/tabs/tabs.js +243 -0
- package/components/tabs/tabs.less +45 -0
- package/components/text-editor/text-editor-class.js +516 -0
- package/components/text-editor/text-editor-ios.less +9 -0
- package/components/text-editor/text-editor-md.less +11 -0
- package/components/text-editor/text-editor-rtl.css +1 -0
- package/components/text-editor/text-editor-vars.less +51 -0
- package/components/text-editor/text-editor.css +1 -0
- package/components/text-editor/text-editor.d.ts +166 -0
- package/components/text-editor/text-editor.js +81 -0
- package/components/text-editor/text-editor.less +153 -0
- package/components/timeline/timeline-ios.less +11 -0
- package/components/timeline/timeline-md.less +7 -0
- package/components/timeline/timeline-rtl.css +1 -0
- package/components/timeline/timeline-vars.less +64 -0
- package/components/timeline/timeline.css +1 -0
- package/components/timeline/timeline.d.ts +14 -0
- package/components/timeline/timeline.js +3 -0
- package/components/timeline/timeline.less +413 -0
- package/components/toast/toast-class.js +105 -0
- package/components/toast/toast-ios.less +81 -0
- package/components/toast/toast-md.less +72 -0
- package/components/toast/toast-rtl.css +1 -0
- package/components/toast/toast-vars.less +24 -0
- package/components/toast/toast.css +1 -0
- package/components/toast/toast.d.ts +121 -0
- package/components/toast/toast.js +40 -0
- package/components/toast/toast.less +62 -0
- package/components/toggle/toggle-class.js +165 -0
- package/components/toggle/toggle-ios.less +70 -0
- package/components/toggle/toggle-md.less +44 -0
- package/components/toggle/toggle-rtl.css +1 -0
- package/components/toggle/toggle-vars.less +30 -0
- package/components/toggle/toggle.css +1 -0
- package/components/toggle/toggle.d.ts +73 -0
- package/components/toggle/toggle.js +57 -0
- package/components/toggle/toggle.less +52 -0
- package/components/toolbar/toolbar-ios.less +47 -0
- package/components/toolbar/toolbar-md.less +77 -0
- package/components/toolbar/toolbar-vars.less +71 -0
- package/components/toolbar/toolbar.d.ts +43 -0
- package/components/toolbar/toolbar.js +198 -0
- package/components/toolbar/toolbar.less +306 -0
- package/components/tooltip/tooltip-class.js +336 -0
- package/components/tooltip/tooltip-ios.less +2 -0
- package/components/tooltip/tooltip-md.less +2 -0
- package/components/tooltip/tooltip-rtl.css +1 -0
- package/components/tooltip/tooltip-vars.less +19 -0
- package/components/tooltip/tooltip.css +1 -0
- package/components/tooltip/tooltip.d.ts +105 -0
- package/components/tooltip/tooltip.js +129 -0
- package/components/tooltip/tooltip.less +39 -0
- package/components/touch-ripple/touch-ripple-class.js +85 -0
- package/components/touch-ripple/touch-ripple-ios.less +2 -0
- package/components/touch-ripple/touch-ripple-md.less +2 -0
- package/components/touch-ripple/touch-ripple-vars.less +8 -0
- package/components/touch-ripple/touch-ripple.d.ts +25 -0
- package/components/touch-ripple/touch-ripple.js +18 -0
- package/components/touch-ripple/touch-ripple.less +114 -0
- package/components/treeview/treeview-ios.less +2 -0
- package/components/treeview/treeview-md.less +2 -0
- package/components/treeview/treeview-rtl.css +1 -0
- package/components/treeview/treeview-vars.less +38 -0
- package/components/treeview/treeview.css +1 -0
- package/components/treeview/treeview.d.ts +42 -0
- package/components/treeview/treeview.js +74 -0
- package/components/treeview/treeview.less +160 -0
- package/components/typography/typography-ios.less +2 -0
- package/components/typography/typography-md.less +2 -0
- package/components/typography/typography-rtl.css +1 -0
- package/components/typography/typography-vars.less +4 -0
- package/components/typography/typography.css +1 -0
- package/components/typography/typography.d.ts +14 -0
- package/components/typography/typography.js +3 -0
- package/components/typography/typography.less +220 -0
- package/components/view/resizable-view.js +125 -0
- package/components/view/view-class.js +206 -0
- package/components/view/view-ios.less +2 -0
- package/components/view/view-md.less +2 -0
- package/components/view/view.d.ts +199 -0
- package/components/view/view.js +173 -0
- package/components/view/view.less +35 -0
- package/components/virtual-list/virtual-list-class.js +583 -0
- package/components/virtual-list/virtual-list-ios.less +2 -0
- package/components/virtual-list/virtual-list-md.less +2 -0
- package/components/virtual-list/virtual-list-rtl.css +0 -0
- package/components/virtual-list/virtual-list.css +0 -0
- package/components/virtual-list/virtual-list.d.ts +142 -0
- package/components/virtual-list/virtual-list.js +17 -0
- package/components/virtual-list/virtual-list.less +7 -0
- package/framework7-bundle-rtl.css +19821 -0
- package/framework7-bundle-rtl.min.css +19 -0
- package/framework7-bundle.css +19802 -0
- package/framework7-bundle.esm.js +93 -0
- package/framework7-bundle.js +48416 -0
- package/framework7-bundle.js.map +1 -0
- package/framework7-bundle.less +92 -0
- package/framework7-bundle.min.css +19 -0
- package/framework7-bundle.min.js +14 -0
- package/framework7-bundle.min.js.map +1 -0
- package/framework7-lite-bundle.esm.js +86 -0
- package/framework7-lite.esm.js +37 -0
- package/framework7-lite.js +31 -0
- package/framework7-rtl.css +5252 -0
- package/framework7-rtl.min.css +17 -0
- package/framework7-types.d.ts +336 -0
- package/framework7.css +5245 -0
- package/framework7.d.ts +322 -0
- package/framework7.esm.js +41 -0
- package/framework7.js +42 -0
- package/framework7.less +41 -0
- package/framework7.min.css +17 -0
- package/less/mixins.less +281 -0
- package/less/plugin.js +15 -0
- package/less/vars.less +7 -0
- package/modules/clicks/clicks.d.ts +19 -0
- package/modules/clicks/clicks.js +94 -0
- package/modules/component/$h.js +15 -0
- package/modules/component/$jsx.js +17 -0
- package/modules/component/component-class.js +517 -0
- package/modules/component/component.d.ts +111 -0
- package/modules/component/component.js +44 -0
- package/modules/component/custom-components.js +1 -0
- package/modules/component/eventslisteners.js +74 -0
- package/modules/component/parse-component.js +79 -0
- package/modules/component/patch.js +8 -0
- package/modules/component/snabbdom/h.d.ts +10 -0
- package/modules/component/snabbdom/h.js +50 -0
- package/modules/component/snabbdom/helpers/attachto.d.ts +9 -0
- package/modules/component/snabbdom/helpers/attachto.js +49 -0
- package/modules/component/snabbdom/hooks.d.ts +23 -0
- package/modules/component/snabbdom/hooks.js +0 -0
- package/modules/component/snabbdom/htmldomapi.d.ts +19 -0
- package/modules/component/snabbdom/htmldomapi.js +67 -0
- package/modules/component/snabbdom/is.d.ts +2 -0
- package/modules/component/snabbdom/is.js +4 -0
- package/modules/component/snabbdom/modules/attributes.d.ts +4 -0
- package/modules/component/snabbdom/modules/attributes.js +51 -0
- package/modules/component/snabbdom/modules/class.d.ts +4 -0
- package/modules/component/snabbdom/modules/class.js +27 -0
- package/modules/component/snabbdom/modules/dataset.d.ts +4 -0
- package/modules/component/snabbdom/modules/dataset.js +37 -0
- package/modules/component/snabbdom/modules/eventlisteners.d.ts +8 -0
- package/modules/component/snabbdom/modules/eventlisteners.js +93 -0
- package/modules/component/snabbdom/modules/hero.d.ts +6 -0
- package/modules/component/snabbdom/modules/hero.js +147 -0
- package/modules/component/snabbdom/modules/module.d.ts +9 -0
- package/modules/component/snabbdom/modules/module.js +0 -0
- package/modules/component/snabbdom/modules/props.d.ts +4 -0
- package/modules/component/snabbdom/modules/props.js +29 -0
- package/modules/component/snabbdom/modules/style.d.ts +7 -0
- package/modules/component/snabbdom/modules/style.js +93 -0
- package/modules/component/snabbdom/snabbdom.bundle.d.ts +5 -0
- package/modules/component/snabbdom/snabbdom.bundle.js +13 -0
- package/modules/component/snabbdom/snabbdom.d.ts +6 -0
- package/modules/component/snabbdom/snabbdom.js +282 -0
- package/modules/component/snabbdom/thunk.d.ts +14 -0
- package/modules/component/snabbdom/thunk.js +50 -0
- package/modules/component/snabbdom/tovnode.d.ts +4 -0
- package/modules/component/snabbdom/tovnode.js +40 -0
- package/modules/component/snabbdom/vnode.d.ts +36 -0
- package/modules/component/snabbdom/vnode.js +12 -0
- package/modules/component/vdom.js +319 -0
- package/modules/demo-module.js +44 -0
- package/modules/device/device.d.ts +14 -0
- package/modules/device/device.js +44 -0
- package/modules/history/history.js +12 -0
- package/modules/resize/resize.d.ts +25 -0
- package/modules/resize/resize.js +62 -0
- package/modules/router/app-router-check.js +5 -0
- package/modules/router/async-component.js +27 -0
- package/modules/router/back.js +723 -0
- package/modules/router/clear-previous-history.js +31 -0
- package/modules/router/component-loader.js +200 -0
- package/modules/router/modal.js +223 -0
- package/modules/router/navigate.js +814 -0
- package/modules/router/process-route-queue.js +66 -0
- package/modules/router/redirect.js +38 -0
- package/modules/router/router-class.js +1268 -0
- package/modules/router/router.d.ts +354 -0
- package/modules/router/router.js +26 -0
- package/modules/router/swipe-back.js +589 -0
- package/modules/router/tab.js +230 -0
- package/modules/service-worker/service-worker.d.ts +38 -0
- package/modules/service-worker/service-worker.js +86 -0
- package/modules/store/create-store.js +138 -0
- package/modules/store/store.d.ts +40 -0
- package/modules/store/store.js +11 -0
- package/modules/support/support.d.ts +15 -0
- package/modules/support/support.js +7 -0
- package/modules/touch/touch.d.ts +60 -0
- package/modules/touch/touch.js +482 -0
- package/modules/utils/utils.d.ts +15 -0
- package/modules/utils/utils.js +10 -0
- package/package.json +458 -0
- package/shared/$jsx.js +21 -0
- package/shared/class.js +146 -0
- package/shared/constructor-methods.js +52 -0
- package/shared/dom7.js +7 -0
- package/shared/events-class.js +95 -0
- package/shared/get-device.d.ts +52 -0
- package/shared/get-device.js +147 -0
- package/shared/get-support.d.ts +12 -0
- package/shared/get-support.js +35 -0
- package/shared/history.js +171 -0
- package/shared/material-color-utils.js +1377 -0
- package/shared/material-colors.js +75 -0
- package/shared/modal-methods.js +80 -0
- package/shared/utils.d.ts +88 -0
- package/shared/utils.js +535 -0
|
@@ -0,0 +1,413 @@
|
|
|
1
|
+
/* === Timeline === */
|
|
2
|
+
@import './timeline-vars.less';
|
|
3
|
+
|
|
4
|
+
.timeline {
|
|
5
|
+
box-sizing: border-box;
|
|
6
|
+
margin: var(--f7-timeline-margin-vertical) 0;
|
|
7
|
+
padding: 0 var(--f7-timeline-padding-horizontal);
|
|
8
|
+
padding-top: 0;
|
|
9
|
+
padding-bottom: 0;
|
|
10
|
+
padding-left: calc(var(--f7-timeline-padding-horizontal) + var(--f7-safe-area-left));
|
|
11
|
+
padding-right: calc(var(--f7-timeline-padding-horizontal) + var(--f7-safe-area-right));
|
|
12
|
+
.block-strong & {
|
|
13
|
+
padding: 0;
|
|
14
|
+
margin: 0;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
.timeline-item {
|
|
18
|
+
display: flex;
|
|
19
|
+
justify-content: flex-start;
|
|
20
|
+
position: relative;
|
|
21
|
+
overflow: hidden;
|
|
22
|
+
box-sizing: border-box;
|
|
23
|
+
position: relative;
|
|
24
|
+
padding: 2px 0px var(--f7-timeline-padding-horizontal);
|
|
25
|
+
&:last-child {
|
|
26
|
+
padding-bottom: 2px;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
.timeline-item-date {
|
|
30
|
+
flex-shrink: 0;
|
|
31
|
+
width: 50px;
|
|
32
|
+
text-align: right;
|
|
33
|
+
box-sizing: border-box;
|
|
34
|
+
small {
|
|
35
|
+
font-size: 10px;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
.timeline-item-content {
|
|
39
|
+
margin: 2px;
|
|
40
|
+
min-width: 0;
|
|
41
|
+
position: relative;
|
|
42
|
+
flex-shrink: 10;
|
|
43
|
+
.card,
|
|
44
|
+
&.card,
|
|
45
|
+
.list,
|
|
46
|
+
&.list,
|
|
47
|
+
.block,
|
|
48
|
+
&.block {
|
|
49
|
+
margin: 0;
|
|
50
|
+
width: 100%;
|
|
51
|
+
}
|
|
52
|
+
.card,
|
|
53
|
+
.list,
|
|
54
|
+
.block {
|
|
55
|
+
+ .card,
|
|
56
|
+
+ .list,
|
|
57
|
+
+ .block {
|
|
58
|
+
margin: var(--f7-timeline-inner-block-margin-vertical) 0 0;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
p,
|
|
62
|
+
ul,
|
|
63
|
+
ol,
|
|
64
|
+
h1,
|
|
65
|
+
h2,
|
|
66
|
+
h3,
|
|
67
|
+
h4 {
|
|
68
|
+
&:first-child {
|
|
69
|
+
margin-top: 0;
|
|
70
|
+
}
|
|
71
|
+
&:last-child {
|
|
72
|
+
margin-bottom: 0;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
.timeline-item-inner {
|
|
77
|
+
background: var(--f7-timeline-item-inner-bg-color);
|
|
78
|
+
box-sizing: border-box;
|
|
79
|
+
border-radius: var(--f7-timeline-item-inner-border-radius);
|
|
80
|
+
padding: 8px var(--f7-timeline-padding-horizontal);
|
|
81
|
+
|
|
82
|
+
+ .timeline-item-inner {
|
|
83
|
+
margin-top: var(--f7-timeline-inner-block-margin-vertical);
|
|
84
|
+
}
|
|
85
|
+
.block {
|
|
86
|
+
padding: 0;
|
|
87
|
+
color: inherit;
|
|
88
|
+
}
|
|
89
|
+
.block-strong {
|
|
90
|
+
.hairline-remove-top-bottom();
|
|
91
|
+
padding-left: 0;
|
|
92
|
+
padding-right: 0;
|
|
93
|
+
margin: 0;
|
|
94
|
+
}
|
|
95
|
+
.list {
|
|
96
|
+
ul {
|
|
97
|
+
.hairline-remove-top-bottom();
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
.timeline-item-divider {
|
|
102
|
+
width: 1px;
|
|
103
|
+
position: relative;
|
|
104
|
+
width: 10px;
|
|
105
|
+
height: 10px;
|
|
106
|
+
background: var(--f7-timeline-divider-color);
|
|
107
|
+
border-radius: 50%;
|
|
108
|
+
flex-shrink: 0;
|
|
109
|
+
margin: 3px var(--f7-timeline-divider-margin-horizontal) 0;
|
|
110
|
+
&:after,
|
|
111
|
+
&:before {
|
|
112
|
+
content: ' ';
|
|
113
|
+
width: 1px;
|
|
114
|
+
height: 100vh;
|
|
115
|
+
position: absolute;
|
|
116
|
+
left: 50%;
|
|
117
|
+
background: inherit;
|
|
118
|
+
transform: translate3d(-50%, 0, 0);
|
|
119
|
+
}
|
|
120
|
+
&:after {
|
|
121
|
+
top: 100%;
|
|
122
|
+
}
|
|
123
|
+
&:before {
|
|
124
|
+
bottom: 100%;
|
|
125
|
+
}
|
|
126
|
+
.timeline-item:last-child &:after {
|
|
127
|
+
display: none;
|
|
128
|
+
}
|
|
129
|
+
.timeline-item:first-child &:before {
|
|
130
|
+
display: none;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
.timeline-item-time {
|
|
134
|
+
font-size: var(--f7-timeline-item-time-font-size);
|
|
135
|
+
margin-top: var(--f7-timeline-inner-block-margin-vertical);
|
|
136
|
+
color: var(--f7-timeline-item-time-text-color);
|
|
137
|
+
&:first-child,
|
|
138
|
+
&:last-child {
|
|
139
|
+
margin-top: 0;
|
|
140
|
+
}
|
|
141
|
+
.timeline-item-title + & {
|
|
142
|
+
margin-top: 0;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
.timeline-item-title {
|
|
146
|
+
font-size: var(--f7-timeline-item-title-font-size);
|
|
147
|
+
font-weight: var(--f7-timeline-item-title-font-weight);
|
|
148
|
+
line-height: var(--f7-timeline-item-title-line-height);
|
|
149
|
+
}
|
|
150
|
+
.timeline-item-subtitle {
|
|
151
|
+
font-size: var(--f7-timeline-item-subtitle-font-size);
|
|
152
|
+
font-weight: var(--f7-timeline-item-subtitle-font-weight);
|
|
153
|
+
line-height: var(--f7-timeline-item-subtitle-line-height);
|
|
154
|
+
}
|
|
155
|
+
.timeline-item-text {
|
|
156
|
+
color: var(--f7-timeline-item-text-color);
|
|
157
|
+
font-size: var(--f7-timeline-item-text-font-size);
|
|
158
|
+
font-weight: var(--f7-timeline-item-text-font-weight);
|
|
159
|
+
line-height: var(--f7-timeline-item-text-line-height);
|
|
160
|
+
}
|
|
161
|
+
.timelineItemLeft() {
|
|
162
|
+
flex-direction: row-reverse;
|
|
163
|
+
.ltr({
|
|
164
|
+
margin-right: calc(50% - (var(--f7-timeline-divider-margin-horizontal) * 2 + 10px) / 2 - 50px);
|
|
165
|
+
margin-left: 0;
|
|
166
|
+
.timeline-item-date {
|
|
167
|
+
text-align: left;
|
|
168
|
+
}
|
|
169
|
+
});
|
|
170
|
+
.rtl({
|
|
171
|
+
margin-left: calc(50% - (var(--f7-timeline-divider-margin-horizontal) * 2 + 10px) / 2 - 50px);
|
|
172
|
+
margin-right: 0;
|
|
173
|
+
.timeline-item-date {
|
|
174
|
+
text-align: right;
|
|
175
|
+
}
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
.timelineItemRight() {
|
|
179
|
+
.ltr({
|
|
180
|
+
margin-left: calc(50% - (var(--f7-timeline-divider-margin-horizontal) * 2 + 10px) / 2 - 50px);
|
|
181
|
+
margin-right: 0;
|
|
182
|
+
.timeline-item-date {
|
|
183
|
+
text-align: right;
|
|
184
|
+
}
|
|
185
|
+
});
|
|
186
|
+
.rtl({
|
|
187
|
+
margin-right: calc(50% - (var(--f7-timeline-divider-margin-horizontal) * 2 + 10px) / 2 - 50px);
|
|
188
|
+
margin-left: 0;
|
|
189
|
+
.timeline-item-date {
|
|
190
|
+
text-align: left;
|
|
191
|
+
}
|
|
192
|
+
});
|
|
193
|
+
}
|
|
194
|
+
.timeline-sides {
|
|
195
|
+
.timeline-item-right,
|
|
196
|
+
.timeline-item {
|
|
197
|
+
.timelineItemRight();
|
|
198
|
+
}
|
|
199
|
+
.timeline-item-left,
|
|
200
|
+
.timeline-item:not(.timeline-item-right):nth-child(2n) {
|
|
201
|
+
.timelineItemLeft();
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
each(@breakpoints, {
|
|
205
|
+
@media (min-width:@value) {
|
|
206
|
+
.@{key}-sides {
|
|
207
|
+
.timeline-sides;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
});
|
|
211
|
+
|
|
212
|
+
.timeline-horizontal {
|
|
213
|
+
height: 100%;
|
|
214
|
+
display: flex;
|
|
215
|
+
padding: 0;
|
|
216
|
+
margin: 0;
|
|
217
|
+
position: relative;
|
|
218
|
+
padding-left: var(--f7-safe-area-left);
|
|
219
|
+
padding-right: 0;
|
|
220
|
+
.timeline-item {
|
|
221
|
+
display: block;
|
|
222
|
+
width: 100/3vw;
|
|
223
|
+
margin: 0;
|
|
224
|
+
padding: 0;
|
|
225
|
+
flex-shrink: 0;
|
|
226
|
+
position: relative;
|
|
227
|
+
height: 100%;
|
|
228
|
+
padding-top: var(--f7-timeline-horizontal-date-height) !important;
|
|
229
|
+
padding-bottom: var(--f7-timeline-horizontal-item-padding);
|
|
230
|
+
.hairline(right, var(--f7-timeline-horizontal-item-border-color));
|
|
231
|
+
}
|
|
232
|
+
.timeline-item-date {
|
|
233
|
+
padding: 0px var(--f7-timeline-horizontal-item-padding);
|
|
234
|
+
width: auto;
|
|
235
|
+
text-align: left;
|
|
236
|
+
line-height: var(--f7-timeline-horizontal-date-height);
|
|
237
|
+
position: absolute;
|
|
238
|
+
left: 0;
|
|
239
|
+
top: 0;
|
|
240
|
+
width: 100%;
|
|
241
|
+
height: var(--f7-timeline-horizontal-date-height);
|
|
242
|
+
background-color: var(--f7-bars-bg-color);
|
|
243
|
+
color: var(--f7-bars-text-color);
|
|
244
|
+
.ios-translucent-bars(var(--f7-bars-bg-color-rgb));
|
|
245
|
+
.hairline(bottom, var(--f7-timeline-horizontal-item-date-border-color));
|
|
246
|
+
.ltr({
|
|
247
|
+
text-align: left;
|
|
248
|
+
});
|
|
249
|
+
.rtl({
|
|
250
|
+
text-align: right;
|
|
251
|
+
});
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.timeline-item-content {
|
|
255
|
+
padding: var(--f7-timeline-horizontal-item-padding);
|
|
256
|
+
height: calc(100vw - var(--f7-timeline-horizontal-item-padding));
|
|
257
|
+
.scrollable();
|
|
258
|
+
margin: 0;
|
|
259
|
+
}
|
|
260
|
+
.timeline-item-divider {
|
|
261
|
+
display: none;
|
|
262
|
+
}
|
|
263
|
+
> .timeline-item:last-child,
|
|
264
|
+
.timeline-month:last-child .timeline-item:last-child {
|
|
265
|
+
.hairline-remove(right);
|
|
266
|
+
}
|
|
267
|
+
@cols: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20;
|
|
268
|
+
each(@cols, {
|
|
269
|
+
@className: floor((@value));
|
|
270
|
+
&.timeline-cols-@{className} .timeline-item {
|
|
271
|
+
width: ~"calc(100vw / @{value})";
|
|
272
|
+
}
|
|
273
|
+
});
|
|
274
|
+
@media (min-width: @breakpoints[xsmall]) {
|
|
275
|
+
each(@cols, {
|
|
276
|
+
&.xsmall-timeline-cols-@{value} .timeline-item {
|
|
277
|
+
width: ~"calc(100vw / @{value})";
|
|
278
|
+
}
|
|
279
|
+
});
|
|
280
|
+
}
|
|
281
|
+
@media (min-width: @breakpoints[small]) {
|
|
282
|
+
each(@cols, {
|
|
283
|
+
&.small-timeline-cols-@{value} .timeline-item {
|
|
284
|
+
width: ~"calc(100vw / @{value})";
|
|
285
|
+
}
|
|
286
|
+
});
|
|
287
|
+
}
|
|
288
|
+
@media (min-width: @breakpoints[medium]) {
|
|
289
|
+
each(@cols, {
|
|
290
|
+
&.medium-timeline-cols-@{value} .timeline-item {
|
|
291
|
+
width: ~"calc(100vw / @{value})";
|
|
292
|
+
}
|
|
293
|
+
});
|
|
294
|
+
}
|
|
295
|
+
@media (min-width: @breakpoints[large]) {
|
|
296
|
+
each(@cols, {
|
|
297
|
+
&.large-timeline-cols-@{value} .timeline-item {
|
|
298
|
+
width: ~"calc(100vw / @{value})";
|
|
299
|
+
}
|
|
300
|
+
});
|
|
301
|
+
}
|
|
302
|
+
@media (min-width: @breakpoints[xlarge]) {
|
|
303
|
+
each(@cols, {
|
|
304
|
+
&.xlarge-timeline-cols-@{value} .timeline-item {
|
|
305
|
+
width: ~"calc(100vw / @{value})";
|
|
306
|
+
}
|
|
307
|
+
});
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
.timeline-year {
|
|
311
|
+
padding-top: var(--f7-timeline-year-height);
|
|
312
|
+
.hairline(right, var(--f7-timeline-horizontal-item-border-color));
|
|
313
|
+
&:last-child {
|
|
314
|
+
.hairline-remove(right);
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
.timeline-month {
|
|
318
|
+
padding-top: var(--f7-timeline-month-height);
|
|
319
|
+
.timeline-item {
|
|
320
|
+
.hairline(top, var(--f7-timeline-horizontal-item-border-color));
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
.timeline-year,
|
|
324
|
+
.timeline-month {
|
|
325
|
+
display: flex;
|
|
326
|
+
flex-shrink: 0;
|
|
327
|
+
position: relative;
|
|
328
|
+
box-sizing: border-box;
|
|
329
|
+
height: 100%;
|
|
330
|
+
}
|
|
331
|
+
.timeline-year-title {
|
|
332
|
+
line-height: var(--f7-timeline-year-height);
|
|
333
|
+
height: var(--f7-timeline-year-height);
|
|
334
|
+
font-size: var(--f7-timeline-year-font-size);
|
|
335
|
+
font-weight: var(--f7-timeline-year-font-weight);
|
|
336
|
+
}
|
|
337
|
+
.timeline-month-title {
|
|
338
|
+
line-height: var(--f7-timeline-month-height);
|
|
339
|
+
height: var(--f7-timeline-month-height);
|
|
340
|
+
font-size: var(--f7-timeline-month-font-size);
|
|
341
|
+
font-weight: var(--f7-timeline-month-font-weight);
|
|
342
|
+
}
|
|
343
|
+
.timeline-year-title,
|
|
344
|
+
.timeline-month-title {
|
|
345
|
+
position: absolute;
|
|
346
|
+
left: 0;
|
|
347
|
+
top: 0;
|
|
348
|
+
width: 100%;
|
|
349
|
+
box-sizing: border-box;
|
|
350
|
+
padding: 0 var(--f7-timeline-horizontal-item-padding);
|
|
351
|
+
background-color: var(--f7-bars-bg-color);
|
|
352
|
+
color: var(--f7-bars-text-color);
|
|
353
|
+
.ios-translucent-bars(var(--f7-bars-bg-color-rgb));
|
|
354
|
+
span {
|
|
355
|
+
display: inline-block;
|
|
356
|
+
position: sticky;
|
|
357
|
+
.ltr({
|
|
358
|
+
left: calc(var(--f7-timeline-horizontal-item-padding) + var(--f7-safe-area-left));
|
|
359
|
+
});
|
|
360
|
+
.rtl({
|
|
361
|
+
right: calc(var(--f7-timeline-horizontal-item-padding) + var(--f7-safe-area-right));
|
|
362
|
+
});
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
.timeline-month-title {
|
|
366
|
+
span {
|
|
367
|
+
margin-top: -2px;
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
.timeline-year:first-child .timeline-year-title,
|
|
371
|
+
.timeline-year:first-child .timeline-month:first-child .timeline-month-title,
|
|
372
|
+
.timeline-year:first-child .timeline-year-title + .timeline-month .timeline-month-title {
|
|
373
|
+
left: calc(var(--f7-safe-area-left) * -1);
|
|
374
|
+
right: 0;
|
|
375
|
+
width: auto;
|
|
376
|
+
}
|
|
377
|
+
.timeline-horizontal .timeline-item:first-child,
|
|
378
|
+
.timeline-year:first-child .timeline-month:first-child .timeline-item:first-child,
|
|
379
|
+
.timeline-year:first-child .timeline-year-title + .timeline-month .timeline-item:first-child,
|
|
380
|
+
.timeline-year:first-child
|
|
381
|
+
.timeline-year-title
|
|
382
|
+
+ .timeline-month
|
|
383
|
+
.timeline-month-title
|
|
384
|
+
+ .timeline-item {
|
|
385
|
+
overflow: visible;
|
|
386
|
+
.timeline-item-date {
|
|
387
|
+
width: auto;
|
|
388
|
+
padding-left: calc(var(--f7-timeline-horizontal-item-padding) + var(--f7-safe-area-left));
|
|
389
|
+
left: calc(0px - var(--f7-safe-area-left));
|
|
390
|
+
right: 0;
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
.timeline-year:last-child .timeline-year-title,
|
|
394
|
+
.timeline-year:last-child .timeline-month:last-child .timeline-month-title {
|
|
395
|
+
width: auto;
|
|
396
|
+
right: calc(0px - var(--f7-safe-area-right));
|
|
397
|
+
}
|
|
398
|
+
.timeline-horizontal .timeline-item:last-child,
|
|
399
|
+
.timeline-year:last-child .timeline-month:last-child .timeline-item:last-child {
|
|
400
|
+
overflow: visible;
|
|
401
|
+
.timeline-item-date {
|
|
402
|
+
width: auto;
|
|
403
|
+
right: calc(0px - var(--f7-safe-area-right));
|
|
404
|
+
left: 0;
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
.if-ios-theme({
|
|
409
|
+
@import './timeline-ios.less';
|
|
410
|
+
});
|
|
411
|
+
.if-md-theme({
|
|
412
|
+
@import './timeline-md.less';
|
|
413
|
+
});
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { getWindow } from 'ssr-window';
|
|
2
|
+
import $ from '../../shared/dom7.js';
|
|
3
|
+
import { extend, nextTick } from '../../shared/utils.js';
|
|
4
|
+
import Modal from '../modal/modal-class.js';
|
|
5
|
+
/** @jsx $jsx */
|
|
6
|
+
import $jsx from '../../shared/$jsx.js';
|
|
7
|
+
class Toast extends Modal {
|
|
8
|
+
constructor(app, params) {
|
|
9
|
+
const extendedParams = extend({
|
|
10
|
+
on: {}
|
|
11
|
+
}, app.params.toast, params);
|
|
12
|
+
|
|
13
|
+
// Extends with open/close Modal methods;
|
|
14
|
+
super(app, extendedParams);
|
|
15
|
+
const toast = this;
|
|
16
|
+
const window = getWindow();
|
|
17
|
+
toast.app = app;
|
|
18
|
+
toast.params = extendedParams;
|
|
19
|
+
const {
|
|
20
|
+
closeButton,
|
|
21
|
+
closeTimeout
|
|
22
|
+
} = toast.params;
|
|
23
|
+
let $el;
|
|
24
|
+
if (!toast.params.el) {
|
|
25
|
+
// Find Element
|
|
26
|
+
const toastHtml = toast.render();
|
|
27
|
+
$el = $(toastHtml);
|
|
28
|
+
} else {
|
|
29
|
+
$el = $(toast.params.el);
|
|
30
|
+
}
|
|
31
|
+
if ($el && $el.length > 0 && $el[0].f7Modal) {
|
|
32
|
+
return $el[0].f7Modal;
|
|
33
|
+
}
|
|
34
|
+
if ($el.length === 0) {
|
|
35
|
+
return toast.destroy();
|
|
36
|
+
}
|
|
37
|
+
extend(toast, {
|
|
38
|
+
$el,
|
|
39
|
+
el: $el[0],
|
|
40
|
+
type: 'toast'
|
|
41
|
+
});
|
|
42
|
+
$el[0].f7Modal = toast;
|
|
43
|
+
if (closeButton) {
|
|
44
|
+
$el.find('.toast-button').on('click', () => {
|
|
45
|
+
toast.emit('local::closeButtonClick toastCloseButtonClick', toast);
|
|
46
|
+
toast.close();
|
|
47
|
+
});
|
|
48
|
+
toast.on('beforeDestroy', () => {
|
|
49
|
+
$el.find('.toast-button').off('click');
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
let timeoutId;
|
|
53
|
+
toast.on('open', () => {
|
|
54
|
+
$('.toast.modal-in').each(openedEl => {
|
|
55
|
+
const toastInstance = app.toast.get(openedEl);
|
|
56
|
+
if (openedEl !== toast.el && toastInstance) {
|
|
57
|
+
toastInstance.close();
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
if (closeTimeout) {
|
|
61
|
+
timeoutId = nextTick(() => {
|
|
62
|
+
toast.close();
|
|
63
|
+
}, closeTimeout);
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
toast.on('close', () => {
|
|
67
|
+
window.clearTimeout(timeoutId);
|
|
68
|
+
});
|
|
69
|
+
if (toast.params.destroyOnClose) {
|
|
70
|
+
toast.once('closed', () => {
|
|
71
|
+
setTimeout(() => {
|
|
72
|
+
toast.destroy();
|
|
73
|
+
}, 0);
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
return toast;
|
|
77
|
+
}
|
|
78
|
+
render() {
|
|
79
|
+
const toast = this;
|
|
80
|
+
if (toast.params.render) return toast.params.render.call(toast, toast);
|
|
81
|
+
const {
|
|
82
|
+
position,
|
|
83
|
+
horizontalPosition,
|
|
84
|
+
cssClass,
|
|
85
|
+
icon,
|
|
86
|
+
text,
|
|
87
|
+
closeButton,
|
|
88
|
+
closeButtonColor,
|
|
89
|
+
closeButtonText
|
|
90
|
+
} = toast.params;
|
|
91
|
+
const horizontalClass = position === 'top' || position === 'bottom' ? `toast-horizontal-${horizontalPosition}` : '';
|
|
92
|
+
return $jsx("div", {
|
|
93
|
+
class: `toast toast-${position} ${horizontalClass} ${cssClass || ''} ${icon ? 'toast-with-icon' : ''}`
|
|
94
|
+
}, $jsx("div", {
|
|
95
|
+
class: "toast-content"
|
|
96
|
+
}, icon && $jsx("div", {
|
|
97
|
+
class: "toast-icon"
|
|
98
|
+
}, icon), $jsx("div", {
|
|
99
|
+
class: "toast-text"
|
|
100
|
+
}, text), closeButton && !icon && $jsx("a", {
|
|
101
|
+
class: `toast-button button ${closeButtonColor ? `color-${closeButtonColor}` : ''}`
|
|
102
|
+
}, closeButtonText)));
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
export default Toast;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
.ios {
|
|
2
|
+
.toast {
|
|
3
|
+
transition-duration: 300ms;
|
|
4
|
+
width: 100%;
|
|
5
|
+
left: 0;
|
|
6
|
+
&.toast-top {
|
|
7
|
+
top: 0;
|
|
8
|
+
transform: translate3d(0, -100%, 0);
|
|
9
|
+
&.modal-in {
|
|
10
|
+
transform: translate3d(0, 0%, 0);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
&.toast-center {
|
|
14
|
+
width: auto;
|
|
15
|
+
left: 50%;
|
|
16
|
+
border-radius: var(--f7-toast-border-radius);
|
|
17
|
+
transform: translate3d(-50%, -50%, 0);
|
|
18
|
+
&.modal-in {
|
|
19
|
+
transform: translate3d(-50%, -50%, 0);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
&.toast-bottom {
|
|
23
|
+
bottom: 0;
|
|
24
|
+
transform: translate3d(0, 100%, 0);
|
|
25
|
+
&.modal-in {
|
|
26
|
+
transform: translate3d(0, 0%, 0);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
@media (max-width: 568px) {
|
|
30
|
+
&.toast-top {
|
|
31
|
+
margin-top: 0;
|
|
32
|
+
}
|
|
33
|
+
&.toast-top .toast-content {
|
|
34
|
+
padding-top: calc(var(--f7-toast-padding-vertical) + var(--f7-safe-area-top));
|
|
35
|
+
}
|
|
36
|
+
&.toast-bottom .toast-content {
|
|
37
|
+
padding-bottom: calc(var(--f7-toast-padding-vertical) + var(--f7-safe-area-bottom));
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
@media (min-width: 569px) {
|
|
41
|
+
left: 50%;
|
|
42
|
+
margin-left: calc(-1 * var(--f7-toast-max-width) / 2);
|
|
43
|
+
border-radius: var(--f7-toast-border-radius);
|
|
44
|
+
&.toast-top {
|
|
45
|
+
top: 16px;
|
|
46
|
+
}
|
|
47
|
+
&.toast-center {
|
|
48
|
+
margin-left: 0;
|
|
49
|
+
}
|
|
50
|
+
&.toast-bottom {
|
|
51
|
+
margin-bottom: calc(16px + var(--f7-safe-area-bottom));
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
@media (min-width: 1024px) {
|
|
55
|
+
margin-left: 0;
|
|
56
|
+
width: auto;
|
|
57
|
+
&.toast-horizontal-left {
|
|
58
|
+
left: 16px;
|
|
59
|
+
}
|
|
60
|
+
&.toast-horizontal-right {
|
|
61
|
+
left: auto;
|
|
62
|
+
right: 16px;
|
|
63
|
+
}
|
|
64
|
+
&.toast-horizontal-center {
|
|
65
|
+
left: 50%;
|
|
66
|
+
width: var(--f7-toast-max-width);
|
|
67
|
+
margin-left: calc(-1 * var(--f7-toast-max-width) / 2);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
.toast-button {
|
|
72
|
+
.ltr({
|
|
73
|
+
margin-left: 16px;
|
|
74
|
+
margin-right: calc(-1 * var(--f7-button-padding-horizontal));
|
|
75
|
+
});
|
|
76
|
+
.rtl({
|
|
77
|
+
margin-right: 16px;
|
|
78
|
+
margin-left: calc(-1 * var(--f7-button-padding-horizontal));
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
.md {
|
|
2
|
+
.toast {
|
|
3
|
+
transition-duration: 200ms;
|
|
4
|
+
border-radius: var(--f7-toast-border-radius);
|
|
5
|
+
width: calc(100% - 16px);
|
|
6
|
+
transform: scale(0.9);
|
|
7
|
+
left: 8px;
|
|
8
|
+
&.modal-in {
|
|
9
|
+
transform: scale(1);
|
|
10
|
+
}
|
|
11
|
+
&.modal-out {
|
|
12
|
+
transform: scale(1);
|
|
13
|
+
}
|
|
14
|
+
&.toast-top {
|
|
15
|
+
top: 8px;
|
|
16
|
+
}
|
|
17
|
+
&.toast-center {
|
|
18
|
+
left: 50%;
|
|
19
|
+
width: auto;
|
|
20
|
+
transform: scale(0.9) translate3d(-55%, -55%, 0);
|
|
21
|
+
&.modal-in {
|
|
22
|
+
transform: scale(1) translate3d(-50%, -50%, 0);
|
|
23
|
+
}
|
|
24
|
+
&.modal-out {
|
|
25
|
+
transform: scale(1) translate3d(-50%, -50%, 0);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
&.toast-bottom {
|
|
29
|
+
bottom: calc(8px + var(--f7-safe-area-bottom));
|
|
30
|
+
}
|
|
31
|
+
// 568 + 16
|
|
32
|
+
@media (min-width: 584px) {
|
|
33
|
+
left: 50%;
|
|
34
|
+
margin-left: calc(-1 * var(--f7-toast-max-width) / 2);
|
|
35
|
+
&.toast-center {
|
|
36
|
+
margin-left: 0;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
@media (min-width: 1024px) {
|
|
40
|
+
margin-left: 0;
|
|
41
|
+
width: auto;
|
|
42
|
+
&.toast-horizontal-left {
|
|
43
|
+
left: 24px;
|
|
44
|
+
}
|
|
45
|
+
&.toast-horizontal-right {
|
|
46
|
+
left: auto;
|
|
47
|
+
right: 24px;
|
|
48
|
+
}
|
|
49
|
+
&.toast-horizontal-center {
|
|
50
|
+
left: 50%;
|
|
51
|
+
width: var(--f7-toast-max-width);
|
|
52
|
+
margin-left: calc(-1 * var(--f7-toast-max-width) / 2);
|
|
53
|
+
}
|
|
54
|
+
&.toast-bottom {
|
|
55
|
+
bottom: calc(24px + var(--f7-safe-area-bottom));
|
|
56
|
+
}
|
|
57
|
+
&.toast-top {
|
|
58
|
+
top: 24px;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
.toast-button {
|
|
63
|
+
.ltr({
|
|
64
|
+
margin-left: 16px;
|
|
65
|
+
margin-right: -8px;
|
|
66
|
+
});
|
|
67
|
+
.rtl({
|
|
68
|
+
margin-right: 16px;
|
|
69
|
+
margin-left: -8px;
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:root{--f7-toast-font-size:14px;--f7-toast-icon-size:48px;--f7-toast-max-width:568px}.ios{--f7-toast-text-color:#fff;--f7-toast-bg-color:rgba(0, 0, 0, 0.75);--f7-toast-bg-color-rgb:0,0,0;--f7-toast-padding-horizontal:16px;--f7-toast-padding-vertical:12px;--f7-toast-border-radius:8px;--f7-toast-button-min-width:64px}.md{--f7-toast-padding-horizontal:24px;--f7-toast-padding-vertical:14px;--f7-toast-border-radius:16px;--f7-toast-button-min-width:64px}.md,.md .dark,.md [class*=color-]{--f7-toast-text-color:var(--f7-md-on-surface);--f7-toast-bg-color:var(--f7-md-surface-5)}.toast{transition-property:transform,opacity;position:absolute;max-width:var(--f7-toast-max-width);z-index:20000;color:var(--f7-toast-text-color);font-size:var(--f7-toast-font-size);box-sizing:border-box;background-color:var(--f7-toast-bg-color);opacity:0}@supports ((-webkit-backdrop-filter:blur(20px)) or (backdrop-filter:blur(20px))){.ios-translucent-modals .toast{background-color:rgba(var(--f7-toast-bg-color-rgb),.8);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px)}}.toast.modal-in{opacity:1}.toast .toast-content{display:flex;justify-content:space-between;align-items:center;box-sizing:border-box;padding:var(--f7-toast-padding-vertical) var(--f7-toast-padding-horizontal)}.toast .toast-text{line-height:20px;flex-shrink:1;min-width:0}.toast .toast-button{flex-shrink:0;min-width:var(--f7-toast-button-min-width);margin-top:-8px;margin-bottom:-8px}.toast.toast-with-icon .toast-content{display:block;text-align:center}.toast.toast-with-icon .toast-text{text-align:center}.toast.toast-with-icon .toast-icon .f7-icons,.toast.toast-with-icon .toast-icon .material-icons{font-size:var(--f7-toast-icon-size)}.toast.toast-center{top:50%}.toast.toast-top{margin-top:var(--f7-safe-area-top)}.ios .toast{transition-duration:.3s;width:100%;left:0}.ios .toast.toast-top{top:0;transform:translate3d(0,-100%,0)}.ios .toast.toast-top.modal-in{transform:translate3d(0,0%,0)}.ios .toast.toast-center{width:auto;left:50%;border-radius:var(--f7-toast-border-radius);transform:translate3d(-50%,-50%,0)}.ios .toast.toast-center.modal-in{transform:translate3d(-50%,-50%,0)}.ios .toast.toast-bottom{bottom:0;transform:translate3d(0,100%,0)}.ios .toast.toast-bottom.modal-in{transform:translate3d(0,0%,0)}@media (max-width:568px){.ios .toast.toast-top{margin-top:0}.ios .toast.toast-top .toast-content{padding-top:calc(var(--f7-toast-padding-vertical) + var(--f7-safe-area-top))}.ios .toast.toast-bottom .toast-content{padding-bottom:calc(var(--f7-toast-padding-vertical) + var(--f7-safe-area-bottom))}}@media (min-width:569px){.ios .toast{left:50%;margin-left:calc(-1 * var(--f7-toast-max-width)/ 2);border-radius:var(--f7-toast-border-radius)}.ios .toast.toast-top{top:16px}.ios .toast.toast-center{margin-left:0}.ios .toast.toast-bottom{margin-bottom:calc(16px + var(--f7-safe-area-bottom))}}@media (min-width:1024px){.ios .toast{margin-left:0;width:auto}.ios .toast.toast-horizontal-left{left:16px}.ios .toast.toast-horizontal-right{left:auto;right:16px}.ios .toast.toast-horizontal-center{left:50%;width:var(--f7-toast-max-width);margin-left:calc(-1 * var(--f7-toast-max-width)/ 2)}}.ios .toast-button{margin-right:16px;margin-left:calc(-1 * var(--f7-button-padding-horizontal))}.md .toast{transition-duration:.2s;border-radius:var(--f7-toast-border-radius);width:calc(100% - 16px);transform:scale(.9);left:8px}.md .toast.modal-in{transform:scale(1)}.md .toast.modal-out{transform:scale(1)}.md .toast.toast-top{top:8px}.md .toast.toast-center{left:50%;width:auto;transform:scale(.9) translate3d(-55%,-55%,0)}.md .toast.toast-center.modal-in{transform:scale(1) translate3d(-50%,-50%,0)}.md .toast.toast-center.modal-out{transform:scale(1) translate3d(-50%,-50%,0)}.md .toast.toast-bottom{bottom:calc(8px + var(--f7-safe-area-bottom))}@media (min-width:584px){.md .toast{left:50%;margin-left:calc(-1 * var(--f7-toast-max-width)/ 2)}.md .toast.toast-center{margin-left:0}}@media (min-width:1024px){.md .toast{margin-left:0;width:auto}.md .toast.toast-horizontal-left{left:24px}.md .toast.toast-horizontal-right{left:auto;right:24px}.md .toast.toast-horizontal-center{left:50%;width:var(--f7-toast-max-width);margin-left:calc(-1 * var(--f7-toast-max-width)/ 2)}.md .toast.toast-bottom{bottom:calc(24px + var(--f7-safe-area-bottom))}.md .toast.toast-top{top:24px}}.md .toast-button{margin-right:16px;margin-left:-8px}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--f7-toast-font-size: 14px;
|
|
3
|
+
--f7-toast-icon-size: 48px;
|
|
4
|
+
--f7-toast-max-width: 568px;
|
|
5
|
+
}
|
|
6
|
+
.ios-vars({
|
|
7
|
+
--f7-toast-text-color: #fff;
|
|
8
|
+
--f7-toast-bg-color: rgba(0,0,0,0.75);
|
|
9
|
+
--f7-toast-bg-color-rgb: 0, 0, 0;
|
|
10
|
+
--f7-toast-padding-horizontal: 16px;
|
|
11
|
+
--f7-toast-padding-vertical: 12px;
|
|
12
|
+
--f7-toast-border-radius: 8px;
|
|
13
|
+
--f7-toast-button-min-width: 64px;
|
|
14
|
+
});
|
|
15
|
+
.md-vars({
|
|
16
|
+
--f7-toast-padding-horizontal: 24px;
|
|
17
|
+
--f7-toast-padding-vertical: 14px;
|
|
18
|
+
--f7-toast-border-radius: 16px;
|
|
19
|
+
--f7-toast-button-min-width: 64px;
|
|
20
|
+
});
|
|
21
|
+
.md-color-vars({
|
|
22
|
+
--f7-toast-text-color: var(--f7-md-on-surface);
|
|
23
|
+
--f7-toast-bg-color: var(--f7-md-surface-5);
|
|
24
|
+
});
|