Skip to content

Commit

Permalink
Press This fixes:
Browse files Browse the repository at this point in the history
* Override responsive styles for the Press This window
* Remove the old header logo in Press This
* Add the new Dashicon WP logo

See #25858.


Built from https://develop.svn.wordpress.org/trunk@26433


git-svn-id: http://core.svn.wordpress.org/trunk@26331 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
Matt Thomas committed Nov 27, 2013
1 parent f752cc6 commit 01fdd02
Show file tree
Hide file tree
Showing 9 changed files with 246 additions and 21 deletions.
118 changes: 110 additions & 8 deletions wp-admin/css/wp-admin-rtl.css
Original file line number Diff line number Diff line change
Expand Up @@ -6904,6 +6904,22 @@ body.press-this {
min-height: 400px;
}

.press-this #titlediv #title {
font-size: 1.4em;
}

.press-this #site-heading:before {
top: 3px;
position: relative;
display: inline-block;
font: normal 18px/1 'dashicons';
speak: none;
color: #727272;
content: '\f120';
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

.pressthis {
margin: 20px 0;
}
Expand Down Expand Up @@ -9825,8 +9841,7 @@ h3.tb {
#img_container a:active {
border-color: #000;
z-index: 1000;
border-width: 2px;
margin: -1px;
border-width: 1px;
}

/* Video */
Expand Down Expand Up @@ -10989,7 +11004,7 @@ li#wp-admin-bar-menu-toggle {
margin: 7px;
line-height: 16px;
}

.wp-upload-form input[type=submit] {
margin-top: 10px;
}
Expand Down Expand Up @@ -11237,6 +11252,10 @@ li#wp-admin-bar-menu-toggle {
ul.category-tabs li.tabs {
padding: 15px;
}

.press-this ul.category-tabs li.tabs {
padding: 3px 5px 5px; /* Reset tabs in Press This to standard size */
}

ul#categorychecklist li {
margin-bottom: 15px;
Expand Down Expand Up @@ -11332,15 +11351,11 @@ li#wp-admin-bar-menu-toggle {
top: 1px;
}

.press-this #wp-content-editor-tools {
top: 4px;
}

a.wp-switch-editor {
font-size: 16px;
line-height: 1em;
margin: 3px 7px 0 0;
padding: 12px 15px !important;
padding: 12px 15px;
}

#wp-content-media-buttons a {
Expand Down Expand Up @@ -12136,6 +12151,93 @@ li#wp-admin-bar-menu-toggle {
#comments-form .checkforspam {
display: none;
}

/* Reset responsive styles in Press This */

.press-this a.wp-switch-editor {
font: 13px/19px "Open Sans", sans-serif;
margin: 5px 5px 0 0;
padding: 3px 8px 4px;
}

.press-this #wp-content-media-buttons a {
padding: 0;
line-height: normal;
height: auto;
}

.press-this #wp-content-editor-tools {
padding: 0;
top: 3px;
}

.press-this .category-tabs {
margin-top: 0;
}

.press-this .tagsdiv .newtag {
width: 120px;
padding: 3px 5px;
margin-bottom: 0;
}

.press-this .tagchecklist {
padding: 0;
margin-bottom: 0;
}

.press-this .wp_themeSkin a.mceButton {
width: 20px;
height: 20px;
}

.press-this .wp_themeSkin .mceButton .mceIcon {
margin: 0;
}

.press-this #poststuff h3,
.press-this .metabox-holder h3 {
padding: 7px 12px;
}

.press-this input[type=checkbox],
.press-this input[type=radio] {
height: 16px;
width: 16px;
}

.press-this input[type=checkbox]:checked:before {
width: 16px;
font: normal 21px/1 'dashicons';
margin: -3px -4px 0 0;
}

.press-this input[type=radio]:checked:before {
font: normal 21px/1 'dashicons';
width: 6px;
height: 6px;
margin: 4px;
}

.press-this ul#categorychecklist ul,
.press-this ul#categorychecklist li {
margin-top: 0;
margin-bottom: 0;
}

.press-this div.quicktags-toolbar input {
padding: 2px 4px;
}

.press-this textarea,
.press-this input {
font-size: 14px;
}

.press-this .tagchecklist span {
font-size: 13px;
line-height: 1.8em;
}
}

@media only screen and (max-width: 500px) {
Expand Down
2 changes: 1 addition & 1 deletion wp-admin/css/wp-admin-rtl.min.css

Large diffs are not rendered by default.

118 changes: 110 additions & 8 deletions wp-admin/css/wp-admin.css
Original file line number Diff line number Diff line change
Expand Up @@ -6904,6 +6904,22 @@ body.press-this {
min-height: 400px;
}

.press-this #titlediv #title {
font-size: 1.4em;
}

.press-this #site-heading:before {
top: 3px;
position: relative;
display: inline-block;
font: normal 18px/1 'dashicons';
speak: none;
color: #727272;
content: '\f120';
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

