index.html 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Drawer</title>
  6. <meta name="description" content="Hidden menu options triggered by the menu button in the header">
  7. <link rel="stylesheet" href="../../style/headers.css">
  8. <link rel="stylesheet" href="../drawer.css">
  9. <!--
  10. This <style> and <link> is only used for the example code, is no needed for the real case use
  11. -->
  12. <style>
  13. html, body {
  14. margin: 0;
  15. padding: 0;
  16. font-size: 10px;
  17. background-color: #fff;
  18. height: 100%;
  19. overflow-x: hidden;
  20. }
  21. h2.bb-docs {
  22. font-size: 1.8rem;
  23. font-weight: lighter;
  24. color: #666;
  25. margin: -0.1rem 0 0;
  26. background-color: #f5f5f5;
  27. padding: 0.4rem 0.4rem 0.4rem 3rem;
  28. border: solid 0.1rem #e8e8e8;
  29. }
  30. section[role="region"] {
  31. height: 100%;
  32. line-height: 1em;
  33. font-size: 2.2rem;
  34. }
  35. div[role="main"] {
  36. background: #fff;
  37. height: calc(100% - 5rem);
  38. overflow: hidden;
  39. }
  40. div[role="main"] p {
  41. margin: 2rem 2.5rem;
  42. }
  43. /* Base icons */
  44. section[data-type="sidebar"] > header .icon.icon-add {
  45. background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA2hpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYxIDY0LjE0MDk0OSwgMjAxMC8xMi8wNy0xMDo1NzowMSAgICAgICAgI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9AXmU+B+CyVgvrFaJE5avGoxQNSZBICzEBsAGVfAOK/9LJ4NI5HLSYIAAIMAKfZJ7+0GO5HAAAAAElFTkSuQmCC);
  46. }
  47. </style>
  48. </head>
  49. <body role="application">
  50. <section data-type="sidebar">
  51. <header>
  52. <menu type="toolbar">
  53. <a href="#"><span class="icon icon-add">add</span></a>
  54. </menu>
  55. <h1>Title <em>(9)</em></h1>
  56. </header>
  57. <nav>
  58. <ul>
  59. <li><a href="#">label</a></li>
  60. <li><a href="#">label</a></li>
  61. <li><a href="#">label</a></li>
  62. <li><a href="#">label</a></li>
  63. </ul>
  64. <h2>Subtitle</h2>
  65. <ul>
  66. <li><a href="#">label</a></li>
  67. <li><a href="#">label</a></li>
  68. <li><a href="#">label larger label than the </a></li>
  69. <li><a href="#">label</a></li>
  70. </ul>
  71. </nav>
  72. </section>
  73. <section id="drawer" role="region">
  74. <header>
  75. <a href="#"><span class="icon icon-menu">hide sidebar</span></a>
  76. <a href="#drawer"><span class="icon icon-menu">show sidebar</span></a>
  77. <h1>Inbox</h1>
  78. </header>
  79. <div role="main"></div>
  80. </section>
  81. </body>
  82. </html>