Advertisement
Guest User

Untitled

a guest
Feb 19th, 2019
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.86 KB | None | 0 0
  1. <div class="wrapper">
  2. <h1>
  3. UISwitch II
  4. <small>A pure CSS3 switch-style checkbox</small>
  5. </h1>
  6.  
  7. <section id="fields" class="fields section">
  8. <h2>Styles</h2>
  9. <div class="fields__item">
  10. <input type="checkbox" class="uiswitch">
  11. <h6>Off (unchecked)</h6>
  12. </div>
  13. <div class="fields__item">
  14. <input type="checkbox" class="uiswitch" checked>
  15. <h6>On (checked)</h6>
  16. </div>
  17.  
  18. <div class="fields__item">
  19. <input type="checkbox" class="uiswitch" disabled>
  20. <h6>Disabled Off</h6>
  21. </div>
  22.  
  23. <div class="fields__item">
  24. <input type="checkbox" class="uiswitch" checked disabled>
  25. <h6>Disabled On</h6>
  26. </div>
  27.  
  28. <div class="fields__item">
  29. <input type="checkbox" class="uiswitch custom">
  30. <h6>Custom</h6>
  31. </div>
  32.  
  33. <div class="fields__item">
  34. <input type="checkbox" class="uiswitch my-switch">
  35. <h6>Custom</h6>
  36. </div>
  37. </section>
  38.  
  39. <section id="fields" class="fields section">
  40. <h2>Sizes</h2>
  41. <div class="fields__item">
  42. <input type="checkbox" class="uiswitch uiswitch--large">
  43. <h6>Large</h6>
  44. </div>
  45. <div class="fields__item">
  46. <input type="checkbox" class="uiswitch uiswitch--medium" checked>
  47. <h6>Medium</h6>
  48. </div>
  49. <div class="fields__item">
  50. <input type="checkbox" class="uiswitch uiswitch--small">
  51. <h6>Small</h6>
  52. </div>
  53. <div class="fields__item">
  54. <input type="checkbox" class="uiswitch uiswitch--tiny">
  55. <h6>Tiny</h6>
  56. </div>
  57. </section>
  58.  
  59. <section id="usage" class="section">
  60. <p>In just a single line!</p>
  61. <pre><code><input type="checkbox" class="uiswitch"></code></pre>
  62. <p>Use SCSS to customize and create your own</p>
  63. <pre><code>import 'uiswitch';
  64. $uiswitch-active-tint: #bada55;
  65.  
  66. .my-switch {
  67. @extend ui-switch($size: 50px, $on-tint: hotpink);
  68. }
  69. </code></pre>
  70. </section>
  71. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement