]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/css/media.css
WordPress 4.0
[autoinstalls/wordpress.git] / wp-admin / css / media.css
index e6bbdcbb1600308b7136381f69e2540096fe360b..e27b665cfbb5148e86b92f4c5fdb6998dfbad80b 100644 (file)
        display: block;
        line-height: 36px;
        float: right;
+       margin-right: 10px;
 }
 
 .media-item .describe-toggle-off,
        display: block;
 }
 
-#media-items .media-item {
-       border-bottom: 1px solid #dfdfdf;
+.media-upload-form .media-item {
        min-height: 36px;
+       margin-bottom: 1px;
        position: relative;
        width: 100%;
+       background: #fff;
 }
 
-#media-items {
-       width: 623px;
-}
-
-.media-new-php #media-items {
-       margin: 1em 0;
+.media-upload-form .media-item,
+.media-upload-form .media-item .error {
+       -webkit-box-shadow: 0 1px 0 #dfdfdf;
+       box-shadow: 0 1px 0 #dfdfdf;
 }
 
 #media-items:empty {
 .media-item .filename {
        line-height: 36px;
        overflow: hidden;
-}
-
-.media-item .error-div {
-       padding-left: 10px;
+       margin-left: 6px;
 }
 
 .media-item .pinkynail {
        float: left;
-       margin: 2px 10px 0 0;
+       margin: 2px 10px 0 3px;
        max-width: 40px;
        max-height: 32px;
 }
 .media-item .progress {
        float: right;
        height: 22px;
-       margin: 7px 0 0;
+       margin: 7px 6px;
        width: 200px;
        line-height: 2em;
        padding: 0;
        overflow: hidden;
-       margin-bottom: 2px;
        -webkit-border-radius: 22px;
        border-radius: 22px;
        background: #ddd;
-       -webkit-box-shadow: inset 0px 1px 2px rgba(0,0,0,0.1);
-       box-shadow: inset 0px 1px 2px rgba(0,0,0,0.1);
+       -webkit-box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
+       box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
 }
 
 .media-item .bar {
        text-align: center;
        line-height: 22px;
        font-weight: 400;
-       text-shadow: 0px 1px 2px rgba(0,0,0,0.2);
+       text-shadow: 0 1px 2px rgba(0,0,0,0.2);
 }
 
 .upload-php .fixed .column-parent {
        display: block;
 }
 
-.media-upload-form .media-item.error {
-       margin: 0;
-       padding: 0;
+.media-upload-form .media-item.error,
+.media-upload-form .media-item .error {
+       width: auto;
+       margin: 0 0 1px 0;
 }
 
-.media-upload-form .media-item.error p,
-.media-item .error-div {
-       line-height: 16px;
-       margin: 5px 10px;
-       padding: 0;
+.media-upload-form .media-item .error {
+       padding: 10px 0 10px 14px;
 }
 
 .media-item .error-div a.dismiss {
        display: block;
        float: right;
-       margin: 5px 4px 0 15px;
+       margin: 0 10px 0 15px;
 }
 
 /*------------------------------------------------------------------------------
 
 .find-box-search .spinner {
        float: none;
-       left: 125px;
+       left: 110px;
        position: absolute;
-       top: 18px;
+       top: 2px;
+}
+
+.find-box-search,
+#find-posts-response {
+       position: relative; /* RTL fix, #WP28010 */
 }
 
 #find-posts-input,
@@ -433,6 +432,390 @@ border color while dragging a file over the uploader drop area */
        position: relative;
 }
 
