-
Notifications
You must be signed in to change notification settings - Fork 3
/
surfaces.html
266 lines (229 loc) · 12.3 KB
/
surfaces.html
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
<html>
<head>
<title>Fluent Design - Surfaces</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://fonts.googleapis.com/css?family=Product+Sans" rel="stylesheet">
<link href="normalize.css" rel="stylesheet" type="text/css">
<link href="fluent.css" rel="stylesheet" type="text/css">
<link href="Icons/css/fluent-icons.css" rel="stylesheet" type="text/css">
<script src="fluent.js"></script>
<script src="https://code.jquery.com/jquery-1.9.1.js"></script>
<script src="https://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
<script>
function openmod1(){
document.getElementById("mod1").style.display="Block";
document.getElementById("body").style.filter="saturate(250%) blur(25px)";
}
function closemod1(){
document.getElementById("mod1").style.display="None";
document.getElementById("body").style.filter="blur(0px)";
}
function openside1(){
document.getElementById("side1").style.display="Block";
document.getElementById("body").style.filter="saturate(250%) blur(25px)";
}
function closeside1(){
document.getElementById("side1").style.display="None";
document.getElementById("body").style.filter="blur(0px)";
}
function opendialog1(){
document.getElementById("dialog1").style.display="Block";
}
function closedialog1(){
document.getElementById("dialog1").style.display="None";
}
$(function() {
$( ".modal_content" ).draggable();
$( ".dialogue_box" ).draggable();
});
</script>
</head>
<body onload="closemod1(); closeside1();">
<div class="column large9 pivot_container secondary_blue" style="position: fixed;">
<a class="pivot_button icon left" onclick="history.back();">
<i class="ms-Icon ms-Icon--Back" aria-hidden="true"></i>
</a>
<a class="pivot_button icon left" onclick="history.forward();">
<i class="ms-Icon ms-Icon--Forward" aria-hidden="true"></i>
</a>
<span class="small0 pivot_heading">Fluent Design For Web</span>
<a href="controls.html" class="pivot_button right active">Controls</a>
<a href="styles.html" class="pivot_button right">Styles</a>
<a href="index.html" class="pivot_button right">Home</a>
</div><br><br><br><br>
<div id="body">
<div class="nav_container column large3 medium3 small0">
<h5>Fabric UI</h5>
<div class="navigation_container">
<span class="navigation_val"><i class="ms-Icon ms-Icon--Chevronright nav_disp"></i>Styles</span><input type="checkbox" class="navigation_button">
<div class="navigation_group">
<a href="typography.html"><li class="navigation_item">Typography</li></a>
<a href="elevation.html"><li class="navigation_item">Elevation</li></a>
<a href="colors.html"><li class="navigation_item">Colors</li></a>
<a href="grid.html"><li class="navigation_item">Grid Layout</li></a>
<a href="Icons/fluent-icons.html"><li class="navigation_item">Icon Pack</li></a>
</div>
</div><br><br>
<div class="navigation_container">
<span class="navigation_val"><i class="ms-Icon ms-Icon--Chevronright nav_disp"></i>Controls</span><input checked type="checkbox" class="navigation_button">
<div class="navigation_group">
<a href="inputs.html"><li class="navigation_item">Inputs</li></a>
<a href="utilities.html"><li class="navigation_item">Utilities</li></a>
<a href="surfaces.html"><li class="navigation_item">Surfaces</li></a>
<a href="listsandtables.html"><li class="navigation_item">List and Tables</li></a>
<a href="nav.html"><li class="navigation_item">Navigations</li></a>
<a href="progress.html"><li class="navigation_item">Progress</li></a>
</div>
</div>
</div>
<div class="page_container column large9 medium9 small12 right">
<h4>Surfaces</h4><br>
<h6>Window</h6>
<div class="page_container code_container large10 medium10 small12 center zi2">
<div class="column large12 medium12 small12">
<!--Output Comes Here-->
<p>Click On The Button Below To Open Window</p>
<button class="primary_yellow" onclick="openmod1();">Open Window</button><br><br>
<!--Code Comes Here-->
<div class="codebar_text">
<span> <></span>
</div>
<input type="checkbox" class="code_notifier primary_blue">
<div class="code_content">
<pre class="codeblock_text">
For Button:
<button class="primary_yellow" onclick="openmod1();">Open Window</button>
------------------------------------------------------------------------------------
For Window:
<div class="modal_container" id="mod1">
<div class="modal_content zi3" id="modct1">
<div class="dialogue_pane large12">
<button class="primary_red right ta_center mod_close_btn" onclick="closemod1();">X</button>
</div>
<div class="page_container">
<h2>This Is Some Content</h2>
</div>
</div>
</div>
</pre>
</div>
</div>
</div>
<br><br>
<h6>Side Panel</h6>
<div class="page_container code_container large10 medium10 small12 center zi2">
<div class="column large12 medium12 small12">
<!--Output Comes Here-->
<p>Click On The Button Below To Open Window</p>
<button class="primary_yellow" onclick="openside1();">Open Side Panel</button><br><br>
<!--Code Comes Here-->
<div class="codebar_text">
<span> <></span>
</div>
<input type="checkbox" class="code_notifier primary_blue">
<div class="code_content">
<pre class="codeblock_text">
For Button:
<button class="primary_yellow" onclick="openside1();">Open Side Panel</button>
------------------------------------------------------------------------------------
For Side Panel:
<div class="sidepanel_container" id="side1">
<div class="sidepanel_content zi3 right" id="modct1">
<button class="primary_red right ta_center mod_close_btn" onclick="closeside1();">X</button>
<div class="page_container">
<div class="large12 panel_item">Panel Item 1</div>
<div class="large12 panel_item">Panel Item 2</div>
<div class="large12 panel_item">Panel Item 3</div>
<div class="large12 panel_item">Panel Item 4</div>
<div class="large12 panel_item">Panel Item 5</div>
<div class="large12 panel_item">Panel Item 6</div>
</div>
</div>
</div>
</pre>
</div>
</div>
</div>
<br><br>
<h6>Tooltip</h6>
<div class="page_container code_container large10 medium10 small12 center zi2">
<div class="column large12 medium12 small12">
<!--Output Comes Here-->
<p>Hover Over The Button Below To See What Action It Will Perform</p>
<div class="tooltip_container">
<span class="tooltip_info">When you hover over the button, you see me</span>
<button class="primary_yellow">Hover For Tooltip</button>
</div><br><br>
<!--Code Comes Here-->
<div class="codebar_text">
<span> <></span>
</div>
<input type="checkbox" class="code_notifier primary_blue">
<div class="code_content">
<pre class="codeblock_text">
<div class="tooltip_container">
<span class="tooltip_info">When you hover over the button, you see me</span>
<button class="primary_yellow">Hover For Tooltip</button>
</div>
</pre>
</div>
</div>
</div>
<br><br>
<h6>Dialogue Box</h6>
<div class="page_container code_container large10 medium10 small12 center zi2">
<div class="column large12 medium12 small12">
<!--Output Comes Here-->
<p>Click On The Button Below To Open Draggable Dialogue Box</p>
<button class="primary_yellow" onclick="opendialog1();">Open Dialogue Box</button>
<div class="dialogue_box" id="dialog1">
<div class="dialogue_pane large12"><button class="primary_red right ta_center" onclick="closedialog1();" style="padding: 10px; padding-left: 20px; padding-right: 20px;">X</button></div>
<div class="dialogue_content large12">This Is A Dialogue Box</div>
</div><br><br>
<!--Code Comes Here-->
<div class="codebar_text">
<span> <></span>
</div>
<input type="checkbox" class="code_notifier primary_blue">
<div class="code_content">
<pre class="codeblock_text">
For Button:
<button class="primary_yellow" onclick="opendialog1();">Open Dialogue Box</button>
------------------------------------------------------------------------------------
For Dialogue Box:
<div class="dialogue_box" id="dialog1">
<div class="dialogue_pane large12">
<button class="primary_red right ta_center mod_close_btn" onclick="closedialog1();" >X</button>
</div>
<div class="dialogue_content large12">This Is A Dialogue Box</div>
</div>
</pre>
</div>
</div>
</div>
</div>
<footer class="column large12 medium12 small12 primary_green">Fork The Project From <a href="https://github.com/shivendrasaurav/Fluent-Design-For-Web/">Github</a></footer>
</div>
<div class="modal_container" id="mod1">
<div class="modal_content zi3" id="modct1">
<div class="dialogue_pane large12"><button class="primary_red right ta_center mod_close_btn" onclick="closemod1();">X</button></div>
<div class="page_container">
<h2>This Is Some Content</h2>
</div>
</div>
</div>
<div class="sidepanel_container" id="side1">
<div class="sidepanel_content zi3 right" id="modct1">
<button class="primary_red right ta_center" onclick="closeside1();" style="padding: 10px; padding-left: 20px; padding-right: 20px;">X</button><br><br><br><br>
<div class="page_container">
<div class="large12 panel_item">Panel Item 1</div>
<div class="large12 panel_item">Panel Item 2</div>
<div class="large12 panel_item">Panel Item 3</div>
<div class="large12 panel_item">Panel Item 4</div>
<div class="large12 panel_item">Panel Item 5</div>
<div class="large12 panel_item">Panel Item 6</div>
</div>
</div>
</div>
</body>
</html>