Add attachment details to the media sidebar.

* Also moves most of the `Frame` view's `createSelection` method to a real `Selection` model (which inherits from the `Attachments` model).
* Properly assigns the library within the `Gallery` state, allowing for the `Gallery` state to inherit from the `Library` state.

see #21390.


git-svn-id: https://develop.svn.wordpress.org/trunk@22323 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Daryl Koopersmith
2012-10-29 15:13:02 +00:00
parent 6e387bb2db
commit bc29728df2
4 changed files with 276 additions and 123 deletions

View File

@@ -307,8 +307,8 @@
font-weight: bold;
}
.attachment .thumbnail,
.attachment .thumbnail img {
.attachment-preview .thumbnail,
.attachment-preview .thumbnail img {
-webkit-transition-property: width, height, top, left, right, bottom;
-moz-transition-property: width, height, top, left, right, bottom;
-ms-transition-property: width, height, top, left, right, bottom;
@@ -326,12 +326,12 @@
transition-delay: 200ms;
}
.attachment .thumbnail {
.attachment-preview .thumbnail {
width: 199px;
height: 199px;
}
.attachment .thumbnail:after {
.attachment-preview .thumbnail:after {
content: '';
display: block;
position: absolute;
@@ -388,7 +388,7 @@
display: block;
}
.attachment .describe {
.media-frame .describe {
position: relative;
display: block;
width: 100%;
@@ -592,6 +592,38 @@
line-height: 60px;
}
/**
* Attachment Details
*/
.attachment-details {
padding-top: 20px;
}
.attachment-details-preview {
cursor: default;
}
.attachment-details-preview,
.attachment-details-preview .thumbnail {
width: auto;
height: auto;
float: left;
position: relative;
}
.attachment-details-preview .thumbnail img {
max-width: 120px;
max-height: 120px;
display: block;
margin: 0 auto;
}
.attachment-details .describe {
float: left;
margin: 10px 0 0;
}
/**
* Attachment Display Settings
*/