Skip to content
This repository was archived by the owner on Dec 31, 2019. It is now read-only.

Commit 1d2ca4a

Browse files
committed
Add components/pivot closing #26
1 parent 4f6028e commit 1d2ca4a

File tree

2 files changed

+111
-2
lines changed

2 files changed

+111
-2
lines changed

components/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,8 +248,8 @@
248248
</button>
249249
</div>
250250
<div class="ms-Grid-col ms-u-sm3 ms-font-l">
251-
<button class="ms-Button ms-Button--hero" onclick="goIssue('26');">
252-
<span class="ms-Button-icon"><i class="ms-Icon"></i></span>
251+
<button class="ms-Button ms-Button--hero" onclick="goComponent('pivot');">
252+
<span class="ms-Button-icon"><i class="ms-Icon ms-Icon--check"></i></span>
253253
<span class="ms-Button-label">Pivots</span>
254254
</button>
255255
</div>

components/pivot/index.html

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
<!DOCTYPE html>
2+
<html>
3+
4+
<head lang="en">
5+
<title>Office UI Fabric - Components - Pivot</title>
6+
<meta charset="UTF-8">
7+
<!-- fav icons -->
8+
<link rel="shortcut icon" href="/img/favicon/favicon.ico">
9+
<link rel="apple-touch-icon" sizes="57x57" href="/img/favicon/apple-touch-icon-57x57.png">
10+
<link rel="apple-touch-icon" sizes="114x114" href="/img/favicon/apple-touch-icon-114x114.png">
11+
<link rel="apple-touch-icon" sizes="72x72" href="/img/favicon/apple-touch-icon-72x72.png">
12+
<link rel="apple-touch-icon" sizes="144x144" href="/img/favicon/apple-touch-icon-144x144.png">
13+
<link rel="apple-touch-icon" sizes="60x60" href="/img/favicon/apple-touch-icon-60x60.png">
14+
<link rel="apple-touch-icon" sizes="120x120" href="/img/favicon/apple-touch-icon-120x120.png">
15+
<link rel="apple-touch-icon" sizes="76x76" href="/img/favicon/apple-touch-icon-76x76.png">
16+
<link rel="apple-touch-icon" sizes="152x152" href="/img/favicon/apple-touch-icon-152x152.png">
17+
<link rel="apple-touch-icon" sizes="180x180" href="/img/favicon/apple-touch-icon-180x180.png">
18+
<link rel="icon" type="image/png" href="/img/favicon/favicon-192x192.png" sizes="192x192">
19+
<link rel="icon" type="image/png" href="/img/favicon/favicon-160x160.png" sizes="160x160">
20+
<link rel="icon" type="image/png" href="/img/favicon/favicon-96x96.png" sizes="96x96">
21+
<link rel="icon" type="image/png" href="/img/favicon/favicon-16x16.png" sizes="16x16">
22+
<link rel="icon" type="image/png" href="/img/favicon/favicon-32x32.png" sizes="32x32">
23+
24+
<!-- azure application insights -->
25+
<script src="/js/azure-app-insights.js" type="text/javascript"></script>
26+
27+
<!-- codepen -->
28+
<script async src="//assets.codepen.io/assets/embed/ei.js"></script>
29+
30+
<link rel="stylesheet" href="//appsforoffice.microsoft.com/fabric/1.0/fabric.min.css" />
31+
<link rel="stylesheet" href="//appsforoffice.microsoft.com/fabric/1.0/fabric.components.min.css" />
32+
<link rel="stylesheet" href="/css/styles.min.css" />
33+
</head>
34+
35+
<body>
36+
<div class="ms-Grid">
37+
<!-- header -->
38+
<header id="page-header" class="ms-Grid-row ms-Grid-col ms-u-sm12">
39+
<div id="brand-name" class="ms-font-su ms-fontWeight-semibold ms-fontColor-white">
40+
Office Fabric UI
41+
</div>
42+
<div id="site-tagline" class="ms-font-l ms-fontColor-white ms-fontWeight-light">
43+
Demos of the front-end framework for building experiences using Office, Office 365 &amp; SharePoint.
44+
</div>
45+
</header>
46+
47+
<!-- navigation -->
48+
<nav class="ms-Grid-row ms-Grid-col ms-u-sm12">
49+
<ul id="global-nav">
50+
<li class="ms-font-l ms-fontWeight-light"><a href="/">Home</a></li>
51+
<li class="ms-font-l ms-fontWeight-light"><a href="/features">Features</a></li>
52+
<li class="ms-font-l ms-fontWeight-light"><a href="/components">Components</a></li>
53+
<li class="ms-font-l ms-fontWeight-light"><a href="/resources.html">Resources</a></li>
54+
<li class="ms-font-l ms-fontWeight-light"><a href="/status.html">Status</a></li>
55+
<li class="ms-font-l ms-fontWeight-light"><a href="/contribute.html">Contribute!</a></li>
56+
</ul>
57+
</nav>
58+
59+
<div class="ms-Grid-row">
60+
<!-- side-nav -->
61+
<aside id="local-nav" class="ms-Grid-col ms-u-sm-3 ">
62+
<ul>
63+
<li><a class="ms-font-l ms-fontColor-neutralSecondaryAlt" href="#Top">Pivot</a></li>
64+
<li><a class="ms-font-l ms-fontColor-neutralSecondaryAlt" href="#UsagePivot">Usage - Pivot</a></li>
65+
<li><a class="ms-font-l ms-fontColor-neutralSecondaryAlt" href="#UsageTabs">Usage - Tabs</a></li>
66+
</ul>
67+
</aside>
68+
69+
<!-- page body -->
70+
<article id="page-main" class="ms-Grid-col ms-u-sm9 ms-font-m">
71+
<a name="Top"></a>
72+
<p class="ms-font-su">Components <i class="ms-Icon ms-Icon--caretRight" aria-hidden="true"></i> Pivot</p>
73+
<p class="ms-font-l">The pivot control can be used as a tab control or as just a horizaontal line of navigation elements within an application.</p>
74+
75+
<p class="ms-font-l"><i class="ms-Icon ms-Icon--chevronsUp"></i><a href="#Top" class="ms-Link">Back to top</a></p>
76+
77+
<a name="UsagePivot"></a>
78+
<p class="ms-font-xxl">Usage Pivot</p>
79+
<p class="ms-font-l">Like other navigation controls, this one is implemented with a <code>&lt;ul&gt;</code> element and decorated with the class <code>.ms-Pivot</code>. Each list item is a seperate navigation element that should be decoared with the CSS class <code>.ms-Pivot-link</code>. If you want to add an overlfow menu item, you can indicate it with the additional CSS class <code>.ms-Pivot-link--overflow</code>.</p>
80+
<p class="ms-font-l">You will want to add JavaScript to clear out the placeholder when the control receives focus as shown in the following snippets. An example of this code, using jQuery, can be found in the Office UI Fabric component distribution: <a href="https://github.com/OfficeDev/Office-UI-Fabric/blob/master/src/components/Pivot/jquery.Pivot.js" class="ms-Link">Jquery.Pivot.js</a>. This also means that you must include a reference to jQuery as the <code>JQuery.Pivot.js</code> depends on the presence of jQuery.</p>
81+
82+
<!-- codepen snippet -->
83+
<p data-height="299" data-theme-id="19054" data-slug-hash="meOMdj" data-default-tab="result" data-user="andrewconnell" class='codepen'>See the Pen <a href='http://codepen.io/andrewconnell/pen/meOMdj/'>Office UI Fabric - Pivot (Standard)</a> by Andrew Connell (<a href='http://codepen.io/andrewconnell'>@andrewconnell</a>) on <a href='http://codepen.io'>CodePen</a>.</p>
84+
<!-- /codepen snippet -->
85+
86+
<p class="ms-font-l"><i class="ms-Icon ms-Icon--chevronsUp"></i><a href="#Top" class="ms-Link">Back to top</a></p>
87+
88+
<a name="UsageTabs"></a>
89+
<p class="ms-font-xxl">Usage - Tabs</p>
90+
<p class="ms-font-l">The pivot control can also be rendered using tabs instead of just plain text. To do this, add the CSS class <code>.ms-Pivot--tabs</code> to the top level <code>&lt;ul&gt;</code> element.</p>
91+
92+
<!-- codepen snippet -->
93+
<p data-height="281" data-theme-id="19054" data-slug-hash="epBEmZ" data-default-tab="result" data-user="andrewconnell" class='codepen'>See the Pen <a href='http://codepen.io/andrewconnell/pen/epBEmZ/'>Office UI Fabric - Pivot (Tabs)</a> by Andrew Connell (<a href='http://codepen.io/andrewconnell'>@andrewconnell</a>) on <a href='http://codepen.io'>CodePen</a>.</p>
94+
<!-- /codepen snippet -->
95+
96+
<p class="ms-font-l"><i class="ms-Icon ms-Icon--chevronsUp"></i><a href="#Top" class="ms-Link">Back to top</a></p>
97+
</article>
98+
</div>
99+
100+
<!-- footer -->
101+
<footer id="page-footer" class="ms-Grid-row ms-Grid-col ms-u-sm12 ms-font-m ms-fontWeight-light ms-fontColor-white">
102+
<p>Microsoft, Office, Office 365 and SharePoint are registered trademarks of Microsoft Corporation.</p>
103+
<p>Current Version of the Office UI Fabric used on this site: v1.0.0</p>
104+
</footer>
105+
106+
</div>
107+
108+
</body>
109+
</html>

0 commit comments

Comments
 (0)