html body { margin-top: 50px !important; } .jsdfjhdsgjfhdgshf{ position:fixed; width:30px; height:30px; bottom:20px; right:20px; background-color:#0C9; color:#FFF; border-radius:50px; text-align:center; box-shadow: 2px 2px 3px #999; } .my-float{ margin-top:22px; } #top_form { position: fixed; top:0; left:0; width: 100%; margin:0; z-index: 2100000000; -moz-user-select: none; -khtml-user-select: none; -webkit-user-select: none; -o-user-select: none; border-bottom:1px solid #151515; background:#369eab; height:45px; line-height:45px; background-color:#369eab; } #top_form input[name=url] { width: 550px; height: 20px; padding: 5px; font: 13px "Helvetica Neue",Helvetica,Arial,sans-serif; border: 0px none; background: none repeat scroll 0% 0% #FFF; }

Thanks to visit codestin.com
Credit goes to www.tutorialspoint.com

will have additional generated classes as shown below which uses the with-panel-[position]-[effect] rule.">

Framework7 - Panel Is Opened?



Description

We can determine whether a panel is opened or not. Whenever some panel is opened, the <body> will have additional generated classes as shown below which uses the with-panel-[position]-[effect] rule.

  • When you have left panel opened with cover effect, the body will have with-panel-left-cover class.

  • When you have left panel opened with reveal effect, the body will have with-panel-left-reveal class.

  • When you have right panel opened with cover effect, the body will have with-panel-right-cover class.

  • When you have right panel opened with reveal effect, the body will have with-panel-right-reveal class.

You can use it in JavaScript or in CSS to detect an opened panel as shown below −

In JavaScript

if ($$('body').hasClass('with-panel-left-cover')) {
   console.log('Left Panel is opened')
}

In CSS

body.with-panel-left-cover .statusbar-overlay {
   background-color: #333;
}

This will change the status bar background when the panel is opened.

framework7_side_panels.htm
Advertisements