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.

393 lines
10 KiB

10 years ago
  1. /*
  2. * # Semantic - Loader
  3. * http://github.com/semantic-org/semantic-ui/
  4. *
  5. *
  6. * Copyright 2013 Contributors
  7. * Released under the MIT license
  8. * http://opensource.org/licenses/MIT
  9. *
  10. */
  11. /*******************************
  12. Theme
  13. *******************************/
  14. /*
  15. */
  16. /*******************************
  17. Folders
  18. *******************************/
  19. /* Path to theme packages */
  20. /* Path to site override folder */
  21. /*******************************
  22. Themes
  23. *******************************/
  24. /* To override a theme for an individual element
  25. specify theme name below
  26. Be sure to update the user folder name (see README)
  27. */
  28. /* Global */
  29. /* Elements */
  30. /* Collections */
  31. /* Modules */
  32. /* Views */
  33. /*******************************
  34. Import Directives
  35. *******************************/
  36. /*------------------
  37. Load Default
  38. -------------------*/
  39. /*******************************
  40. Global Variables
  41. *******************************/
  42. /*-------------------
  43. Paths
  44. --------------------*/
  45. /*-------------------
  46. Page
  47. --------------------*/
  48. /*-------------------
  49. Breakpoints
  50. --------------------*/
  51. /*-------------------
  52. Fonts
  53. --------------------*/
  54. /*-------------------
  55. Icons
  56. --------------------*/
  57. /* Width of largest icon */
  58. /*******************************
  59. BG Colors
  60. *******************************/
  61. /*******************************
  62. Colors
  63. *******************************/
  64. /*-------------------
  65. Background
  66. --------------------*/
  67. /*--- Colors ---*/
  68. /*--- Emotive ---*/
  69. /*--- Neutrals ---*/
  70. /*-------------------
  71. Emotive
  72. --------------------*/
  73. /*-------------------
  74. Text Colors
  75. --------------------*/
  76. /*-------------------
  77. Brand Colors
  78. --------------------*/
  79. /*-------------------
  80. Borders
  81. --------------------*/
  82. /*-------------------
  83. Sizes
  84. --------------------*/
  85. /*-------------------
  86. Transitions
  87. --------------------*/
  88. /*******************************
  89. States
  90. *******************************/
  91. /*-------------------
  92. Disabled
  93. --------------------*/
  94. /*-------------------
  95. Hover
  96. --------------------*/
  97. /*--- Colors ---*/
  98. /*--- Emotive ---*/
  99. /*--- Neutrals ---*/
  100. /*-------------------
  101. Down (:active)
  102. --------------------*/
  103. /*--- Colors ---*/
  104. /*--- Emotive ---*/
  105. /*--- Neutrals ---*/
  106. /*-------------------
  107. Active
  108. --------------------*/
  109. /*--- Standard ---*/
  110. /*--- Emotive ---*/
  111. /*--- Neutrals ---*/
  112. /*-------------------
  113. Globals Used
  114. --------------------*/
  115. /*-------------------
  116. Standard
  117. --------------------*/
  118. /*-------------------
  119. Types
  120. --------------------*/
  121. /* Image */
  122. /* Text */
  123. /*-------------------
  124. States
  125. --------------------*/
  126. /*-------------------
  127. Variations
  128. --------------------*/
  129. /*------------------
  130. Load Theme
  131. -------------------*/
  132. /*------------------
  133. Load Site
  134. -------------------*/
  135. /*******************************
  136. User Global Variables
  137. *******************************/
  138. /*******************************
  139. User Variable Overrides
  140. *******************************/
  141. /*------------------
  142. Override Mix-in
  143. -------------------*/
  144. /*******************************
  145. Loader
  146. *******************************/
  147. /* Standard Size */
  148. .ui.loader {
  149. display: none;
  150. position: absolute;
  151. top: 50%;
  152. left: 50%;
  153. margin: 0px;
  154. text-align: center;
  155. z-index: 1000;
  156. -webkit-transform: translateX(-50%) translateY(-50%);
  157. -ms-transform: translateX(-50%) translateY(-50%);
  158. transform: translateX(-50%) translateY(-50%);
  159. }
  160. .ui.dimmer .loader {
  161. display: block;
  162. }
  163. .ui.dimmer .ui.loader,
  164. .ui.inverted.loader {
  165. color: #ffffff;
  166. }
  167. /*******************************
  168. Types
  169. *******************************/
  170. /*--------------
  171. CSS
  172. ---------------*/
  173. /* Flipping */
  174. .ui.flipping.loader {
  175. width: auto;
  176. height: auto;
  177. background-image: none !important;
  178. }
  179. .ui.flipping.loader .shape {
  180. position: relative;
  181. margin: 0em auto 1em;
  182. color: transparent;
  183. -webkit-box-shadow: 0px 0px 0px 1px;
  184. box-shadow: 0px 0px 0px 1px;
  185. -webkit-animation: loaderFlipping 1s infinite ease-in-out;
  186. animation: loaderFlipping 1s infinite ease-in-out;
  187. margin-bottom: 1em;
  188. -webkit-transform-style: preserve-3d;
  189. -ms-transform-style: preserve-3d;
  190. transform-style: preserve-3d;
  191. }
  192. .ui.flipping.loader .shape:before,
  193. .ui.flipping.loader .shape:after {
  194. position: absolute;
  195. content: '';
  196. top: 0px;
  197. left: 0px;
  198. -webkit-box-shadow: 0px 0px 0px 1px;
  199. box-shadow: 0px 0px 0px 1px;
  200. -webkit-backface-visibility: hidden;
  201. -ms-backface-visibility: hidden;
  202. backface-visibility: hidden;
  203. }
  204. .ui.flipping.loader .shape:before {
  205. background-color: #0074d9;
  206. -webkit-transform: rotateY(0deg);
  207. -ms-transform: rotateY(0deg);
  208. transform: rotateY(0deg);
  209. z-index: 2;
  210. }
  211. .ui.flipping.loader .shape:after {
  212. background-color: #ff4136;
  213. -webkit-transform: rotateY(180deg);
  214. -ms-transform: rotateY(180deg);
  215. transform: rotateY(180deg);
  216. }
  217. /* Circular */
  218. .ui.flipping.circular.loader .shape,
  219. .ui.flipping.circular.loader .shape:before,
  220. .ui.flipping.circular.loader .shape:after {
  221. border-radius: 500rem;
  222. }
  223. /* Sizes */
  224. .ui.mini.flipping.loader .shape,
  225. .ui.mini.flipping.loader .shape:before,
  226. .ui.mini.flipping.loader .shape:after {
  227. width: 16px;
  228. height: 16px;
  229. }
  230. .ui.flipping.loader .shape,
  231. .ui.flipping.loader .shape:before,
  232. .ui.flipping.loader .shape:after {
  233. width: 32px;
  234. height: 32px;
  235. }
  236. @-webkit-keyframes loaderFlipping {
  237. 0% {
  238. -webkit-transform: perspective(6em) rotateX(0deg) rotateY(0deg);
  239. transform: perspective(6em) rotateX(0deg) rotateY(0deg);
  240. }
  241. 50% {
  242. -webkit-transform: perspective(6em) rotateX(-180deg) rotateY(0deg);
  243. transform: perspective(6em) rotateX(-180deg) rotateY(0deg);
  244. }
  245. 100% {
  246. -webkit-transform: perspective(6em) rotateX(-180deg) rotateY(-180deg);
  247. transform: perspective(6em) rotateX(-180deg) rotateY(-180deg);
  248. }
  249. }
  250. @keyframes loaderFlipping {
  251. 0% {
  252. -webkit-transform: perspective(6em) rotateX(0deg) rotateY(0deg);
  253. transform: perspective(6em) rotateX(0deg) rotateY(0deg);
  254. }
  255. 50% {
  256. -webkit-transform: perspective(6em) rotateX(-180deg) rotateY(0deg);
  257. transform: perspective(6em) rotateX(-180deg) rotateY(0deg);
  258. }
  259. 100% {
  260. -webkit-transform: perspective(6em) rotateX(-180deg) rotateY(-180deg);
  261. transform: perspective(6em) rotateX(-180deg) rotateY(-180deg);
  262. }
  263. }
  264. /*-------------------
  265. Text
  266. --------------------*/
  267. .ui.text.loader {
  268. width: auto !important;
  269. height: auto !important;
  270. text-align: center;
  271. font-style: normal;
  272. }
  273. .ui.mini.text.loader {
  274. min-width: 16px;
  275. padding-top: 31px;
  276. }
  277. .ui.small.text.loader {
  278. min-width: 24px;
  279. padding-top: 39px;
  280. }
  281. .ui.text.loader {
  282. min-width: 32px;
  283. padding-top: 47px;
  284. }
  285. .ui.large.text.loader {
  286. min-width: 64px;
  287. padding-top: 79px;
  288. }
  289. /*******************************
  290. States
  291. *******************************/
  292. .ui.loader.active,
  293. .ui.loader.visible {
  294. display: block;
  295. }
  296. .ui.loader.disabled,
  297. .ui.loader.hidden {
  298. display: none;
  299. }
  300. /*******************************
  301. Variations
  302. *******************************/
  303. /*-------------------
  304. Sizes
  305. --------------------*/
  306. /* Tiny Size */
  307. .ui.inverted.dimmer .ui.mini.loader,
  308. .ui.mini.loader {
  309. width: 16px;
  310. height: 16px;
  311. font-size: 0.8em;
  312. background-image: url("../../themes/packages/default/assets/images/loader-mini.gif");
  313. }
  314. /* Small Size */
  315. .ui.inverted.dimmer .ui.small.loader,
  316. .ui.small.loader {
  317. width: 24px;
  318. height: 24px;
  319. font-size: 0.875em;
  320. background-image: url("../../themes/packages/default/assets/images/loader-small.gif");
  321. }
  322. .ui.inverted.dimmer .ui.loader,
  323. .ui.loader {
  324. width: 32px;
  325. height: 32px;
  326. font-size: 1em;
  327. background: url("../../themes/packages/default/assets/images/loader-medium.gif") no-repeat;
  328. background-position: 50% 0px;
  329. }
  330. /* Large Size */
  331. .ui.inverted.dimmer .ui.loader.large,
  332. .ui.loader.large {
  333. width: 64px;
  334. height: 64px;
  335. font-size: 1.2em;
  336. background-image: url("../../themes/packages/default/assets/images/loader-large.gif");
  337. }
  338. /*-------------------
  339. Inverted
  340. --------------------*/
  341. .ui.inverted.dimmer .ui.loader {
  342. color: rgba(0, 0, 0, 0.8);
  343. }
  344. /* Tiny Size */
  345. .ui.dimmer .mini.ui.loader,
  346. .ui.inverted .mini.ui.loader {
  347. background-image: url("../../themes/packages/default/assets/images/loader-mini-inverted.gif");
  348. }
  349. /* Small Size */
  350. .ui.dimmer .small.ui.loader,
  351. .ui.inverted .small.ui.loader {
  352. background-image: url("../../themes/packages/default/assets/images/loader-small-inverted.gif");
  353. }
  354. /* Standard Size */
  355. .ui.dimmer .ui.loader,
  356. .ui.inverted.loader {
  357. background-image: url("../../themes/packages/default/assets/images/loader-medium-inverted.gif");
  358. }
  359. /* Large Size */
  360. .ui.dimmer .large.ui.loader,
  361. .ui.inverted .large.ui.loader {
  362. background-image: url("../../themes/packages/default/assets/images/loader-large-inverted.gif");
  363. }
  364. /*-------------------
  365. Inline
  366. --------------------*/
  367. .ui.inline.loader {
  368. position: static;
  369. vertical-align: middle;
  370. margin: 0em;
  371. -webkit-transform: none;
  372. -ms-transform: none;
  373. transform: none;
  374. }
  375. .ui.inline.loader.active,
  376. .ui.inline.loader.visible {
  377. display: inline-block;
  378. }
  379. /*******************************
  380. Overrides
  381. *******************************/
  382. /*******************************
  383. Overrides
  384. *******************************/