|
76 | 76 | max-height: 100%; |
77 | 77 | overflow: hidden; |
78 | 78 | } |
| 79 | + |
| 80 | + .show-playlist-btn { |
| 81 | + position: absolute; |
| 82 | + top: 12px; |
| 83 | + right: 12px; |
| 84 | + z-index: 10; |
| 85 | + background: var(--el-org-bg-color); |
| 86 | + border: 1px solid var(--el-border-color-x); |
| 87 | + color: var(--el-text-color-light); |
| 88 | + padding: 8px 12px; |
| 89 | + border-radius: 4px; |
| 90 | + cursor: pointer; |
| 91 | + font-size: 12px; |
| 92 | + display: none; |
| 93 | + |
| 94 | + &:hover { |
| 95 | + background: var(--el-dropdown-hover-bg-color); |
| 96 | + } |
| 97 | + |
| 98 | + i { |
| 99 | + margin-right: 4px; |
| 100 | + } |
| 101 | + } |
| 102 | + |
| 103 | + &.playlist-hidden .show-playlist-btn { |
| 104 | + display: block; |
| 105 | + } |
79 | 106 | } |
80 | 107 |
|
81 | 108 | .playlist-area { |
82 | 109 | width: var(--playlist-width); |
83 | 110 | min-width: var(--playlist-min-width); |
84 | | - max-width: var(--playlist-width); |
| 111 | + max-width: 400px; |
85 | 112 | background: var(--el-asset-tree-bg-color); |
86 | 113 | border-left: 1px solid var(--el-border-color-x); |
87 | 114 | display: flex; |
88 | 115 | flex-direction: column; |
89 | 116 | flex-shrink: 0; |
| 117 | + resize: horizontal; |
| 118 | + overflow: hidden; |
| 119 | + transition: width 0.3s ease, min-width 0.3s ease; |
| 120 | + |
| 121 | + &.collapsed { |
| 122 | + width: 0; |
| 123 | + min-width: 0; |
| 124 | + max-width: 0; |
| 125 | + resize: none; |
| 126 | + border-left: none; |
| 127 | + } |
90 | 128 |
|
91 | 129 | .playlist-header { |
92 | 130 | display: flex; |
|
96 | 134 | background: var(--el-org-bg-color); |
97 | 135 | border-bottom: 1px solid var(--el-border-color-x); |
98 | 136 |
|
99 | | - h3 { |
100 | | - margin: 0; |
101 | | - font-size: 14px; |
102 | | - font-weight: 500; |
103 | | - color: #ffffff; |
| 137 | + .playlist-title { |
| 138 | + display: flex; |
| 139 | + align-items: center; |
| 140 | + gap: 8px; |
| 141 | + |
| 142 | + h3 { |
| 143 | + margin: 0; |
| 144 | + font-size: 14px; |
| 145 | + font-weight: 500; |
| 146 | + color: #ffffff; |
| 147 | + } |
| 148 | + |
| 149 | + .count { |
| 150 | + font-size: 12px; |
| 151 | + color: rgba(255, 255, 255, 0.6); |
| 152 | + } |
104 | 153 | } |
105 | 154 |
|
106 | | - .count { |
107 | | - font-size: 12px; |
108 | | - color: rgba(255, 255, 255, 0.6); |
| 155 | + .playlist-actions { |
| 156 | + display: flex; |
| 157 | + align-items: center; |
| 158 | + gap: 8px; |
| 159 | + |
| 160 | + .toggle-btn { |
| 161 | + background: transparent; |
| 162 | + border: none; |
| 163 | + color: var(--el-text-color-light); |
| 164 | + cursor: pointer; |
| 165 | + padding: 4px; |
| 166 | + border-radius: 3px; |
| 167 | + |
| 168 | + &:hover { |
| 169 | + background: var(--el-dropdown-hover-bg-color); |
| 170 | + } |
| 171 | + |
| 172 | + i { |
| 173 | + font-size: 12px; |
| 174 | + } |
| 175 | + } |
109 | 176 | } |
110 | 177 | } |
111 | 178 |
|
|
232 | 299 | @media (min-width: 1200px) { |
233 | 300 | --playlist-width: 350px; |
234 | 301 | --playlist-min-width: 350px; |
| 302 | + |
| 303 | + .main-content .playlist-area { |
| 304 | + max-width: 500px; |
| 305 | + } |
| 306 | + } |
| 307 | + |
| 308 | + @media (min-width: 1600px) { |
| 309 | + --playlist-width: 400px; |
| 310 | + --playlist-min-width: 400px; |
| 311 | + |
| 312 | + .main-content .playlist-area { |
| 313 | + max-width: 600px; |
| 314 | + } |
235 | 315 | } |
236 | 316 |
|
237 | 317 | @media (max-width: 480px) { |
|
0 commit comments