| 1 |
|
| 2 |
/* Collections View Switcher */ |
| 3 |
.collections-toolbar { |
| 4 |
display: flex; |
| 5 |
justify-content: flex-end; |
| 6 |
margin-bottom: 20px; |
| 7 |
padding: 0 20px; |
| 8 |
} |
| 9 |
|
| 10 |
.collections-view-switcher { |
| 11 |
display: flex; |
| 12 |
background: #e5e5e7; |
| 13 |
padding: 3px; |
| 14 |
border-radius: 8px; |
| 15 |
gap: 2px; |
| 16 |
} |
| 17 |
|
| 18 |
.view-switch-btn { |
| 19 |
background: transparent; |
| 20 |
border: none; |
| 21 |
padding: 6px 12px; |
| 22 |
border-radius: 6px; |
| 23 |
cursor: pointer; |
| 24 |
color: #86868b; |
| 25 |
transition: all 0.2s ease; |
| 26 |
display: flex; |
| 27 |
align-items: center; |
| 28 |
justify-content: center; |
| 29 |
} |
| 30 |
|
| 31 |
.view-switch-btn:hover { |
| 32 |
color: #1d1d1f; |
| 33 |
} |
| 34 |
|
| 35 |
.view-switch-btn.active { |
| 36 |
background: #fff; |
| 37 |
color: #1d1d1f; |
| 38 |
box-shadow: 0 1px 3px rgba(0,0,0,0.1); |
| 39 |
} |
| 40 |
|
| 41 |
/* Collections Rows View */ |
| 42 |
.collection-row { |
| 43 |
margin-bottom: 40px; |
| 44 |
padding-bottom: 40px; |
| 45 |
border-bottom: 1px solid #e5e5e7; |
| 46 |
} |
| 47 |
|
| 48 |
.collection-row:last-child { |
| 49 |
border-bottom: none; |
| 50 |
} |
| 51 |
|
| 52 |
.collection-row-header { |
| 53 |
display: flex; |
| 54 |
justify-content: space-between; |
| 55 |
align-items: center; |
| 56 |
margin-bottom: 20px; |
| 57 |
padding: 0 20px; |
| 58 |
} |
| 59 |
|
| 60 |
.collection-row-title { |
| 61 |
font-size: 20px; |
| 62 |
font-weight: 600; |
| 63 |
color: #1d1d1f; |
| 64 |
margin: 0; |
| 65 |
} |
| 66 |
|
| 67 |
.collection-row-view-all { |
| 68 |
font-size: 14px; |
| 69 |
color: #0066cc; |
| 70 |
text-decoration: none; |
| 71 |
font-weight: 500; |
| 72 |
display: flex; |
| 73 |
align-items: center; |
| 74 |
gap: 4px; |
| 75 |
transition: opacity 0.2s ease; |
| 76 |
} |
| 77 |
|
| 78 |
.collection-row-view-all:hover { |
| 79 |
opacity: 0.8; |
| 80 |
text-decoration: underline; |
| 81 |
} |
| 82 |
|
| 83 |
.collection-row-scroll { |
| 84 |
display: flex; |
| 85 |
overflow-x: auto; |
| 86 |
gap: 20px; |
| 87 |
padding: 5px 20px 25px; /* Bottom padding for scrollbar/shadow */ |
| 88 |
scroll-snap-type: x mandatory; |
| 89 |
-webkit-overflow-scrolling: touch; |
| 90 |
scrollbar-width: none; /* Firefox */ |
| 91 |
} |
| 92 |
|
| 93 |
.collection-row-scroll::-webkit-scrollbar { |
| 94 |
display: none; /* Chrome/Safari */ |
| 95 |
} |
| 96 |
|
| 97 |
.collection-row-item { |
| 98 |
flex: 0 0 280px; /* Fixed width for items */ |
| 99 |
scroll-snap-align: start; |
| 100 |
background: #fff; |
| 101 |
border-radius: 12px; |
| 102 |
overflow: hidden; |
| 103 |
box-shadow: 0 2px 8px rgba(0,0,0,0.04); |
| 104 |
transition: transform 0.3s ease, box-shadow 0.3s ease; |
| 105 |
border: 1px solid rgba(0,0,0,0.05); |
| 106 |
cursor: pointer; |
| 107 |
} |
| 108 |
|
| 109 |
.collection-row-item:hover { |
| 110 |
transform: translateY(-4px); |
| 111 |
box-shadow: 0 8px 24px rgba(0,0,0,0.08); |
| 112 |
} |
| 113 |
|
| 114 |
.collection-row-item img { |
| 115 |
width: 100%; |
| 116 |
height: 180px; |
| 117 |
object-fit: cover; |
| 118 |
object-position: top; |
| 119 |
display: block; |
| 120 |
} |
| 121 |
|
| 122 |
.collection-row-item-info { |
| 123 |
padding: 15px; |
| 124 |
} |
| 125 |
|
| 126 |
.collection-row-item-title { |
| 127 |
font-size: 14px; |
| 128 |
font-weight: 600; |
| 129 |
color: #1d1d1f; |
| 130 |
margin: 0 0 5px; |
| 131 |
white-space: nowrap; |
| 132 |
overflow: hidden; |
| 133 |
text-overflow: ellipsis; |
| 134 |
} |
| 135 |
|
| 136 |
.collection-row-item-meta { |
| 137 |
display: flex; |
| 138 |
justify-content: space-between; |
| 139 |
align-items: center; |
| 140 |
font-size: 12px; |
| 141 |
color: #86868b; |
| 142 |
} |
| 143 |
|
| 144 |
.collection-row-empty { |
| 145 |
padding: 20px; |
| 146 |
text-align: center; |
| 147 |
color: #86868b; |
| 148 |
background: #f5f5f7; |
| 149 |
border-radius: 8px; |
| 150 |
margin: 0 20px; |
| 151 |
} |
| 152 |
|
| 153 |
/* Dark Mode */ |
| 154 |
body.ka-v3-dark .collections-view-switcher { |
| 155 |
background: #2c2c2e; |
| 156 |
} |
| 157 |
|
| 158 |
body.ka-v3-dark .view-switch-btn { |
| 159 |
color: #98989d; |
| 160 |
} |
| 161 |
|
| 162 |
body.ka-v3-dark .view-switch-btn:hover { |
| 163 |
color: #f5f5f7; |
| 164 |
} |
| 165 |
|
| 166 |
body.ka-v3-dark .view-switch-btn.active { |
| 167 |
background: #636366; |
| 168 |
color: #fff; |
| 169 |
} |
| 170 |
|
| 171 |
body.ka-v3-dark .collection-row { |
| 172 |
border-bottom-color: #38383a; |
| 173 |
} |
| 174 |
|
| 175 |
body.ka-v3-dark .collection-row-title { |
| 176 |
color: #f5f5f7; |
| 177 |
} |
| 178 |
|
| 179 |
body.ka-v3-dark .collection-row-view-all { |
| 180 |
color: #2997ff; |
| 181 |
} |
| 182 |
|
| 183 |
body.ka-v3-dark .collection-row-item { |
| 184 |
background: #1c1c1e; |
| 185 |
border-color: #38383a; |
| 186 |
} |
| 187 |
|
| 188 |
body.ka-v3-dark .collection-row-item-title { |
| 189 |
color: #f5f5f7; |
| 190 |
} |
| 191 |
|
| 192 |
body.ka-v3-dark .collection-row-empty { |
| 193 |
background: #1c1c1e; |
| 194 |
color: #98989d; |
| 195 |
} |
| 196 |
|