|
| 1 | +.apps-table-list { |
| 2 | + --f7-list-bg-color: transparent; |
| 3 | + --f7-list-item-title-white-space: normal; |
| 4 | + --f7-list-item-text-max-lines: 1; |
| 5 | + --f7-list-item-text-font-size: 13px; |
| 6 | + --f7-list-link-pressed-bg-color: transparent; |
| 7 | + --f7-list-item-title-line-height: 1.2; |
| 8 | + .item-link .item-inner { |
| 9 | + padding-right: 0; |
| 10 | + } |
| 11 | + .item-content { |
| 12 | + padding-left: 0px; |
| 13 | + } |
| 14 | + ul { |
| 15 | + flex-shrink: 0; |
| 16 | + display: flex; |
| 17 | + flex-direction: column; |
| 18 | + height: 78px * 3px; |
| 19 | + flex-wrap: wrap; |
| 20 | + overflow: auto; |
| 21 | + padding-left: calc(var(--f7-safe-area-left) + var(--f7-list-item-padding-horizontal)); |
| 22 | + scroll-snap-type: x mandatory; |
| 23 | + scrollbar-width: none; |
| 24 | + &::-webkit-scrollbar { |
| 25 | + display: none; |
| 26 | + opacity: 0; |
| 27 | + } |
| 28 | + @media (min-width: 768px) { |
| 29 | + scroll-padding-left: 16px; |
| 30 | + } |
| 31 | + } |
| 32 | + li { |
| 33 | + width: calc(100% - 16px); |
| 34 | + max-width: 350px; |
| 35 | + margin-right: 10px; |
| 36 | + scroll-snap-align: center center; |
| 37 | + @media (min-width: 768px) { |
| 38 | + margin-right: 24px; |
| 39 | + scroll-snap-align: start start; |
| 40 | + } |
| 41 | + &:nth-child(3n) .item-inner:after { |
| 42 | + display: none; |
| 43 | + } |
| 44 | + } |
| 45 | + &.list ul:after { |
| 46 | + content: '' !important; |
| 47 | + width: calc(var(--f7-safe-area-right) + var(--f7-list-item-padding-horizontal)); |
| 48 | + height: 1px; |
| 49 | + display: block !important; |
| 50 | + position: static; |
| 51 | + transform: none; |
| 52 | + height: 78px * 3px; |
| 53 | + background: transparent; |
| 54 | + } |
| 55 | + &-title { |
| 56 | + display: -webkit-box; |
| 57 | + -webkit-line-clamp: 2; |
| 58 | + -webkit-box-orient: vertical; |
| 59 | + position: relative; |
| 60 | + overflow: hidden; |
| 61 | + text-overflow: ellipsis; |
| 62 | + } |
| 63 | + &-image { |
| 64 | + width: 62px; |
| 65 | + height: 62px; |
| 66 | + background: #ccc; |
| 67 | + border-radius: 13px; |
| 68 | + background-size: cover; |
| 69 | + background-position: center; |
| 70 | + } |
| 71 | + &-button { |
| 72 | + flex-shrink: 0; |
| 73 | + display: flex; |
| 74 | + flex-direction: column; |
| 75 | + align-items: center; |
| 76 | + margin-left: var(--f7-list-item-padding-horizontal); |
| 77 | + --f7-button-bg-color: rgba(0,0,0,0.07); |
| 78 | + --f7-button-pressed-bg-color: rgba(0,0,0,0.4); |
| 79 | + .theme-dark & { |
| 80 | + --f7-button-bg-color: rgba(255,255,255,0.11); |
| 81 | + --f7-button-pressed-bg-color: rgba(255,255,255,0.075); |
| 82 | + } |
| 83 | + span { |
| 84 | + margin-top: 4px; |
| 85 | + font-size: 8px; |
| 86 | + display: block; |
| 87 | + color: var(--f7-list-item-text-text-color); |
| 88 | + } |
| 89 | + } |
| 90 | +} |
0 commit comments