Skip to content

Commit

Permalink
5.4.5 release
Browse files Browse the repository at this point in the history
  • Loading branch information
nolimits4web committed Feb 21, 2020
1 parent 601e395 commit 748731f
Show file tree
Hide file tree
Showing 86 changed files with 637 additions and 314 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@

# Change Log

# [v5.4.5](https://github.com/framework7io/framework7/compare/v5.4.2...v5.4.5) - February 21, 2020
* Core
* FAB (Floatin Action Button)
* Now it supports backdrop, by adding `<div clas="fab-backdrop"></div>` element on same level as FAB element
* Page
* Added custom CSS properties for custom transitions durations: `--f7-page-parallax-transition-duration`, `--f7-page-cover-transition-duration`, `--f7-page-dive-transition-duration`, `--f7-page-fade-transition-duration`, `--f7-page-flip-transition-duration`, `--f7-page-push-transition-duration`
* Preloader
* New methods `app.preloader.showIn(el, color)` and `app.preloader.hideIn(el)` to show/hide preloader overlay in specific element
* Request
* Now it uses "native" XHR timeout
* React, Vue, Svelte
* Added `<FabBackdrop />` component
* Minor fixes

# [v5.4.2](https://github.com/framework7io/framework7/compare/v5.4.1...v5.4.2) - February 16, 2020
* Core
* Card
Expand Down
2 changes: 1 addition & 1 deletion packages/core/components/actions.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/core/components/actions.rtl.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions packages/core/components/actions/actions.less
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
max-height: 100%;
.scrollable();
transition-property: transform;
will-change: transform;
&.modal-in, &.modal-out {
transition-duration: 300ms;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/core/components/dialog.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/core/components/dialog.rtl.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions packages/core/components/dialog/dialog.less
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
color: var(--f7-dialog-text-color);
font-size: var(--f7-dialog-font-size);
background: var(--f7-dialog-bg-color);
will-change: transform, opacity;
.ios-translucent-modals(var(--f7-dialog-bg-color-rgb));
&.modal-in {
opacity: 1;
Expand Down
2 changes: 1 addition & 1 deletion packages/core/components/fab.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/core/components/fab.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/core/components/fab.rtl.css

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions packages/core/components/fab/fab.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ const Fab = {
} else {
$fabEl.addClass('fab-opened');
}
$fabEl.siblings('.fab-backdrop').addClass('backdrop-in');
$fabEl.trigger('fab:open');
},
close(fabEl = '.fab-opened') {
Expand All @@ -165,6 +166,7 @@ const Fab = {
} else {
$fabEl.removeClass('fab-opened');
}
$fabEl.siblings('.fab-backdrop').removeClass('backdrop-in');
$fabEl.trigger('fab:close');
},
toggle(fabEl) {
Expand Down Expand Up @@ -203,5 +205,9 @@ export default {
const app = this;
app.fab.close(data.fab);
},
'.fab-backdrop': function close() {
const app = this;
app.fab.close();
},
},
};
4 changes: 3 additions & 1 deletion packages/core/components/fab/fab.less
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/* === FAB === */
@import url('./fab-vars.less');

