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.

397 lines
10 KiB

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