From b2d3c9bb46733227046f00a68213a0fc27422f4b Mon Sep 17 00:00:00 2001 From: Yan Zhu Date: Wed, 18 Oct 2017 16:06:15 +0800 Subject: Rewrite Off-canvas example and code --- docs/experimentals.html | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) (limited to 'docs/experimentals.html') diff --git a/docs/experimentals.html b/docs/experimentals.html index e24a8f8..72e6d8a 100644 --- a/docs/experimentals.html +++ b/docs/experimentals.html @@ -754,24 +754,18 @@
- - -
+ + +

Lorem ipsum

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent risus leo, dictum in vehicula sit amet, feugiat tempus tellus. Duis quis sodales risus. Etiam euismod ornare consequat.

Climb leg rub face on everything give attitude nap all day for under the bed. Chase mice attack feet but rub face on everything hopped up on goofballs.

-

Cupcake ipsum

-

Jelly-o sesame snaps halvah croissant oat cake cookie. Cheesecake bear claw topping. Chupa chups apple pie carrot cake chocolate cake caramels.

-

De braaaiiiins apocalypsi gorger omero prefrontal cortex undead survivor fornix dictum mauris. Hi brains mindless mortuis limbic cortex soulless creaturas optic nerve.

-

Candy ipsum

-

Efficiently unleash cross-media information without cross-media value. Quickly maximize timely deliverables for real-time schemas. Dramatically maintain clicks-and-mortar.

-

Caerphilly swiss fromage frais. Brie cheese and wine fromage frais chalk and cheese danish fontina smelly cheese who moved my cheese cow.

@@ -780,15 +774,17 @@
<div class="off-canvas">
-  <input type="checkbox" class="off-canvas-checkbox" id="sidebar-checkbox" name="sidebar-checkbox" hidden>
-  <!-- off-screen toggle button and close mask -->
-  <label class="off-canvas-toggle btn btn-primary btn-lg" for="sidebar-checkbox">
+  <!-- off-screen toggle button -->
+  <a class="off-canvas-toggle btn btn-primary btn-action" href="#sidebar-id">
     <i class="icon icon-menu"></i>
-  </label>
+  </a>
 
-  <div class="off-canvas-sidebar">
+  <div id="sidebar-id" class="off-canvas-sidebar">
     <!-- off-screen sidebar -->
   </div>
+
+  <a class="off-canvas-overlay" href="#close"></a>
+
   <div class="off-canvas-content">
     <!-- off-screen content -->
   </div>
-- 
cgit v1.3.1-23-gd82d