.pressthis {
margin: 20px 0;
}
Expand Down Expand Up @@ -9825,8 +9841,7 @@ h3.tb {
#img_container a:active {
border-color: #000;
z-index: 1000;
border-width: 2px;
margin: -1px;
border-width: 1px;
}

/* Video */
Expand Down Expand Up @@ -10989,7 +11004,7 @@ li#wp-admin-bar-menu-toggle {
margin: 7px;
line-height: 16px;
}

.wp-upload-form input[type=submit] {
margin-top: 10px;
}
Expand Down Expand Up @@ -11237,6 +11252,10 @@ li#wp-admin-bar-menu-toggle {
ul.category-tabs li.tabs {
padding: 15px;
}

.press-this ul.category-tabs li.tabs {
padding: 3px 5px 5px; /* Reset tabs in Press This to standard size */
}

ul#categorychecklist li {
margin-bottom: 15px;
Expand Down Expand Up @@ -11332,15 +11351,11 @@ li#wp-admin-bar-menu-toggle {
top: 1px;
}

.press-this #wp-content-editor-tools {
top: 4px;
}

a.wp-switch-editor {
font-size: 16px;
line-height: 1em;
margin: 3px 0 0 7px;
padding: 12px 15px !important;
padding: 12px 15px;
}

#wp-content-media-buttons a {
Expand Down Expand Up @@ -12136,6 +12151,93 @@ li#wp-admin-bar-menu-toggle {
#comments-form .checkforspam {
display: none;
}

/* Reset responsive styles in Press This */

.press-this a.wp-switch-editor {
font: 13px/19px "Open Sans", sans-serif;
margin: 5px 0 0 5px;
padding: 3px 8px 4px;
}

.press-this #wp-content-media-buttons a {
padding: 0;
line-height: normal;
height: auto;
}

.press-this #wp-content-editor-tools {
padding: 0;
top: 3px;
}

.press-this .category-tabs {
margin-top: 0;
}

.press-this .tagsdiv .newtag {
width: 120px;
padding: 3px 5px;
margin-bottom: 0;
}

.press-this .tagchecklist {
padding: 0;
margin-bottom: 0;
}

.press-this .wp_themeSkin a.mceButton {
width: 20px;
height: 20px;
}

.press-this .wp_themeSkin .mceButton .mceIcon {
margin: 0;
}

.press-this #poststuff h3,
.press-this .metabox-holder h3 {
padding: 7px 12px;
}

.press-this input[type=checkbox],
.press-this input[type=radio] {
height: 16px;
width: 16px;
}

.press-this input[type=checkbox]:checked:before {
width: 16px;
font: normal 21px/1 'dashicons';
margin: -3px 0 0 -4px;
}

.press-this input[type=radio]:checked:before {
font: normal 21px/1 'dashicons';
width: 6px;
height: 6px;
margin: 4px;
}

.press-this ul#categorychecklist ul,
.press-this ul#categorychecklist li {
margin-top: 0;
margin-bottom: 0;
}

.press-this div.quicktags-toolbar input {
padding: 2px 4px;
}

.press-this textarea,
.press-this input {
font-size: 14px;
}

.press-this .tagchecklist span {
font-size: 13px;
line-height: 1.8em;
}
}

@media only screen and (max-width: 500px) {
Expand Down
2 changes: 1 addition & 1 deletion wp-admin/css/wp-admin.min.css

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion wp-admin/press-this.php
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,6 @@ function setup_photo_actions() {
<div class="posting">

<div id="wphead">
<img id="header-logo" src="<?php echo esc_url( includes_url( 'images/blank.gif' ) ); ?>" alt="" width="16" height="16" />
<h1 id="site-heading">
<a href="<?php echo get_option('home'); ?>/" target="_blank">
<span id="site-title"><?php bloginfo('name'); ?></span>
Expand Down
11 changes: 11 additions & 0 deletions wp-includes/css/buttons-rtl.css
Original file line number Diff line number Diff line change
Expand Up @@ -304,5 +304,16 @@ TABLE OF CONTENTS:
margin: 0 10px 0 14px; /* 14px right margin to match all other buttons */
}

/* Reset responsive styles in Press This */

.press-this.wp-core-ui .button,
.press-this input#publish,
.press-this input#save-post,
.press-this a.preview {
padding: 0 10px 1px;
font-size: 13px;
line-height: 26px;
height: 28px;
margin: 0;
}
}
2 changes: 1 addition & 1 deletion wp-includes/css/buttons-rtl.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions wp-includes/css/buttons.css
Original file line number Diff line number Diff line change
Expand Up @@ -304,5 +304,16 @@ TABLE OF CONTENTS:
margin: 0 14px 0 10px; /* 14px right margin to match all other buttons */
}

/* Reset responsive styles in Press This */

.press-this.wp-core-ui .button,
.press-this input#publish,
.press-this input#save-post,
.press-this a.preview {
padding: 0 10px 1px;
font-size: 13px;
line-height: 26px;
height: 28px;
margin: 0;
}
}
Loading

0 comments on commit 01fdd02

Please sign in to comment.