@@ -1,37 +0,0 @@ |
||
| 1 |
-/* |
|
| 2 |
- * Django admin 的筛选侧栏默认是绝对定位(position: absolute; right: 0), |
|
| 3 |
- * 结果表格靠右侧 260px 留白让位。一旦留白失效或筛选面板过长,就会盖住列表。 |
|
| 4 |
- * 这里把侧栏改回文档流内的浮动,二者各占各的空间。 |
|
| 5 |
- */ |
|
| 6 |
-#changelist-filter {
|
|
| 7 |
- position: static; |
|
| 8 |
- float: right; |
|
| 9 |
- width: 240px; |
|
| 10 |
- margin: 0 0 0 16px; |
|
| 11 |
- clear: none; |
|
| 12 |
-} |
|
| 13 |
- |
|
| 14 |
-.change-list .filtered .results, |
|
| 15 |
-.change-list .filtered .paginator, |
|
| 16 |
-.change-list .filtered #toolbar, |
|
| 17 |
-.change-list .filtered div.actions {
|
|
| 18 |
- margin-right: 260px; |
|
| 19 |
-} |
|
| 20 |
- |
|
| 21 |
-/* 窄屏:侧栏落到列表下方,不再挤压表格 */ |
|
| 22 |
-@media (max-width: 1200px) {
|
|
| 23 |
- #changelist-filter {
|
|
| 24 |
- float: none; |
|
| 25 |
- width: auto; |
|
| 26 |
- margin: 16px 0 0 0; |
|
| 27 |
- border-left: 0; |
|
| 28 |
- border-top: 1px solid #eee; |
|
| 29 |
- } |
|
| 30 |
- |
|
| 31 |
- .change-list .filtered .results, |
|
| 32 |
- .change-list .filtered .paginator, |
|
| 33 |
- .change-list .filtered #toolbar, |
|
| 34 |
- .change-list .filtered div.actions {
|
|
| 35 |
- margin-right: 0; |
|
| 36 |
- } |
|
| 37 |
-} |