Summary Files Commits Branches @commit @diff @stats
path: root / docs / experimentals.html
blob: 8d5e8d43dc4de8915aa4998fc1b4102a13263c77 (plain) (blame)
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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8" />
  <meta name="robots" content="index, follow" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="author" content="https://github.com/picturepan2/" />
  <title>Experimentals - Spectre.css</title>
  <link rel="stylesheet" href="css/spectre.css" />
  <link rel="stylesheet" href="css/spectre-exp.css" />
  <link rel="stylesheet" href="css/docs.css" />
  <link rel="stylesheet" href="font/style.css" />
</head>
<body>
  <section class="section section-header bg-grey">
    <section class="grid-header container grid-960">
      <nav class="navbar">
        <section class="navbar-section">
          <a href="index.html" class="navbar-brand">Spectre.css</a>
          <a href="index.html" class="btn btn-link">Docs</a>
          <a href="https://github.com/picturepan2/spectre" target="_blank" class="btn btn-link">GitHub</a>
        </section>
        <section class="navbar-section show-xs">
          <a href="#sidebar" class="btn btn-lg btn-link btn-action"><i class="icon icon-menu"></i></a>
        </section>
      </nav>
    </section>
  </section>

  <section class="container grid-960">
    <section class="columns">
      <div id="sidebar" class="docs-sidebar column col-3 col-sm-12">
        <ul class="docs-nav nav nav-vertical">
          <li class="nav-item">
            <a href="index.html">Getting started</a>
          </li>
          <li class="nav-item active">
            <a href="elements.html">Elements</a>
            <ul class="nav">
              <li class="nav-item">
                <a href="elements.html#typography">Typography</a>
              </li>
              <li class="nav-item">
                <a href="elements.html#tables">Tables</a>
              </li>
              <li class="nav-item">
                <a href="elements.html#buttons">Buttons</a>
              </li>
              <li class="nav-item">
                <a href="elements.html#forms">Forms</a>
              </li>
              <li class="nav-item">
                <a href="elements.html#labels">Labels</a>
              </li>
              <li class="nav-item">
                <a href="elements.html#media">Media</a>
              </li>
              <li class="nav-item active">
                <a href="experimentals.html">Experimentals</a>
                <ul class="nav">
                  <li class="nav-item">
                    <a href="experimentals.html#meters">Meters</a>
                  </li>
                  <li class="nav-item">
                    <a href="experimentals.html#progress">Progress</a>
                  </li>
                  <li class="nav-item">
                    <a href="experimentals.html#sliders">Sliders</a>
                  </li>
                </ul>
              </li>
            </ul>
          </li>
          <li class="nav-item">
            <a href="layout.html">Layout</a>
          </li>
          <li class="nav-item">
            <a href="components.html">Components</a>
          </li>
          <li class="nav-item">
            <a href="utilities.html">Utilities</a>
          </li>
        </ul>
      </div>
      <a href="#sidebar-close" id="sidebar-close" class="docs-nav-clear"></a>

      <div class="docs-content column col-9 col-sm-12">
        <section id="experimentals" class="container">
          <header class="text-center"><h3>Experimentals</h3></header>
          <section class="notes">
            <p>The Experimentals include experimental elements and features, mostly are not yet ready for wide use. These elements and components are limited inside <code>spectre-exp.less</code> before browsers fully support them. Sometimes, there are some specific browsers targeted components.</p>
          </section>
        </section>

        <section id="meters" class="container">
          <header class="text-center"><h3>Meters</h3></header>
          <section class="notes">
            <p><strong>Meters</strong> represent the value within the known range.</p>
          </section>
          <div class="columns text-center">
            <div class="column col-3 col-xs-12">
              <meter class="meter" value="20" min="0" max="100"></meter>
            </div>
            <div class="column col-3 col-xs-12">
              <meter class="meter" value="60" min="0" low="30" optimum="60" high="80" max="100"></meter>
            </div>
            <div class="column col-3 col-xs-12">
              <meter class="meter" value="85" min="0" low="30" high="80" max="100"></meter>
            </div>
            <div class="column col-3 col-xs-12">
              <meter class="meter" value="20" min="0" low="30" optimum="90" high="80" max="100"></meter>
            </div>
          </div>
          <section class="notes">
            <p></p>
          </section>

