You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

689 lines
18 KiB

9 years ago
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <!-- Standard Meta -->
  5. <meta charset="utf-8" />
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  7. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
  8. <!-- Site Properities -->
  9. <title>Responsive Elements - Semantic</title>
  10. <link rel="stylesheet" type="text/css" href="../dist/semantic.css">
  11. <script src="assets/library/jquery.min.js"></script>
  12. <script src="../dist/semantic.js"></script>
  13. </head>
  14. <body>
  15. <h1 class="ui center aligned header">Responsive UI Examples</h1>
  16. <h2 class="ui center aligned header">Basic Responsive</h2>
  17. <h3 class="ui center aligned header">Container</h3>
  18. <div class="ui container">
  19. <div class="ui segments">
  20. <div class="ui segment">Content</div>
  21. <div class="ui segment">Content</div>
  22. <div class="ui segment">Content</div>
  23. <div class="ui segment">Content</div>
  24. </div>
  25. </div>
  26. <h3 class="ui center aligned header">Text Container</h3>
  27. <div class="ui text container">
  28. <div class="ui segments">
  29. <div class="ui segment">Content</div>
  30. <div class="ui segment">Content</div>
  31. <div class="ui segment">Content</div>
  32. <div class="ui segment">Content</div>
  33. </div>
  34. </div>
  35. <h3 class="ui center aligned header">Stackable Grid</h3>
  36. <div class="ui two column stackable grid">
  37. <div class="column">
  38. <div class="ui segment">Content</div>
  39. </div>
  40. <div class="column">
  41. <div class="ui segment">Content</div>
  42. </div>
  43. <div class="three column row">
  44. <div class="column">
  45. <div class="ui segment">Content</div>
  46. </div>
  47. <div class="column">
  48. <div class="ui segment">Content</div>
  49. </div>
  50. <div class="column">
  51. <div class="ui segment">Content</div>
  52. </div>
  53. </div>
  54. <div class="ten wide column">
  55. <div class="ui segment">Content</div>
  56. </div>
  57. <div class="six wide column">
  58. <div class="ui segment">Content</div>
  59. </div>
  60. </div>
  61. <h3 class="ui center aligned header">Doubling Grid</h3>
  62. <div class="ui three column doubling grid">
  63. <div class="column">
  64. <div class="ui segment">Content</div>
  65. </div>
  66. <div class="column">
  67. <div class="ui segment">Content</div>
  68. </div>
  69. <div class="column">
  70. <div class="ui segment">Content</div>
  71. </div>
  72. <div class="column">
  73. <div class="ui segment">Content</div>
  74. </div>
  75. <div class="column">
  76. <div class="ui segment">Content</div>
  77. </div>
  78. <div class="column">
  79. <div class="ui segment">Content</div>
  80. </div>
  81. </div>
  82. <h3 class="ui center aligned header">Doubling Stackable Grid</h3>
  83. <div class="ui three column doubling stackable grid">
  84. <div class="column">
  85. <div class="ui segment">Content</div>
  86. </div>
  87. <div class="column">
  88. <div class="ui segment">Content</div>
  89. </div>
  90. <div class="column">
  91. <div class="ui segment">Content</div>
  92. </div>
  93. <div class="column">
  94. <div class="ui segment">Content</div>
  95. </div>
  96. <div class="column">
  97. <div class="ui segment">Content</div>
  98. </div>
  99. <div class="column">
  100. <div class="ui segment">Content</div>
  101. </div>
  102. </div>
  103. <h3 class="ui center aligned header">Nested Stackable Grid</h3>
  104. <div class="ui two column grid">
  105. <div class="column">
  106. <div class="ui stackable doubling two column grid">
  107. <div class="column">
  108. <div class="ui segment">Content</div>
  109. </div>
  110. <div class="column">
  111. <div class="ui segment">Content</div>
  112. </div>
  113. </div>
  114. </div>
  115. <div class="column">
  116. <div class="ui stackable doubling three column grid">
  117. <div class="column">
  118. <div class="ui segment">Content</div>
  119. </div>
  120. <div class="column">
  121. <div class="ui segment">Content</div>
  122. </div>
  123. <div class="column">
  124. <div class="ui segment">Content</div>
  125. </div>
  126. </div>
  127. </div>
  128. </div>
  129. <h3 class="ui center aligned header">Stackable Grid Container</h3>
  130. <div class="ui two column stackable grid container">
  131. <div class="column">
  132. <div class="ui segment">Content</div>
  133. </div>
  134. <div class="column">
  135. <div class="ui segment">Content</div>
  136. </div>
  137. <div class="column">
  138. <div class="ui segment">Content</div>
  139. </div>
  140. <div class="column">
  141. <div class="ui segment">Content</div>
  142. </div>
  143. <div class="column">
  144. <div class="ui segment">Content</div>
  145. </div>
  146. <div class="column">
  147. <div class="ui segment">Content</div>
  148. </div>
  149. </div>
  150. <h3 class="ui center aligned header">Doubling Grid Container</h3>
  151. <div class="ui three column doubling grid container">
  152. <div class="column">
  153. <div class="ui segment">Content</div>
  154. </div>
  155. <div class="column">
  156. <div class="ui segment">Content</div>
  157. </div>
  158. <div class="column">
  159. <div class="ui segment">Content</div>
  160. </div>
  161. <div class="column">
  162. <div class="ui segment">Content</div>
  163. </div>
  164. <div class="column">
  165. <div class="ui segment">Content</div>
  166. </div>
  167. <div class="column">
  168. <div class="ui segment">Content</div>
  169. </div>
  170. </div>
  171. <h3 class="ui center aligned header">Doubling Stackable Grid Container</h3>
  172. <div class="ui three column doubling stackable grid container">
  173. <div class="column">
  174. <div class="ui segment">Content</div>
  175. </div>
  176. <div class="column">
  177. <div class="ui segment">Content</div>
  178. </div>
  179. <div class="column">
  180. <div class="ui segment">Content</div>
  181. </div>
  182. <div class="column">
  183. <div class="ui segment">Content</div>
  184. </div>
  185. <div class="column">
  186. <div class="ui segment">Content</div>
  187. </div>
  188. <div class="column">
  189. <div class="ui segment">Content</div>
  190. </div>
  191. </div>
  192. <h2 class="ui center aligned header">Device Adjustment</h2>
  193. <h3 class="ui center aligned header">Device Column Width</h3>
  194. <div class="ui grid">
  195. <div class="three wide computer nine wide tablet six wide mobile column">
  196. <div class="ui segment">Content</div>
  197. </div>
  198. <div class="four wide column">
  199. <div class="ui segment">Content</div>
  200. </div>
  201. <div class="nine wide computer three wide tablet six wide mobile column">
  202. <div class="ui segment">Content</div>
  203. </div>
  204. <div class="nine wide computer three wide tablet six wide mobile column">
  205. <div class="ui segment">Content</div>
  206. </div>
  207. <div class="four wide column">
  208. <div class="ui segment">Content</div>
  209. </div>
  210. <div class="three wide computer nine wide tablet six wide mobile column">
  211. <div class="ui segment">Content</div>
  212. </div>
  213. </div>
  214. <h3 class="ui center aligned header">Device Visibility</h3>
  215. <div class="ui four column grid">
  216. <div class="widescreen only ten wide column">
  217. <div class="ui segment">Widescreen</div>
  218. </div>
  219. <div class="widescreen only six wide column">
  220. <div class="ui segment">Widescreen</div>
  221. </div>
  222. <div class="large screen only six wide column">
  223. <div class="ui segment">Large Screen</div>
  224. </div>
  225. <div class="large screen only ten wide column">
  226. <div class="ui segment">Large Screen</div>
  227. </div>
  228. <div class="tablet only mobile only eight wide column">
  229. <div class="ui segment">Tablet and Mobile</div>
  230. </div>
  231. <div class="tablet only mobile only eight wide column">
  232. <div class="ui segment">Tablet and Mobile</div>
  233. </div>
  234. <div class="mobile only sixteen wide column">
  235. <div class="ui segment">Mobile</div>
  236. </div>
  237. <div class="computer only two column row">
  238. <div class="column">
  239. <div class="ui segment">Computer and Up</div>
  240. </div>
  241. <div class="column">
  242. <div class="ui segment">Computer and Up</div>
  243. </div>
  244. </div>
  245. <div class="tablet only column">
  246. <div class="ui segment">Tablet Only Content</div>
  247. </div>
  248. <div class="tablet only column">
  249. <div class="ui segment">Tablet Only Content</div>
  250. </div>
  251. <div class="tablet only column">
  252. <div class="ui segment">Tablet Only Content</div>
  253. </div>
  254. <div class="tablet only column">
  255. <div class="ui segment">Tablet Only Content</div>
  256. </div>
  257. </div>
  258. <h2 class="ui center aligned header">Responsive Grid with Variations</h2>
  259. <h3 class="ui center aligned header">Stackable Divided Grid</h3>
  260. <div class="ui stackable two column divided grid container">
  261. <div class="row">
  262. <div class="column">
  263. <div class="ui segment">Content</div>
  264. </div>
  265. <div class="column">
  266. <div class="ui segment">Content</div>
  267. </div>
  268. </div>
  269. <div class="row">
  270. <div class="column">
  271. <div class="ui segment">Content</div>
  272. </div>
  273. <div class="column">
  274. <div class="ui segment">Content</div>
  275. </div>
  276. </div>
  277. <div class="row">
  278. <div class="column">
  279. <div class="ui segment">Content</div>
  280. </div>
  281. <div class="column">
  282. <div class="ui segment">Content</div>
  283. </div>
  284. </div>
  285. </div>
  286. <h3 class="ui center aligned header">Stackable Vertically Divided Grid</h3>
  287. <div class="ui stackable two column vertically divided grid container">
  288. <div class="row">
  289. <div class="column">
  290. <div class="ui segment">Content</div>
  291. </div>
  292. <div class="column">
  293. <div class="ui segment">Content</div>
  294. </div>
  295. </div>
  296. <div class="row">
  297. <div class="column">
  298. <div class="ui segment">Content</div>
  299. </div>
  300. <div class="column">
  301. <div class="ui segment">Content</div>
  302. </div>
  303. </div>
  304. <div class="row">
  305. <div class="column">
  306. <div class="ui segment">Content</div>
  307. </div>
  308. <div class="column">
  309. <div class="ui segment">Content</div>
  310. </div>
  311. </div>
  312. </div>
  313. <h3 class="ui center aligned header">Celled Stackable Grid</h3>
  314. <div class="ui stackable celled grid container">
  315. <div class="two column row">
  316. <div class="column">
  317. <div class="ui segment">Content</div>
  318. </div>
  319. <div class="column">
  320. <div class="ui segment">Content</div>
  321. </div>
  322. </div>
  323. <div class="three column row">
  324. <div class="column">
  325. <div class="ui segment">Content</div>
  326. </div>
  327. <div class="column">
  328. <div class="ui segment">Content</div>
  329. </div>
  330. <div class="column">
  331. <div class="ui segment">Content</div>
  332. </div>
  333. </div>
  334. <div class="two column row">
  335. <div class="column">
  336. <div class="ui segment">Content</div>
  337. </div>
  338. <div class="column">
  339. <div class="ui segment">Content</div>
  340. </div>
  341. </div>
  342. </div>
  343. <h3 class="ui center aligned header">Consecutive Doubling Stackable Grid</h3>
  344. <div class="doubling stackable three column ui grid container">
  345. <div class="column">
  346. <div class="ui segment">Content</div>
  347. </div>
  348. <div class="column">
  349. <div class="ui segment">Content</div>
  350. </div>
  351. <div class="column">
  352. <div class="ui segment">Content</div>
  353. </div>
  354. <div class="column">
  355. <div class="ui segment">Content</div>
  356. </div>
  357. <div class="column">
  358. <div class="ui segment">Content</div>
  359. </div>
  360. <div class="column">
  361. <div class="ui segment">Content</div>
  362. </div>
  363. </div>
  364. <div class="doubling stackable three column ui grid container">
  365. <div class="column">
  366. <div class="ui segment">Content</div>
  367. </div>
  368. <div class="column">
  369. <div class="ui segment">Content</div>
  370. </div>
  371. <div class="column">
  372. <div class="ui segment">Content</div>
  373. </div>
  374. <div class="column">
  375. <div class="ui segment">Content</div>
  376. </div>
  377. <div class="column">
  378. <div class="ui segment">Content</div>
  379. </div>
  380. <div class="column">
  381. <div class="ui segment">Content</div>
  382. </div>
  383. </div>
  384. <h3 class="ui center aligned header">Grid Container</h3>
  385. <div class="ui three column grid container">
  386. <div class="column">
  387. <div class="ui segment">Content</div>
  388. </div>
  389. <div class="column">
  390. <div class="ui segment">Content</div>
  391. </div>
  392. <div class="column">
  393. <div class="ui segment">Content</div>
  394. </div>
  395. <div class="column">
  396. <div class="ui segment">Content</div>
  397. </div>
  398. <div class="column">
  399. <div class="ui segment">Content</div>
  400. </div>
  401. <div class="column">
  402. <div class="ui segment">Content</div>
  403. </div>
  404. </div>
  405. <h1 class="ui center aligned header">Responsive Elements</h1>
  406. <h3 class="ui center aligned header">Responsive Vertical Divider</h3>
  407. <div class="ui stackable two column very relaxed grid container" style="position:relative;">
  408. <div class="column">
  409. <div class="ui segment">Content</div>
  410. </div>
  411. <div class="ui vertical divider">
  412. Or
  413. </div>
  414. <div class="column">
  415. <div class="ui segment">Content</div>
  416. </div>
  417. </div>
  418. <h3 class="ui center aligned header">Responsive Table</h3>
  419. <div class="ui container">
  420. <table class="ui celled table">
  421. <thead>
  422. <th>Employee</th>
  423. <th>Correct Guesses</th>
  424. </thead>
  425. <tbody>
  426. <tr>
  427. <td>
  428. <h4 class="ui image header">
  429. <img src="assets/images/wireframe/square-image.png" class="ui mini rounded image">
  430. <div class="content">
  431. Lena
  432. <div class="sub header">Human Resources
  433. </div>
  434. </div>
  435. </td>
  436. <td>
  437. 22
  438. </td>
  439. </tr>
  440. <tr>
  441. <td>
  442. <h4 class="ui image header">
  443. <img src="assets/images/wireframe/square-image.png" class="ui mini rounded image">
  444. <div class="content">
  445. Matthew
  446. <div class="sub header">Fabric Design
  447. </div>
  448. </div>
  449. </td>
  450. <td>
  451. 15
  452. </td>
  453. </tr>
  454. <tr>
  455. <td>
  456. <h4 class="ui image header">
  457. <img src="assets/images/wireframe/square-image.png" class="ui mini rounded image">
  458. <div class="content">
  459. Lindsay
  460. <div class="sub header">Entertainment
  461. </div>
  462. </div>
  463. </td>
  464. <td>
  465. 12
  466. </td>
  467. </tr>
  468. <tr>
  469. <td>
  470. <h4 class="ui image header">
  471. <img src="assets/images/wireframe/square-image.png" class="ui mini rounded image">
  472. <div class="content">
  473. Mark
  474. <div class="sub header">Executive
  475. </div>
  476. </div>
  477. </td>
  478. <td>
  479. 11
  480. </td>
  481. </tr>
  482. </tbody>
  483. </table>
  484. </div>
  485. <h3 class="ui center aligned header">Responsive Menu</h3>
  486. <div class="ui stackable container menu">
  487. <div class="item">
  488. <img src="assets/images/logo.png">
  489. </div>
  490. <a class="item">Features</a>
  491. <a class="item">Testimonials</a>
  492. <a class="item">Sign-in</a>
  493. </div>
  494. <h3 class="ui center aligned header">Responsive Item</h3>
  495. <div class="ui container">
  496. <div class="ui relaxed divided items">
  497. <div class="item">
  498. <div class="ui small image">
  499. <img src="assets/images/wireframe/image.png">
  500. </div>
  501. <div class="content">
  502. <a class="header">Content Header</a>
  503. <div class="meta">
  504. <a>Date</a>
  505. <a>Category</a>
  506. </div>
  507. <div class="description">
  508. A description which may flow for several lines and give context to the content.
  509. </div>
  510. <div class="extra">
  511. <img src="assets/images/wireframe/square-image.png" class="ui circular avatar image"> Username
  512. </div>
  513. </div>
  514. </div>
  515. <div class="item">
  516. <div class="ui small image">
  517. <img src="assets/images/wireframe/image.png">
  518. </div>
  519. <div class="content">
  520. <a class="header">Content Header</a>
  521. <div class="meta">
  522. <a>Date</a>
  523. <a>Category</a>
  524. </div>
  525. <div class="description">
  526. A description which may flow for several lines and give context to the content.
  527. </div>
  528. <div class="extra">
  529. <div class="ui right floated primary button">
  530. Primary
  531. <i class="right chevron icon"></i>
  532. </div>
  533. <div class="ui label">Limited</div>
  534. </div>
  535. </div>
  536. </div>
  537. <div class="item">
  538. <div class="ui small image">
  539. <img src="assets/images/wireframe/image.png">
  540. </div>
  541. <div class="content">
  542. <a class="header">Content Header</a>
  543. <div class="meta">
  544. <a>Date</a>
  545. <a>Category</a>
  546. </div>
  547. <div class="description">
  548. A description which may flow for several lines and give context to the content.
  549. </div>
  550. <div class="extra">
  551. <div class="ui right floated primary button">
  552. Primary
  553. <i class="right chevron icon"></i>
  554. </div>
  555. </div>
  556. </div>
  557. </div>
  558. </div>
  559. </div>
  560. <h3 class="ui center aligned header">Responsive Steps</h3>
  561. <div class="ui last container">
  562. <div class="ui three steps">
  563. <div class="step">
  564. <div class="content">
  565. <div class="title">Shipping</div>
  566. <div class="description">Choose your shipping options</div>
  567. </div>
  568. </div>
  569. <div class="active step">
  570. <div class="content">
  571. <div class="title">Billing</div>
  572. <div class="description">Enter billing information</div>
  573. </div>
  574. </div>
  575. <div class="disabled step">
  576. <div class="content">
  577. <div class="title">Confirm Order</div>
  578. <div class="description">Review your order details</div>
  579. </div>
  580. </div>
  581. </div>
  582. </div>
  583. <!-- Content JS HERE !-->
  584. <style>
  585. .last.container {
  586. margin-bottom: 300px !important;
  587. }
  588. h1.ui.center.header {
  589. margin-top: 3em;
  590. }
  591. h2.ui.center.header {
  592. margin: 4em 0em 2em;
  593. }
  594. h3.ui.center.header {
  595. margin-top: 2em;
  596. padding: 2em 0em;
  597. }
  598. </style>
  599. <script type="text/javascript">
  600. $(document).ready(function() {
  601. var
  602. $headers = $('body > h3'),
  603. $header = $headers.first(),
  604. ignoreScroll = false,
  605. timer
  606. ;
  607. // Preserve example in viewport when resizing browser
  608. $(window)
  609. .on('resize', function() {
  610. // ignore callbacks from scroll change
  611. clearTimeout(timer);
  612. $headers.visibility('disable callbacks');
  613. // preserve position
  614. $(document).scrollTop( $header.offset().top );
  615. // allow callbacks in 500ms
  616. timer = setTimeout(function() {
  617. $headers.visibility('enable callbacks');
  618. }, 500);
  619. })
  620. ;
  621. $headers
  622. .visibility({
  623. // fire once each time passed
  624. once: false,
  625. // don't refresh position on resize
  626. checkOnRefresh: true,
  627. // lock to this element on resize
  628. onTopPassed: function() {
  629. $header = $(this);
  630. },
  631. onTopPassedReverse: function() {
  632. $header = $(this);
  633. }
  634. })
  635. ;
  636. });
  637. </script>
  638. </body>
  639. </html>