Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't inject CSS directly into the head; added CSS file for real this…
… time Before we were injecting CSS directly into the head of *every* admin page. Now, we look to see if it's a document page, and if so conditionally, inject body tags into the admin body class. Every page will have the .document body class, and if a post is locked, it will have the .document-locked body class.
- Loading branch information
Showing
2 changed files
with
43 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* Document icon */ | ||
.icon32-posts-document{background-position: 0 0 !important; | ||
background-image:url('../img/icon32.png') !important;} | ||
@media only screen and (-webkit-min-device-pixel-ratio: 1.5), | ||
only screen and (-o-min-device-pixel-ratio: 3/2), | ||
only screen and (min-moz-device-pixel-ratio: 1.5), | ||
only screen and (min-device-pixel-ratio: 1.5) { | ||
.icon32-posts-document{ | ||
background-image:url( '../img/icon64.png' ) !important; | ||
background-size:32px 32px !important;} | ||
} | ||
|
||
/* General document edit styling */ | ||
#postdiv {display:none;} | ||
#lock-notice {background-color: #D4E8BA; border-color: #92D43B; } | ||
#document-revisions {width: 100%; text-align: left;} | ||
#document-revisions td {padding: 5px 0 0 0;} | ||
#workflow-state select {margin-left: 25px; width: 150px;} | ||
#authordiv select {width: 150px;} | ||
#lock_override {float:right; text-align: right; margin-top: 10px; padding-bottom: 5px; } | ||
#revision-summary {display:none;} | ||
#autosave-alert {display:none;} | ||
|
||
/* When documents are locked, hide notices and publish button, etc. */ | ||
.document-locked #publish,.document-locked .add_media,.document-locked #lock-notice {display: none;} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters