mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
feature(keyboard): .hide-on-keyboard-open
By default no elements will be hidden when the keyboard shows. However, you add the CSS class `hide-on-keyboard-open` to set elements which should hide when the keyboard is open, such as the footer so there’s more space for the content when the keyboard is open.
This commit is contained in:
@@ -25,16 +25,13 @@
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
.keyboard-open,
|
||||
.footer-hide {
|
||||
.bar-footer,
|
||||
.tabs {
|
||||
display: none;
|
||||
}
|
||||
.has-footer,
|
||||
.has-tabs {
|
||||
bottom: 0;
|
||||
}
|
||||
.keyboard-open .hide-on-keyboard-open {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.keyboard-open .tabs.hide-on-keyboard-open + .pane .has-tabs,
|
||||
.keyboard-open .bar-footer.hide-on-keyboard-open + .pane .has-footer {
|
||||
bottom: 0;
|
||||
}
|
||||
|
||||
.inline {
|
||||
|
||||
Reference in New Issue
Block a user