Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 1 | espaco | 1 | @import '../../global/_variables'; // global variables. |
| 2 | @import '../../global/components/_mixins'; // global mixings. |
||
| 3 | |||
| 4 | /*** |
||
| 5 | Timeline UI Base |
||
| 6 | ***/ |
||
| 7 | .timeline { |
||
| 8 | margin: 0; |
||
| 9 | padding: 0; |
||
| 10 | list-style: none; |
||
| 11 | position: relative; |
||
| 12 | } |
||
| 13 | |||
| 14 | /* The line */ |
||
| 15 | .timeline:before { |
||
| 16 | content: ''; |
||
| 17 | position: absolute; |
||
| 18 | top: 0; |
||
| 19 | bottom: 0; |
||
| 20 | width: 10px; |
||
| 21 | background: #ccc; |
||
| 22 | left: 20%; |
||
| 23 | margin-left: -10px; |
||
| 24 | } |
||
| 25 | |||
| 26 | .timeline > li { |
||
| 27 | position: relative; |
||
| 28 | } |
||
| 29 | |||
| 30 | /*Remove timeline line for last entry*/ |
||
| 31 | .timeline > li.timeline-noline:before { |
||
| 32 | content: ''; |
||
| 33 | position: absolute; |
||
| 34 | top: 0; |
||
| 35 | bottom: 0; |
||
| 36 | width: 10px; |
||
| 37 | background: #fff; |
||
| 38 | left: 20%; |
||
| 39 | margin-left: -10px; |
||
| 40 | } |
||
| 41 | |||
| 42 | /* The date/time */ |
||
| 43 | .timeline > li .timeline-time { |
||
| 44 | display: block; |
||
| 45 | width: 15%; |
||
| 46 | text-align: right; |
||
| 47 | position: absolute; |
||
| 48 | } |
||
| 49 | |||
| 50 | .timeline > li .timeline-time span { |
||
| 51 | display: block; |
||
| 52 | text-align: right; |
||
| 53 | } |
||
| 54 | |||
| 55 | .timeline > li .timeline-time span.date { |
||
| 56 | font-size: 12px; |
||
| 57 | color: #aaa; |
||
| 58 | display: block; |
||
| 59 | font-weight: 300; |
||
| 60 | } |
||
| 61 | |||
| 62 | .timeline > li .timeline-time span.time { |
||
| 63 | font-weight: 300; |
||
| 64 | font-size: 38px; |
||
| 65 | line-height: 38px; |
||
| 66 | } |
||
| 67 | |||
| 68 | /* Right content */ |
||
| 69 | |||
| 70 | .timeline > li .timeline-body { |
||
| 71 | margin: 0 0 15px 25%; |
||
| 72 | color: #fff; |
||
| 73 | padding: 10px; |
||
| 74 | font-weight: 300; |
||
| 75 | position: relative; |
||
| 76 | border-radius: 5px; |
||
| 77 | } |
||
| 78 | |||
| 79 | .timeline > li .timeline-body h2 { |
||
| 80 | margin-top: 0px; |
||
| 81 | padding: 0 0 5px 0; |
||
| 82 | border-bottom: 1px solid rgba(255,255,255,0.3); |
||
| 83 | font-size: 24px; |
||
| 84 | } |
||
| 85 | |||
| 86 | .timeline > li .timeline-content { |
||
| 87 | font-size: 14px; |
||
| 88 | } |
||
| 89 | |||
| 90 | .ie8 .timeline > li .timeline-body h2 { |
||
| 91 | border-bottom: 1px solid #eee; |
||
| 92 | } |
||
| 93 | |||
| 94 | .timeline > li .timeline-body img.timeline-img { |
||
| 95 | width: 75px; |
||
| 96 | height: 75px; |
||
| 97 | margin: 5px 10px 0 0px; |
||
| 98 | } |
||
| 99 | |||
| 100 | .timeline > li .timeline-body img.pull-right { |
||
| 101 | margin-left: 10px; |
||
| 102 | } |
||
| 103 | |||
| 104 | |||
| 105 | .timeline > li .timeline-body a.nav-link { |
||
| 106 | display: inline-block; |
||
| 107 | margin-top: 10px; |
||
| 108 | color: #fff; |
||
| 109 | font-size: 14px; |
||
| 110 | padding: 0px; |
||
| 111 | text-align: left; |
||
| 112 | text-decoration: none; |
||
| 113 | } |
||
| 114 | |||
| 115 | .timeline > li .timeline-body a.nav-link:hover { |
||
| 116 | opacity: 0.5; |
||
| 117 | filter: alpha(opacity=50); |
||
| 118 | } |
||
| 119 | |||
| 120 | .timeline > li .timeline-body .btn { |
||
| 121 | margin-top: 10px; |
||
| 122 | } |
||
| 123 | |||
| 124 | /* The triangle */ |
||
| 125 | .timeline > li .timeline-body:after { |
||
| 126 | right: 100%; |
||
| 127 | border: solid transparent; |
||
| 128 | content: " "; |
||
| 129 | height: 0; |
||
| 130 | width: 0; |
||
| 131 | position: absolute; |
||
| 132 | pointer-events: none; |
||
| 133 | border-right-color: #3594cb; |
||
| 134 | border-width: 10px; |
||
| 135 | top: 19px; |
||
| 136 | } |
||
| 137 | |||
| 138 | .timeline > li .timeline-content:after, |
||
| 139 | .timeline > li .timeline-content:before { |
||
| 140 | display: table; |
||
| 141 | line-height: 0; |
||
| 142 | content: ""; |
||
| 143 | } |
||
| 144 | |||
| 145 | .timeline > li .timeline-content:after { |
||
| 146 | clear: both; |
||
| 147 | } |
||
| 148 | |||
| 149 | .timeline >li .timeline-footer:after, |
||
| 150 | .timeline >li .timeline-footer:before { |
||
| 151 | content: ""; |
||
| 152 | display: table; |
||
| 153 | line-height: 0; |
||
| 154 | } |
||
| 155 | |||
| 156 | .timeline >li .timeline-footer:after { |
||
| 157 | clear: both; |
||
| 158 | } |
||
| 159 | |||
| 160 | /* The icons */ |
||
| 161 | .timeline > li .timeline-icon { |
||
| 162 | width: 40px; |
||
| 163 | height: 40px; |
||
| 164 | speak: none; |
||
| 165 | font-style: normal; |
||
| 166 | font-weight: normal; |
||
| 167 | font-variant: normal; |
||
| 168 | text-transform: none; |
||
| 169 | font-size: 1.4em; |
||
| 170 | line-height: 40px; |
||
| 171 | -webkit-font-smoothing: antialiased; |
||
| 172 | position: absolute; |
||
| 173 | color: #fff; |
||
| 174 | background: #aaa; |
||
| 175 | border-radius: 50%; |
||
| 176 | box-shadow: 0 0 0 8px #ccc; |
||
| 177 | text-align: center; |
||
| 178 | left: 20%; |
||
| 179 | top: 0; |
||
| 180 | margin: 5px 0 0 -25px; |
||
| 181 | padding-bottom: 3px; |
||
| 182 | padding-right: 1px; |
||
| 183 | padding-left: 2px; |
||
| 184 | -webkit-border-radius: 30px !important; |
||
| 185 | -moz-border-radius: 30px !important; |
||
| 186 | border-radius: 30px !important; |
||
| 187 | } |
||
| 188 | |||
| 189 | .timeline > li .timeline-icon > i { |
||
| 190 | font-size: 18px; |
||
| 191 | } |
||
| 192 | |||
| 193 | // Color variants |
||
| 194 | @mixin timeline-variant($name, $color) { |
||
| 195 | .timeline li.timeline-#{$name} .timeline-body:after { |
||
| 196 | border-right-color: $color; |
||
| 197 | } |
||
| 198 | |||
| 199 | .timeline li.timeline-#{$name} .timeline-body { |
||
| 200 | background: $color; |
||
| 201 | } |
||
| 202 | |||
| 203 | .timeline li.timeline-#{$name} .timeline-time span.time { |
||
| 204 | color: $color; |
||
| 205 | } |
||
| 206 | } |
||
| 207 | |||
| 208 | /* Red */ |
||
| 209 | @include timeline-variant("red", #e02222); |
||
| 210 | |||
| 211 | /* Yellow */ |
||
| 212 | @include timeline-variant("yellow", #ffb848); |
||
| 213 | |||
| 214 | /* Green */ |
||
| 215 | @include timeline-variant("green", #35aa47); |
||
| 216 | |||
| 217 | /* Blue */ |
||
| 218 | @include timeline-variant("blue", #4b8df8); |
||
| 219 | |||
| 220 | /* Purple */ |
||
| 221 | @include timeline-variant("purple", #852b99); |
||
| 222 | |||
| 223 | /* Grey */ |
||
| 224 | @include timeline-variant("grey", #555555); |
||
| 225 | |||
| 226 | @media (max-width: 767px) { |
||
| 227 | timeline > li .timeline-time span.time { |
||
| 228 | font-size: 18px; |
||
| 229 | } |
||
| 230 | |||
| 231 | .timeline:before { |
||
| 232 | display: none; |
||
| 233 | } |
||
| 234 | |||
| 235 | .timeline > li .timeline-time { |
||
| 236 | width: 100%; |
||
| 237 | position: relative; |
||
| 238 | padding: 0 0 20px 0; |
||
| 239 | } |
||
| 240 | |||
| 241 | .timeline > li .timeline-time span { |
||
| 242 | text-align: left; |
||
| 243 | } |
||
| 244 | |||
| 245 | .timeline > li .timeline-body { |
||
| 246 | margin: 0 0 30px 0; |
||
| 247 | padding: 1em; |
||
| 248 | } |
||
| 249 | |||
| 250 | .timeline > li .timeline-body:after { |
||
| 251 | right: auto; |
||
| 252 | left: 20px; |
||
| 253 | top: -20px; |
||
| 254 | } |
||
| 255 | |||
| 256 | .timeline > li .timeline-icon { |
||
| 257 | position: relative; |
||
| 258 | float: right; |
||
| 259 | left: auto; |
||
| 260 | margin: -55px 5px 0 0px; |
||
| 261 | } |
||
| 262 | |||
| 263 | /*colors*/ |
||
| 264 | |||
| 265 | |||
| 266 | .timeline li.timeline-red .timeline-body:after { |
||
| 267 | border-right-color: transparent; |
||
| 268 | border-bottom-color: #e02222; |
||
| 269 | } |
||
| 270 | |||
| 271 | .timeline li.timeline-blue .timeline-body:after { |
||
| 272 | border-right-color: transparent; |
||
| 273 | border-bottom-color: #4b8df8; |
||
| 274 | } |
||
| 275 | |||
| 276 | .timeline li.timeline-green .timeline-body:after { |
||
| 277 | border-right-color: transparent; |
||
| 278 | border-bottom-color: #35aa47; |
||
| 279 | } |
||
| 280 | |||
| 281 | .timeline li.timeline-yellow .timeline-body:after { |
||
| 282 | border-right-color: transparent; |
||
| 283 | border-bottom-color: #ffb848; |
||
| 284 | } |
||
| 285 | |||
| 286 | .timeline li.timeline-purple .timeline-body:after { |
||
| 287 | border-right-color: transparent; |
||
| 288 | border-bottom-color: #852b99; |
||
| 289 | } |
||
| 290 | |||
| 291 | .timeline li.timeline-grey .timeline-body:after { |
||
| 292 | border-right-color: transparent; |
||
| 293 | border-bottom-color: #555555; |
||
| 294 | } |
||
| 295 | } |
||
| 296 |