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.

161 lines
9.2 KiB

  1. ---
  2. layout : 'default'
  3. css : 'loader'
  4. element : 'loader'
  5. elementType : 'element'
  6. title : 'Loader'
  7. description : 'A loader alerts a user to wait for an activity to complete'
  8. type : 'UI Element'
  9. themes : ['Default']
  10. ---
  11. <%- @partial('header') %>
  12. <div class="main container">
  13. <h2 class="ui dividing header">Types</h2>
  14. <div class="example">
  15. <h4 class="ui header">Loader</h4>
  16. <p>A loader</p>
  17. <div class="ui ignored info message">A standard loader uses images, this ensures maximum compatability with other components.</div>
  18. <div class="ui ignored info message">Loaders by default are hidden unless inside of a dimmer.</div>
  19. <div class="ui segment">
  20. <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.</p>
  21. <div class="ui active dimmer">
  22. <div class="ui loader"></div>
  23. </div>
  24. </div>
  25. </div>
  26. <h3 class="ui header">CSS Loaders</h3>
  27. <div class="example">
  28. <h4 class="ui header">Flipping Loader</h4>
  29. <p>A loader can animate by flipping</p>
  30. <div class="ui segment">
  31. <div class="ui active dimmer">
  32. <div class="ui flipping loader">
  33. <div class="shape"></div>
  34. Loading
  35. </div>
  36. </div>
  37. <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.</p>
  38. <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.</p>
  39. <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.</p>
  40. </div>
  41. </div>
  42. <div class="another example">
  43. <div class="ui segment">
  44. <div class="ui active dimmer">
  45. <div class="ui flipping circular loader">
  46. <div class="shape"></div>
  47. Loading
  48. </div>
  49. </div>
  50. <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.</p>
  51. <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.</p>
  52. <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.</p>
  53. </div>
  54. </div>
  55. <div class="example">
  56. <h4 class="ui header">Text Loader</h4>
  57. <p>A loader can contain text</p>
  58. <div class="ui segment">
  59. <div class="ui active dimmer">
  60. <div class="ui text loader">Loading</div>
  61. </div>
  62. <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.</p>
  63. </div>
  64. </div>
  65. <div class="another example">
  66. <div class="ui segment">
  67. <div class="ui active inverted dimmer">
  68. <div class="ui text loader">Loading</div>
  69. </div>
  70. <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.</p>
  71. </div>
  72. </div>
  73. <h2 class="ui dividing header">States</h2>
  74. <div class="example">
  75. <h4 class="ui header">Active</h4>
  76. <p>A loader can be active or visible</p>
  77. <div class="ui segment">
  78. <div class="ui active loader"></div>
  79. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.
  80. </div>
  81. </div>
  82. <div class="example">
  83. <h4 class="ui header">Disabled</h4>
  84. <p>A loader can be disabled or hidden</p>
  85. <div class="ui segment">
  86. <div class="ui disabled loader"></div>
  87. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.
  88. </div>
  89. </div>
  90. <h2 class="ui dividing header">Variations</h2>
  91. <div class="example">
  92. <h4 class="ui header">Inline</h4>
  93. <p>Loaders can appear inline with content </p>
  94. <div class="ui active inline loader"></div>
  95. </div>
  96. <div class="example">
  97. <h4 class="ui header">Size</h4>
  98. <p>Loaders can have different sizes</p>
  99. <div class="ui segment">
  100. <div class="ui active dimmer"><div class="ui mini text loader">Loading</div></div>
  101. <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.</p>
  102. </div>
  103. <div class="ui segment">
  104. <div class="ui active dimmer"><div class="ui small text loader">Loading</div></div>
  105. <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.</p>
  106. </div>
  107. <div class="ui segment">
  108. <div class="ui active dimmer"><div class="ui medium text loader">Loading</div></div>
  109. <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.</p>
  110. <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.</p>
  111. </div>
  112. <div class="ui segment">
  113. <div class="ui active dimmer"><div class="ui large text loader">Loading</div></div>
  114. <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.</p>
  115. <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.</p>
  116. <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.</p>
  117. </div>
  118. </div>
  119. <div class="example">
  120. <h4 class="ui header">Inverted</h4>
  121. <p>Loaders can have their colors inverted.</p>
  122. <div class="ui ignored info message">Loaders will automatically be inverted inside dimmers to maintain consistency</div>
  123. <div class="ui segment">
  124. <div class="ui active dimmer"><div class="ui mini inverted text loader">Loading</div></div>
  125. <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.</p>
  126. </div>
  127. <div class="ui segment">
  128. <div class="ui active dimmer"><div class="ui small inverted text loader">Loading</div></div>
  129. <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.</p>
  130. </div>
  131. <div class="ui segment">
  132. <div class="ui active dimmer"><div class="ui medium inverted text loader">Loading</div></div>
  133. <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.</p>
  134. <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.</p>
  135. </div>
  136. <div class="ui segment">
  137. <div class="ui active dimmer"><div class="ui large inverted text loader">Loading</div></div>
  138. <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.</p>
  139. <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.</p>
  140. <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.</p>
  141. </div>
  142. </div>
  143. </div>