<!-- meters example -->
<pre class="code" data-lang="HTML"><code><span class="com">&lt;!-- Meter is green when low &lt; value &lt; high --&gt;</span>
&lt;<span class="tag">meter</span> <span class="atn">class</span>=<span class="atv">&quot;meter&quot;</span> <span class="atn">value</span>=<span class="atv">&quot;20&quot;</span> <span class="atn">min</span>=<span class="atv">&quot;0&quot;</span> <span class="atn">max</span>=<span class="atv">&quot;100&quot;</span>&gt;&lt;<span class="tag">/meter</span>&gt;
&lt;<span class="tag">meter</span> <span class="atn">class</span>=<span class="atv">&quot;meter&quot;</span> <span class="atn">value</span>=<span class="atv">&quot;60&quot;</span> <span class="atn">min</span>=<span class="atv">&quot;0&quot;</span> <span class="atn">max</span>=<span class="atv">&quot;100&quot;</span> <span class="atn">low</span>=<span class="atv">&quot;30&quot;</span> <span class="atn">high</span>=<span class="atv">&quot;80&quot;</span>&gt;&lt;<span class="tag">/meter</span>&gt;
<span class="com">&lt;!-- Meter is yellow when value &lt; low  or high &lt; value --&gt;</span>
&lt;<span class="tag">meter</span> <span class="atn">class</span>=<span class="atv">&quot;meter&quot;</span> <span class="atn">value</span>=<span class="atv">&quot;85&quot;</span> <span class="atn">min</span>=<span class="atv">&quot;0&quot;</span> <span class="atn">max</span>=<span class="atv">&quot;100&quot;</span> <span class="atn">low</span>=<span class="atv">&quot;30&quot;</span> <span class="atn">high</span>=<span class="atv">&quot;80&quot;</span>&gt;&lt;<span class="tag">/meter</span>&gt;
<span class="com">&lt;!-- Meter is red when value &lt; low &lt; high &lt; optimum or optimum &lt; low &lt; high &lt; value --&gt;</span>
&lt;<span class="tag">meter</span> <span class="atn">class</span>=<span class="atv">&quot;meter&quot;</span> <span class="atn">value</span>=<span class="atv">&quot;20&quot;</span> <span class="atn">optimum</span>=<span class="atv">&quot;90&quot;</span> <span class="atn">min</span>=<span class="atv">&quot;0&quot;</span> <span class="atn">max</span>=<span class="atv">&quot;100&quot;</span> <span class="atn">low</span>=<span class="atv">&quot;30&quot;</span> <span class="atn">high</span>=<span class="atv">&quot;80&quot;</span>&gt;&lt;<span class="tag">/meter</span>&gt;
</code></pre>
</code></pre>

        </section>

        <section id="progress" class="container">
          <header class="text-center"><h3>Progress</h3></header>
          <section class="notes">
            <p>The <strong>Progress</strong> indicates the progress completion of a task.</p>
          </section>
          <div class="columns text-center">
            <div class="column col-3 col-xs-12">
              <progress class="progress" value="75" max="100"></progress>
            </div>
            <div class="column col-3 col-xs-12">
              <progress class="progress" value="50" max="100"></progress>
            </div>
            <div class="column col-3 col-xs-12">
              <progress class="progress" value="25" max="100"></progress>
            </div>
            <div class="column col-3 col-xs-12">
              <progress class="progress" max="100"></progress>
            </div>
          </div>
          <section class="notes">
            <p></p>
          </section>

<!-- progress example -->
<pre class="code" data-lang="HTML"><code>&lt;<span class="tag">progress</span> <span class="atn">class</span>=<span class="atv">&quot;progress&quot;</span> <span class="atn">value</span>=<span class="atv">&quot;25&quot;</span> <span class="atn">max</span>=<span class="atv">&quot;100&quot;</span>&gt;&lt;<span class="tag">/progress</span>&gt;
</code></pre>

        </section>

        <section id="sliders" class="container">
          <header class="text-center"><h3>Sliders</h3></header>
          <section class="notes">
            <p><strong>Sliders</strong> are for selecting values from ranges.</p>
          </section>
          <div class="columns text-center">
            <div class="column col-6 col-xs-12">
              <input class="slider" type="range" min="0" max="100" value="50" />
            </div>
          </div>
          <section class="notes">
            <p></p>
          </section>

<!-- sliders example -->
<pre class="code" data-lang="HTML"><code>&lt;<span class="tag">input</span> <span class="atn">class</span>=<span class="atv">&quot;slider&quot;</span> <span class="atn">type</span>=<span class="atv">&quot;range&quot;</span> <span class="atn">min</span>=<span class="atv">&quot;0&quot;</span> <span class="atn">max</span>=<span class="atv">&quot;100&quot;</span> <span class="atn">value</span>=<span class="atv">&quot;50&quot;</span> <span class="tag">/</span>&gt;
</code></pre>

        </section>

        <section class="container">
          <div class="divider"></div>
          <ul class="pagination">
            <li class="page-item page-prev">
              <a href="index.html">
                <p class="page-item-meta">Previous</p>
                <h4 class="page-item-title">Getting started</h4>
              </a>
            </li>
            <li class="page-item page-next">
              <a href="layout.html">
                <p class="page-item-meta">Next</p>
                <h4 class="page-item-title">Layout</h4>
              </a>
            </li>
          </ul>
        </section>
      </div>
    </section>
  </section>

  <footer class="bg-grey">
    <section id="copyright" class="grid-footer container grid-960">
      <p>
        <a href="index.html#introduction" target="_blank">Documents</a> | <a href="https://github.com/picturepan2/spectre" target="_blank">GitHub Repo</a> | Version <span class="version"></span>
      </p>
      <p>Designed and built with ♥ by <a href="https://twitter.com/picturepan2" target="_blank">Yan Zhu</a>. Licensed under the <a href="https://github.com/picturepan2/spectre/blob/master/LICENSE" target="_blank">MIT License</a>.</p>
    </section>
  </footer>
  <script>
    (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
          (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
        m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
    })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

    ga('create', 'UA-2702768-8', 'auto');
    ga('send', 'pageview');
  </script>
</body>
</html>