style.css
54 lines
| 1 | .wpp-sunset { |
| 2 | counter-reset: wpp-counter; |
| 3 | margin-left: 0; |
| 4 | margin-right: 0; |
| 5 | padding: 0; |
| 6 | border-right: 6px solid rgb(234, 51, 51); |
| 7 | box-sizing: border-box; |
| 8 | } |
| 9 | |
| 10 | .wpp-sunset li { |
| 11 | position: relative; |
| 12 | display: flex; |
| 13 | align-items: center; |
| 14 | counter-increment: wpp-counter; |
| 15 | position: relative; |
| 16 | list-style: none; |
| 17 | margin: 0; |
| 18 | padding: 15px 15px 15px 0; |
| 19 | background: rgba(234, 51, 51, calc((((var(--total-items) - (var(--item-position) - 1)) * 100)/var(--total-items))/100)); |
| 20 | box-sizing: border-box; |
| 21 | } |
| 22 | |
| 23 | .in-preview-mode .wpp-sunset li { |
| 24 | margin: 0; |
| 25 | padding: 15px 15px 15px 0; |
| 26 | } |
| 27 | |
| 28 | .wpp-sunset li .item-position::before { |
| 29 | display: inline-block; |
| 30 | flex: 1 0 0; |
| 31 | content: counter(wpp-counter); |
| 32 | color: rgba(0, 0, 0, 0.15); |
| 33 | width: 40px; |
| 34 | font-size: 18px; |
| 35 | font-weight: 700; |
| 36 | letter-spacing: -1px; |
| 37 | text-align: center; |
| 38 | } |
| 39 | |
| 40 | .wpp-sunset li .item-data .wpp-post-title { |
| 41 | display: block; |
| 42 | font-size: 15px; |
| 43 | font-weight: 700; |
| 44 | line-height: 1.3; |
| 45 | } |
| 46 | |
| 47 | .wpp-sunset li .item-data a { |
| 48 | color: #222; |
| 49 | text-decoration: none; |
| 50 | } |
| 51 | |
| 52 | .wpp-sunset li .item-data a:hover { |
| 53 | text-decoration: underline; |
| 54 | } |