Summary Files Commits Branches @commit @diff @stats
path: root / docs / experimentals.html
blob: d0ec50720d937c618a64c517cae5db2c48aff990 (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
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
<!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-gray">
    <section class="grid-header container grid-960">
      <nav class="navbar">
        <section class="navbar-section">
          <a href="#sidebar" class="btn btn-lg btn-link btn-action show-sm"><i class="icon icon-menu"></i></a>
          <a href="index.html" class="navbar-brand">Spectre.css</a>
          <a href="index.html" class="btn btn-link">Docs</a>
        </section>
        <section class="navbar-section">
          <a href="https://github.com/picturepan2/spectre" target="_blank" class="btn btn-primary">GitHub</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#codes">Codes</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#carousels">Carousels</a>
                  </li>
                  <li class="nav-item">
                    <a href="experimentals.html#meters">Meters</a>
                  </li>
                  <li class="nav-item">
                    <a href="experimentals.html#parallax">Parallax</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="carousels" class="container">
          <header class="text-center"><h3>Carousels</h3></header>
          <section class="notes">
            <p><strong>Carousels</strong> are slideshows for cycling images. It is built in pure CSS and not perfect.</p>
          </section>
          <div class="columns text-center">
            <div class="column col-12">
              <div class="carousel">
                <input type="radio" id="slide-1" name="carousel-radio" class="carousel-locator" checked>
              	<input type="radio" id="slide-2" name="carousel-radio" class="carousel-locator">
                <input type="radio" id="slide-3" name="carousel-radio" class="carousel-locator">
              	<input type="radio" id="slide-4" name="carousel-radio" class="carousel-locator">
                <div class="carousel-container">
                  <figure class="carousel-item">
                    <img src="img/osx-yosemite.jpg" class="img-responsive rounded" alt="macOS Yosemite Wallpaper" />
                  </figure>
                  <figure class="carousel-item">
                    <img src="img/osx-yosemite-2.jpg" class="img-responsive rounded" alt="macOS Yosemite Wallpaper" />
                  </figure>
                  <figure class="carousel-item">
                    <img src="img/osx-el-capitan.jpg" class="img-responsive rounded" alt="macOS Yosemite Wallpaper" />
                  </figure>
                  <figure class="carousel-item">
                    <img src="img/osx-el-capitan-2.jpg" class="img-responsive rounded" alt="macOS Yosemite Wallpaper" />
                  </figure>
                </div>
                <div class="carousel-nav">
                  <label class="nav-item text-hide hand" for="slide-1">1</label>
                  <label class="nav-item text-hide hand" for="slide-2">2</label>
                  <label class="nav-item text-hide hand" for="slide-3">3</label>
                  <label class="nav-item text-hide hand" for="slide-4">4</label>
                </div>
              </div>
            </div>
          </div>

        </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>

        </section>

        <section id="parallax" class="container">
          <header class="text-center"><h3>Parallax</h3></header>
          <section class="notes">
            <p>The <strong>Parallax</strong> acts like Apple TV/tvOS hover parallax effect. It is built in pure CSS.</p>
          </section>
          <div class="columns text-center">
            <div class="column col-12">
              <div class="parallax">
                <div class="parallax-top-left"></div>
                <div class="parallax-top-right"></div>
                <div class="parallax-bottom-left"></div>
                <div class="parallax-bottom-right"></div>
                <div class="parallax-content">
                  <img src="img/osx-yosemite-2.jpg" class="img-responsive rounded" alt="macOS Yosemite Wallpaper" />
                </div>
              </div>
            </div>
          </div>
          <section class="notes">
            <p></p>
          </section>

<!-- parallax example -->
<pre class="code" data-lang="HTML"><code>&lt;<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">&quot;parallax&quot;</span>&gt;
  &lt;<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">&quot;parallax-top-left&quot;</span>&gt;&lt;<span class="tag">/div</span>&gt;
  &lt;<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">&quot;parallax-top-right&quot;</span>&gt;&lt;<span class="tag">/div</span>&gt;
  &lt;<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">&quot;parallax-bottom-left&quot;</span>&gt;&lt;<span class="tag">/div</span>&gt;
  &lt;<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">&quot;parallax-bottom-right&quot;</span>&gt;&lt;<span class="tag">/div</span>&gt;
  &lt;<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">&quot;parallax-content&quot;</span>&gt;
    &lt;<span class="tag">img</span> <span class="atn">src</span>=<span class="atv">&quot;img/osx-el-capitan.jpg&quot;</span> <span class="atn">class</span>=<span class="atv">&quot;img-responsive rounded&quot;</span> <span class="atn">alt</span>=<span class="atv">&quot;macOS El Capitan Wallpaper&quot;</span> /&gt;
  &lt;<span class="tag">/div</span>&gt;
&lt;<span class="tag">/div</span>&gt;
</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-gray">
    <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> | <a href="https://twitter.com/spectrecss" target="_blank">Twitter</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>