diff --git a/demo.css b/demo.css
index 3894dbc..029775f 100644
--- a/demo.css
+++ b/demo.css
@@ -1,40 +1,47 @@
-.wrapper{
- max-width: 678px;
- margin:auto;
+.wrapper {
+ max-width: 678px;
+ margin: auto;
}
pre {
border-left: 0.3rem solid #4039ff;
}
-body{
- background:#f2f2f2;
+
+body {
+ background: #f2f2f2;
}
-.push_left{
- margin-left: 6px;
+.push_left {
+ margin-left: 6px;
}
-.push_right{
- margin-right: 6px;
+
+.push_right {
+ margin-right: 6px;
}
-code,xmp{
- white-space: normal !important;
+
+code,
+xmp {
+ white-space: normal !important;
}
-textarea{
+
+textarea {
margin-bottom: 0px;
min-height: 200px;
line-height: 1;
}
-.close{
+.close {
width: 20px;
height: 21px;
position: relative;
display: inline-block;
vertical-align: text-bottom;
text-align: center;
- cursor:pointer;
+ cursor: pointer;
}
-.close:before, .close:after {
+
+.close:before,
+.close:after {
position: absolute;
left: 10px;
content: ' ';
@@ -42,51 +49,56 @@ textarea{
width: 3px;
background-color: #fff;
}
+
.close:before {
- transform: rotate(45deg);
+ transform: rotate(45deg);
}
+
.close:after {
- transform: rotate(-45deg);
+ transform: rotate(-45deg);
}
-
-.card{
- margin:20px;
+.card {
+ margin: 20px;
border-radius: 5px;
- background:#fff;
- box-shadow:0px 0px 20px rgba(0, 0, 0, 0.1)
+ background: #fff;
+ box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1)
}
-.card_title,.title,.pushbar{
+
+.card_title,
+.title,
+.pushbar {
background: #4039ff;
color: #fff;
}
-.card_title,.title{
- padding: 15px 20px;
+.card_title,
+.title {
+ padding: 15px 20px;
font-weight: bold;
}
-.card_title{
-border-radius: 4px 4px 0px 0px;
-}
-.card_content{
- padding: 15px;
-}
-a.button.getBtn{
-margin-top: 16px;background-color:#fff;color:#4039ff;border-color: #fff;
-}
-
-
+.card_title {
+ border-radius: 4px 4px 0px 0px;
+}
-.pushbar{
+.card_content {
+ padding: 15px;
+}
+a.button.getBtn {
+ margin-top: 16px;
+ background-color: #fff;
+ color: #4039ff;
+ border-color: #fff;
}
-.small{
-font-size: 14px;
-font-weight: 400;
+.small {
+ font-size: 14px;
+ font-weight: 400;
}
-.menu li{
+
+.menu li {
list-style: none;
padding: 15px 20px;
border-top: 1px solid rgba(255, 255, 255, 0.2);
@@ -95,7 +107,11 @@ font-weight: 400;
color: rgba(255, 255, 255, 0.65);
}
-.button, button, input[type='button'], input[type='reset'], input[type='submit'] {
+.button,
+button,
+input[type='button'],
+input[type='reset'],
+input[type='submit'] {
background-color: #4039ff;
border: 0.1rem solid #4039ff;
-}
\ No newline at end of file
+}
diff --git a/index.html b/index.html
index 7422d0c..6d5f5d1 100644
--- a/index.html
+++ b/index.html
@@ -1,18 +1,16 @@
+
Pushbar.js demo
-
-
-
-
-
-
-
+
+
+
+
@@ -21,79 +19,86 @@
+
-
-
-
-
-
- Pushbar.js
-
-
Pushbar.js is a tiny javascript plugin for creating sliding drawers in web apps
-
It is fully customizable and dependency free.You can use it as sidebar menus or option drawers.
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+ Pushbar.js
+
+
Pushbar.js is a tiny javascript plugin for creating sliding drawers in web apps
+
It is fully customizable and dependency free.You can use it as sidebar menus or option drawers.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Installation
-
- Add the pushbar.css file to the head of your html.
- Add the pushbar.js file to the head of your html or right before the closing body tag.
- Add this code after the pushbar.js script tag to initialize the plugin.
-
+
-
-
+
@@ -127,7 +132,7 @@
-
@@ -147,13 +152,13 @@
Options
-
+
- blur : set it to true for blur effect on the main content (Default:false)
- overlay : set it to true for dark overlay effect on the main content (Default:true)
-
+
@@ -164,18 +169,18 @@
Open and close pushbar with api
-
+
@@ -186,38 +191,41 @@
'pushbar_opening': when a pushbar is opening, that pushbar element will emit this event.
'pushbar_closing': when a pushbar is closing, that pushbar element will emit this event.
-
+
-
-
+
+
+
-
-
-
-
-
-
+
+
+
+
-
\ No newline at end of file
+
+