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.

278 lines
5.1 KiB

  1. /*!
  2. * # Semantic UI 2.1.6 - Loader
  3. * http://github.com/semantic-org/semantic-ui/
  4. *
  5. *
  6. * Copyright 2015 Contributors
  7. * Released under the MIT license
  8. * http://opensource.org/licenses/MIT
  9. *
  10. */
  11. /*******************************
  12. Loader
  13. *******************************/
  14. /* Standard Size */
  15. .ui.loader {
  16. display: none;
  17. position: absolute;
  18. top: 50%;
  19. left: 50%;
  20. margin: 0px;
  21. text-align: center;
  22. z-index: 1000;
  23. -webkit-transform: translateX(-50%) translateY(-50%);
  24. transform: translateX(-50%) translateY(-50%);
  25. }
  26. /* Static Shape */
  27. .ui.loader:before {
  28. position: absolute;
  29. content: '';
  30. top: 0%;
  31. left: 50%;
  32. width: 100%;
  33. height: 100%;
  34. border-radius: 500rem;
  35. border: 0.2em solid rgba(0, 0, 0, 0.1);
  36. }
  37. /* Active Shape */
  38. .ui.loader:after {
  39. position: absolute;
  40. content: '';
  41. top: 0%;
  42. left: 50%;
  43. width: 100%;
  44. height: 100%;
  45. -webkit-animation: loader 0.6s linear;
  46. animation: loader 0.6s linear;
  47. -webkit-animation-iteration-count: infinite;
  48. animation-iteration-count: infinite;
  49. border-radius: 500rem;
  50. border-color: #767676 transparent transparent;
  51. border-style: solid;
  52. border-width: 0.2em;
  53. box-shadow: 0px 0px 0px 1px transparent;
  54. }
  55. /* Active Animation */
  56. @-webkit-keyframes loader {
  57. from {
  58. -webkit-transform: rotate(0deg);
  59. transform: rotate(0deg);
  60. }
  61. to {
  62. -webkit-transform: rotate(360deg);
  63. transform: rotate(360deg);
  64. }
  65. }
  66. @keyframes loader {
  67. from {
  68. -webkit-transform: rotate(0deg);
  69. transform: rotate(0deg);
  70. }
  71. to {
  72. -webkit-transform: rotate(360deg);
  73. transform: rotate(360deg);
  74. }
  75. }
  76. /* Sizes */
  77. .ui.loader:before,
  78. .ui.loader:after {
  79. width: 2.2585em;
  80. height: 2.2585em;
  81. margin: 0em 0em 0em -1.12925em;
  82. }
  83. .ui.mini.loader:before,
  84. .ui.mini.loader:after {
  85. width: 1.2857em;
  86. height: 1.2857em;
  87. margin: 0em 0em 0em -0.64285em;
  88. }
  89. .ui.small.loader:before,
  90. .ui.small.loader:after {
  91. width: 1.7142em;
  92. height: 1.7142em;
  93. margin: 0em 0em 0em -0.8571em;
  94. }
  95. .ui.large.loader:before,
  96. .ui.large.loader:after {
  97. width: 4.5714em;
  98. height: 4.5714em;
  99. margin: 0em 0em 0em -2.2857em;
  100. }
  101. /*-------------------
  102. Coupling
  103. --------------------*/
  104. /* Show inside active dimmer */
  105. .ui.dimmer .loader {
  106. display: block;
  107. }
  108. /* Black Dimmer */
  109. .ui.dimmer .ui.loader {
  110. color: rgba(255, 255, 255, 0.9);
  111. }
  112. .ui.dimmer .ui.loader:before {
  113. border-color: rgba(255, 255, 255, 0.15);
  114. }
  115. .ui.dimmer .ui.loader:after {
  116. border-color: #FFFFFF transparent transparent;
  117. }
  118. /* White Dimmer (Inverted) */
  119. .ui.inverted.dimmer .ui.loader {
  120. color: rgba(0, 0, 0, 0.87);
  121. }
  122. .ui.inverted.dimmer .ui.loader:before {
  123. border-color: rgba(0, 0, 0, 0.1);
  124. }
  125. .ui.inverted.dimmer .ui.loader:after {
  126. border-color: #767676 transparent transparent;
  127. }
  128. /*******************************
  129. Types
  130. *******************************/
  131. /*-------------------
  132. Text
  133. --------------------*/
  134. .ui.text.loader {
  135. width: auto !important;
  136. height: auto !important;
  137. text-align: center;
  138. font-style: normal;
  139. }
  140. /*******************************
  141. States
  142. *******************************/
  143. .ui.indeterminate.loader:after {
  144. -webkit-animation-direction: reverse;
  145. animation-direction: reverse;
  146. -webkit-animation-duration: 1.2s;
  147. animation-duration: 1.2s;
  148. }
  149. .ui.loader.active,
  150. .ui.loader.visible {
  151. display: block;
  152. }
  153. .ui.loader.disabled,
  154. .ui.loader.hidden {
  155. display: none;
  156. }
  157. /*******************************
  158. Variations
  159. *******************************/
  160. /*-------------------
  161. Sizes
  162. --------------------*/
  163. /* Loader */
  164. .ui.inverted.dimmer .ui.mini.loader,
  165. .ui.mini.loader {
  166. width: 1.2857em;
  167. height: 1.2857em;
  168. font-size: 0.69230769em;
  169. }
  170. .ui.inverted.dimmer .ui.small.loader,
  171. .ui.small.loader {
  172. width: 1.7142em;
  173. height: 1.7142em;
  174. font-size: 0.92307692em;
  175. }
  176. .ui.inverted.dimmer .ui.loader,
  177. .ui.loader {
  178. width: 2.2585em;
  179. height: 2.2585em;
  180. font-size: 1em;
  181. }
  182. .ui.inverted.dimmer .ui.loader.large,
  183. .ui.loader.large {
  184. width: 4.5714em;
  185. height: 4.5714em;
  186. font-size: 1.15384615em;
  187. }
  188. /* Text Loader */
  189. .ui.mini.text.loader {
  190. min-width: 1.2857em;
  191. padding-top: 1.97800769em;
  192. }
  193. .ui.small.text.loader {
  194. min-width: 1.7142em;
  195. padding-top: 2.40650769em;
  196. }
  197. .ui.text.loader {
  198. min-width: 2.2585em;
  199. padding-top: 2.95080769em;
  200. }
  201. .ui.large.text.loader {
  202. min-width: 4.5714em;
  203. padding-top: 5.26370769em;
  204. }
  205. /*-------------------
  206. Inverted
  207. --------------------*/
  208. .ui.inverted.loader {
  209. color: rgba(255, 255, 255, 0.9);
  210. }
  211. .ui.inverted.loader:before {
  212. border-color: rgba(255, 255, 255, 0.15);
  213. }
  214. .ui.inverted.loader:after {
  215. border-top-color: #FFFFFF;
  216. }
  217. /*-------------------
  218. Inline
  219. --------------------*/
  220. .ui.inline.loader {
  221. position: relative;
  222. vertical-align: middle;
  223. margin: 0em;
  224. left: 0em;
  225. top: 0em;
  226. -webkit-transform: none;
  227. transform: none;
  228. }
  229. .ui.inline.loader.active,
  230. .ui.inline.loader.visible {
  231. display: inline-block;
  232. }
  233. /* Centered Inline */
  234. .ui.centered.inline.loader.active,
  235. .ui.centered.inline.loader.visible {
  236. display: block;
  237. margin-left: auto;
  238. margin-right: auto;
  239. }
  240. /*******************************
  241. Site Overrides
  242. *******************************/