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.

235 lines
5.0 KiB

6 years ago
6 years ago
  1. /*!
  2. * # Semantic UI 2.5.0 - Loader
  3. * http://github.com/semantic-org/semantic-ui/
  4. *
  5. *
  6. * Released under the MIT license
  7. * http://opensource.org/licenses/MIT
  8. *
  9. */
  10. /*-------------------
  11. Content
  12. --------------------*/
  13. .ui.placeholder {
  14. position: static;
  15. overflow: hidden;
  16. -webkit-animation: placeholderShimmer 2s linear;
  17. animation: placeholderShimmer 2s linear;
  18. -webkit-animation-iteration-count: infinite;
  19. animation-iteration-count: infinite;
  20. background-color: #FFFFFF;
  21. background-image: linear-gradient(to right, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.15) 15%, rgba(0, 0, 0, 0.08) 30%);
  22. background-size: 1200px 100%;
  23. max-width: 30rem;
  24. }
  25. @-webkit-keyframes placeholderShimmer {
  26. 0% {
  27. background-position: -1200px 0;
  28. }
  29. 100% {
  30. background-position: 1200px 0;
  31. }
  32. }
  33. @keyframes placeholderShimmer {
  34. 0% {
  35. background-position: -1200px 0;
  36. }
  37. 100% {
  38. background-position: 1200px 0;
  39. }
  40. }
  41. .ui.placeholder + .ui.placeholder {
  42. margin-top: 2rem;
  43. }
  44. .ui.placeholder + .ui.placeholder {
  45. -webkit-animation-delay: 0.15s;
  46. animation-delay: 0.15s;
  47. }
  48. .ui.placeholder + .ui.placeholder + .ui.placeholder {
  49. -webkit-animation-delay: 0.3s;
  50. animation-delay: 0.3s;
  51. }
  52. .ui.placeholder + .ui.placeholder + .ui.placeholder + .ui.placeholder {
  53. -webkit-animation-delay: 0.45s;
  54. animation-delay: 0.45s;
  55. }
  56. .ui.placeholder + .ui.placeholder + .ui.placeholder + .ui.placeholder + .ui.placeholder {
  57. -webkit-animation-delay: 0.6s;
  58. animation-delay: 0.6s;
  59. }
  60. .ui.placeholder,
  61. .ui.placeholder > :before,
  62. .ui.placeholder .image.header:after,
  63. .ui.placeholder .line,
  64. .ui.placeholder .line:after {
  65. background-color: #FFFFFF;
  66. }
  67. /* Image */
  68. .ui.placeholder .image:not(.header):not(.ui) {
  69. height: 100px;
  70. }
  71. .ui.placeholder .square.image:not(.header) {
  72. height: 0px;
  73. overflow: hidden;
  74. /* 1/1 aspect ratio */
  75. padding-top: 100%;
  76. }
  77. .ui.placeholder .rectangular.image:not(.header) {
  78. height: 0px;
  79. overflow: hidden;
  80. /* 4/3 aspect ratio */
  81. padding-top: 75%;
  82. }
  83. /* Lines */
  84. .ui.placeholder .line {
  85. position: relative;
  86. height: 0.85714286em;
  87. }
  88. .ui.placeholder .line:before,
  89. .ui.placeholder .line:after {
  90. top: 100%;
  91. position: absolute;
  92. content: '';
  93. background-color: inherit;
  94. }
  95. .ui.placeholder .line:before {
  96. left: 0px;
  97. }
  98. .ui.placeholder .line:after {
  99. right: 0px;
  100. }
  101. /* Any Lines */
  102. .ui.placeholder .line {
  103. margin-bottom: 0.5em;
  104. }
  105. .ui.placeholder .line:before,
  106. .ui.placeholder .line:after {
  107. height: 0.5em;
  108. }
  109. .ui.placeholder .line:not(:first-child) {
  110. margin-top: 0.5em;
  111. }
  112. /* Header Image + 2 Lines */
  113. .ui.placeholder .header {
  114. position: relative;
  115. overflow: hidden;
  116. }
  117. /* Line Outdent */
  118. .ui.placeholder .line:nth-child(1):after {
  119. width: 0%;
  120. }
  121. .ui.placeholder .line:nth-child(2):after {
  122. width: 50%;
  123. }
  124. .ui.placeholder .line:nth-child(3):after {
  125. width: 10%;
  126. }
  127. .ui.placeholder .line:nth-child(4):after {
  128. width: 35%;
  129. }
  130. .ui.placeholder .line:nth-child(5):after {
  131. width: 65%;
  132. }
  133. /* Header Line 1 & 2*/
  134. .ui.placeholder .header .line {
  135. margin-bottom: 0.64285714em;
  136. }
  137. .ui.placeholder .header .line:before,
  138. .ui.placeholder .header .line:after {
  139. height: 0.64285714em;
  140. }
  141. .ui.placeholder .header .line:not(:first-child) {
  142. margin-top: 0.64285714em;
  143. }
  144. .ui.placeholder .header .line:after {
  145. width: 20%;
  146. }
  147. .ui.placeholder .header .line:nth-child(2):after {
  148. width: 60%;
  149. }
  150. /* Image Header */
  151. .ui.placeholder .image.header .line {
  152. margin-left: 3em;
  153. }
  154. .ui.placeholder .image.header .line:before {
  155. width: 0.71428571rem;
  156. }
  157. .ui.placeholder .image.header:after {
  158. display: block;
  159. height: 0.85714286em;
  160. content: '';
  161. margin-left: 3em;
  162. }
  163. /* Spacing */
  164. .ui.placeholder .image .line:first-child,
  165. .ui.placeholder .paragraph .line:first-child,
  166. .ui.placeholder .header .line:first-child {
  167. height: 0.01px;
  168. }
  169. .ui.placeholder .image:not(:first-child):before,
  170. .ui.placeholder .paragraph:not(:first-child):before,
  171. .ui.placeholder .header:not(:first-child):before {
  172. height: 1.42857143em;
  173. content: '';
  174. display: block;
  175. }
  176. /* Inverted Content Loader */
  177. .ui.inverted.placeholder {
  178. background-image: linear-gradient(to right, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.14) 15%, rgba(255, 255, 255, 0.08) 30%);
  179. }
  180. .ui.inverted.placeholder,
  181. .ui.inverted.placeholder > :before,
  182. .ui.inverted.placeholder .image.header:after,
  183. .ui.inverted.placeholder .line,
  184. .ui.inverted.placeholder .line:after {
  185. background-color: #1B1C1D;
  186. }
  187. /*******************************
  188. Variations
  189. *******************************/
  190. /*-------------------
  191. Sizes
  192. --------------------*/
  193. .ui.placeholder .full.line.line.line:after {
  194. width: 0%;
  195. }
  196. .ui.placeholder .very.long.line.line.line:after {
  197. width: 10%;
  198. }
  199. .ui.placeholder .long.line.line.line:after {
  200. width: 35%;
  201. }
  202. .ui.placeholder .medium.line.line.line:after {
  203. width: 50%;
  204. }
  205. .ui.placeholder .short.line.line.line:after {
  206. width: 65%;
  207. }
  208. .ui.placeholder .very.short.line.line.line:after {
  209. width: 80%;
  210. }
  211. /*-------------------
  212. Fluid
  213. --------------------*/
  214. .ui.fluid.placeholder {
  215. max-width: none;
  216. }