.fab-backdrop {
z-index: 1400;
}
.fab {
position: absolute;
z-index: 1500;
Expand Down
5 changes: 3 additions & 2 deletions packages/core/components/modal/modal.less
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
.popover-backdrop,
.popup-backdrop,
.preloader-backdrop,
.sheet-backdrop {
.sheet-backdrop,
.fab-backdrop {
.modal-backdrop();
}
}
1 change: 1 addition & 0 deletions packages/core/components/navbar/navbar.less
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@
box-sizing: border-box;
padding: var(--f7-safe-area-top) calc(var(--f7-navbar-inner-padding-right) + var(--f7-safe-area-right)) 0 calc(var(--f7-navbar-inner-padding-left) + var(--f7-safe-area-left));
transform: translate3d(0,0,0);
z-index: 10;
}
.views, .view, .page, .navbars {
> .navbar {
Expand Down
8 changes: 4 additions & 4 deletions packages/core/components/page/page-transitions/cover-v.less
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@
}
.router-transition-f7-cover-v-forward {
.page-next {
animation: f7-cover-v-next-to-current 450ms forwards;
animation: f7-cover-v-next-to-current var(--f7-page-cover-transition-duration) forwards;
}
.page-current {
animation: f7-cover-v-current-to-prev 450ms forwards;
animation: f7-cover-v-current-to-prev var(--f7-page-cover-transition-duration) forwards;
}
}
.router-transition-f7-cover-v-backward {
.page-current {
animation: f7-cover-v-current-to-next 450ms forwards;
animation: f7-cover-v-current-to-next var(--f7-page-cover-transition-duration) forwards;
}
.page-previous {
animation: f7-cover-v-prev-to-current 450ms forwards;
animation: f7-cover-v-prev-to-current var(--f7-page-cover-transition-duration) forwards;
}
}
@keyframes f7-cover-v-next-to-current {
Expand Down
8 changes: 4 additions & 4 deletions packages/core/components/page/page-transitions/cover.less
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@
}
.router-transition-f7-cover-forward {
.page-next {
animation: f7-cover-next-to-current 450ms forwards;
animation: f7-cover-next-to-current var(--f7-page-cover-transition-duration) forwards;
}
.page-current {
animation: f7-cover-current-to-prev 450ms forwards;
animation: f7-cover-current-to-prev var(--f7-page-cover-transition-duration) forwards;
}
}
.router-transition-f7-cover-backward {
.page-current {
animation: f7-cover-current-to-next 450ms forwards;
animation: f7-cover-current-to-next var(--f7-page-cover-transition-duration) forwards;
}
.page-previous {
animation: f7-cover-prev-to-current 450ms forwards;
animation: f7-cover-prev-to-current var(--f7-page-cover-transition-duration) forwards;
}
}
@keyframes f7-cover-next-to-current {
Expand Down
8 changes: 4 additions & 4 deletions packages/core/components/page/page-transitions/dive.less
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@
}
.router-transition-f7-dive-forward {
.page-next {
animation: f7-dive-next-to-current 500ms forwards;
animation: f7-dive-next-to-current var(--f7-page-dive-transition-duration) forwards;
}
.page-current {
animation: f7-dive-current-to-prev 500ms forwards;
animation: f7-dive-current-to-prev var(--f7-page-dive-transition-duration) forwards;
}
}
.router-transition-f7-dive-backward {
.page-current {
animation: f7-dive-current-to-next 500ms forwards;
animation: f7-dive-current-to-next var(--f7-page-dive-transition-duration) forwards;
}
.page-previous {
animation: f7-dive-prev-to-current 500ms forwards;
animation: f7-dive-prev-to-current var(--f7-page-dive-transition-duration) forwards;
}
}
@keyframes f7-dive-next-to-current {
Expand Down
8 changes: 4 additions & 4 deletions packages/core/components/page/page-transitions/fade.less
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@
.router-transition-f7-fade-forward {
.page-next {
opacity: 0 !important;
animation: f7-fade-in 500ms forwards;
animation: f7-fade-in var(--f7-page-fade-transition-duration) forwards;
}
.page-current {
animation: f7-fade-out 500ms forwards;
animation: f7-fade-out var(--f7-page-fade-transition-duration) forwards;
}
}
.router-transition-f7-fade-backward {
.page-current {
animation: f7-fade-out 500ms forwards;
animation: f7-fade-out var(--f7-page-fade-transition-duration) forwards;
}
.page-previous {
animation: f7-fade-in 500ms forwards;
animation: f7-fade-in var(--f7-page-fade-transition-duration) forwards;
}
}
@keyframes f7-fade-in {
Expand Down
8 changes: 4 additions & 4 deletions packages/core/components/page/page-transitions/flip.less
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@
}
.router-transition-f7-flip-forward {
.page-next {
animation: f7-flip-next-to-current 700ms forwards;
animation: f7-flip-next-to-current var(--f7-page-flip-transition-duration) forwards;
}
.page-current {
animation: f7-flip-current-to-prev 700ms forwards;
animation: f7-flip-current-to-prev var(--f7-page-flip-transition-duration) forwards;
}
}
.router-transition-f7-flip-backward {
.page-current {
animation: f7-flip-current-to-next 700ms forwards;
animation: f7-flip-current-to-next var(--f7-page-flip-transition-duration) forwards;
}
.page-previous {
animation: f7-flip-prev-to-current 700ms forwards;
animation: f7-flip-prev-to-current var(--f7-page-flip-transition-duration) forwards;
}
}
@keyframes f7-flip-next-to-current {
Expand Down
8 changes: 4 additions & 4 deletions packages/core/components/page/page-transitions/parallax.less
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
// f7-parallax
.router-transition-f7-parallax-forward {
.page-next {
animation: f7-parallax-next-to-current 500ms forwards;
animation: f7-parallax-next-to-current var(--f7-page-parallax-transition-duration) forwards;
}
.page-current {
animation: f7-parallax-current-to-prev 500ms forwards;
animation: f7-parallax-current-to-prev var(--f7-page-parallax-transition-duration) forwards;
}
}
.router-transition-f7-parallax-backward {
.page-current {
animation: f7-parallax-current-to-next 500ms forwards;
animation: f7-parallax-current-to-next var(--f7-page-parallax-transition-duration) forwards;
}
.page-previous {
animation: f7-parallax-prev-to-current 500ms forwards;
animation: f7-parallax-prev-to-current var(--f7-page-parallax-transition-duration) forwards;
}
}
@keyframes f7-parallax-next-to-current {
Expand Down
8 changes: 4 additions & 4 deletions packages/core/components/page/page-transitions/push.less
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
// f7-Push
.router-transition-f7-push-forward {
.page-next {
animation: f7-push-next-to-current 500ms forwards;
animation: f7-push-next-to-current var(--f7-page-push-transition-duration) forwards;
}
.page-current {
animation: f7-push-current-to-prev 500ms forwards;
animation: f7-push-current-to-prev var(--f7-page-push-transition-duration) forwards;
}
}
.router-transition-f7-push-backward {
.page-current {
animation: f7-push-current-to-next 500ms forwards;
animation: f7-push-current-to-next var(--f7-page-push-transition-duration) forwards;
}
.page-previous {
animation: f7-push-prev-to-current 500ms forwards;
animation: f7-push-prev-to-current var(--f7-page-push-transition-duration) forwards;
}
}
@keyframes f7-push-next-to-current {
Expand Down
6 changes: 6 additions & 0 deletions packages/core/components/page/page-vars.less
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
--f7-page-master-border-color: rgba(0,0,0,0.1);
--f7-page-master-border-width: 1px;
--f7-page-swipeback-transition-duration: 300ms;
--f7-page-parallax-transition-duration: 500ms;
--f7-page-cover-transition-duration: 450ms;
--f7-page-dive-transition-duration: 500ms;
--f7-page-fade-transition-duration: 500ms;
--f7-page-flip-transition-duration: 700ms;
--f7-page-push-transition-duration: 500ms;
/*
--f7-page-content-extra-padding-top: 0px;
--f7-page-content-extra-padding-bottom: 0px;
Expand Down

0 comments on commit 748731f

Please sign in to comment.