+/**
+ * Media Library grid view
+ */
+
+.media-frame.mode-grid,
+.media-frame.mode-grid .media-frame-content,
+.media-frame.mode-grid .attachments-browser .attachments,
+.media-frame.mode-grid .uploader-inline-content {
+       position: static;
+}
+
+/* Regions we don't use at all */
+.media-frame.mode-grid .media-frame-title,
+.media-frame.mode-grid .media-frame-router,
+.media-frame.mode-grid .media-frame-menu {
+       display: none;
+}
+
+.media-frame.mode-grid .media-frame-content {
+       background-color: transparent;
+       border: none;
+}
+
+.upload-php .mode-grid .media-sidebar {
+       position: relative;
+       width: auto;
+       margin-bottom: 16px;
+       padding: 0 16px;
+       border: 1px solid #c00;
+       background-color: #feebe8;
+}
+
+.upload-php .mode-grid .hide-sidebar .media-sidebar {
+       display: none;
+}
+
+.upload-php .mode-grid .media-sidebar .media-uploader-status {
+       border-bottom: none;
+       padding-bottom: 0;
+       max-width: 100%;
+}
+
+.upload-php .mode-grid .media-sidebar .upload-error {
+       margin: 20px 0;
+       padding: 0;
+       border: none;
+       background: none;
+}
+
+.upload-php .mode-grid .media-sidebar .media-uploader-status .upload-dismiss-errors {
+       font-size: 0;
+       top: -12px;
+       right: -10px;
+}
+
+.upload-php .mode-grid .media-sidebar .media-uploader-status .upload-dismiss-errors:before {
+       content: "\f158";
+       font: normal 20px/1 dashicons;
+       color: #666;
+}
+
+.upload-php .mode-grid .media-sidebar .media-uploader-status .upload-dismiss-errors:focus:before,
+.upload-php .mode-grid .media-sidebar .media-uploader-status .upload-dismiss-errors:hover:before {
+       color: #2ea2cc;
+}
+
+.upload-php .mode-grid .media-sidebar .media-uploader-status.errors h3 {
+       display: none;
+}
+
+.media-frame.mode-grid .uploader-inline {
+       position: relative;
+       top: auto;
+       right: auto;
+       left: auto;
+       bottom: auto;
+       padding-top: 0;
+       margin-top: 0;
+       border: 4px dashed #bbb;
+}
+
+.media-frame.mode-select .attachments-browser.fixed .attachments {
+       position: relative;
+       top: 94px; /* prevent jumping up when the toolbar becomes fixed */
+       padding-bottom: 94px; /* offset for above so the bottom doesn't get cut off */
+}
+
+.media-frame.mode-grid .attachment:focus,
+.media-frame.mode-grid .selected.attachment:focus,
+.media-frame.mode-grid .attachment.details:focus {
+       -webkit-box-shadow:
+               inset 0 0 2px 3px #f1f1f1,
+               inset 0 0 0 7px #5b9dd9;
+       box-shadow:
+               inset 0 0 2px 3px #f1f1f1,
+               inset 0 0 0 7px #5b9dd9;
+       outline: none;
+}
+
+.media-frame.mode-grid .selected.attachment {
+       -webkit-box-shadow:
+               inset 0 0 0 5px #f1f1f1,
+               inset 0 0 0 7px #ccc;
+       box-shadow:
+               inset 0 0 0 5px #f1f1f1,
+               inset 0 0 0 7px #ccc;
+}
+
+.media-frame.mode-grid .attachment.details {
+       -webkit-box-shadow:
+               inset 0 0 0 3px #f1f1f1,
+               inset 0 0 0 7px #1e8cbe;
+       box-shadow:
+               inset 0 0 0 3px #f1f1f1,
+               inset 0 0 0 7px #1e8cbe;
+}
+
+.media-frame.mode-grid.mode-select .attachment .thumbnail {
+       opacity: 0.65;
+}
+
+.media-frame.mode-select .attachment.selected .thumbnail {
+       opacity: 1;
+}
+
+.media-frame.mode-grid .media-toolbar {
+       margin-bottom: 15px;
+       height: auto;
+}
+
+.media-frame.mode-grid .media-toolbar select {
+       margin: 0 10px 0 0;
+       font-size: 14px;
+}
+
+.media-frame.mode-grid .media-toolbar-secondary > .media-button {
+       margin-top: 10px;
+       margin-bottom: 10px;
+}
+
+.media-frame.mode-grid .attachments-browser .bulk-select {
+       display: inline-block;
+       margin: 0 10px 0 0;
+}
+
+.media-frame.mode-grid .search {
+       margin-top: 0;
+}
+
+.media-frame.mode-grid .spinner {
+       margin-top: 15px;
+}
+
+.attachments-browser .media-toolbar-secondary > .select-mode-toggle-button {
+       margin-right: 10px;
+}
+
+.media-frame.mode-select .attachments-browser.fixed .media-toolbar {
+       position: fixed;
+       top: 32px;
+       left: auto;
+       right: 20px;
+       margin-top: 0;
+}
+
+.media-frame.mode-grid .attachments-browser {
+       padding: 0;
+}
+
+.media-frame.mode-grid .attachments-browser .attachments {
+       padding: 2px;
+}
+
+.media-frame.mode-grid .attachments-browser .no-media {
+       color: #999;
+       font-size: 18px;
+       font-style: normal;
+       margin: 0;
+       padding: 100px 0 0;
+       text-align: center;
+}
+
+/**
+ * Attachment details modal
+ */
+
+.edit-attachment-frame {
+       display: block;
+       height: 100%;
+       width: 100%;
+}
+
+.edit-attachment-frame .edit-media-header {
+       overflow: hidden;
+}
+
+.upload-php .media-modal-close .media-modal-icon:before {
+       content: '\f335';
+       font-size: 22px;
+}
+
+.upload-php .media-modal-close .media-modal-icon {
+       margin: 14px;
+       width: 22px;
+}
+
+.upload-php .media-modal-close,
+.edit-attachment-frame .edit-media-header .left,
+.edit-attachment-frame .edit-media-header .right {
+       cursor: pointer;
+       color: #777;
+       background-color: transparent;
+       height: 50px;
+       width: 50px;
+       padding: 0;
+       position: absolute;
+       text-align: center;
+       border: 0;
+       border-left: 1px solid #ddd;
+       -webkit-transition: color .1s ease-in-out, background .1s ease-in-out;
+    transition: color .1s ease-in-out, background .1s ease-in-out;
+}
+
+.upload-php .media-modal-close {
+       top: 0;
+       right: 0;
+}
+
+.edit-attachment-frame .edit-media-header .left {
+       right: 102px;
+}
+
+.edit-attachment-frame .edit-media-header .right {
+       right: 51px;
+}
+
+.edit-attachment-frame .media-frame-title {
+       left: 0;
+       right: 150px; /* leave space for prev/next/close */
+}
+
+.edit-attachment-frame .edit-media-header .right:before,
+.edit-attachment-frame .edit-media-header .left:before {
+       font: normal 20px/50px 'dashicons' !important;
+       display: inline;
+       font-weight: 300;
+}
+
+.upload-php .media-modal-close:hover,
+.upload-php .media-modal-close:focus,
+.edit-attachment-frame .edit-media-header .left:hover,
+.edit-attachment-frame .edit-media-header .right:hover,
+.edit-attachment-frame .edit-media-header .left:focus,
+.edit-attachment-frame .edit-media-header .right:focus {
+       background: #ddd;
+       border-color: #ccc;
+       color: #000;
+       outline: none;
+}
+
+.upload-php .media-modal-close:focus .media-modal-icon:before,
+.upload-php .media-modal-close:hover .media-modal-icon:before {
+       color: #000;
+}
+
+.edit-attachment-frame .edit-media-header .left:before,
+.rtl .edit-attachment-frame .edit-media-header .right:before {
+       content: '\f341';
+}
+
+.edit-attachment-frame .edit-media-header .right:before,
+.rtl .edit-attachment-frame .edit-media-header .left:before {
+       content: '\f345';
+}
+
+.edit-attachment-frame .edit-media-header .left.disabled,
+.edit-attachment-frame .edit-media-header .right.disabled,
+.edit-attachment-frame .edit-media-header .left.disabled:hover,
+.edit-attachment-frame .edit-media-header .right.disabled:hover {
+       color: #ccc;
+       background: inherit;
+       cursor: default;
+       pointer-events: none;
+}
+
+.edit-attachment-frame .media-frame-content,
+.edit-attachment-frame .media-frame-router {
+       left: 0;
+}
+
+.edit-attachment-frame .media-frame-content {
+       border-bottom: none;
+       bottom: 0;
+       top: 50px;
+}
+
+.edit-attachment-frame .attachment-details {
+       position: absolute;
+       overflow: auto;
+       top: 0;
+       bottom: 0;
+       right: 0;
+       left: 0;
+       -webkit-box-shadow: inset 0px 4px 4px -4px rgba(0, 0, 0, 0.1);
+       box-shadow: inset 0px 4px 4px -4px rgba(0, 0, 0, 0.1);
+}
+
+.edit-attachment-frame .attachment-media-view {
+       float: left;
+       width: 65%;
+       height: 100%;
+}
+
+.edit-attachment-frame .attachment-media-view .thumbnail {
+       -webkit-box-sizing: border-box;
+       -moz-box-sizing: border-box;
+       box-sizing: border-box;
+       padding: 16px;
+       height: 100%;
+}
+
+.edit-attachment-frame .attachment-media-view .details-image {
+       display: block;
+       margin-bottom: 16px;
+       max-width: 100%;
+       max-height: 90%;
+       max-height: -webkit-calc( 100% - 42px );
+       max-height: calc( 100% - 42px ); /* leave space for actions underneath */
+}
+
+.edit-attachment-frame .wp-media-wrapper {
+       margin-bottom: 12px;
+}
+
+.edit-attachment-frame input,
+.edit-attachment-frame textarea {
+       padding: 6px 8px;
+       line-height: 16px;
+}
+
+.edit-attachment-frame .attachment-info {
+       overflow: auto;
+       -webkit-box-sizing: border-box;
+       -moz-box-sizing: border-box;
+       box-sizing: border-box;
+       margin-bottom: 0;
+       padding: 12px 16px 0;
+       width: 35%;
+       height: 100%;
+       -webkit-box-shadow: inset 0px 4px 4px -4px rgba(0, 0, 0, 0.1);
+       box-shadow: inset 0px 4px 4px -4px rgba(0, 0, 0, 0.1);
+       border-bottom: 0;
+       border-left: 1px solid #ddd;
+       background: #f3f3f3;
+}
+
+.edit-attachment-frame .attachment-info .details,
+.edit-attachment-frame .attachment-info .settings {
+       position: relative; /* RTL fix, #WP29352 */
+       overflow: hidden;
+       float: none;
+       margin-bottom: 15px;
+       padding-bottom: 15px;
+       border-bottom: 1px solid #ddd;
+}
+
+.edit-attachment-frame .attachment-info .filename {
+       font-weight: normal;
+       color: #666;
+}
+
+.edit-attachment-frame .attachment-info .thumbnail {
+       margin-bottom: 12px;
+}
+
+.attachment-info .actions {
+       margin-bottom: 16px;
+}
+
+.attachment-info .actions a {
+       display: inline;
+       text-decoration: none;
+}
+
 
 /*------------------------------------------------------------------------------
   14.2 - Image Editor
@@ -507,7 +890,7 @@ border color while dragging a file over the uploader drop area */
 }
 
 .media-disabled,
