Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shared/style/input_areas/index.html
blob: 20eafa4d6beacd1a3ecb4d2c1cb2911c59fcf0c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<!DOCTYPE html>
<html dir="ltr">
<head>
  <meta charset="utf-8">

  <title>Input areas</title>
  <link rel="stylesheet" href="../input_areas.css">

  <!--
    This <style> and <link> is only used for the example code, is no needed for the real case use
  -->
  <style>
    html, body {
      margin: 0;
      padding: 0;
      font-size: 10px;
      background-color: #fff;
    }
    body { background: none; }
    h2.bb-docs {
      padding: 0.4rem 3rem;
      margin: -0.1rem 0 0;
      border: solid 0.1rem #e8e8e8;
      color: #666;
      font-size: 1.8rem;
      font-family: "MozTT", Sans-serif;
      font-weight: lighter;
      background-color: #f5f5f5;
    }
   form { margin: 1rem 2rem; }
  </style>
</head>

<body role="application">

    <h2 class="bb-docs">Default inputs</h2>
    <form>
      <p>
        <input type="text" placeholder="Placeholder" required>
        <button type="reset">Clear</button>
      </p>

      <p>
        <textarea placeholder="Placeholder in textarea" required></textarea>
        <button type="reset">Clear</button>
      </p>

      <p>
        <input type="text" placeholder="Placeholder" value="Some written text" required>
        <button type="reset">Clear</button>
      </p>
    </form>

    <h2 class="bb-docs">Fieldset</h2>
     <form>
      <fieldset>
        <legend class="action">Mobile</legend>
        <section>
          <p>
            <input type="tel" placeholder="Phone number" required>
            <button type="reset">Clear</button>
          </p>
          <p>
            <input type="text" placeholder="Name" value="Jessy James" required>
            <button type="reset">Clear</button>
          </p>
        </section>
      </fieldset>

      <fieldset>
        <legend>Work</legend>
        <section>
          <p>
            <input type="tel" placeholder="Email" required>
            <button type="reset">Clear</button>
          </p>
        </section>
      </fieldset>
     </form>

    <h2 class="bb-docs">Input forms</h2>

    <!-- form used at the top of the page with fixed/absolute position and content scrolls underneath -->
    <form role="search">
      <button type="submit">Cancel</button>
      <p>
        <input type="text" placeholder="search term here..." required>
        <button type="reset">Clear</button>
      </p>
    </form>

    <!-- form used under a header, this form scrolls together with the content underneath the header -->
    <section role="region"> 
      <header>
          <!-- here should be the content of the header -->
      </header>
      <form role="search" class="full">
        <button type="submit">Send</button>
        <p>
          <input type="text" placeholder="search term here..." required>
          <button type="reset">Clear</button>
        </p>
      </form>
    </section>

    <form role="search" class="bottom">
      <button type="submit">Send</button>
      <p>
        <input type="text" required>
        <button type="reset">Clear</button>
      </p>
    </form>

    <form role="search" class="bottom">
      <button type="submit">Send</button>
      <p>
        <textarea placeholder="Placeholder in textarea" required></textarea>
        <button type="reset">Clear</button>
      </p>
    </form>

</body>
</html>