Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shared/style/switches/index.html
blob: c91c134b472f70c6667a0599e575702f294b66b3 (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
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>Switches</title>
  <meta name="description" content="Activates/Deactivates a given item. It's also used to select an element within a list">
  <link rel="stylesheet" href="../switches.css">
  <!--
    - This <style> element is only used for the example code;
    - it is not required for the real use case.
    -->
  <style type="text/css">
    html, body {
      margin: 0;
      padding: 0;
      font-size: 10px;
      background-color: #fff;
    }
    body {
      background: none;
    }
    h2.bb-docs {
      font-size: 1.8rem;
      font-family: "MozTT", Sans-serif;
      font-weight: lighter;
      color: #666;
      margin: -1px 0 0;
      background-color: #f5f5f5;
      padding: 0.4rem 0.4rem 0.4rem 3rem;
      border: solid 1px #e8e8e8;
    }
  </style>
</head>
<body role="application">

  <h2 class="bb-docs">Checkbox, commonly used in edit mode</h2>
  <label>
    <input type="checkbox" checked>
    <span></span>
  </label>

  <label>
    <input type="checkbox">
    <span></span>
  </label>

  <label class="danger">
    <input type="checkbox" checked>
    <span></span>
  </label>

  <label class="danger">
    <input type="checkbox">
    <span></span>
  </label>

  <h2 class="bb-docs">Radio, commonly used in settings</h2>
  <label>
    <input type="radio" name="example" checked>
    <span></span>
  </label>

  <label>
    <input type="radio" name="example">
    <span></span>
  </label>

  <label class="danger">
    <input type="radio" name="example2" checked>
    <span></span>
  </label>

  <label class="danger">
    <input type="radio" name="example2">
    <span></span>
  </label>

  <h2 class="bb-docs">Switch, commonly used in settings</h2>
  <label>
    <input type="checkbox" data-type="switch" checked>
    <span></span>
  </label>

  <label>
    <input type="checkbox" data-type="switch">
    <span></span>
  </label>
</body>
</html>