-.imgedit-settings .disabled  {
+.imgedit-settings .disabled {
        color: grey;
 }
 
@@ -699,6 +1082,7 @@ audio, video {
 
 .mejs-container {
        width: 100%;
+       max-width: 100%;
 }
 
 /* =Media Queries
@@ -721,4 +1105,92 @@ audio, video {
                font-size: 14px;
                line-height: 1.5em;
        }
+
+       .media-upload-form .media-item.error,
+       .media-upload-form .media-item .error {
+               font-size: 13px;
+               line-height: 1.5;
+       }
+
+       .media-upload-form .media-item.error {
+               padding: 1px 10px;
+       }
+
+       .media-upload-form .media-item .error {
+               padding: 10px 0 10px 12px;
+       }
+}
+
+/**
+ * Media queries for media grid.
+ */
+
+@media only screen and (max-width: 1120px) {
+       .media-frame.mode-grid .attachments-browser .media-toolbar-secondary {
+               float: none;
+       }
+}
+
+@media only screen and ( max-width: 782px ) {
+       .media-frame.mode-select .attachments-browser.fixed .media-toolbar {
+               top: 46px;
+               right: 10px;
+       }
+}
+
+@media only screen and (max-width: 600px) {
+       .media-frame.mode-select .attachments-browser.fixed .media-toolbar {
+               top: 0;
+       }
+}
+
+@media only screen and (max-width: 480px) {
+       .edit-attachment-frame .media-frame-title {
+               right: 110px;
+       }
+
+       .upload-php .media-modal-close,
+       .edit-attachment-frame .edit-media-header .left,
+       .edit-attachment-frame .edit-media-header .right {
+               width: 40px;
+               height: 40px;
+       }
+
+       .upload-php .media-modal-close .media-modal-icon {
+               margin: 9px 10px;
+       }
+
+       .edit-attachment-frame .edit-media-header .right:before,
+       .edit-attachment-frame .edit-media-header .left:before {
+               line-height: 40px !important;
+       }
+
+       .edit-attachment-frame .edit-media-header .left {
+               right: 82px;
+       }
+
+       .edit-attachment-frame .edit-media-header .right {
+               right: 41px;
+       }
+
+       .edit-attachment-frame .media-frame-content {
+               top: 40px;
+       }
+
+       .edit-attachment-frame .attachment-media-view {
+               float: none;
+               height: auto;
+               width: 100%;
+       }
+
+       .edit-attachment-frame .attachment-info {
+               height: auto;
+               width: 100%;
+       }
+}
+
+@media only screen and (max-width: 640px), screen and (max-height: 400px) {
+       .upload-php .mode-grid .media-sidebar{
+               max-width: 100%;
+       }
 }