placeholder-loading.min.css 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. /**
  2. * placeholder-loading v0.2.6
  3. * Author: Zalog (https://www.zalog.ro/)
  4. * License: MIT
  5. **/
  6. .ph-item {
  7. direction: ltr;
  8. position: relative;
  9. display: flex;
  10. flex-wrap: wrap;
  11. padding: 30px 15px 15px;
  12. overflow: hidden;
  13. margin-bottom: 30px;
  14. background-color:transparent #fff;
  15. border: 0px solid #e6e6e6;
  16. border-radius: 2px
  17. }
  18. .ph-item,
  19. .ph-item *,
  20. .ph-item :after,
  21. .ph-item :before {
  22. box-sizing: border-box
  23. }
  24. .ph-item:before {
  25. content: " ";
  26. position: absolute;
  27. top: 0;
  28. right: 0;
  29. bottom: 0;
  30. left: 50%;
  31. z-index: 1;
  32. width: 500%;
  33. margin-left: -250%;
  34. -webkit-animation: phAnimation .8s linear infinite;
  35. animation: phAnimation .8s linear infinite;
  36. background: linear-gradient(90deg, hsla(0, 0%, 100%, 0) 46%, hsla(0, 0%, 100%, .35) 50%, hsla(0, 0%, 100%, 0) 54%) 50% 50%
  37. }
  38. .ph-item>* {
  39. flex: 1 1 auto;
  40. display: flex;
  41. flex-flow: column;
  42. padding-right: 15px;
  43. padding-left: 15px
  44. }
  45. .ph-row {
  46. display: flex;
  47. flex-wrap: wrap;
  48. margin-bottom: 7.5px
  49. }
  50. .ph-row div {
  51. height: 10px;
  52. margin-bottom: 7.5px;
  53. background-color: #ced4da;
  54. border-radius: 2px;
  55. }
  56. .ph-row .big,
  57. .ph-row.big div {
  58. height: 20px;
  59. margin-bottom: 15px
  60. }
  61. .ph-row .empty {
  62. background-color: hsla(0, 0%, 100%, 0)
  63. }
  64. .ph-col-2 {
  65. flex: 0 0 16.66667%
  66. }
  67. .ph-col-4 {
  68. flex: 0 0 33.33333%
  69. }
  70. .ph-col-6 {
  71. flex: 0 0 50%
  72. }
  73. .ph-col-8 {
  74. flex: 0 0 66.66667%
  75. }
  76. .ph-col-10 {
  77. flex: 0 0 83.33333%
  78. }
  79. .ph-col-12 {
  80. flex: 0 0 100%
  81. }
  82. .ph-avatar {
  83. position: relative;
  84. width: 100%;
  85. min-width: 60px;
  86. background-color: #ced4da;
  87. margin-bottom: 15px;
  88. border-radius: 50%;
  89. overflow: hidden
  90. }
  91. .ph-avatar:before {
  92. content: " ";
  93. display: block;
  94. padding-top: 100%
  95. }
  96. .ph-picture {
  97. width: 100%;
  98. height: 120px;
  99. background-color: #ced4da;
  100. margin-bottom: 15px;
  101. border-radius: 2px;
  102. }
  103. .ph-button {
  104. width: 50%;
  105. height: 50px;
  106. background-color: #ced4da;
  107. margin-bottom: 10px;
  108. border-radius: 2px;
  109. }
  110. @-webkit-keyframes phAnimation {
  111. 0% {
  112. transform: translate3d(-30%, 0, 0)
  113. }
  114. to {
  115. transform: translate3d(30%, 0, 0)
  116. }
  117. }
  118. @keyframes phAnimation {
  119. 0% {
  120. transform: translate3d(-30%, 0, 0)
  121. }
  122. to {
  123. transform: translate3d(30%, 0, 0)
  124. }
  125. }