index.html 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. <!DOCTYPE html>
  2. <html dir="ltr">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Input areas</title>
  6. <link rel="stylesheet" href="../input_areas.css">
  7. <!--
  8. This <style> and <link> is only used for the example code, is no needed for the real case use
  9. -->
  10. <style>
  11. html, body {
  12. margin: 0;
  13. padding: 0;
  14. font-size: 10px;
  15. background-color: #fff;
  16. }
  17. body { background: none; }
  18. h2.bb-docs {
  19. padding: 0.4rem 3rem;
  20. margin: -0.1rem 0 0;
  21. border: solid 0.1rem #e8e8e8;
  22. color: #666;
  23. font-size: 1.8rem;
  24. font-weight: lighter;
  25. background-color: #f5f5f5;
  26. }
  27. form { margin: 1rem 2rem; }
  28. form[role="search"] button.icon-attachment:before {
  29. background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAv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HQt9RLPMlbKMe9KxElLVKqmqcnqNRLnOTz2TVW5MVQ5jHqCir1aq5zPvNM3sI7WEn3mDSU1Cuxaph9MEt0bYEFboUVRuqnq6fYPBl29bFYCduKUIn4720sjsWm6leAAQD4qmIfI9EPMQAAAABJRU5ErkJggg==);
  30. }
  31. </style>
  32. </head>
  33. <body role="application">
  34. <p dir="ltr">
  35. <label>
  36. <input type="checkbox"
  37. onchange="document.documentElement.dir = this.checked ? 'rtl' : 'ltr'">
  38. RTL mode
  39. </label>
  40. </p>
  41. <h2 class="bb-docs">Default inputs</h2>
  42. <form>
  43. <p>
  44. <input type="text" placeholder="Placeholder" required>
  45. <button type="reset">Clear</button>
  46. </p>
  47. <p>
  48. <textarea placeholder="Placeholder in textarea" required></textarea>
  49. </p>
  50. <p>
  51. <input type="text" placeholder="Placeholder" value="Some written text" required>
  52. <button type="reset">Clear</button>
  53. </p>
  54. </form>
  55. <h2 class="bb-docs">Fieldset</h2>
  56. <form>
  57. <fieldset>
  58. <legend class="action">Mobile</legend>
  59. <section>
  60. <p>
  61. <input type="tel" placeholder="Phone number" required>
  62. <button type="reset">Clear</button>
  63. </p>
  64. <p>
  65. <input type="text" placeholder="Name" value="Jessy James" required>
  66. <button type="reset">Clear</button>
  67. </p>
  68. </section>
  69. </fieldset>
  70. <fieldset>
  71. <legend>Work</legend>
  72. <section>
  73. <p>
  74. <input type="tel" placeholder="Email" required>
  75. <button type="reset">Clear</button>
  76. </p>
  77. </section>
  78. </fieldset>
  79. </form>
  80. <h2 class="bb-docs">Forms: Input text</h2>
  81. <form role="search">
  82. <p>
  83. <input type="text" placeholder="Search..." required>
  84. <button type="reset">Clear</button>
  85. </p>
  86. </form>
  87. <form role="search">
  88. <button type="submit">Cancel</button>
  89. <p>
  90. <input type="text" placeholder="Search..." required value="Some text here">
  91. <button type="reset">Clear</button>
  92. </p>
  93. </form>
  94. <form role="search" class="skin-dark">
  95. <p>
  96. <input type="text" placeholder="Search..." required>
  97. <button type="reset">Clear</button>
  98. </p>
  99. </form>
  100. <form role="search" class="skin-dark">
  101. <button type="submit">Cancel</button>
  102. <p>
  103. <input type="text" placeholder="Search..." required value="Some text here">
  104. <button type="reset">Clear</button>
  105. </p>
  106. </form>
  107. <h2 class="bb-docs">Forms: Text area</h2>
  108. <form role="search" class="bottom">
  109. <!-- this button should be enabled after start typing in the input field-->
  110. <button type="submit" disabled>Send</button>
  111. <p>
  112. <textarea required></textarea>
  113. </p>
  114. </form>
  115. <form role="search" class="bottom">
  116. <button class="icon icon-attachment">Attachment</button>
  117. <button type="submit">Send</button>
  118. <p>
  119. <textarea required>Some text here</textarea>
  120. </p>
  121. </form>
  122. </body>
  123. </html>