index.html 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Switches</title>
  6. <meta name="description" content="Activates/Deactivates a given item. It's also used to select an element within a list">
  7. <link rel="stylesheet" href="../switches.css">
  8. <!--
  9. - This <style> element is only used for the example code;
  10. - it is not required for the real use case.
  11. -->
  12. <style type="text/css">
  13. html, body {
  14. margin: 0;
  15. padding: 0;
  16. font-size: 10px;
  17. background-color: #fff;
  18. }
  19. body {
  20. background: none;
  21. }
  22. h2.bb-docs {
  23. font-size: 1.8rem;
  24. font-weight: lighter;
  25. color: #666;
  26. margin: -1px 0 0;
  27. background-color: #f5f5f5;
  28. padding: 0.4rem 0.4rem 0.4rem 3rem;
  29. border: solid 1px #e8e8e8;
  30. }
  31. label {
  32. margin-left: 2rem;
  33. }
  34. </style>
  35. </head>
  36. <body role="application">
  37. <p dir="ltr">
  38. <label>
  39. <input type="checkbox"
  40. onchange="document.documentElement.dir = this.checked ? 'rtl' : 'ltr'">
  41. RTL mode
  42. </label>
  43. </p>
  44. <h2 class="bb-docs">Checkbox, commonly used in edit mode</h2>
  45. <label class="pack-checkbox">
  46. <input type="checkbox" checked>
  47. <span></span>
  48. </label>
  49. <label class="pack-checkbox">
  50. <input type="checkbox">
  51. <span></span>
  52. </label>
  53. <label class="pack-checkbox danger">
  54. <input type="checkbox" checked>
  55. <span></span>
  56. </label>
  57. <label class="pack-checkbox danger">
  58. <input type="checkbox">
  59. <span></span>
  60. </label>
  61. <h2 class="bb-docs">Radio, commonly used in settings</h2>
  62. <label class="pack-radio">
  63. <input type="radio" name="example" checked>
  64. <span></span>
  65. </label>
  66. <label class="pack-radio">
  67. <input type="radio" name="example">
  68. <span></span>
  69. </label>
  70. <label class="pack-radio danger">
  71. <input type="radio" name="example2" checked>
  72. <span></span>
  73. </label>
  74. <label class="pack-radio danger">
  75. <input type="radio" name="example2">
  76. <span></span>
  77. </label>
  78. <h2 class="bb-docs">Switch, commonly used in settings</h2>
  79. <label class="pack-switch">
  80. <input type="checkbox" checked>
  81. <span></span>
  82. </label>
  83. <label class="pack-switch">
  84. <input type="checkbox">
  85. <span></span>
  86. </label>
  87. </body>
  88. </html>