| 1 |
.timeline-item { |
| 2 |
background: #fff; |
| 3 |
} |
| 4 |
|
| 5 |
@keyframes placeHolderShimmer { |
| 6 |
0% { |
| 7 |
background-position: 0 0 |
| 8 |
} |
| 9 |
|
| 10 |
100% { |
| 11 |
background-position: 520px 0 |
| 12 |
} |
| 13 |
} |
| 14 |
|
| 15 |
.placeholder-animation { |
| 16 |
max-width: 650px; |
| 17 |
margin: 0 auto; |
| 18 |
} |
| 19 |
|
| 20 |
.animated-background { |
| 21 |
animation-duration: 0.85s; |
| 22 |
animation-fill-mode: forwards; |
| 23 |
animation-iteration-count: infinite; |
| 24 |
animation-name: placeHolderShimmer; |
| 25 |
animation-timing-function: linear; |
| 26 |
background: #f6f7f8; |
| 27 |
background: linear-gradient(to right, #eeeeee 8%, #dddddd 18%, #eeeeee 33%); |
| 28 |
background-size: 520px 100%; |
| 29 |
position: relative; |
| 30 |
} |
| 31 |
|
| 32 |
.container { |
| 33 |
margin: 0 auto; |
| 34 |
width: 650px; |
| 35 |
background-color: #eee; |
| 36 |
border:1px solid #eee; |
| 37 |
} |
| 38 |
|
| 39 |
.layer { |
| 40 |
display: flex; |
| 41 |
|
| 42 |
&.h1 { |
| 43 |
height: 28px; |
| 44 |
} |
| 45 |
|
| 46 |
&.h2 { |
| 47 |
height: 22px; |
| 48 |
} |
| 49 |
|
| 50 |
&.inline-radios { |
| 51 |
height: 12px; |
| 52 |
} |
| 53 |
|
| 54 |
&.label { |
| 55 |
height: 8px; |
| 56 |
} |
| 57 |
} |
| 58 |
|
| 59 |
.layer-item { |
| 60 |
&.opaque { |
| 61 |
background: #fff; |
| 62 |
} |
| 63 |
} |
| 64 |
|
| 65 |
.layer-gap { |
| 66 |
background-color: #fff; |
| 67 |
|
| 68 |
&.large { |
| 69 |
height: 40px; |
| 70 |
} |
| 71 |
|
| 72 |
&.medium { |
| 73 |
height: 20px; |
| 74 |
} |
| 75 |
|
| 76 |
&.small { |
| 77 |
height: 10px; |
| 78 |
} |
| 79 |
} |
| 80 |
|
| 81 |
// Specifics |
| 82 |
|
| 83 |
// Layer-1 |
| 84 |
.layer-1 { |
| 85 |
.layer-item:nth-child(odd) { |
| 86 |
width: 45% |
| 87 |
} |
| 88 |
|
| 89 |
.layer-item:nth-child(even) { |
| 90 |
width: 55%; |
| 91 |
} |
| 92 |
} |
| 93 |
|
| 94 |
|
| 95 |
// Layer-4 |
| 96 |
.layer-4 { |
| 97 |
.layer-item:nth-child(1) { |
| 98 |
width: 30%; |
| 99 |
} |
| 100 |
|
| 101 |
.layer-item:nth-child(2) { |
| 102 |
width: 10%; |
| 103 |
} |
| 104 |
|
| 105 |
.layer-item:nth-child(3) { |
| 106 |
width: 20%; |
| 107 |
} |
| 108 |
|
| 109 |
.layer-item:nth-child(4) { |
| 110 |
width: 30%; |
| 111 |
} |
| 112 |
|
| 113 |
.layer-item:nth-child(5) { |
| 114 |
width: 10%; |
| 115 |
} |
| 116 |
} |
| 117 |
|
| 118 |
// Layer-5 |
| 119 |
.layer-5 { |
| 120 |
.layer-item:nth-child(1) { |
| 121 |
width: 40%; |
| 122 |
} |
| 123 |
|
| 124 |
.layer-item:nth-child(2) { |
| 125 |
width: 5%; |
| 126 |
} |
| 127 |
|
| 128 |
.layer-item:nth-child(3) { |
| 129 |
width: 15%; |
| 130 |
} |
| 131 |
|
| 132 |
.layer-item:nth-child(4) { |
| 133 |
width: 40%; |
| 134 |
} |
| 135 |
} |
| 136 |
|
| 137 |
// Layer-6 |
| 138 |
.layer-6 { |
| 139 |
.layer-item:nth-child(odd) { |
| 140 |
width: 30%; |
| 141 |
} |
| 142 |
|
| 143 |
.layer-item:nth-child(even) { |
| 144 |
width: 70%; |
| 145 |
} |
| 146 |
} |
| 147 |
|
| 148 |
// Layer-8 |
| 149 |
.layer-8 { |
| 150 |
.layer-item:nth-child(1) { |
| 151 |
width: 40%; |
| 152 |
} |
| 153 |
|
| 154 |
.layer-item:nth-child(2) { |
| 155 |
width: 20%; |
| 156 |
} |
| 157 |
|
| 158 |
.layer-item:nth-child(3) { |
| 159 |
width: 40%; |
| 160 |
} |
| 161 |
} |
| 162 |
|